697f8008bcf911f2ae4f76069fc00b992a617cb9
[gnulib.git] / ChangeLog
1 2012-04-12  Bruno Haible  <bruno@clisp.org>
2
3         New module 'sys_resource'.
4         * lib/sys_resource.in.h: New file.
5         * m4/sys_resource_h.m4: New file.
6         * modules/sys_resource: New file.
7         * doc/posix-headers/sys_resource.texi: Mention the new module.
8
9 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
10
11         ioctl: Fix compilation error on mingw.
12         * lib/ioctl.c: Include <windows.h>.
13         Also reported by Ray Satiro <raysatiro@yahoo.com>.
14
15 2012-04-04  Jim Meyering  <meyering@redhat.com>
16
17         regex: correct #pragma guard expression
18         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
19         not 4.3.  Correct its cpp guard expression.
20
21 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
22
23         regex: remove unnecessary type punning
24         Problem reported by Vladimir Serbinenko in
25         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
26         * lib/regex.h (struct re_pattern_buffer): Change the type of
27         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
28         Fix comment to match code.
29         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
30         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
31         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
32         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
33         (set_regs):
34         Omit no-longer-necessary casts.
35
36 2012-04-03  Bruno Haible  <bruno@clisp.org>
37
38         Tests for module 'ilogbl'.
39         * modules/ilogbl-tests: New file.
40         * tests/test-ilogbl.c: New file.
41
42         New module 'ilogbl'.
43         * lib/math.in.h (ilogbl): New declaration.
44         * lib/ilogbl.c: New file.
45         * m4/ilogbl.m4: New file.
46         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
47         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
48         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
49         Split sed invocation, to avoid the limit of 100 substitutions of
50         HP-UX 'sed'.
51         * modules/ilogbl: New file.
52         * tests/test-math-c++.cc: Check the declaration of ilogbl.
53         * doc/posix-functions/ilogbl.texi: Mention the new module.
54
55 2012-04-03  Bruno Haible  <bruno@clisp.org>
56
57         Tests for module 'ilogbf'.
58         * modules/ilogbf-tests: New file.
59         * tests/test-ilogbf.c: New file.
60
61         New module 'ilogbf'.
62         * lib/math.in.h (ilogbf): New declaration.
63         * lib/ilogbf.c: New file.
64         * m4/ilogbf.m4: New file.
65         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
66         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
67         REPLACE_ILOGBF.
68         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
69         REPLACE_ILOGBF.
70         * modules/ilogbf: New file.
71         * tests/test-math-c++.cc: Check the declaration of ilogbf.
72         * doc/posix-functions/ilogbf.texi: Mention the new module.
73
74 2012-04-03  Bruno Haible  <bruno@clisp.org>
75
76         Tests for module 'ilogb'.
77         * modules/ilogb-tests: New file.
78         * tests/test-ilogb.c: New file.
79         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
80         tests/test-logb-ieee.h.
81
82         New module 'ilogb'.
83         * lib/math.in.h (ilogb): New declaration.
84         * lib/ilogb.c: New file.
85         * m4/ilogb.m4: New file.
86         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
87         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
88         REPLACE_ILOGB.
89         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
90         REPLACE_ILOGB.
91         * modules/ilogb: New file.
92         * tests/test-math-c++.cc: Check the declaration of ilogb.
93         * doc/posix-functions/ilogb.texi: Mention the new module.
94
95 2012-04-03  Bruno Haible  <bruno@clisp.org>
96
97         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
98         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
99         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
100         (main): Check their values.
101         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
102         problem.
103
104 2012-04-03  Bruno Haible  <bruno@clisp.org>
105
106         Tests for module 'logbl-ieee'.
107         * modules/logbl-ieee-tests: New file.
108         * tests/test-logbl-ieee.c: New file.
109
110         New module 'logbl-ieee'.
111         * modules/logbl-ieee: New file.
112
113         Tests for module 'logb-ieee'.
114         * modules/logb-ieee-tests: New file.
115         * tests/test-logb-ieee.c: New file.
116
117         New module 'logb-ieee'.
118         * modules/logb-ieee: New file.
119
120         Tests for module 'logbf-ieee'.
121         * modules/logbf-ieee-tests: New file.
122         * tests/test-logbf-ieee.c: New file.
123         * tests/test-logb-ieee.h: New file.
124
125         New module 'logbf-ieee'.
126         * modules/logbf-ieee: New file.
127
128 2012-04-03  Bruno Haible  <bruno@clisp.org>
129
130         Tests for module 'logbl'.
131         * modules/logbl-tests: New file.
132         * tests/test-logbl.c: New file.
133
134         New module 'logbl'.
135         * lib/math.in.h (logbl): New declaration.
136         * lib/logbl.c: New file.
137         * m4/logbl.m4: New file.
138         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
140         REPLACE_LOGBL.
141         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
142         REPLACE_LOGBL.
143         * modules/logbl: New file.
144         * tests/test-math-c++.cc: Check the declaration of logbl.
145         * doc/posix-functions/logbl.texi: Mention the new module.
146
147 2012-04-02  Bruno Haible  <bruno@clisp.org>
148
149         Tests for module 'logbf'.
150         * modules/logbf-tests: New file.
151         * tests/test-logbf.c: New file.
152
153         New module 'logbf'.
154         * lib/math.in.h (logbf): New declaration.
155         * lib/logbf.c: New file.
156         * m4/logbf.m4: New file.
157         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
159         REPLACE_LOGBF.
160         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
161         REPLACE_LOGBF.
162         * modules/logbf: New file.
163         * tests/test-math-c++.cc: Check the declaration of logbf.
164         * doc/posix-functions/logbf.texi: Mention the new module.
165
166 2012-04-02  Bruno Haible  <bruno@clisp.org>
167
168         logb tests: More tests.
169         * tests/test-logb.h: New file, based on tests/test-logb.c and
170         tests/test-frexp.h.
171         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
172         (main): Just invoke test_function.
173         * modules/logb-tests (Files): Add tests/test-logb.h,
174         tests/minus-zero.h, tests/randomd.c.
175         (Makefile.am): Add randomd.c to test_logb_SOURCES.
176
177         logb: Provide replacement and workarounds.
178         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
179         is 1.
180         * lib/logb.c: New file.
181         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
182         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
184         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
185         * modules/logb (Files): Add lib/logb.c.
186         (Depends-on): Add isfinite, frexp, isnand.
187         (configure.ac): Compile the replacement code logb.c if needed.
188         * tests/test-math-c++.cc: Check the declaration of logb.
189         * doc/posix-functions/logb.texi: Mention the replacement and the bug
190         with subnormal numbers.
191
192 2012-04-02  Bruno Haible  <bruno@clisp.org>
193
194         log10* tests: Speed up.
195         * tests/test-log10.h (test_function): Reduce amount of random numbers
196         to test.
197
198 2012-04-01  Bruno Haible  <bruno@clisp.org>
199
200         logf-ieee: Fix test whether logf works.
201         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
202
203 2012-04-01  Bruno Haible  <bruno@clisp.org>
204
205         log10l: Work around log10l-ieee test failure on IRIX 6.5.
206         * lib/log10l.c: Include <float.h>
207         (log10l): On IRIX, normalize the +Infinity value.
208         * modules/log10l (Depends-on): Add 'float'.
209         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
210         +Infinity.
211
212         log10f-ieee: Work around test failure on NetBSD 5.1.
213         * m4/log10f-ieee.m4: New file.
214         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
215         test whether log10f works with a negative argument. Replace it if not.
216         * lib/log10f.c (log10f): For negative arguments, return NaN.
217         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
218         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
219         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
220
221         log10f-ieee: Work around test failure on Solaris 9.
222         * modules/log10f-ieee (Depends-on): Add log10-ieee.
223         (configure.ac): Require gl_FUNC_LOG10F.
224
225         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
226         * m4/log10-ieee.m4: New file.
227         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
228         whether log10 works with a negative argument. Replace it if not.
229         * lib/log10.c (log10): For negative arguments, return NaN.
230         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
231         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
232         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
233
234         Tests for module 'log10l-ieee'.
235         * modules/log10l-ieee-tests: New file.
236         * tests/test-log10l-ieee.c: New file.
237
238         New module 'log10l-ieee'.
239         * modules/log10l-ieee: New file.
240
241         Tests for module 'log10-ieee'.
242         * modules/log10-ieee-tests: New file.
243         * tests/test-log10-ieee.c: New file.
244
245         New module 'log10-ieee'.
246         * modules/log10-ieee: New file.
247
248         Tests for module 'log10f-ieee'.
249         * modules/log10f-ieee-tests: New file.
250         * tests/test-log10f-ieee.c: New file.
251         * tests/test-log10-ieee.h: New file.
252
253         New module 'log10f-ieee'.
254         * modules/log10f-ieee: New file.
255
256 2012-04-01  Bruno Haible  <bruno@clisp.org>
257
258         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
259         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
260         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
261         workaround.
262         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
263         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
265         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
266         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
267         (Depends-on): Update conditions.
268         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
269         IRIX 6.5, OSF/1 5.1 problems.
270
271 2012-04-01  Bruno Haible  <bruno@clisp.org>
272
273         log10f: Work around OSF/1 5.1 bug.
274         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
275         * lib/log10f.c (log10f): If logf exists, use it and provide just the
276         workaround.
277         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
278         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
280         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
281         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
282         (Depends-on): Update conditions.
283         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
284
285 2012-04-01  Bruno Haible  <bruno@clisp.org>
286
287         log10: Work around OSF/1 5.1 bug.
288         * lib/math.in.h (log10): New declaration.
289         * lib/log10.c: New file.
290         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
291         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
292         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
294         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
295         * modules/log10 (Files): Add lib/log10.c.
296         (Depends-on): Add math.
297         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
298         * tests/test-math-c++.cc: Check the declaration of log10.
299         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
300
301 2012-03-31  Bruno Haible  <bruno@clisp.org>
302
303         log10l tests: More tests.
304         * modules/log10l-tests (Files): Add tests/test-log10l.h,
305         tests/minus-zero.h, tests/randoml.c.
306         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
307         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
308         (main): Invoke test_function.
309
310         log10f tests: More tests.
311         * modules/log10f-tests (Files): Add tests/test-log10.h,
312         tests/minus-zero.h, tests/randomf.c.
313         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
314         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
315         (main): Invoke test_function.
316
317         log10 tests: More tests.
318         * tests/test-log10.h: New file.
319         * modules/log10-tests (Files): Add tests/test-log10.h,
320         tests/minus-zero.h, tests/randomd.c.
321         (Makefile.am): Add randomd.c to test_log10_SOURCES.
322         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
323         (main): Invoke test_function.
324
325 2012-03-31  Simon Josefsson  <simon@josefsson.org>
326
327         fflush: Fix syntax error.
328         * lib/fflush.c: Include unused-parameter.h, needed for
329         _GL_UNUSED_PARAMETER.
330         * modules/fflush (Depends-on): Add snippet/unused-parameter.
331
332 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
333
334         regex: pacify GCC when compiling GRUB
335         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
336         a diagnostic.  Reported by Vladimir Serbinenko in
337         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
338
339 2012-03-29  Eric Blake  <eblake@redhat.com>
340
341         stdio: don't assume gets any more
342         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
343         support.
344         * modules/stdio (Makefile.am): Likewise.
345         * lib/stdio-read.c (gets): Likewise.
346         * tests/test-stdio-c++.cc: Likewise.
347         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
348         * lib/stdio.in.h (gets): Make warning occur in more places.
349         * doc/posix-functions/gets.texi (gets): Update documentation.
350         Reported by Christer Solskogen.
351
352         maint.mk: fix syntax checks without exclusions
353         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
354         Reported by Daniel P. Berrange.
355
356         strerror_r: avoid compiler warning
357         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
358         level.
359
360         fflush: avoid compiler warning
361         * lib/fflush.c (update_fpos_cache): Mark variables that are
362         potentially unused.
363
364 2012-03-25  Bruno Haible  <bruno@clisp.org>
365
366         Tests for module 'localeconv'.
367         * modules/localeconv-tests: New file.
368         * tests/test-localeconv.c: New file.
369
370         New module 'localeconv'.
371         * lib/locale.in.h (localeconv): New declaration.
372         * lib/localeconv.c: New file.
373         * m4/localeconv.m4: New file.
374         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
375         REPLACE_LOCALECONV.
376         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
377         REPLACE_LOCALECONV.
378         * modules/localeconv: New file.
379         * modules/nl_langinfo (Depends-on): Add localeconv.
380         * modules/human (Depends-on): Likewise.
381         * doc/posix-functions/localeconv.texi: Mention the new module.
382
383 2012-03-25  Bruno Haible  <bruno@clisp.org>
384
385         locale: Provide a complete 'struct lconv'.
386         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
387         'struct lconv' does not contain int_p_cs_precedes.
388         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
389         * doc/posix-headers/locale.texi: Update.
390
391         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
392         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
393         * doc/posix-headers/locale.texi: Update.
394
395         locale: Provide a working 'struct lconv'.
396         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
397         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
398         'struct lconv' does not even contain decimal_point.
399         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
400         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
401         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
402         * doc/posix-headers/locale.texi: Mention the problems with
403         'struct lconv'.
404         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
405
406 2012-03-24  Bruno Haible  <bruno@clisp.org>
407
408         Enable common subexpression optimization in GCC.
409         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
410         macros.
411         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
412         GCC attribute 'const'.
413         (uc_locale_language): Declare with GCC attribute 'pure'.
414         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
415         with GCC attribute 'const'.
416         * lib/unictype.in.h (uc_is_general_category_withtable,
417         uc_combining_class, uc_combining_class_name,
418         uc_combining_class_long_name, uc_bidi_class_name,
419         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
420         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
421         uc_decimal_value, uc_digit_value, uc_numeric_value,
422         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
423         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
424         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
425         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
426         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
427         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
428         Declare with GCC attribute 'const'.
429         (uc_general_category_name, uc_general_category_long_name,
430         uc_general_category_byname, uc_general_category,
431         uc_is_general_category, uc_combining_class_byname,
432         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
433         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
434         Declare with GCC attribute 'pure'.
435         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
436         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
437         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
438         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
439         with GCC attribute 'pure'.
440         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
441         'const'.
442         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
443         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
444         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
445         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
446         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
447         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
448         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
449         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
450         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
451         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
452         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
453         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
454         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
455         GCC attribute 'pure'.
456         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
457         'const'.
458         * lib/uniwidth.in.h (uc_width): Simplify declaration.
459         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
460         u32_strwidth): Declare with GCC attribute 'pure'.
461
462         Enable common subexpression optimization in GCC.
463         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
464         (alphasort): Declare with GCC attribute 'pure'.
465         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
466         (atoll): Declare with GCC attribute 'pure'.
467         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
468         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
469         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
470         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
471         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
472         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
473         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
474
475 2012-03-24  Bruno Haible  <bruno@clisp.org>
476
477         gnulib-tool: Avoid unintended error output from 'cmp'.
478         * gnulib-tool (func_add_file, func_update_file, func_import): Use
479         "cmp -s", not "cmp > /dev/null".
480
481 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
482
483         gnulib-tool: fix imprecise comments w.r.t. an automake bug
484
485         It's not just Automake versions < 1.9b that creates an empty
486         pkgdatadir at installation time if pkgdata_DATA is specified
487         to empty; modern automake versions do this as well, at least
488         until automake 1.11.4 (not yet released at the moment of writing,
489         but soon to appear).  That behaviour was generally considered a
490         feature rather than a bug, at least until this discussion:
491         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
492
493         See also automake bugs #10997 and #11030.
494
495         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
496         reference to relevant automake bug numbers.
497         (func_emit_tests_Makefile_am): Likewise.
498
499 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
500
501         announce-gen: use Digest::SHA when possible
502         * build-aux/announce-gen: Use Digest::SHA when possible, falling
503         back to Digest::SHA1 if necessary.
504
505 2012-03-20  Jim Meyering  <meyering@redhat.com>
506
507         tests: avoid gcc warnings about argv vs. const initializers
508         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
509         warnings about discarding 'const' qualifier from pointer target type.
510         * tests/test-posix_spawn2.c (main): Likewise.
511
512 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
513
514         README-release: simplify slightly
515         * top/README-release: Run "git checkout master" only once.
516
517 2012-03-15  Mark Wielaard  <mark@klomp.org>
518
519         git-merge-changelog: add specific example on how to use with hg.
520         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
521
522 2012-03-18  Mark Wielaard  <mark@klomp.org>
523
524         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
525
526 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
527
528         git-version-gen: don't let "prefix" envvar cause trouble
529         * build-aux/git-version-gen (prefix): Initialize properly,
530         so as not to use a value specified via the environment.
531         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
532
533 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
534
535         regex: diagnose too-large repeat counts in EREs
536         Previously, the code did not diagnose the too-large repeat count
537         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
538         as if it were 'b\{1000000000}', which is unexpected.
539         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
540         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
541         is a reasonable one for this problem.  Another option would be to
542         create a new REG_OVERFLOW error for repeat counts that are too large.
543         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
544         count is too large, so that the caller can distinguish the two cases.
545         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
546         "Too large" return code, and that repeat counts are one example of this.
547
548 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
549
550         doc: some glibc x32 integer width issues
551         * doc/posix-headers/sys_types.texi (sys/types.h):
552         * doc/posix-headers/time.texi (time.h):
553         Mention that glibc x32 does not conform to POSIX in a couple of
554         areas related to integer widths.
555
556 2012-03-15  Bruno Haible  <bruno@clisp.org>
557
558         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
559         * lib/fma.c (VOLATILE): New macro.
560         (FUNC): Use it to work around a GCC compiler bug.
561
562 2012-03-13  Bruno Haible  <bruno@clisp.org>
563
564         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
565         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
566         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
567         REPLACE_HYPOTL to 1.
568         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
569
570 2012-03-13  Bruno Haible  <bruno@clisp.org>
571
572         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
573         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
574         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
575         REPLACE_REMAINDERL to 1.
576         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
577         bug.
578
579 2012-03-13  Bruno Haible  <bruno@clisp.org>
580
581         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
582         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
583         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
584         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
585         too big rounding errors.
586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
587         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
588         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
589         (Depends-on): Update conditions.
590         * tests/test-sqrtl.c (my_ldexpl): New function.
591         (main): Add test of a particular value.
592         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
593
594 2012-03-13  Pádraig Brady  <P@draigBrady.com>
595
596         doc: Update timer_* platform portability notes.
597         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
598         that always return ENOSYS.
599         * doc/posix-functions/timer_delete.texi: Likewise.
600         * doc/posix-functions/timer_gettime.texi: Likewise.
601         * doc/posix-functions/timer_settime.texi: Likewise.
602
603 2012-03-13  Bruno Haible  <bruno@clisp.org>
604
605         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
606         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
607         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
608         REPLACE_CBRTL to 1.
609         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
610
611 2012-03-13  Bruno Haible  <bruno@clisp.org>
612
613         remainderl: Avoid compilation error on AIX >= 5.2.
614         * lib/math.in.h (remainderl): Undefine macro from the system header.
615
616 2012-03-13  Bruno Haible  <bruno@clisp.org>
617
618         Avoid compilation errors with MSVC option -fp:strict.
619         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
620         * lib/cbrtf.c: Likewise.
621         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
622
623 2012-03-12  Bruno Haible  <bruno@clisp.org>
624
625         uninorm: Don't crash in out-of-memory conditions.
626         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
627         gracefully.
628         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
629         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
630
631 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
632
633         quote: fix syntax-check
634         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
635         also exports quote_quoting_options.
636
637 2012-03-12  Simon Josefsson  <simon@josefsson.org>
638
639         Collapse list of copyright years to ranges.  See
640         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
641         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
642         build-aux/csharpexec.sh.in, build-aux/gnupload,
643         build-aux/install-reloc, build-aux/javacomp.sh.in,
644         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
645         build-aux/move-if-change, build-aux/reloc-ldflags,
646         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
647
648 2012-03-11  Bruno Haible  <bruno@clisp.org>
649
650         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
651         * m4/log2f-ieee.m4: New file.
652         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
653         whether log2f works with a minus zero argument. Replace it if not.
654         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
655         (Depends-on): Add log2-ieee.
656         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
657         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
658
659         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
660         * m4/log2-ieee.m4: New file.
661         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
662         whether log2 works with a minus zero argument. Replace it if not.
663         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
664         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
665         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
666
667         Tests for module 'log2l-ieee'.
668         * modules/log2l-ieee-tests: New file.
669         * tests/test-log2l-ieee.c: New file.
670
671         New module 'log2l-ieee'.
672         * modules/log2l-ieee: New file.
673
674         Tests for module 'log2-ieee'.
675         * modules/log2-ieee-tests: New file.
676         * tests/test-log2-ieee.c: New file.
677
678         New module 'log2-ieee'.
679         * modules/log2-ieee: New file.
680
681         Tests for module 'log2f-ieee'.
682         * modules/log2f-ieee-tests: New file.
683         * tests/test-log2f-ieee.c: New file.
684         * tests/test-log2-ieee.h: New file.
685
686         New module 'log2f-ieee'.
687         * modules/log2f-ieee: New file.
688
689 2012-03-11  Bruno Haible  <bruno@clisp.org>
690
691         Tests for module 'log2l'.
692         * modules/log2l-tests: New file.
693         * tests/test-log2l.c: New file.
694
695         New module 'log2l'.
696         * lib/math.in.h (log2l): New declaration.
697         * lib/log2l.c: New file.
698         * m4/log2l.m4: New file.
699         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
701         REPLACE_LOG2L.
702         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
703         REPLACE_LOG2L.
704         * modules/log2l: New file.
705         * tests/test-math-c++.cc: Check the declaration of log2l.
706         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
707         and OSF/1 problems.
708
709 2012-03-11  Bruno Haible  <bruno@clisp.org>
710
711         Tests for module 'log2f'.
712         * modules/log2f-tests: New file.
713         * tests/test-log2f.c: New file.
714
715         New module 'log2f'.
716         * lib/math.in.h (log2f): New declaration.
717         * lib/log2f.c: New file.
718         * m4/log2f.m4: New file.
719         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
721         REPLACE_LOG2F.
722         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
723         REPLACE_LOG2F.
724         * modules/log2f: New file.
725         * tests/test-math-c++.cc: Check the declaration of log2f.
726         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
727         and OSF/1 and Cygwin problems.
728
729 2012-03-11  Bruno Haible  <bruno@clisp.org>
730
731         Tests for module 'log2'.
732         * modules/log2-tests: New file.
733         * tests/test-log2.c: New file.
734         * tests/test-log2.h: New file.
735
736         New module 'log2'.
737         * lib/math.in.h (log2): New declaration.
738         * lib/log2.c: New file.
739         * m4/log2.m4: New file.
740         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
742         REPLACE_LOG2.
743         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
744         REPLACE_LOG2.
745         * modules/log2: New file.
746         * tests/test-math-c++.cc: Check the declaration of log2.
747         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
748         and OSF/1 and Cygwin problems.
749
750 2012-03-11  Bruno Haible  <bruno@clisp.org>
751
752         exp2* tests: More tests.
753         * tests/test-exp2.h (test_function): Test all integral arguments that
754         don't need to overflow or denormalized numbers.
755         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
756         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
757         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
758
759 2012-03-10  Bruno Haible  <bruno@clisp.org>
760
761         log1pl-ieee: Work around test failure on AIX 7.1.
762         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
763
764         log1pl-ieee: Work around test failure on IRIX 6.5.
765         * m4/log1pl-ieee.m4: New file.
766         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
767         test whether log1pl works with a minus zero argument. Replace it if
768         not.
769         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
771         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
772         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
773         (Depends-on): Update conditions.
774         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
775         m4/signbit.m4.
776         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
777         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
778
779         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
780         * m4/log1pf-ieee.m4: New file.
781         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
782         test whether log1pf works with a minus zero argument. Replace it if
783         not.
784         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
785         m4/signbit.m4.
786         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
787         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
788
789         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
790         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
791         (configure.ac): Require gl_FUNC_LOG1PF.
792
793         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
794         * m4/log1p-ieee.m4: New file.
795         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
796         whether log1p works with a minus zero argument. Replace it if not.
797         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
799         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
800         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
801         (Depends-on): Update conditions.
802         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
803         m4/signbit.m4.
804         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
805         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
806
807         Tests for module 'log1pl-ieee'.
808         * modules/log1pl-ieee-tests: New file.
809         * tests/test-log1pl-ieee.c: New file.
810
811         New module 'log1pl-ieee'.
812         * modules/log1pl-ieee: New file.
813
814         Tests for module 'log1p-ieee'.
815         * modules/log1p-ieee-tests: New file.
816         * tests/test-log1p-ieee.c: New file.
817
818         New module 'log1p-ieee'.
819         * modules/log1p-ieee: New file.
820
821         Tests for module 'log1pf-ieee'.
822         * modules/log1pf-ieee-tests: New file.
823         * tests/test-log1pf-ieee.c: New file.
824         * tests/test-log1p-ieee.h: New file.
825
826         New module 'log1pf-ieee'.
827         * modules/log1pf-ieee: New file.
828
829 2012-03-10  Bruno Haible  <bruno@clisp.org>
830
831         Tests for module 'log1pl'.
832         * modules/log1pl-tests: New file.
833         * tests/test-log1pl.c: New file.
834
835         New module 'log1pl'.
836         * lib/math.in.h (log1pl): New declaration.
837         * lib/log1pl.c: New file.
838         * m4/log1pl.m4: New file.
839         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
841         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
842         * modules/log1pl: New file.
843         * tests/test-math-c++.cc: Check the declaration of log1pl.
844         * doc/posix-functions/log1pl.texi: Mention the new module.
845
846 2012-03-10  Bruno Haible  <bruno@clisp.org>
847
848         Tests for module 'log1pf'.
849         * modules/log1pf-tests: New file.
850         * tests/test-log1pf.c: New file.
851
852         New module 'log1pf'.
853         * lib/math.in.h (log1pf): New declaration.
854         * lib/log1pf.c: New file.
855         * m4/log1pf.m4: New file.
856         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
858         REPLACE_LOG1PF.
859         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
860         REPLACE_LOG1PF.
861         * modules/log1pf: New file.
862         * tests/test-math-c++.cc: Check the declaration of log1pf.
863         * doc/posix-functions/log1pf.texi: Mention the new module.
864
865 2012-03-10  Bruno Haible  <bruno@clisp.org>
866
867         log1p tests: More tests.
868         * tests/test-log1p.h: New file.
869         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
870         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
871         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
872         (main): Invoke test_function.
873
874         log1p: Provide replacement for Minix and MSVC.
875         * lib/math.in.h (log1p): New declaration.
876         * lib/log1p.c: New file.
877         * m4/log1p.m4: New file.
878         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
880         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
881         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
882         (Depends-on): Add math, isnand, log, round.
883         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
884         HAVE_LOG1P is 0.
885         * tests/test-math-c++.cc: Check the declaration of log1p.
886         * doc/posix-functions/log1p.texi: Mention the replacement.
887
888 2012-03-10  Bruno Haible  <bruno@clisp.org>
889
890         math tests: Small simplification.
891         * tests/test-exp.h (test_function): Use the same err_bound for
892         'double' on platforms with sizeof (long double) == sizeof (double)
893         than on platforms with sizeof (long double) > sizeof (double).
894         * tests/test-exp2.h (test_function): Likewise.
895         * tests/test-expm1.h (test_function): Likewise.
896         * tests/test-log.h (test_function): Likewise.
897
898 2012-03-10  Bruno Haible  <bruno@clisp.org>
899
900         Fix some comments.
901         * lib/expl.c: Fix an ambiguous comment.
902         * lib/expm1.c: Likewise.
903         * lib/expm1l.c: Likewise.
904         * lib/exp2.c: Likewise.
905         * lib/exp2l.c: Likewise.
906
907 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
908
909         regex: allow inclusion of <regex.h> before <limits.h>
910         Without this patch, portable programs had to include <limits.h> before
911         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
912         I ran into this problem with a test version of GNU grep on Solaris 8.
913         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
914         This is done conditionally so that this change can be merged
915         back to glibc.
916         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
917         using the included regex.
918
919         fts: depend on fdopendir
920         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
921         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
922         problem was introduced when fdopendir was split out.
923
924 2012-03-10  Bruno Haible  <bruno@clisp.org>
925
926         Remove unused variables.
927         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
928         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
929
930 2012-03-10  Bruno Haible  <bruno@clisp.org>
931
932         isnanf-nolibm: Fix last commit.
933         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
934
935         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
936         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
937
938 2012-03-10  Bruno Haible  <bruno@clisp.org>
939
940         logf-ieee: Work around test failure on NetBSD 5.1.
941         * m4/logf-ieee.m4: New file.
942         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
943         whether logf works with a negative argument. Replace it if not.
944         * lib/logf.c (logf): For negative arguments, return NaN.
945         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
946         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
947         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
948
949         logf-ieee: Work around test failure on Solaris 9.
950         * modules/logf-ieee (Depends-on): Add log-ieee.
951         (configure.ac): Require gl_FUNC_LOGF.
952
953         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
954         * m4/log-ieee.m4: New file.
955         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
956         log works with a negative argument. Replace it if not.
957         * lib/log.c (log): For negative arguments, return NaN.
958         * modules/log-ieee (Files): Add m4/log-ieee.m4.
959         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
960         * doc/posix-functions/log.texi: Mention the log-ieee module.
961
962         Tests for module 'logl-ieee'.
963         * modules/logl-ieee-tests: New file.
964         * tests/test-logl-ieee.c: New file.
965
966         New module 'logl-ieee'.
967         * modules/logl-ieee: New file.
968
969         Tests for module 'log-ieee'.
970         * modules/log-ieee-tests: New file.
971         * tests/test-log-ieee.c: New file.
972
973         New module 'log-ieee'.
974         * modules/log-ieee: New file.
975
976         Tests for module 'logf-ieee'.
977         * modules/logf-ieee-tests: New file.
978         * tests/test-logf-ieee.c: New file.
979         * tests/test-log-ieee.h: New file.
980
981         New module 'logf-ieee'.
982         * modules/logf-ieee: New file.
983
984 2012-03-10  Bruno Haible  <bruno@clisp.org>
985
986         log: Fix bug introduced on 2012-03-09.
987         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
988
989 2012-03-10  Pádraig Brady  <P@draigBrady.com>
990
991         timer-time: link explicitly with pthreads on glibc
992         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
993         to support static linking, when newer glibc is
994         detected, as that contains pthread emulation of
995         POSIX timer functions where required.
996         * modules/timer-time: Depend on threadlib to
997         pull in the appropriate library to link.
998
999 2012-03-10  Bruno Haible  <bruno@clisp.org>
1000
1001         log* tests: More tests.
1002         * tests/test-log.h: New file.
1003         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1004         (main): Invoke test_function.
1005         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1006         (main): Invoke test_function.
1007         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1008         (main): Invoke test_function.
1009         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1010         tests/randomd.c.
1011         (Makefile.am): Add randomd.c to test_log_SOURCES.
1012         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1013         tests/randomf.c.
1014         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1015         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1016         tests/randoml.c.
1017         (Depends-on): Add 'float'.
1018         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1019
1020 2012-03-09  Bruno Haible  <bruno@clisp.org>
1021
1022         logl: Work around OSF/1 5.1 bug.
1023         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1024         * lib/logl.c (logl): If logl exists, use it and provide just the
1025         workaround.
1026         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1027         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1029         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1030         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1031         (Depends-on): Update conditions.
1032         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1033
1034 2012-03-09  Bruno Haible  <bruno@clisp.org>
1035
1036         logf: Work around OSF/1 5.1 bug.
1037         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1038         * lib/logf.c (logf): If logf exists, use it and provide just the
1039         workaround.
1040         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1041         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1043         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1044         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1045         (Depends-on): Update conditions.
1046         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1047
1048 2012-03-09  Bruno Haible  <bruno@clisp.org>
1049
1050         log: Work around OSF/1 5.1 bug.
1051         * lib/math.in.h (log): New declaration.
1052         * lib/log.c: New file.
1053         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1054         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1055         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1057         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1058         * modules/log (Files): Add lib/log.c.
1059         (Depends-on): Add math.
1060         (configure.ac): If REPLACE_LOG is 1, compile an override.
1061         * tests/test-math-c++.cc: Check the declaration of log.
1062         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1063
1064 2012-03-09  Jim Meyering  <meyering@redhat.com>
1065
1066         readtokens.c: adjust wording in a comment
1067         * lib/readtokens.c: Insert omitted "that" in a comment.
1068
1069 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1070
1071         modechange: add notations +40, 00440, etc.
1072         * lib/modechange.c (mode_compile): Support new notations
1073         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1074
1075 2012-03-08  Bruno Haible  <bruno@clisp.org>
1076
1077         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1078         * m4/exp2l-ieee.m4: New file.
1079         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1080         test whether exp2l works with a NaN argument and with a negative
1081         infinity argument. Replace it if not.
1082         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1084         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1085         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1086         (Depends-on): Update conditions.
1087         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1088         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1089         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1090
1091         Tests for module 'exp2l-ieee'.
1092         * modules/exp2l-ieee-tests: New file.
1093         * tests/test-exp2l-ieee.c: New file.
1094
1095         New module 'exp2l-ieee'.
1096         * modules/exp2l-ieee: New file.
1097
1098         Tests for module 'exp2-ieee'.
1099         * modules/exp2-ieee-tests: New file.
1100         * tests/test-exp2-ieee.c: New file.
1101
1102         New module 'exp2-ieee'.
1103         * modules/exp2-ieee: New file.
1104
1105         Tests for module 'exp2f-ieee'.
1106         * modules/exp2f-ieee-tests: New file.
1107         * tests/test-exp2f-ieee.c: New file.
1108         * tests/test-exp2-ieee.h: New file.
1109
1110         New module 'exp2f-ieee'.
1111         * modules/exp2f-ieee: New file.
1112
1113 2012-03-08  Bruno Haible  <bruno@clisp.org>
1114
1115         Tests for module 'exp2l'.
1116         * modules/exp2l-tests: New file.
1117         * tests/test-exp2l.c: New file.
1118
1119         New module 'exp2l'.
1120         * lib/math.in.h (exp2l): New declaration.
1121         * lib/exp2l.c: New file.
1122         * lib/expl-table.c: New file, extracted from lib/expl.c.
1123         * lib/expl.c (gl_expl_table): New declaration.
1124         (expl): Remove expl_table. Update reference.
1125         * m4/exp2l.m4: New file.
1126         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1128         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1129         * modules/exp2l: New file.
1130         * modules/expl (Files): Add lib/expl-table.c.
1131         (configure.ac): Compile also expl-table.c.
1132         * tests/test-math-c++.cc: Check the declaration of exp2l.
1133         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1134         problem.
1135
1136 2012-03-08  Bruno Haible  <bruno@clisp.org>
1137
1138         Tests for module 'exp2f'.
1139         * modules/exp2f-tests: New file.
1140         * tests/test-exp2f.c: New file.
1141
1142         New module 'exp2f'.
1143         * lib/math.in.h (exp2f): New declaration.
1144         * lib/exp2f.c: New file.
1145         * m4/exp2f.m4: New file.
1146         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1148         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1149         * modules/exp2f: New file.
1150         * tests/test-math-c++.cc: Check the declaration of exp2f.
1151         * doc/posix-functions/exp2f.texi: Mention the new module and the
1152         IRIX problem.
1153
1154 2012-03-08  Bruno Haible  <bruno@clisp.org>
1155
1156         Tests for module 'exp2'.
1157         * modules/exp2-tests: New file.
1158         * tests/test-exp2.c: New file.
1159         * tests/test-exp2.h: New file.
1160
1161         New module 'exp2'.
1162         * lib/math.in.h (exp2): New declaration.
1163         * lib/exp2.c: New file.
1164         * m4/exp2.m4: New file.
1165         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1167         REPLACE_EXP2.
1168         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1169         REPLACE_EXP2.
1170         * modules/exp2: New file.
1171         * tests/test-math-c++.cc: Check the declaration of exp2.
1172         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1173         and OpenBSD problems.
1174
1175 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1176
1177         savedir: fix comment typo
1178         * lib/savedir.c (savedirstream): Fix typo in comment.
1179
1180 2012-03-08  Bruno Haible  <bruno@clisp.org>
1181
1182         test-readtokens.c: use const; remove unwarranted cast
1183         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1184
1185 2012-03-08  Bruno Haible  <bruno@clisp.org>
1186
1187         fmal: Avoid compilation error on AIX.
1188         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1189         AIX 5.2..7.1.
1190
1191 2012-03-08  Bruno Haible  <bruno@clisp.org>
1192
1193         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1194         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1195         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1196         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1197         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1198         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1199         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1200
1201 2012-03-08  Bruno Haible  <bruno@clisp.org>
1202
1203         remainderf: Override buggy system function on IRIX 6.5.
1204         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1205         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1206         when it exists.
1207         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1208
1209 2012-03-08  Jim Meyering  <meyering@redhat.com>
1210
1211         test-readtokens.c: avoid const-related compilation warnings
1212         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1213
1214 2012-03-07  Jim Meyering  <meyering@redhat.com>
1215             Bruno Haible  <bruno@clisp.org>
1216
1217         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1218         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1219         tests/randomd.c.
1220         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1221         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1222         tests/randoml.c.
1223         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1224
1225 2012-03-07  Bruno Haible  <bruno@clisp.org>
1226
1227         expm1l: Avoid compilation error on AIX.
1228         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1229         AIX 5.2..7.1.
1230
1231 2012-03-07  Bruno Haible  <bruno@clisp.org>
1232
1233         expm1l: Don't override undeclared system function on IRIX 6.5.
1234         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1235         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1236         it exists. Set HAVE_DECL_EXPM1L.
1237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1238         HAVE_EXPM1L.
1239         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1240         HAVE_EXPM1L.
1241         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1242
1243 2012-03-07  Bruno Haible  <bruno@clisp.org>
1244
1245         remainderl: Don't override undeclared system function on IRIX 6.5.
1246         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1247         HAVE_REMAINDERL.
1248         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1249         declared when it exists. Set HAVE_DECL_REMAINDERL.
1250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1251         not HAVE_REMAINDERL.
1252         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1253         HAVE_REMAINDERL.
1254         * doc/posix-functions/remainderl.texi: Mention missing declaration
1255         problem.
1256
1257 2012-03-07  Bruno Haible  <bruno@clisp.org>
1258
1259         rintf: Don't override undeclared system function on IRIX 6.5.
1260         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1261         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1262         exists. Set HAVE_DECL_RINTF.
1263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1264         HAVE_RINTF.
1265         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1266         HAVE_RINTF.
1267         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1268
1269 2012-03-07  Bruno Haible  <bruno@clisp.org>
1270
1271         roundl: Avoid compilation error on AIX.
1272         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1273         AIX 5.2..7.1.
1274
1275 2012-03-07  Bruno Haible  <bruno@clisp.org>
1276
1277         roundl: Don't override undeclared system function on IRIX 6.5.
1278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1279         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1280         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1281         * modules/roundl (configure.ac): For replacement code, test
1282         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1283         (Depends-on): Update conditions.
1284         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1285
1286 2012-03-07  Bruno Haible  <bruno@clisp.org>
1287
1288         roundf: Don't override undeclared system function on IRIX 6.5.
1289         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1290         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1291         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1292         * modules/roundf (configure.ac): For replacement code, test
1293         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1294         (Depends-on): Update conditions.
1295         * modules/roundf-ieee (Depends-on): Update conditions.
1296         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1297
1298 2012-03-07  Bruno Haible  <bruno@clisp.org>
1299
1300         round: Don't override undeclared system function on IRIX 6.5.
1301         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1302         argument.
1303         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1304         also when it is not declared. Set HAVE_ROUND. For replacement code,
1305         test HAVE_ROUND, not HAVE_DECL_ROUND.
1306         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1307         not HAVE_DECL_ROUND.
1308         (Depends-on): Update conditions.
1309         * modules/round-ieee (Depends-on): Update conditions.
1310         * doc/posix-functions/round.texi: Mention the IRIX problem.
1311
1312 2012-03-07  Bruno Haible  <bruno@clisp.org>
1313
1314         copysignf: Don't override undeclared system function on IRIX 6.5.
1315         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1316         HAVE_COPYSIGNF.
1317         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1318         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1320         not HAVE_COPYSIGNF.
1321         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1322         HAVE_COPYSIGNF.
1323         * doc/posix-functions/copysignf.texi: Mention missing declaration
1324         problem.
1325
1326 2012-03-07  Jim Meyering  <meyering@redhat.com>
1327
1328         readtokens: add tests
1329         * modules/readtokens-tests: New file.
1330         * tests/test-readtokens.c: New file.
1331
1332 2012-03-07  Jim Meyering  <meyering@redhat.com>
1333
1334         quotearg: the module must now include quote.h
1335         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1336         So must the module.
1337         * modules/quotearg (Files): Add quote.h.
1338
1339 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1340
1341         readtokens: avoid core dumps with unusual calling patterns
1342         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1343         * lib/readtokens.c: Include limits.h.
1344         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1345         (readtoken): Don't cache the delimiters; the cache code was buggy
1346         if !delim && saved_delim, or if the new n_delim differs from the old.
1347         Also, it wasn't thread-safe.
1348
1349 2012-03-07  Bruno Haible  <bruno@clisp.org>
1350
1351         quote: Adhere to common module description layout.
1352         * modules/quote (Makefile.am): Add back empty section.
1353
1354 2012-03-06  Akim Demaille  <demaille@gostai.com>
1355
1356         quote: fuse into quotearg
1357         This patch is made for the benefit of Bison.
1358         quote does not leave the choice of the quoting style to the user.
1359         quoting_style provides poor customizability, yet quoting_options,
1360         which is very rich, is hidden inside quotearg.c.  So in order to
1361         allow quote customization, move its implementation to quotearg.c.
1362         * lib/quote.c: Remove.
1363         * modules/quote: Adjust.
1364         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1365         warning: provide all the members of literal structs.
1366         (quote_quoting_options): New.
1367         (quote, quote_n): Import implementation from quote.c.
1368         * lib/quote.h: Import the comments from quote.c.
1369         (quote_quoting_options): New.
1370
1371 2012-03-06  Bruno Haible  <bruno@clisp.org>
1372
1373         Tests for module 'expm1l-ieee'.
1374         * modules/expm1l-ieee-tests: New file.
1375         * tests/test-expm1l-ieee.c: New file.
1376
1377         New module 'expm1l-ieee'.
1378         * modules/expm1l-ieee: New file.
1379
1380         Tests for module 'expm1f-ieee'.
1381         * modules/expm1f-ieee-tests: New file.
1382         * tests/test-expm1f-ieee.c: New file.
1383
1384         New module 'expm1f-ieee'.
1385         * modules/expm1f-ieee: New file.
1386
1387         Tests for module 'expm1-ieee'.
1388         * modules/expm1-ieee-tests: New file.
1389         * tests/test-expm1-ieee.c: New file.
1390         * tests/test-expm1-ieee.h: New file.
1391
1392         New module 'expm1-ieee'.
1393         * modules/expm1-ieee: New file.
1394         * m4/expm1-ieee.m4: New file.
1395         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1396         whether expm1 works with a minus zero argument. Replace it if not.
1397         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1399         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1400         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1401         (Depends-on): Update conditions.
1402         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1403         AIX problem.
1404
1405 2012-03-06  Bruno Haible  <bruno@clisp.org>
1406
1407         Work around expm1f bug on IRIX 6.5.
1408         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1409         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1410         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1411         not work.
1412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1413         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1414         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1415         (Depends-on): Update conditions.
1416         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1417
1418 2012-03-06  Bruno Haible  <bruno@clisp.org>
1419
1420         Tests for module 'expm1l'.
1421         * modules/expm1l-tests: New file.
1422         * tests/test-expm1l.c: New file.
1423
1424         New module 'expm1l'.
1425         * lib/math.in.h (expm1l): New declaration.
1426         * lib/expm1l.c: New file.
1427         * m4/expm1l.m4: New file.
1428         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1430         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1431         * modules/expm1l: New file.
1432         * tests/test-math-c++.cc: Check the declaration of expm1l.
1433         * doc/posix-functions/expm1l.texi: Mention the new module.
1434
1435 2012-03-06  Bruno Haible  <bruno@clisp.org>
1436
1437         Tests for module 'expm1f'.
1438         * modules/expm1f-tests: New file.
1439         * tests/test-expm1f.c: New file.
1440
1441         New module 'expm1f'.
1442         * lib/math.in.h (expm1f): New declaration.
1443         * lib/expm1f.c: New file.
1444         * m4/expm1f.m4: New file.
1445         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1447         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1448         * modules/expm1f: New file.
1449         * tests/test-math-c++.cc: Check the declaration of expm1f.
1450         * doc/posix-functions/expm1f.texi: Mention the new module.
1451
1452 2012-03-06  Bruno Haible  <bruno@clisp.org>
1453
1454         Tests for module 'expm1'.
1455         * modules/expm1-tests: New file.
1456         * tests/test-expm1.c: New file.
1457         * tests/test-expm1.h: New file.
1458
1459         New module 'expm1'.
1460         * lib/math.in.h (expm1): New declaration.
1461         * lib/expm1.c: New file.
1462         * m4/expm1.m4: New file.
1463         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1465         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1466         * modules/expm1: New file.
1467         * tests/test-math-c++.cc: Check the declaration of expm1.
1468         * doc/posix-functions/expm1.texi: Mention the new module.
1469
1470 2012-03-06  Bruno Haible  <bruno@clisp.org>
1471
1472         math: Ensure declarations of math functions.
1473         * modules/acosf (Depends-on): Add 'extensions'.
1474         * modules/asinf (Depends-on): Likewise.
1475         * modules/atan2f (Depends-on): Likewise.
1476         * modules/atanf (Depends-on): Likewise.
1477         * modules/cbrt (Depends-on): Likewise.
1478         * modules/cbrtf (Depends-on): Likewise.
1479         * modules/cbrtl (Depends-on): Likewise.
1480         * modules/copysignf (Depends-on): Likewise.
1481         * modules/copysignl (Depends-on): Likewise.
1482         * modules/cosf (Depends-on): Likewise.
1483         * modules/coshf (Depends-on): Likewise.
1484         * modules/expf (Depends-on): Likewise.
1485         * modules/fabsf (Depends-on): Likewise.
1486         * modules/fabsl (Depends-on): Likewise.
1487         * modules/fmaf (Depends-on): Likewise.
1488         * modules/fmal (Depends-on): Likewise.
1489         * modules/fmodf (Depends-on): Likewise.
1490         * modules/fmodl (Depends-on): Likewise.
1491         * modules/frexpf (Depends-on): Likewise.
1492         * modules/frexpl (Depends-on): Likewise.
1493         * modules/hypot (Depends-on): Likewise.
1494         * modules/hypotf (Depends-on): Likewise.
1495         * modules/hypotl (Depends-on): Likewise.
1496         * modules/ldexpf (Depends-on): Likewise.
1497         * modules/ldexpl (Depends-on): Likewise.
1498         * modules/log10f (Depends-on): Likewise.
1499         * modules/log10l (Depends-on): Likewise.
1500         * modules/log1p (Depends-on): Likewise.
1501         * modules/logb (Depends-on): Likewise.
1502         * modules/logf (Depends-on): Likewise.
1503         * modules/modff (Depends-on): Likewise.
1504         * modules/modfl (Depends-on): Likewise.
1505         * modules/powf (Depends-on): Likewise.
1506         * modules/remainderf (Depends-on): Likewise.
1507         * modules/remainderl (Depends-on): Likewise.
1508         * modules/rintf (Depends-on): Likewise.
1509         * modules/rintl (Depends-on): Likewise.
1510         * modules/sinf (Depends-on): Likewise.
1511         * modules/sinhf (Depends-on): Likewise.
1512         * modules/sqrtf (Depends-on): Likewise.
1513         * modules/tanf (Depends-on): Likewise.
1514         * modules/tanhf (Depends-on): Likewise.
1515         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1516         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1517         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1518         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1519         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1520         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1521         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1522         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1523         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1524         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1525         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1526         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1527         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1528         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1529         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1530         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1531         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1532         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1533         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1535         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1536         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1537         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1538         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1540         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1541         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1542         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1543         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1544         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1545         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1546         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1547         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1548         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1549         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1550         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1551         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1552         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1553         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1554         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1555         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1556
1557 2012-03-06  Bruno Haible  <bruno@clisp.org>
1558
1559         math: Update module names in warnings.
1560         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1561         tanl): Use specific module name in warn-on-use warning.
1562
1563 2012-03-06  Bruno Haible  <bruno@clisp.org>
1564
1565         expl: Simplify computation.
1566         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1567
1568 2012-03-05  Bruno Haible  <bruno@clisp.org>
1569
1570         exp* tests: More tests.
1571         * tests/test-exp.h: New file.
1572         * tests/test-exp.c: Include <float.h> and test-exp.h.
1573         (main): Invoke test_function.
1574         * tests/test-expf.c: Include <float.h> and test-exp.h.
1575         (main): Invoke test_function.
1576         * tests/test-expl.c: Include <float.h> and test-exp.h.
1577         (main): Invoke test_function.
1578         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1579         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1580         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1581         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1582         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1583         (Depends-on): Add 'float'.
1584         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1585
1586         expl: Fix precision of computed result.
1587         * lib/expl.c: Completely rewritten.
1588         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1589         (Maintainer): Add me.
1590         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1591
1592 2012-03-05  Bruno Haible  <bruno@clisp.org>
1593
1594         cbrt* tests: More tests.
1595         * tests/test-cbrt.h: New file.
1596         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1597         (main): Invoke test_function.
1598         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1599         (main): Invoke test_function.
1600         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1601         (main): Invoke test_function.
1602         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1603         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1604         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1605         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1606         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1607         (Depends-on): Add 'float'.
1608         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1609
1610 2012-03-05  Bruno Haible  <bruno@clisp.org>
1611
1612         hypot* tests: More tests.
1613         * tests/test-hypot.h: New file, partially extracted from
1614         tests/test-hypotl.c.
1615         * tests/test-hypot.c: Include test-hypot.h.
1616         (main): Invoke test_function.
1617         * tests/test-hypotf.c: Include test-hypot.h.
1618         (main): Invoke test_function.
1619         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1620         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1621         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1622         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1623         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1624         tests/randomf.c.
1625         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1626         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1627         tests/randoml.c.
1628         (Depends-on): Add 'fpucw', 'float'.
1629         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1630
1631 2012-03-05  Bruno Haible  <bruno@clisp.org>
1632
1633         fpucw: Doc about FreeBSD.
1634         * lib/fpucw.h: Mention FreeBSD in comments.
1635
1636 2012-03-04  Bruno Haible  <bruno@clisp.org>
1637
1638         sqrt* tests: More tests.
1639         * tests/test-sqrt.h: New file.
1640         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1641         (main): Invoke test_function.
1642         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1643         (main): Invoke test_function.
1644         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1645         (main): Invoke test_function.
1646         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1647         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1648         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1649         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1650         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1651         (Depends-on): Add 'float'.
1652         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1653
1654 2012-03-04  Bruno Haible  <bruno@clisp.org>
1655
1656         remainder* tests: More tests.
1657         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1658         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1659         (main): Invoke test_function.
1660         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1661         (main): Invoke test_function.
1662         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1663         (main): Invoke test_function.
1664         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1665         tests/randomd.c.
1666         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1667         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1668         tests/randomf.c.
1669         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1670         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1671         tests/randoml.c.
1672         (Depends-on): Add 'float'.
1673         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1674
1675 2012-03-04  Bruno Haible  <bruno@clisp.org>
1676
1677         remainder, remainderf, remainderl: Fix computation for large quotients.
1678         * lib/remainder.c: Completely rewritten.
1679         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1680         USE_FLOAT.
1681         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1682         USE_LONG_DOUBLE.
1683         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1684         isnand, isinf. Remove round, fma.
1685         * modules/remainderf (Files): Add lib/remainder.c.
1686         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1687         Remove roundf, fmaf.
1688         * modules/remainderl (Files): Add lib/remainder.c.
1689         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1690         isinf. Remove roundl, fmal.
1691         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1692         REMAINDER_LIBM.
1693         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1694         REMAINDERF_LIBM.
1695         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1696         REMAINDERL_LIBM.
1697
1698 2012-03-04  Bruno Haible  <bruno@clisp.org>
1699
1700         fmod* tests: More tests.
1701         * tests/test-fmod.h (my_ldexp): New function.
1702         (test_function): Reduce amount of random numbers to test. Add tests
1703         of very large quotients x / y.
1704         * tests/test-fmod.c (MAX_EXP): New macro.
1705         * tests/test-fmodf.c (MAX_EXP): Likewise.
1706         * tests/test-fmodl.c (MAX_EXP): Likewise.
1707
1708 2012-03-04  Bruno Haible  <bruno@clisp.org>
1709
1710         fmod, fmodl: Fix computation for large quotients x / y.
1711         * lib/fmod.c: Completely rewritten.
1712         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1713         USE_LONG_DOUBLE.
1714         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1715         isnand. Remove fma.
1716         * modules/fmodl (Files): Add lib/fmod.c.
1717         (Depends-on): Add float, isfinite, signbit, fabsl,
1718         frexpl, ldexpl, isnanl. Remove fma.
1719         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1720         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1721
1722 2012-03-03  Bruno Haible  <bruno@clisp.org>
1723
1724         fmod* tests: More tests.
1725         * tests/test-fmod.h: New file.
1726         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1727         (main): Invoke test_function.
1728         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1729         (main): Invoke test_function.
1730         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1731         (main): Invoke test_function.
1732         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1733         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1734         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1735         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1736         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1737         (Depends-on): Add 'float'.
1738         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1739
1740 2012-03-03  Bruno Haible  <bruno@clisp.org>
1741
1742         rint* tests: More tests.
1743         * tests/test-rint.h: New file, partially extracted from
1744         tests/test-rintl.c.
1745         * tests/test-rint.c: Include test-rint.h.
1746         (main): Invoke test_function.
1747         * tests/test-rintf.c: Include test-rint.h.
1748         (main): Invoke test_function.
1749         * tests/test-rintl.c: Include test-rint.h.
1750         (main): Invoke test_function.
1751         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1752         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1753         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1754         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1755         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1756         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1757
1758 2012-03-03  Bruno Haible  <bruno@clisp.org>
1759
1760         modf* tests: More tests.
1761         * tests/test-modf.h: New file.
1762         * tests/test-modf.c: Include <float.h> and test-modf.h.
1763         (main): Invoke test_function.
1764         * tests/test-modff.c: Include <float.h> and test-modf.h.
1765         (main): Invoke test_function.
1766         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1767         (main): Invoke test_function.
1768         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1769         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1770         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1771         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1772         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1773         (Depends-on): Add 'float'.
1774         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1775
1776 2012-03-03  Bruno Haible  <bruno@clisp.org>
1777
1778         fabs* tests: More tests.
1779         * tests/test-fabs.h: New file, partially extracted from
1780         tests/test-fabsl.c.
1781         * tests/test-fabs.c (RANDOM): New macro.
1782         * tests/test-fabsf.c (RANDOM): New macro.
1783         * tests/test-fabsl.c (RANDOM): New macro.
1784         * modules/fabs-tests (Files): Add tests/randomd.c.
1785         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1786         * modules/fabsf-tests (Files): Add tests/randomf.c.
1787         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1788         * modules/fabsl-tests (Files): Add tests/randoml.c.
1789         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1790
1791 2012-03-03  Bruno Haible  <bruno@clisp.org>
1792
1793         ldexp* tests: More tests.
1794         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1795         * tests/test-ldexp.c (RANDOM): New macro.
1796         * tests/test-ldexpf.c (RANDOM): New macro.
1797         * tests/test-ldexpl.c (RANDOM): New macro.
1798         * modules/ldexp-tests (Files): Add tests/randomd.c.
1799         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1800         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1801         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1802         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1803         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1804
1805 2012-03-03  Bruno Haible  <bruno@clisp.org>
1806
1807         frexp* tests: More tests.
1808         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1809         * tests/test-frexp.c (RANDOM): New macro.
1810         * tests/test-frexpf.c (RANDOM): New macro.
1811         * tests/test-frexpl.c (RANDOM): New macro.
1812         * modules/frexp-tests (Files): Add tests/randomd.c.
1813         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1814         * modules/frexpf-tests (Files): Add tests/randomf.c.
1815         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1816         * modules/frexpl-tests (Files): Add tests/randoml.c.
1817         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1818
1819 2012-03-03  Bruno Haible  <bruno@clisp.org>
1820
1821         Support for pseudo-random numbers in tests.
1822         * tests/randomf.c: New file.
1823         * tests/randomd.c: New file.
1824         * tests/randoml.c: New file.
1825         * tests/macros.h (randomf, randomd, randoml): New declarations.
1826
1827 2012-03-03  Bruno Haible  <bruno@clisp.org>
1828
1829         frexp* tests: Refactor.
1830         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1831         * tests/test-frexp.c: Include and use it.
1832         * tests/test-frexpf.c: Likewise.
1833         * tests/test-frexpl.c: Likewise.
1834         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1835         * modules/frexpf-tests (Files): Likewise.
1836         * modules/frexpl-tests (Files): Likewise.
1837
1838 2012-03-02  Jim Meyering  <meyering@redhat.com>
1839
1840         maint: don't specify XZ_OPT=-9ev in dist-related rule
1841         Using xz's -9 option is warranted only if you have a very large
1842         tarball (see xz's documentation for the sizes vs. presets), and
1843         requires 64MiB of memory at decompression time.
1844         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1845         Automake's default of just "-e" is fine.  Override on a
1846         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1847
1848 2012-03-01  Eric Blake  <eblake@redhat.com>
1849
1850         maint.mk: allow announcement for non-gnulib project
1851         * maint.mk (announcement): Skip gnulib version if not used.
1852
1853 2012-03-01  Jim Meyering  <meyering@redhat.com>
1854
1855         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1856         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1857         envvar settings cannot interfere.  Otherwise, setting envvars like
1858         prohibit=foo require=bar, etc. would cause spurious test failures.
1859
1860 2012-03-01  Eric Blake  <eblake@redhat.com>
1861
1862         maint.mk: add per-line exclusions to prohibitions
1863         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1864         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1865         (sc_const_long_option): Use it.
1866
1867 2012-03-01  Bruno Haible  <bruno@clisp.org>
1868
1869         Tests for module 'expl-ieee'.
1870         * modules/expl-ieee-tests: New file.
1871         * tests/test-expl-ieee.c: New file.
1872
1873         New module 'expl-ieee'.
1874         * modules/expl-ieee: New file.
1875
1876         Tests for module 'exp-ieee'.
1877         * modules/exp-ieee-tests: New file.
1878         * tests/test-exp-ieee.c: New file.
1879
1880         New module 'exp-ieee'.
1881         * modules/exp-ieee: New file.
1882
1883         Tests for module 'expf-ieee'.
1884         * modules/expf-ieee-tests: New file.
1885         * tests/test-expf-ieee.c: New file.
1886         * tests/test-exp-ieee.h: New file.
1887
1888         New module 'expf-ieee'.
1889         * modules/expf-ieee: New file.
1890
1891 2012-02-29  Bruno Haible  <bruno@clisp.org>
1892
1893         cbrtl-ieee: Work around test failure on IRIX 6.5.
1894         * m4/cbrtl-ieee.m4: New file.
1895         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1896         test whether cbrtl works with a minus zero argument. Replace it if not.
1897         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1899         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1900         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1901         (Depends-on): Update conditions.
1902         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1903         m4/signbit.m4.
1904         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1905         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1906         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1907
1908         Tests for module 'cbrtl-ieee'.
1909         * modules/cbrtl-ieee-tests: New file.
1910         * tests/test-cbrtl-ieee.c: New file.
1911
1912         New module 'cbrtl-ieee'.
1913         * modules/cbrtl-ieee: New file.
1914
1915         Tests for module 'cbrt-ieee'.
1916         * modules/cbrt-ieee-tests: New file.
1917         * tests/test-cbrt-ieee.c: New file.
1918
1919         New module 'cbrt-ieee'.
1920         * modules/cbrt-ieee: New file.
1921
1922         Tests for module 'cbrtf-ieee'.
1923         * modules/cbrtf-ieee-tests: New file.
1924         * tests/test-cbrtf-ieee.c: New file.
1925         * tests/test-cbrt-ieee.h: New file.
1926
1927         New module 'cbrtf-ieee'.
1928         * modules/cbrtf-ieee: New file.
1929
1930 2012-02-29  Bruno Haible  <bruno@clisp.org>
1931
1932         cbrtf: Work around bug in IRIX 6.5 system function.
1933         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1934         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1935         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1936         work.
1937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1938         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1939         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1940         (Depends-on): Update conditions.
1941         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1942
1943 2012-02-29  Bruno Haible  <bruno@clisp.org>
1944
1945         Tests for module 'cbrtl'.
1946         * modules/cbrtl-tests: New file.
1947         * tests/test-cbrtl.c: New file.
1948
1949         New module 'cbrtl'.
1950         * lib/math.in.h (cbrtl): New declaration.
1951         * lib/cbrtl.c: New file.
1952         * m4/cbrtl.m4: New file.
1953         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1955         HAVE_DECL_CBRTL.
1956         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1957         HAVE_DECL_CBRTL.
1958         * modules/cbrtl: New file.
1959         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1960         * doc/posix-functions/cbrtl.texi: Mention the new module.
1961
1962 2012-02-29  Bruno Haible  <bruno@clisp.org>
1963
1964         Tests for module 'cbrtf'.
1965         * modules/cbrtf-tests: New file.
1966         * tests/test-cbrtf.c: New file.
1967
1968         New module 'cbrtf'.
1969         * lib/math.in.h (cbrtf): New declaration.
1970         * lib/cbrtf.c: New file.
1971         * m4/cbrtf.m4: New file.
1972         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1974         HAVE_DECL_CBRTF.
1975         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1976         HAVE_DECL_CBRTF.
1977         * modules/cbrtf: New file.
1978         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1979         * doc/posix-functions/cbrtf.texi: Mention the new module.
1980
1981 2012-02-29  Bruno Haible  <bruno@clisp.org>
1982
1983         cbrt: Provide replacement on MSVC and Minix.
1984         * lib/math.in.h (cbrt): New declaration.
1985         * lib/cbrt.c: New file.
1986         * m4/cbrt.m4: New file.
1987         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1989         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1990         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1991         (Depends-on): Add dependencies.
1992         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1993         * tests/test-math-c++.cc: Check the declaration of cbrt.
1994         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1995         replacement.
1996
1997 2012-02-29  Bruno Haible  <bruno@clisp.org>
1998
1999         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2000         * m4/hypotl-ieee.m4: New file.
2001         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2002         test whether hypotl works with mixed NaN and Infinity arguments.
2003         Replace it if not.
2004         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2006         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2007         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2008         (Depends-on): Update conditions.
2009         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2010         (Depends-on): Add hypot-ieee.
2011         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2012         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2013
2014         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2015         * m4/hypotf-ieee.m4: New file.
2016         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2017         test whether hypotf works with mixed NaN and Infinity arguments.
2018         Replace it if not.
2019         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2020         (Depends-on): Add hypot-ieee.
2021         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2022         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2023
2024         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2025         * lib/math.in.h (hypot): New declaration.
2026         * lib/hypot.c: New file.
2027         * m4/hypot-ieee.m4: New file.
2028         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2029         whether hypot works with mixed NaN and Infinity arguments. Replace it
2030         if not.
2031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2032         REPLACE_HYPOT.
2033         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2034         * modules/hypot (Files): Add lib/hypot.c.
2035         (Depends-on): Add dependencies.
2036         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2037         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2038         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2039         * tests/test-math-c++.cc: Check the declaration of hypot.
2040         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2041
2042         Tests for module 'hypotl-ieee'.
2043         * modules/hypotl-ieee-tests: New file.
2044         * tests/test-hypotl-ieee.c: New file.
2045
2046         New module 'hypotl-ieee'.
2047         * modules/hypotl-ieee: New file.
2048
2049         Tests for module 'hypot-ieee'.
2050         * modules/hypot-ieee-tests: New file.
2051         * tests/test-hypot-ieee.c: New file.
2052
2053         New module 'hypot-ieee'.
2054         * modules/hypot-ieee: New file.
2055
2056         Tests for module 'hypotf-ieee'.
2057         * modules/hypotf-ieee-tests: New file.
2058         * tests/test-hypotf-ieee.c: New file.
2059         * tests/test-hypot-ieee.h: New file.
2060
2061         New module 'hypotf-ieee'.
2062         * modules/hypotf-ieee: New file.
2063
2064 2012-02-29  Bruno Haible  <bruno@clisp.org>
2065
2066         Remove unused variables.
2067         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2068         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2069         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2070         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2071
2072 2012-02-29  Eric Blake  <eblake@redhat.com>
2073
2074         termios: fix pid_t always, not just for tcgetsid
2075         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2076         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2077         just when building tcgetsid.
2078
2079 2012-02-29  Bruno Haible  <bruno@clisp.org>
2080
2081         Tests for module 'hypotl'.
2082         * modules/hypotl-tests: New file.
2083         * tests/test-hypotl.c: New file.
2084
2085         New module 'hypotl'.
2086         * lib/math.in.h (hypotl): New declaration.
2087         * lib/hypotl.c: New file.
2088         * m4/hypotl.m4: New file.
2089         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2091         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2092         * modules/hypotl: New file.
2093         * tests/test-math-c++.cc: Check the hypotl declaration.
2094         * doc/posix-functions/hypotl.texi: Mention the new module.
2095
2096 2012-02-29  Eric Blake  <eblake@redhat.com>
2097
2098         tcgetsid: fix cygwin header bug
2099         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2100
2101         docs: update cygwin progress
2102         * doc/posix-functions/llround.texi (llround): Added in cygwin
2103         1.7.8.
2104         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2105         * doc/glibc-functions/program_invocation_name.texi
2106         (program_invocation_name): Likewise.
2107         * doc/glibc-functions/program_invocation_short_name.texi
2108         (program_invocation_short_name): Likewise.
2109         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2110         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2111         Likewise.
2112         * doc/posix-functions/pthread_spin_destroy.texi
2113         (pthread_spin_destroy): Added in cygwin 1.7.10.
2114         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2115         Likewise.
2116         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2117         Likewise.
2118         * doc/posix-functions/pthread_spin_trylock.texi
2119         (pthread_spin_trylock): Likewise.
2120         * doc/posix-functions/pthread_spin_unlock.texi
2121         (pthread_spin_unlock): Likewise.
2122         * doc/posix-functions/pthread_setschedprio.texi
2123         (pthread_setschedprio): Likewise.
2124         * doc/posix-functions/pthread_attr_getstack.texi
2125         (pthread_attr_getstack): Likewise.
2126         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2127         (pthread_attr_getstackaddr): Likewise.
2128         * doc/glibc-functions/pthread_getattr_np.texi
2129         (pthread_getattr_np): Likewise.
2130         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2131         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2132         * doc/posix-functions/clock_settime.texi (clock_settime):
2133         Likewise.
2134         * doc/posix-functions/pthread_attr_getguardsize.texi
2135         (pthread_attr_getguardsize): Likewise.
2136         * doc/posix-functions/pthread_attr_setguardsize.texi
2137         (pthread_attr_setguardsize): Likewise.
2138         * doc/posix-functions/pthread_attr_setstack.texi
2139         (pthread_attr_setstack): Likewise.
2140         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2141         (pthread_attr_setstackaddr): Likewise.
2142         * doc/posix-functions/clock_getcpuclockid.texi
2143         (clock_getcpuclockid): Likewise.
2144         * doc/posix-functions/pthread_getcpuclockid.texi
2145         (pthread_getcpuclockid): Likewise.
2146         * doc/glibc-functions/error.texi (error): Likewise.
2147         * doc/glibc-functions/error_at_line.texi (error_at_line):
2148         Likewise.
2149         * doc/glibc-functions/error_message_count.texi
2150         (error_message_count): Likewise.
2151         * doc/glibc-functions/error_one_per_line.texi
2152         (error_one_per_line): Likewise.
2153         * doc/glibc-functions/error_print_progname.texi
2154         (error_print_progname): Likewise.
2155         * doc/posix-functions/pthread_condattr_getclock.texi
2156         (pthread_condattr_getclock): Likewise.
2157         * doc/posix-functions/pthread_condattr_setclock.texi
2158         (pthread_condattr_setclock): Likewise.
2159         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2160         Likewise.
2161         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2162         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2163         * doc/glibc-functions/get_current_dir_name.texi
2164         (get_current_dir_name): Likewise.
2165         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2166         Likewise.
2167         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2168         wrong return type.
2169         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2170         1.7.11.
2171
2172 2012-02-29  Bruno Haible  <bruno@clisp.org>
2173
2174         Tests for module 'hypotf'.
2175         * modules/hypotf-tests: New file.
2176         * tests/test-hypotf.c: New file.
2177
2178         New module 'hypotf'.
2179         * lib/math.in.h (hypotf): New declaration.
2180         * lib/hypotf.c: New file.
2181         * m4/hypotf.m4: New file.
2182         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2184         REPLACE_HYPOTF.
2185         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2186         REPLACE_HYPOTF.
2187         * modules/hypotf: New file.
2188         * tests/test-math-c++.cc: Check the hypotf declaration.
2189         * doc/posix-functions/hypotf.texi: Mention the new module.
2190
2191         hypot: Prepare for hypotf module.
2192         * m4/hypot.m4: New file.
2193         * modules/hypot (Files): Add m4/hypot.m4.
2194         (configure.ac): Invoke gl_FUNC_HYPOT.
2195
2196 2012-02-29  Bruno Haible  <bruno@clisp.org>
2197
2198         hypot tests: More tests.
2199         * tests/test-hypot.c: Include <float.h>.
2200         (main): Add tests about overflow and underflow.
2201
2202 2012-02-29  Bruno Haible  <bruno@clisp.org>
2203
2204         math code: Add comments.
2205         * lib/acosl.c: Add comment about related glibc source files.
2206         * lib/asinl.c: Likewise.
2207         * lib/atanl.c: Likewise.
2208         * lib/expl.c: Likewise.
2209         * lib/logl.c: Likewise.
2210         * lib/sincosl.c: Likewise.
2211         * lib/sinl.c: Likewise.
2212         * lib/tanl.c: Likewise.
2213         * lib/trigl.c: Likewise.
2214         * lib/cosl.c: Likewise. Fix comments.
2215
2216 2012-02-28  Bruno Haible  <bruno@clisp.org>
2217
2218         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2219         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2220         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2221         HUGE_VALL are defined.
2222         (numeric_equald): Renamed from numeric_equal.
2223         (numeric_equalf, numeric_equall): New functions.
2224         (main): Check also HUGE_VALF, HUGE_VALL.
2225         * modules/math-tests (Files): Add tests/macros.h.
2226         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2227         HUGE_VALL.
2228
2229 2012-02-28  Bruno Haible  <bruno@clisp.org>
2230
2231         doc: Move ISO C11 feature notes into POSIX chapters.
2232         * doc/posix-functions/aligned_alloc.texi: Renamed from
2233         doc/glibc-functions/aligned_alloc.texi.
2234         * doc/posix-functions/quick_exit.texi: Renamed from
2235         doc/glibc-functions/quick_exit.texi.
2236         * doc/posix-headers/uchar.texi: Renamed from
2237         doc/glibc-headers/uchar.texi.
2238         * doc/posix-functions/c16rtomb.texi: Renamed from
2239         doc/glibc-functions/c16rtomb.texi.
2240         * doc/posix-functions/c32rtomb.texi: Renamed from
2241         doc/glibc-functions/c32rtomb.texi.
2242         * doc/posix-functions/mbrtoc16.texi: Renamed from
2243         doc/glibc-functions/mbrtoc16.texi.
2244         * doc/posix-functions/mbrtoc32.texi: Renamed from
2245         doc/glibc-functions/mbrtoc32.texi.
2246         * doc/gnulib.texi: Update.
2247         (Glibc uchar.h): Remove section.
2248         Suggested by Eric Blake.
2249
2250 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2251
2252         stdnoreturn: port to MSVC better
2253         MSVC standard headers use __declspec(noreturn), so #define noreturn
2254         to empty on that platform.  Reported by Bruno Haible in
2255         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2256         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2257         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2258
2259 2012-02-28  Bruno Haible  <bruno@clisp.org>
2260
2261         doc: Mention new glibc headers and functions.
2262         * doc/glibc-headers/uchar.texi: New file.
2263         * doc/glibc-functions/aligned_alloc.texi: New file.
2264         * doc/glibc-functions/c16rtomb.texi: New file.
2265         * doc/glibc-functions/c32rtomb.texi: New file.
2266         * doc/glibc-functions/clock_adjtime.texi: New file.
2267         * doc/glibc-functions/fanotify_init.texi: New file.
2268         * doc/glibc-functions/fanotify_mark.texi: New file.
2269         * doc/glibc-functions/inet6_opt_append.texi: New file.
2270         * doc/glibc-functions/inet6_opt_find.texi: New file.
2271         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2272         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2273         * doc/glibc-functions/inet6_opt_init.texi: New file.
2274         * doc/glibc-functions/inet6_opt_next.texi: New file.
2275         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2276         * doc/glibc-functions/inet6_rth_add.texi: New file.
2277         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2278         * doc/glibc-functions/inet6_rth_init.texi: New file.
2279         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2280         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2281         * doc/glibc-functions/inet6_rth_space.texi: New file.
2282         * doc/glibc-functions/login.texi: New file.
2283         * doc/glibc-functions/mbrtoc16.texi: New file.
2284         * doc/glibc-functions/mbrtoc32.texi: New file.
2285         * doc/glibc-functions/name_to_handle_at.texi: New file.
2286         * doc/glibc-functions/ntp_gettimex.texi: New file.
2287         * doc/glibc-functions/open_by_handle_at.texi: New file.
2288         * doc/glibc-functions/prlimit.texi: New file.
2289         * doc/glibc-functions/process_vm_readv.texi: New file.
2290         * doc/glibc-functions/process_vm_writev.texi: New file.
2291         * doc/glibc-functions/recvmmsg.texi: New file.
2292         * doc/glibc-functions/scandirat.texi: New file.
2293         * doc/glibc-functions/sendmmsg.texi: New file.
2294         * doc/glibc-functions/setns.texi: New file.
2295         * doc/glibc-functions/timespec_get.texi: New file.
2296         * doc/gnulib.texi: Include them.
2297         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2298         sections.
2299         Reported by Eric Blake.
2300
2301 2012-02-28  Bruno Haible  <bruno@clisp.org>
2302
2303         Avoid compilation errors with MSVC option -fp:strict.
2304         * lib/floor.c: Use MSVC specific pragma fenv_access.
2305         * lib/ceil.c: Likewise.
2306         * lib/trunc.c: Likewise.
2307         * lib/round.c: Likewise.
2308         * lib/rint.c: Likewise.
2309         * lib/fma.c: Likewise.
2310         * lib/integer_length.c: Likewise.
2311         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2313         * tests/test-floor2.c: Likewise.
2314         * tests/test-floorf2.c: Likewise.
2315         * tests/test-ceil2.c: Likewise.
2316         * tests/test-ceilf2.c: Likewise.
2317         * tests/test-trunc2.c: Likewise.
2318         * tests/test-truncf2.c: Likewise.
2319         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2320
2321 2012-02-27  Bruno Haible  <bruno@clisp.org>
2322
2323         Tests for module 'sqrtl-ieee'.
2324         * modules/sqrtl-ieee-tests: New file.
2325         * tests/test-sqrtl-ieee.c: New file.
2326
2327         New module 'sqrtl-ieee'.
2328         * modules/sqrtl-ieee: New file.
2329
2330         Tests for module 'sqrt-ieee'.
2331         * modules/sqrt-ieee-tests: New file.
2332         * tests/test-sqrt-ieee.c: New file.
2333
2334         New module 'sqrt-ieee'.
2335         * modules/sqrt-ieee: New file.
2336
2337         Tests for module 'sqrtf-ieee'.
2338         * modules/sqrtf-ieee-tests: New file.
2339         * tests/test-sqrtf-ieee.c: New file.
2340         * tests/test-sqrt-ieee.h: New file.
2341
2342         New module 'sqrtf-ieee'.
2343         * modules/sqrtf-ieee: New file.
2344
2345 2012-02-27  Bruno Haible  <bruno@clisp.org>
2346
2347         remainderl-ieee: Work around test failure on OSF/1.
2348         * m4/remainderl-ieee.m4: New file.
2349         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2350         present, test whether remainderl works with a zero second argument.
2351         Replace it if not.
2352         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2354         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2355         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2356         (Depends-on): Update conditions.
2357         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2358         (Depends-on): Add remainder-ieee.
2359         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2360         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2361         module.
2362
2363         remainderf-ieee: Work around test failure on OSF/1.
2364         * m4/remainderf-ieee.m4: New file.
2365         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2366         present, test whether remainderf works with a zero second argument.
2367         Replace it if not.
2368         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2370         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2371         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2372         (Depends-on): Update conditions.
2373         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2374         (Depends-on): Add remainder-ieee.
2375         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2376         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2377         module.
2378
2379         remainder-ieee: Work around test failure on OSF/1.
2380         * m4/remainder-ieee.m4: New file.
2381         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2382         present, test whether remainder works with a zero second argument.
2383         Replace it if not.
2384         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2386         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2387         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2388         (Depends-on): Update dependencies.
2389         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2390         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2391         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2392
2393         Tests for module 'remainderl-ieee'.
2394         * modules/remainderl-ieee-tests: New file.
2395         * tests/test-remainderl-ieee.c: New file.
2396
2397         New module 'remainderl-ieee'.
2398         * modules/remainderl-ieee: New file.
2399
2400         Tests for module 'remainder-ieee'.
2401         * modules/remainder-ieee-tests: New file.
2402         * tests/test-remainder-ieee.c: New file.
2403
2404         New module 'remainder-ieee'.
2405         * modules/remainder-ieee: New file.
2406
2407         Tests for module 'remainderf-ieee'.
2408         * modules/remainderf-ieee-tests: New file.
2409         * tests/test-remainderf-ieee.c: New file.
2410         * tests/test-remainder-ieee.h: New file.
2411
2412         New module 'remainderf-ieee'.
2413         * modules/remainderf-ieee: New file.
2414
2415 2012-02-27  Bruno Haible  <bruno@clisp.org>
2416
2417         modff, modfl: Fix configure syntax error.
2418         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2419         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2420
2421 2012-02-27  Bruno Haible  <bruno@clisp.org>
2422
2423         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2424         * m4/fmodl-ieee.m4: New file.
2425         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2426         whether fmodl works with zero arguments. Replace it if not.
2427         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2428         (Depends-on): Add fmod-ieee.
2429         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2430         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2431
2432         fmodf-ieee: Work around test failure on OSF/1.
2433         * m4/fmodf-ieee.m4: New file.
2434         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2435         whether fmodf works with zero arguments. Replace it if not.
2436         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2438         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2439         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2440         (Depends-on): Update dependencies.
2441         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2442         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2443         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2444
2445         fmodf-ieee: Work around test failure on MSVC 9.
2446         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2447         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2448
2449         fmod-ieee: Work around test failures on OSF/1, mingw.
2450         * m4/fmod-ieee.m4: New file.
2451         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2452         whether fmod works with zero arguments. Replace it if not.
2453         * lib/math.in.h (fmod): New declaration.
2454         * lib/fmod.c: New file.
2455         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2457         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2458         * modules/fmod (Files): Add lib/fmod.c.
2459         (Depends-on): Add math, isinf, trunc, fma.
2460         (configure.ac): Arrange to compile lib/fmod.c if needed.
2461         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2462         m4/signbit.m4.
2463         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2464         * tests/test-math-c++.cc: Check the declaration of fmod.
2465         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2466
2467         fmodl-ieee: Fix test failures.
2468         * lib/fmodl.c (fmodl): Treat Inf specially.
2469         * modules/fmodl (Depends-on): Add isinf.
2470
2471         Tests for module 'fmodl-ieee'.
2472         * modules/fmodl-ieee-tests: New file.
2473         * tests/test-fmodl-ieee.c: New file.
2474
2475         New module 'fmodl-ieee'.
2476         * modules/fmodl-ieee: New file.
2477
2478         Tests for module 'fmod-ieee'.
2479         * modules/fmod-ieee-tests: New file.
2480         * tests/test-fmod-ieee.c: New file.
2481
2482         New module 'fmod-ieee'.
2483         * modules/fmod-ieee: New file.
2484
2485         Tests for module 'fmodf-ieee'.
2486         * modules/fmodf-ieee-tests: New file.
2487         * tests/test-fmodf-ieee.c: New file.
2488         * tests/test-fmod-ieee.h: New file.
2489
2490         New module 'fmodf-ieee'.
2491         * modules/fmodf-ieee: New file.
2492
2493 2012-02-27  Bruno Haible  <bruno@clisp.org>
2494
2495         Tests for module 'rintl-ieee'.
2496         * modules/rintl-ieee-tests: New file.
2497         * tests/test-rintl-ieee.c: New file.
2498
2499         New module 'rintl-ieee'.
2500         * modules/rintl-ieee: New file.
2501
2502         Tests for module 'rint-ieee'.
2503         * modules/rint-ieee-tests: New file.
2504         * tests/test-rint-ieee.c: New file.
2505
2506         New module 'rint-ieee'.
2507         * modules/rint-ieee: New file.
2508
2509         Tests for module 'rintf-ieee'.
2510         * modules/rintf-ieee-tests: New file.
2511         * tests/test-rintf-ieee.c: New file.
2512         * tests/test-rint-ieee.h: New file.
2513
2514         New module 'rintf-ieee'.
2515         * modules/rintf-ieee: New file.
2516
2517 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2518
2519         regex: re_search etc. should return -2 when memory exhausted
2520         This bug was uncovered when testing 'grep'.  Without the fix,
2521         re_search and friends return -1 when memory is exhausted, but -1
2522         means no match, and this causes grep to falsely report no-match
2523         instead of memory-exhaustion.  See
2524         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2525         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2526         trouble; this can occur if re_search_internal ran out of memory.
2527
2528 2012-02-26  Bruno Haible  <bruno@clisp.org>
2529
2530         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2531         * m4/modfl-ieee.m4: New file.
2532         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2533         whether modfl works with Inf. Replace it if not.
2534         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2536         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2537         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2538         (Depends-on): Update dependencies.
2539         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2540         m4/signbit.m4.
2541         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2542         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2543
2544         modfl-ieee: Fix dependencies.
2545         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2546
2547         modfl-ieee: Fix test failures.
2548         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2549         * modules/modfl (Depends-on): Add isfinite, isinf.
2550
2551         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2552         * m4/modff-ieee.m4: New file.
2553         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2554         whether modff works with NaN and Inf. Replace it if not.
2555         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2557         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2558         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2559         (Depends-on): Update dependencies.
2560         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2561         m4/signbit.m4.
2562         (Depends-on): Add modf-ieee.
2563         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2564         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2565
2566         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2567         * m4/modf-ieee.m4: New file.
2568         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2569         whether modf works with NaN and Inf. Replace it if not.
2570         * lib/math.in.h (modf): New declaration.
2571         * lib/modf.c: New file.
2572         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2574         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2575         * modules/modf (Files): Add lib/modf.c.
2576         (Depends-on): Add math, isfinite, trunc, isinf.
2577         (configure.ac): Addrange to compile lib/modf.c if needed.
2578         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2579         m4/signbit.m4.
2580         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2581         * tests/test-math-c++.cc: Check the declaration of modf.
2582         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2583
2584         Tests for module 'modfl-ieee'.
2585         * modules/modfl-ieee-tests: New file.
2586         * tests/test-modfl-ieee.c: New file.
2587
2588         New module 'modfl-ieee'.
2589         * modules/modfl-ieee: New file.
2590
2591         Tests for module 'modf-ieee'.
2592         * modules/modf-ieee-tests: New file.
2593         * tests/test-modf-ieee.c: New file.
2594
2595         New module 'modf-ieee'.
2596         * modules/modf-ieee: New file.
2597
2598         Tests for module 'modff-ieee'.
2599         * modules/modff-ieee-tests: New file.
2600         * tests/test-modff-ieee.c: New file.
2601         * tests/test-modf-ieee.h: New file.
2602
2603         New module 'modff-ieee'.
2604         * modules/modff-ieee: New file.
2605
2606 2012-02-26  Bruno Haible  <bruno@clisp.org>
2607
2608         Tests for module 'fabsl-ieee'.
2609         * modules/fabsl-ieee-tests: New file.
2610         * tests/test-fabsl-ieee.c: New file.
2611
2612         New module 'fabsl-ieee'.
2613         * modules/fabsl-ieee: New file.
2614
2615         Tests for module 'fabs-ieee'.
2616         * modules/fabs-ieee-tests: New file.
2617         * tests/test-fabs-ieee.c: New file.
2618
2619         New module 'fabs-ieee'.
2620         * modules/fabs-ieee: New file.
2621
2622         Tests for module 'fabsf-ieee'.
2623         * modules/fabsf-ieee-tests: New file.
2624         * tests/test-fabsf-ieee.c: New file.
2625         * tests/test-fabs-ieee.h: New file.
2626
2627         New module 'fabsf-ieee'.
2628         * modules/fabsf-ieee: New file.
2629
2630 2012-02-26  Bruno Haible  <bruno@clisp.org>
2631
2632         Tests for module 'fmal-ieee'.
2633         * modules/fmal-ieee-tests: New file.
2634         * tests/test-fmal-ieee.c: New file.
2635
2636         New module 'fmal-ieee'.
2637         * modules/fmal-ieee: New file.
2638
2639         Tests for module 'fma-ieee'.
2640         * modules/fma-ieee-tests: New file.
2641         * tests/test-fma-ieee.c: New file.
2642
2643         New module 'fma-ieee'.
2644         * modules/fma-ieee: New file.
2645
2646         Tests for module 'fmaf-ieee'.
2647         * modules/fmaf-ieee-tests: New file.
2648         * tests/test-fmaf-ieee.c: New file.
2649         * tests/test-fma-ieee.h: New file.
2650
2651         New module 'fmaf-ieee'.
2652         * modules/fmaf-ieee: New file.
2653
2654 2012-02-26  Bruno Haible  <bruno@clisp.org>
2655
2656         Tests for module 'ldexpl-ieee'.
2657         * modules/ldexpl-ieee-tests: New file.
2658         * tests/test-ldexpl-ieee.c: New file.
2659
2660         New module 'ldexpl-ieee'.
2661         * modules/ldexpl-ieee: New file.
2662
2663         Tests for module 'ldexp-ieee'.
2664         * modules/ldexp-ieee-tests: New file.
2665         * tests/test-ldexp-ieee.c: New file.
2666
2667         New module 'ldexp-ieee'.
2668         * modules/ldexp-ieee: New file.
2669
2670         Tests for module 'ldexpf-ieee'.
2671         * modules/ldexpf-ieee-tests: New file.
2672         * tests/test-ldexpf-ieee.c: New file.
2673         * tests/test-ldexp-ieee.h: New file.
2674
2675         New module 'ldexpf-ieee'.
2676         * modules/ldexpf-ieee: New file.
2677
2678 2012-02-26  Bruno Haible  <bruno@clisp.org>
2679
2680         Refactor frexp*-ieee tests.
2681         * tests/test-frexp-ieee.h: New file.
2682         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2683         (main): Just call test_function.
2684         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2685         (main): Just call test_function.
2686         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2687         (main): Just call test_function.
2688         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2689         * modules/frexp-ieee-tests (Files): Likewise.
2690         * modules/frexpl-ieee-tests (Files): Likewise.
2691
2692         Tests for module 'frexpl-ieee'.
2693         * modules/frexpl-ieee-tests: New file.
2694         * tests/test-frexpl-ieee.c: New file.
2695
2696         New module 'frexpl-ieee'.
2697         * modules/frexpl-ieee: New file.
2698
2699         Tests for module 'frexp-ieee'.
2700         * modules/frexp-ieee-tests: New file.
2701         * tests/test-frexp-ieee.c: New file.
2702
2703         New module 'frexp-ieee'.
2704         * modules/frexp-ieee: New file.
2705
2706         Tests for module 'frexpf-ieee'.
2707         * modules/frexpf-ieee-tests: New file.
2708         * tests/test-frexpf-ieee.c: New file.
2709
2710         New module 'frexpf-ieee'.
2711         * modules/frexpf-ieee: New file.
2712
2713 2012-02-26  Bruno Haible  <bruno@clisp.org>
2714
2715         roundl-ieee tests: More tests.
2716         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2717         (main): Add tests for [MX] shaded specification in POSIX.
2718         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2719         (Depends-on): Add isnanl-nolibm.
2720
2721         round-ieee tests: More tests.
2722         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2723         (main): Add tests for [MX] shaded specification in POSIX.
2724         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2725         (Depends-on): Add isnand-nolibm.
2726
2727         roundf-ieee tests: More tests.
2728         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2729         (main): Add tests for [MX] shaded specification in POSIX.
2730         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2731         (Depends-on): Add isnanf-nolibm.
2732
2733         truncl-ieee tests: More tests.
2734         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2735         (main): Add tests for [MX] shaded specification in POSIX.
2736         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2737         (Depends-on): Add isnanl-nolibm.
2738
2739         trunc-ieee tests: More tests.
2740         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2741         (main): Add tests for [MX] shaded specification in POSIX.
2742         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2743         (Depends-on): Add isnand-nolibm.
2744
2745         truncf-ieee tests: More tests.
2746         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2747         (main): Add tests for [MX] shaded specification in POSIX.
2748         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2749         (Depends-on): Add isnanf-nolibm.
2750
2751         ceill-ieee tests: More tests.
2752         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2753         (main): Add tests for [MX] shaded specification in POSIX.
2754         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2755         (Depends-on): Add isnanl-nolibm.
2756
2757         ceil-ieee tests: More tests.
2758         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2759         (main): Add tests for [MX] shaded specification in POSIX.
2760         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2761         (Depends-on): Add isnand-nolibm.
2762
2763         ceilf-ieee tests: More tests.
2764         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2765         (main): Add tests for [MX] shaded specification in POSIX.
2766         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2767         (Depends-on): Add isnanf-nolibm.
2768
2769         floorl-ieee tests: More tests.
2770         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2771         (main): Add tests for [MX] shaded specification in POSIX.
2772         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2773         (Depends-on): Add isnanl-nolibm.
2774
2775         floor-ieee tests: More tests.
2776         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2777         (main): Add tests for [MX] shaded specification in POSIX.
2778         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2779         (Depends-on): Add isnand-nolibm.
2780
2781         floorf-ieee tests: More tests.
2782         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2783         (main): Add tests for [MX] shaded specification in POSIX.
2784         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2785         (Depends-on): Add isnanf-nolibm.
2786
2787 2012-02-26  Bruno Haible  <bruno@clisp.org>
2788
2789         fpieee: More comments.
2790         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2791
2792 2012-02-25  Bruno Haible  <bruno@clisp.org>
2793
2794         Tests for module 'log10l'.
2795         * modules/log10l-tests: New file.
2796         * tests/test-log10l.c: New file.
2797         * tests/test-math-c++.cc: Check the declaration of log10l.
2798
2799         New module 'log10l'.
2800         * lib/math.in.h (log10l): New declaration.
2801         * lib/log10l.c: New file.
2802         * m4/log10l.m4: New file.
2803         * modules/log10l: New file.
2804         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2806         HAVE_DECL_LOG10L.
2807         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2808         HAVE_DECL_LOG10L.
2809         * doc/posix-functions/log10l.texi: Mention the new module.
2810
2811 2012-02-25  Bruno Haible  <bruno@clisp.org>
2812
2813         fmodl, remainder*: Avoid wrong results due to rounding errors.
2814         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2815         expected bounds.
2816         * lib/remainderf.c (remainderf): Likewise.
2817         * lib/remainder.c (remainder): Likewise.
2818         * lib/remainderl.c (remainderl): Likewise.
2819
2820 2012-02-25  Bruno Haible  <bruno@clisp.org>
2821
2822         Tests for module 'remainderl'.
2823         * modules/remainderl-tests: New file.
2824         * tests/test-remainderl.c: New file.
2825         * tests/test-math-c++.cc: Check the declaration of remainderl.
2826
2827         New module 'remainderl'.
2828         * lib/math.in.h (remainderl): New declaration.
2829         * lib/remainderl.c: New file.
2830         * m4/remainderl.m4: New file.
2831         * modules/remainderl: New file.
2832         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2834         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2835         HAVE_REMAINDERL.
2836         * doc/posix-functions/remainderl.texi: Mention the new module.
2837
2838 2012-02-25  Bruno Haible  <bruno@clisp.org>
2839
2840         Tests for module 'remainderf'.
2841         * modules/remainderf-tests: New file.
2842         * tests/test-remainderf.c: New file.
2843         * tests/test-math-c++.cc: Check the declaration of remainderf.
2844
2845         New module 'remainderf'.
2846         * lib/math.in.h (remainderf): New declaration.
2847         * lib/remainderf.c: New file.
2848         * m4/remainderf.m4: New file.
2849         * modules/remainderf: New file.
2850         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2852         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2853         HAVE_REMAINDERF.
2854         * doc/posix-functions/remainderf.texi: Mention the new module.
2855
2856 2012-02-25  Bruno Haible  <bruno@clisp.org>
2857
2858         remainder: Support for MSVC.
2859         * lib/math.in.h (remainder): New declaration.
2860         * lib/remainder.c: New file.
2861         * m4/remainder.m4: New file.
2862         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2863         (Depends-on): Add math, round, fma.
2864         (configure.ac): Use results of gl_FUNC_REMAINDER.
2865         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2867         HAVE_DECL_REMAINDER.
2868         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2869         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2870         * tests/test-math-c++.cc: Check the declaration of remainder.
2871         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2872         problems are fixed.
2873
2874 2012-02-25  Bruno Haible  <bruno@clisp.org>
2875
2876         Tests for module 'fmodl'.
2877         * modules/fmodl-tests: New file.
2878         * tests/test-fmodl.c: New file.
2879         * tests/test-math-c++.cc: Check the declaration of fmodl.
2880
2881         New module 'fmodl'.
2882         * lib/math.in.h (fmodl): New declaration.
2883         * lib/fmodl.c: New file.
2884         * m4/fmodl.m4: New file.
2885         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2887         REPLACE_FMODL.
2888         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2889         REPLACE_FMODL.
2890         * modules/fmodl: New file.
2891         * doc/posix-functions/fmodl.texi: Mention the new module.
2892
2893 2012-02-25  Bruno Haible  <bruno@clisp.org>
2894
2895         Tests for module 'modfl'.
2896         * modules/modfl-tests: New file.
2897         * tests/test-modfl.c: New file.
2898         * tests/test-math-c++.cc: Check the declaration of modfl.
2899
2900         New module 'modfl'.
2901         * lib/math.in.h (modfl): New declaration.
2902         * lib/modfl.c: New file.
2903         * m4/modfl.m4: New file.
2904         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2906         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2907         * modules/modfl: New file.
2908         * doc/posix-functions/modfl.texi: Mention the new module.
2909
2910 2012-02-25  Bruno Haible  <bruno@clisp.org>
2911
2912         Tests for module 'fabsl'.
2913         * modules/fabsl-tests: New file.
2914         * tests/test-fabsl.c: New file.
2915         * tests/test-math-c++.cc: Check the declaration of fabsl.
2916
2917         New module 'fabsl'.
2918         * lib/math.in.h (fabsl): New declaration.
2919         * lib/fabsl.c: New file.
2920         * m4/fabsl.m4: New file.
2921         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2923         REPLACE_FABSL.
2924         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2925         REPLACE_FABSL.
2926         * modules/fabsl: New file.
2927         * doc/posix-functions/fabsl.texi: Mention the new module.
2928
2929 2012-02-25  Bruno Haible  <bruno@clisp.org>
2930
2931         fabs tests: More tests.
2932         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2933         (zero): New variable.
2934         (main): Add tests for signed zero.
2935         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2936
2937         fabsf tests: More tests.
2938         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2939         (zero): New variable.
2940         (main): Add tests for signed zero.
2941         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2942
2943 2012-02-24  Bruno Haible  <bruno@clisp.org>
2944
2945         atanl: Provide function definition on MSVC.
2946         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2947         function pointer.
2948         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2949
2950 2012-02-24  Bruno Haible  <bruno@clisp.org>
2951
2952         acosl: Provide function definition on MSVC.
2953         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2954         function pointer.
2955         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2956
2957 2012-02-24  Bruno Haible  <bruno@clisp.org>
2958
2959         asinl: Provide function definition on MSVC.
2960         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2961         function pointer.
2962         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2963
2964 2012-02-24  Bruno Haible  <bruno@clisp.org>
2965
2966         tanl: Provide function definition on MSVC.
2967         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2968         function pointer.
2969         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2970
2971 2012-02-24  Bruno Haible  <bruno@clisp.org>
2972
2973         cosl: Provide function definition on MSVC.
2974         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2975         function pointer.
2976         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2977
2978 2012-02-24  Bruno Haible  <bruno@clisp.org>
2979
2980         sinl: Provide function definition on MSVC.
2981         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2982         function pointer.
2983         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2984
2985 2012-02-24  Bruno Haible  <bruno@clisp.org>
2986
2987         logl: Provide function definition on MSVC.
2988         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2989         function pointer.
2990         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2991
2992 2012-02-24  Bruno Haible  <bruno@clisp.org>
2993
2994         expl: Provide function definition on MSVC.
2995         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2996         function pointer.
2997         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2998
2999 2012-02-24  Bruno Haible  <bruno@clisp.org>
3000
3001         sqrtl: Provide function definition on MSVC.
3002         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3003         a function pointer.
3004         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3005
3006 2012-02-24  Bruno Haible  <bruno@clisp.org>
3007
3008         ceill: Provide function definition on MSVC.
3009         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3010         used as a function pointer.
3011         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3012
3013 2012-02-24  Bruno Haible  <bruno@clisp.org>
3014
3015         floorl: Provide function definition on MSVC.
3016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3017         used as a function pointer.
3018         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3019
3020 2012-02-24  Bruno Haible  <bruno@clisp.org>
3021
3022         ceilf: Provide function definition on MSVC.
3023         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3024         used as a function pointer.
3025         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3026
3027 2012-02-24  Bruno Haible  <bruno@clisp.org>
3028
3029         floorf: Provide function definition on MSVC.
3030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3031         used as a function pointer.
3032         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3033
3034 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3035
3036         stdnoreturn: new module
3037         This implements a replacement for C11's <stdnoreturn.h>.
3038         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3039         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3040         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3041         * tests/test-stdnoreturn.c: New files.
3042
3043 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3044
3045         regex: fix false multibyte matches in some regular expressions
3046         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3047         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3048         * lib/regex_internal.c (re_string_skip_chars):
3049         Fix miscomputation of remain_len that may cause incomplete
3050         multi-byte character and false match.
3051
3052 2012-02-24  Jim Meyering  <meyering@redhat.com>
3053
3054         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3055         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3056         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3057         Remove now-unnecessary str''cmp obfuscation.
3058         Suggested by Akim Demaille.
3059
3060 2012-02-24  Bruno Haible  <bruno@clisp.org>
3061
3062         streq: Rename macro.
3063         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3064         * NEWS: Mention the change.
3065         * lib/mbrtowc.c (mbrtowc): Update.
3066         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3067         * lib/wcwidth.c (wcwidth): Update.
3068         Suggested by Akim Demaille and Jim Meyering.
3069
3070 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3071
3072         regex: fix typo in definition of MIN
3073         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3074         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3075
3076 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3077             Bruno Haible  <bruno@clisp.org>
3078
3079         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3080         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3081         entries into a stack-allocated buffer directly.
3082         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3083
3084 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3085             Bruno Haible  <bruno@clisp.org>
3086
3087         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3088
3089          - There were several instances of this pattern:
3090
3091              for (;;) {
3092                n = acl (f, GETACLCNT, 0, NULL);
3093                [ allocate an array A of size N ]
3094                if (acl (f, GETACL, n, a) == n)
3095                  break;
3096              }
3097
3098            This loop might never terminate if some other process is constantly
3099            manipulating the file's ACL.  The loop should be rewritten to
3100            terminate.
3101
3102          - The acl (... GETACLNT ...) call is merely an optimization; its value
3103            is merely a hint as to how big to make the array.  A better
3104            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3105            and just guess a reasonably-big size, growing the size and trying
3106            again if it's not large enough.  This guarantees termination, and
3107            saves a system call.
3108
3109         * lib/acl-internal.h: Include <limits.h>.
3110         (MIN, SIZE_MAX): New macros.
3111         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3112         a stack-allocated buffer, and use malloc if it does not fit. Don't
3113         use GETACLCNT.
3114         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3115
3116 2012-02-19  Bruno Haible  <bruno@clisp.org>
3117
3118         acl: Fix endless loop on Solaris with vxfs.
3119         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3120         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3121         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3122         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3123         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3124         Reported by Bill Jones in
3125         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3126
3127 2012-02-19  Bruno Haible  <bruno@clisp.org>
3128
3129         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3130         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3131         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3132         that this function returns 0 in some more cases.
3133
3134 2012-02-19  Bruno Haible  <bruno@clisp.org>
3135
3136         acl: Update doc references.
3137         * doc/acl-resources.txt: Update links to Solaris documentation.
3138
3139 2012-02-19  Bruno Haible  <bruno@clisp.org>
3140
3141         Fix test failure in many locales on Solaris 11.
3142         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3143         'tr' arguments.
3144         * tests/test-pipe-filter-ii1.c (main): Likewise.
3145         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3146         expressions in the C locale.
3147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3148         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3149
3150 2012-02-19  Bruno Haible  <bruno@clisp.org>
3151
3152         gnulib-tool: Improve usage message.
3153         * gnulib-tool (func_usage): Move doc of --help and --version to the
3154         section "Operation modes".
3155
3156 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3157
3158         README-release: make it easier to execute commands
3159         * top/README-release: break commands out on to separate lines.
3160
3161 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3162
3163         GNUmakefile: simplify detection of unconfigured trees
3164         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3165         whether the tree make is being run from is already configured or
3166         not.  Related simplifications.
3167
3168 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3169
3170         * gnulib-tool (func_usage): Document --help and --version.
3171
3172 2012-02-11  Jim Meyering  <meyering@redhat.com>
3173
3174         bootstrap: don't exit 0 upon gnulib-tool failure
3175         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3176         its exit status, not 0.
3177
3178 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3179
3180         README-release: various improvements
3181         * top/README-release: Give a command to push changes for the
3182         release.  Add "distcheck" to list of other pre-release checks.
3183         Fix instance of "make stable" which should be "make TYPE".
3184
3185 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         maint: replace FSF snail-mail addresses with URLs
3188         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3189         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3190         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3191         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3192         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3193         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3194         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3195         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3196         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3197         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3198         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3199         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3200         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3201         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3202         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3203         * lib/glthread/thread.c, lib/glthread/thread.h:
3204         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3205         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3206         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3207         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3208         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3209         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3210         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3211         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3212         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3213         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3214         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3215         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3216         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3217         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3218         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3219         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3220         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3221         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3222         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3223         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3224         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3225         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3226         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3227         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3228         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3229         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3230         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3231         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3232         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3233         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3234         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3235         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3236         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3237         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3238         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3239         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3240         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3241         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3242         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3243         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3244         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3245         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3246         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3247         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3248         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3249         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3250         * tests/test-poll.c, tests/test-quotearg-simple.c:
3251         * tests/test-quotearg.c, tests/test-quotearg.h:
3252         * tests/test-round-ieee.c, tests/test-round1.c:
3253         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3254         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3255         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3256         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3257         * tests/test-strerror.c, tests/test-strerror_r.c:
3258         * tests/test-strsignal.c, tests/test-strverscmp.c:
3259         * tests/test-xmemdup0.c:
3260         Replace FSF snail mail addresses with URLs, as per GNU coding
3261         standards.  See glibc bug
3262         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3263
3264 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3265
3266         README-release: capitalize a word and split a line
3267         * top/README-release: Fix punctuation and spacing.
3268
3269 2012-02-08  Akim Demaille  <demaille@gostai.com>
3270
3271         fatal-signal: use C prototypes (with explicit void).
3272         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3273         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3274
3275 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3276
3277         regex: spelling fix
3278         * lib/regexec.c: spelling fix
3279
3280         regex: rely on stdint.h for SIZE_MAX
3281         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3282
3283 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3284
3285         regex: merge glibc changes
3286
3287         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3288         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3289         (init_word_char): Work even if bitset words are not exactly 32 or
3290         64 bits wide.  Don't assume there are no padding bits.
3291         * lib/regex.c [_LIBC]: Do not include <config.h>.
3292         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3293         and -Wtype-limits.
3294         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3295         needless disagreement with glibc.  All uses changed.  Define it to
3296         1 only if _GNU_SOURCE, to match glibc.
3297         (_REG_RM_NAME): Remove; no longer needed, since the names in
3298         question are now all protected by __USE_GNU.
3299         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3300         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3301         * lib/regex_internal.h (MIN): New macro.
3302
3303         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3304         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3305
3306         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3307         * lib/regex_internal.c (re_string_fetch_byte_case):
3308         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3309         is miscompiled, and it turns out it is because of an incorrect
3310         attribute on re_string_fetch_byte_case.  Unlike
3311         re_string_peek_byte_case, this one is really not pure, it modifies
3312         memory (increments pstr->cur_idx), and with the pure attribute GCC
3313         assumed it doesn't and it cached the presumed value of
3314         regexp->cur_idx in a variable across the
3315          for (;; ++i)
3316            {
3317              if (i >= BRACKET_NAME_BUF_SIZE)
3318                return REG_EBRACK;
3319              if (token->type == OP_OPEN_CHAR_CLASS)
3320                ch = re_string_fetch_byte_case (regexp);
3321              else
3322                ch = re_string_fetch_byte (regexp);
3323              if (re_string_eoi(regexp))
3324                return REG_EBRACK;
3325              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3326                break;
3327              elem->opr.name[i] = ch;
3328            }
3329
3330         2011-11-29 Andreas Schwab <schwab@redhat.com>
3331         * lib/regcomp.c (build_equiv_class):
3332         Fix access after end of search string in regex matcher.
3333
3334         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3335         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3336
3337         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3338         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3339
3340         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3341         * lib/regcomp.c (parse_branch, parse_sub_exp):
3342         More regex memory leak fixes and tests.
3343         (parse_sub_exp, parse_bracket_exp):
3344         Fix memory leak for some invalid regular expressions.
3345
3346         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3347         * lib/regex_internal.c, lib/regexec.c:
3348         Fix unnecessary overallocation due to incomplete character.  When
3349         incomplete characters are found at the end of a string the code
3350         ran amok and allocated lots of memory.  Stricter limits are now in
3351         place.
3352
3353         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3354         * lib/regex.h: Update documentation.
3355
3356         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3357         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3358
3359         2010-05-05 Andreas Schwab <schwab@redhat.com>
3360         * lib/regexec.c (find_collation_sequence_value):
3361         Fix lookup of collation sequence value during regexp matching.
3362
3363         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3364         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3365
3366         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3367         * lib/regex.h: Cleanup namespace.
3368
3369         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3370         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3371
3372         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3373         * lib/regex_internal.h: Prevent some declarations and definitions
3374         to be seen when used in tests.
3375
3376         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3377         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3378         __libc_lock_* macros if not _LIBC.
3379         (struct re_dfa_t): Add lock.
3380
3381 2012-02-07  Eric Blake  <eblake@redhat.com>
3382
3383         maint.mk: also prohibit lower-case @var@
3384         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3385         lower case, like @top_srcdir@.
3386
3387 2012-02-04  Eric Blake  <eblake@redhat.com>
3388
3389         canonicalize: avoid uninitialized memory use
3390         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3391         random '/' left in dest.
3392         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3393
3394 2012-02-04  Bruno Haible  <bruno@clisp.org>
3395
3396         isatty: Fix test failure of ptsname_r on native Windows.
3397         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3398         and don't set errno.
3399         (isatty): Test first whether fd is valid. Set errno when returning 0.
3400
3401 2012-02-04  Bruno Haible  <bruno@clisp.org>
3402
3403         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3404         * tests/test-spawn-pipe-main.c: Include progname.h.
3405         (main): Invoke set_program_name.
3406         * modules/spawn-pipe-tests (Depends-on): Add progname.
3407
3408         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3409         * tests/test-nonblocking-socket-main.c: Include progname.h.
3410         (main): Invoke set_program_name.
3411         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3412
3413         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3414         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3415         (main): Invoke set_program_name.
3416         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3417
3418 2012-02-04  Eric Blake  <eblake@redhat.com>
3419
3420         canonicalize-lgpl: fix // handling
3421         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3422
3423         canonicalize: fix // handling
3424         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3425         /// to //, since only // is special.
3426
3427 2012-02-04  Bruno Haible  <bruno@clisp.org>
3428
3429         ioctl: Fix test failure on native Windows.
3430         * lib/ioctl.c: Include msvc-nothrow.h.
3431         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3432
3433 2012-02-04  Bruno Haible  <bruno@clisp.org>
3434
3435         fsync: Avoid test failure on native Windows.
3436         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3437         read-only.
3438
3439 2012-02-04  Bruno Haible  <bruno@clisp.org>
3440
3441         sys_select: Avoid syntax error on OpenBSD 5.0.
3442         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3443         currently being included, just include the system's <sys/select.h>.
3444
3445 2012-02-04  Bruno Haible  <bruno@clisp.org>
3446
3447         sys_select: Avoid syntax error on OpenBSD 5.0.
3448         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3449         <sys/select.h>, not before.
3450         Reported by Jiri B <jirib@devio.us>.
3451
3452 2012-02-04  Bruno Haible  <bruno@clisp.org>
3453
3454         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3455         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3456         global variables.
3457         * tests/test-get-rusage-data.c (main): Likewise.
3458         Reported by Jim Meyering.
3459
3460 2012-02-04  Bruno Haible  <bruno@clisp.org>
3461
3462         stdioext: Fix last commit.
3463         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3464
3465 2012-02-03  Bruno Haible  <bruno@clisp.org>
3466
3467         stdioext: Add tentative support for Plan9.
3468         * lib/stdio-impl.h: Include <errno.h>.
3469         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3470         * lib/freadable.c (freadable): Likewise.
3471         * lib/fwritable.c (fwritable): Likewise.
3472         * lib/fbufmode.c (fbufmode): Likewise.
3473         * lib/freading.c (freading): Likewise.
3474         * lib/fwriting.c (fwriting): Likewise.
3475         * lib/freadptr.c (freadptr): Likewise.
3476         * lib/freadseek.c (freadptrinc): Likewise.
3477         * lib/freadahead.c (freadahead): Likewise.
3478         * lib/fpurge.c (fpurge): Likewise.
3479         * lib/fseeko.c (rpl_fseeko): Likewise.
3480         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3481         Reported by Jens Staal <staal1978@gmail.com>.
3482
3483 2012-02-02  Jim Meyering  <meyering@redhat.com>
3484
3485         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3486         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3487         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3488         not even to try to add the attribute.  Instead, add a pragma to suppress
3489         the suggestion/warning.
3490
3491 2012-01-31  Karl Berry  <karl@gnu.org>
3492
3493         setstate doc: typo.
3494         * doc/posix-functions/setstate.texi (setstate): { not (.
3495
3496 2012-01-31  Bruno Haible  <bruno@clisp.org>
3497
3498         popen: Make more robust on Windows.
3499         * lib/popen.c: On native Windows, use the _popen based code even if
3500         HAVE_POPEN is set.
3501         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3502         environment variable on native Windows.
3503
3504 2012-01-30  Bruno Haible  <bruno@clisp.org>
3505
3506         pclose: Fix typo.
3507         * lib/stdio.in.h (pclose): Fix typo in warning message.
3508
3509 2012-01-30  Bruno Haible  <bruno@clisp.org>
3510
3511         doc about getlogin_r, setstate.
3512         * doc/posix-functions/getlogin_r.texi: List the incompatible
3513         declaration problem under "not fixed by gnulib".
3514         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3515         problem on Solaris 11 and other platforms.
3516
3517 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3518             Bruno Haible  <bruno@clisp.org>
3519
3520         poll tests: Make test more robust.
3521         * tests/test-poll.c: Include macros.h.
3522         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3523         return value of various I/O operations.
3524         * modules/poll-tests (Files): Add tests/macros.h.
3525
3526 2012-01-30  Bruno Haible  <bruno@clisp.org>
3527
3528         sys_stat: Fix support for mingw64 and MSVC.
3529         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3530         header files already do it.
3531         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3532         stat itself.
3533         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3534
3535 2012-01-30  Bruno Haible  <bruno@clisp.org>
3536
3537         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3539         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3540
3541 2012-01-29  Bruno Haible  <bruno@clisp.org>
3542
3543         quotearg: Fix test failure on MacOS X 10.5.
3544         * tests/test-quotearg-simple.c: Include localcharset.h.
3545         (main): If the locale encoding is not ASCII, bypass the tests of
3546         locale_quoting_style and clocale_quoting_style.
3547         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3548
3549 2012-01-29  Jim Meyering  <meyering@redhat.com>
3550
3551         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3552         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3553         detect uses of canonicalize_file_name.
3554
3555 2012-01-28  Bruno Haible  <bruno@clisp.org>
3556
3557         test-framework-sh: Fix test failure with AIX 7.1 diff.
3558         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3559         in column 1, like 'diff -c' does.
3560         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3561         whether 'diff -u' is used. Instead, test whether the output contains
3562         some '@' character.
3563
3564 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3565
3566         strtoimax: eliminate need for stdint.h, inttypes.h checks
3567         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3568         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3569         the prerequisites for a recently-introduced strtoimax test.
3570         I guess this might cause strtoimax to be replaced when not
3571         strictly necessary on older hosts, but this shouldn't introduce
3572         any bugs and it should make Emacs 'configure' faster on typical
3573         modern hosts.  Problem discovered when importing the latest gnulib
3574         to an Emacs test version.
3575         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3576
3577 2012-01-28  Bruno Haible  <bruno@clisp.org>
3578
3579         sys_time: Override 'struct timeval' on some native Windows platforms.
3580         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3581         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3582         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3583         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3584         needs to be overridden.
3585         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3586         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3587         * tests/test-sys_select.c: Check that the tv_sec member has the same
3588         size as a 'time_t'.
3589         * tests/test-sys_time.c: Likewise.
3590         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3591         is set, set also REPLACE_GETTIMEOFDAY.
3592         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3593         convert the resulting 'struct timeval' before returning.
3594         * lib/select.c: Include <sys/time.h>.
3595         (select, timeval): Undefine at the right place.
3596         * modules/select (Depends-on): Add sys_time.
3597         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3598         some Windows platforms.
3599         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3600
3601 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3602
3603         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3604         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3605         an integer.
3606         * lib/fcntl.c (dupfd): Likewise.
3607         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3608
3609 2012-01-28  Bruno Haible  <bruno@clisp.org>
3610
3611         fcntl: Avoid compilation error on native Windows.
3612         * modules/fcntl (Depends-on): Add 'close'.
3613
3614 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3615
3616         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3617         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3618         pointer to an integer.
3619         * lib/poll.c (IsConsoleHandle): Likewise.
3620         * lib/isatty.c (IsConsoleHandle): Likewise.
3621
3622 2012-01-28  Jim Meyering  <meyering@redhat.com>
3623
3624         doc: clarify README-release
3625         * top/README-release: Clarify: you should make a point to have
3626         the latest stable versions of build tools in your PATH, and the
3627         reference to buildreq is solely for its list of tool names, not
3628         for its minimal-functional version numbers.
3629         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3630
3631         maint.mk: use more readable (yet functionally equivalent) quoting
3632         It is common to quote a single quote in a single quoted string like
3633         this:  '...'\''...'.  Unless you know the idiom, that looks like
3634         gibberish, so prefer to double-quote the string when possible.
3635         Then you can use a more readable, lone single quote: "...'..."
3636         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3637         "don't" is more readable than the equivalent 'don'\''t'.
3638         (sc_cast_of_x_alloc_return_value): Likewise.
3639         (sc_cast_of_alloca_return_value): Likewise.
3640         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3641         rather than '\'':'\''.
3642
3643 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3644
3645         stdalign: relax _Alignof and tighten _Alignas test
3646         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3647         as it was too strict: alignof must divide offsetof, but it need
3648         not equal offsetof.  Inspired by Joseph S. Myers's comment
3649         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3650         Conversely, tighten the _Alignas test a bit, as the resulting
3651         alignment must be exactly 8.
3652
3653 2012-01-27  Bruno Haible  <bruno@clisp.org>
3654
3655         stdalign: Document the last change.
3656         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3657
3658 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3659
3660         stdalign: check that alignof and offsetof are consistent
3661         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3662         Problem reported for gnulib by Richard W.M. Jones in
3663         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3664
3665 2012-01-27  Jim Meyering  <meyering@redhat.com>
3666
3667         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3668         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3669         convert a sequence with gaps to the minimal containing range.
3670         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3671         * tests/test-update-copyright.sh: Test for this.
3672         The FSF confirmed it is ok to do this, assuming there is at
3673         least one significant change per year in the affected range:
3674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3675
3676 2012-01-26  Bruno Haible  <bruno@clisp.org>
3677
3678         pipe2: refine doc about thread-safety
3679         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3680         multithread-safety problem.
3681         * doc/glibc-functions/accept4.texi: Likewise.
3682
3683 2012-01-26  Bruno Haible  <bruno@clisp.org>
3684
3685         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3686         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3687         In the test program, include <fcntl.h>, for O_RDONLY.
3688
3689 2012-01-26  Eric Blake  <eblake@redhat.com>
3690
3691         pipe2: document lack of thread-safety in replacement
3692         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3693         issue in replacement.
3694         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3695         Based on a report by Eric Wong.
3696
3697 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3698             Bruno Haible  <bruno@clisp.org>
3699
3700         malloca: Avoid warnings on x86_64 mingw64.
3701         * lib/malloca.c: Include <stdint.h>.
3702         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3703         * modules/malloca (Depends-on): Add stdint.
3704         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3705
3706 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3707
3708         obstack: remove __STDC__ conditionals
3709         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3710         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3711         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3712         m4/include_next.m4 as the only gnulib-maintained places that still
3713         refer to __STDC__.
3714
3715 2012-01-24  Bruno Haible  <bruno@clisp.org>
3716
3717         havelib: Modern quoting.
3718         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3719         the recent change to the GNU coding standards.
3720
3721 2012-01-24  Bruno Haible  <bruno@clisp.org>
3722
3723         stdint: Improve support for Android.
3724         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3725         Reported by Simon Josefsson <simon@josefsson.org>.
3726
3727 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3728
3729         doc: omit trailing empty lines from INSTALL etc.
3730         * doc/Makefile (INSTALL): Omit trailing empty lines.
3731         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3732         omit trailing empty lines.  This simplifies the build procedure.
3733
3734 2012-01-23  Jim Meyering  <meyering@redhat.com>
3735
3736         tests: avoid spurious warnings about gl_sockets_startup
3737         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3738         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3739         reporting a "statement with no effect".
3740         * tests/test-accept.c (main): Mark as "(void)".
3741         * tests/test-accept4.c (main): Likewise.
3742         * tests/test-bind.c (main): Likewise.
3743         * tests/test-connect.c (main): Likewise.
3744         * tests/test-getpeername.c (main): Likewise.
3745         * tests/test-getsockname.c (main): Likewise.
3746         * tests/test-getsockopt.c (main): Likewise.
3747         * tests/test-listen.c (main): Likewise.
3748         * tests/test-recv.c (main): Likewise.
3749         * tests/test-recvfrom.c (main): Likewise.
3750         * tests/test-send.c (main): Likewise.
3751         * tests/test-sendto.c (main): Likewise.
3752         * tests/test-setsockopt.c (main): Likewise.
3753         * tests/test-shutdown.c (main): Likewise.
3754
3755 2012-01-21  Bruno Haible  <bruno@clisp.org>
3756
3757         locale-fr.m4: Fix for Android.
3758         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3759         failure of the test program on Bionic libc.
3760
3761 2012-01-21  Jim Meyering  <meyering@redhat.com>
3762
3763         bootstrap: fail when bootstrap_post_import_hook fails
3764         Otherwise, it's far too easy to miss diagnostics emitted
3765         between gnulib-tool's output and that of running configure.
3766         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3767
3768 2012-01-17  Jim Meyering  <meyering@redhat.com>
3769
3770         maint: enable sc_trailing_blank
3771         * build-aux/pmccabe.css: Remove trailing blanks.
3772         * doc/acl-cygwin.txt: Likewise.
3773         * doc/gnu-oids.texi: Likewise
3774         * cfg.mk: Enable sc_trailing_blank.
3775         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3776
3777 2012-01-17  Jim Meyering  <meyering@redhat.com>
3778
3779         maint: enable sc_prohibit_openat_without_use
3780         * cfg.mk: Enable sc_prohibit_openat_without_use.
3781         Exempt lib/selinux-at.c.
3782
3783 2012-01-17  Jim Meyering  <meyering@redhat.com>
3784
3785         maint: enable sc_prohibit_cloexec_without_use
3786         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3787         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3788
3789 2012-01-17  Jim Meyering  <meyering@redhat.com>
3790
3791         maint: enable sc_prohibit_intprops_without_use
3792         * cfg.mk: Enable sc_prohibit_intprops_without_use
3793         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3794
3795 2012-01-17  Jim Meyering  <meyering@redhat.com>
3796
3797         maint: enable sc_prohibit_hash_pjw_without_use
3798         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3799         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3800         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3801         following " (".
3802
3803 2012-01-17  Jim Meyering  <meyering@redhat.com>
3804
3805         maint: enable double-word-prohibiting rule
3806         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3807         Exempt three files.
3808
3809 2012-01-17  Jim Meyering  <meyering@redhat.com>
3810
3811         maint: remove empty lines at EOF, but excluding modules/*
3812         Apply syntax rules at home as well as abroad.  Most changes
3813         were induced by running this:
3814           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3815             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3816             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3817         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3818         Exempt modules/* and two binary files.
3819         Also exempt doc/INSTALL*, per request from Bruno Haible.
3820         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3821         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3822         * doc/Copyright/request-assign.future: Likewise.
3823         * doc/Copyright/request-disclaim.changes: Likewise.
3824         * doc/INSTALL: Likewise.
3825         * doc/INSTALL.ISO: Likewise.
3826         * doc/INSTALL.UTF-8: Likewise.
3827         * doc/acl-cygwin.txt: Likewise.
3828         * doc/acl-resources.txt: Likewise.
3829         * doc/fdl-1.2.texi: Likewise.
3830         * doc/fdl-1.3.texi: Likewise.
3831         * doc/fdl.texi: Likewise.
3832         * lib/argp-pin.c: Likewise.
3833         * lib/round.c: Likewise.
3834         * lib/unicase/u16-totitle.c: Likewise.
3835         * lib/unictype/block_test.c: Likewise.
3836         * lib/uninorm/canonical-decomposition.c: Likewise.
3837         * m4/README: Likewise.
3838         * m4/relocatable-lib.m4: Likewise.
3839         * tests/test-isnand-nolibm.c: Likewise.
3840         * tests/test-isnand.c: Likewise.
3841         * tests/uninorm/NormalizationTest.txt: Likewise.
3842
3843 2012-01-17  Jim Meyering  <meyering@redhat.com>
3844
3845         maint: add framework to run syntax-check rules against gnulib sources
3846         * cfg.mk: New file, to disable all currently-failing tests.
3847         We'll enable them one by one, as they are made to pass.
3848         * Makefile (sc_maint): New rule.
3849
3850 2012-01-21  Bruno Haible  <bruno@clisp.org>
3851
3852         stdint: Add support for Android.
3853         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3854         include the system's <stdint.h>.
3855         Reported by Simon Josefsson <simon@josefsson.org>.
3856
3857 2012-01-19  Jim Meyering  <meyering@redhat.com>
3858
3859         bootstrap: add bootstrap_post_import_hook
3860         Bison does still need something like the gnulib_mk_hook whose
3861         invocation I had to remove along with slurp in commit 767ccd40.
3862         Technically, we could get along without it, but doing so would
3863         have required living with a warning and a mandatory post-bootstrap
3864         automake rerun.
3865         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3866         (bootstrap_post_import_hook): New function.
3867         Invoke it after gnulib-tool --import and before autoreconf.
3868
3869 2012-01-18  Jim Meyering  <meyering@redhat.com>
3870
3871         gitlog-to-changelog: don't use "no_"-prefixed variable name
3872         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3873         to enable both --cluster and --no-cluster.  Change variable name,
3874         s/\$no_cluster/$cluster/, and reverse usage to match.
3875
3876         gitlog-to-changelog: use "||", not "or" in expressions
3877         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3878         expressions.
3879
3880 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3881
3882         gitlog-to-changelog: new option --no-cluster
3883         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3884         clustering of adjacent commit messages.
3885
3886 2012-01-17  Jim Meyering  <meyering@redhat.com>
3887
3888         maint: spell file systems with two words, not one
3889         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3890         two words, not one.
3891
3892 2012-01-16  Jim Meyering  <meyering@redhat.com>
3893
3894         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3895         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3896
3897 2012-01-16  Eric Blake  <eblake@redhat.com>
3898
3899         bootstrap: cater to autoconf 2.59
3900         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3901         is not available.
3902
3903         bootstrap: properly check for libtool
3904         * build-aux/bootstrap (libtoolize): Also run libtool when older
3905         usage is detected.
3906
3907 2012-01-15  Bruno Haible  <bruno@clisp.org>
3908
3909         Improve support for MSVC 9.
3910         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3911         clashes on MSVC.
3912         * lib/fcntl.in.h: Likewise.
3913         * lib/stdlib.in.h: Likewise.
3914         * lib/sys_stat.in.h: Likewise.
3915
3916 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3917
3918         gnupload: we hold the master copy of this script now
3919         For motivation and more information, see:
3920         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3921         * build-aux/gnupload: Make it clear in the heading comments that the
3922         master copy of this file is maintained by gnulib.  Since we are at
3923         it, bump its copyright year and ...
3924         ($scriptversion): ... the date in its version.
3925         ($usage): Patches and bug reports should be sent to the gnulib list,
3926         not the automake one.
3927         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3928         anymore.
3929
3930 2012-01-15  Bruno Haible  <bruno@clisp.org>
3931
3932         Fix module 'random'.
3933         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3934         initstate, setstate are declared.
3935
3936 2012-01-14  Bruno Haible  <bruno@clisp.org>
3937
3938         Tests for module 'random'.
3939         * modules/random-tests: New file.
3940         * tests/test-random.c: New file, based on tests/test-random_r.c.
3941
3942         New module 'random'.
3943         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3944         declarations.
3945         * lib/random.c: New file, based on glibc/stdlib/random.c.
3946         * m4/random.m4: New file.
3947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3948         HAVE_RANDOM.
3949         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3950         * modules/random: New file.
3951         * config/srclist.txt: Add an entry for random.c.
3952         * doc/posix-functions/random.texi: Mention the 'random' module.
3953         * doc/posix-functions/initstate.texi: Likewise.
3954         * doc/posix-functions/setstate.texi: Likewise.
3955         * doc/posix-functions/srandom.texi: Likewise.
3956
3957 2012-01-12  Bruno Haible  <bruno@clisp.org>
3958
3959         random_r: Use common idioms.
3960         * lib/random_r.c: Include <stdlib.h> first.
3961
3962         random_r: Override incompatible API on AIX, OSF/1.
3963         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3964         Override the system function if REPLACE_RANDOM_R is 1.
3965         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3966         and OSF/1, set REPLACE_RANDOM_R.
3967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3968         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3969         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3970         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3971         * doc/glibc-functions/random_r.texi: Likewise.
3972         * doc/glibc-functions/setstate_r.texi: Likewise.
3973
3974         random_r: Support for MSVC 9.
3975         * lib/random_r.c: Include stdint.h, not inttypes.h.
3976
3977 2012-01-12  Eric Blake  <eblake@redhat.com>
3978
3979         inet_ntop: guard extra work by IF_LINT
3980         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3981         better code generation when not checking for warnings.
3982         Suggested by Paul Eggert and Jim Meyering.
3983
3984         strptime: fix regression on mingw
3985         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3986         Fix regression.  Reported by Bruno Haible.
3987
3988 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3989             Bruno Haible  <bruno@clisp.org>
3990
3991         copy-file: add error-code-returning variant.
3992         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3993         (qcopy_file_preserving): New declaration.
3994         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3995         copy_file_preserving. Change return type to 'int'. Don't emit an error
3996         message here.
3997         (copy_file_preserving): New function.
3998         * tests/test-copy-file.c: Include <stdlib.h>.
3999         (main): Test qcopy_file_preserving if the environment variable
4000         NO_STDERR_OUTPUT is set.
4001         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4002         with NO_STDERR_OUTPUT
4003         * tests/test-copy-file-2.sh: Likewise.
4004
4005 2012-01-10  Bruno Haible  <bruno@clisp.org>
4006
4007         copy-file: Use 'quote' module consistently.
4008         * lib/copy-file.c (copy_file_preserving): Use quote().
4009
4010         copy-file: Refactor.
4011         * lib/copy-file.c: Include quote.h.
4012         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4013         message here.
4014         * modules/copy-file (Depends-on): Add quote.
4015
4016         acl: Export qcopy_acl.
4017         * lib/acl.h (qcopy_acl): New declaration.
4018         * lib/copy-acl.c (qcopy_acl): Make non-static.
4019
4020         acl: Rename a local variable.
4021         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4022
4023         acl: Align return values of copy_acl and qcopy_acl.
4024         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4025         maybe < -1.
4026
4027 2012-01-11  Eric Blake  <eblake@redhat.com>
4028
4029         strptime: silence gcc warnings
4030         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4031         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4032         Reported by Daniel P. Berrange.
4033
4034         inet_ntop: silence gcc warning
4035         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4036         Reported by Daniel P. Berrange.
4037
4038 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4039
4040         getloadavg test: skip the test on GNU/Linux without /proc mounted
4041         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4042         file.  When /proc is not mounted, it always fails with ENOENT.
4043         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4044         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4045
4046 2012-01-10  Bruno Haible  <bruno@clisp.org>
4047
4048         regex: Avoid link error on MSVC 9.
4049         * modules/regex (Depends-on): Add wctype.
4050
4051 2012-01-10  Bruno Haible  <bruno@clisp.org>
4052
4053         doc: Mention --with-tests option.
4054         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4055         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4056         --with-tests.
4057         Reported by Reuben Thomas.
4058
4059 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4060
4061         users.txt: order package names lexicographically.
4062         * users.txt: Order package names lexicographically.
4063
4064 2012-01-10  Jim Meyering  <meyering@redhat.com>
4065
4066         maint.mk: fix description in comment
4067         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4068
4069         ignore-value: remove deprecated ignore_ptr function
4070         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4071         * NEWS: Note this.
4072
4073 2012-01-09  Jim Meyering  <meyering@redhat.com>
4074
4075         test-init.sh: avoid a subshell
4076         * tests/test-init.sh: Remove protective subshell.
4077         Suggested by Bernhard Voelker.  While a subshell is normally
4078         required to protect against older shells (Solaris, FreeBSD) that
4079         warn about a missing program before performing redirection, the
4080         shell-selection tests performed by init.sh probably exclude any
4081         offending shell.
4082
4083 2012-01-08  Bruno Haible  <bruno@clisp.org>
4084
4085         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4086         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4087         variable.
4088
4089 2012-01-08  Bruno Haible  <bruno@clisp.org>
4090
4091         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4092         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4094         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4095         macro.
4096         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4097         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4098         * lib/spawn_faction_addopen.c: Add workaround implementation if
4099         HAVE_WORKING_POSIX_SPAWN.
4100         * modules/spawn (Makefile): Substitute
4101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4102         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4103         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4105         (Depends-on): Update conditions.
4106         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4107         the Solaris 11 bug.
4108
4109 2012-01-08  Bruno Haible  <bruno@clisp.org>
4110
4111         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4112         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4113         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4114         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4115         macro.
4116         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4117         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4118         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4119         HAVE_WORKING_POSIX_SPAWN.
4120         * modules/spawn (Makefile): Substitute
4121         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4122         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4123         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4124         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4125         (Depends-on): Update conditions.
4126         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4127         the Solaris 11 bug.
4128
4129 2012-01-08  Bruno Haible  <bruno@clisp.org>
4130
4131         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4132         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4133         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4135         HAVE_WORKING_POSIX_SPAWN.
4136         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4137         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4139         * lib/spawn_faction_addclose.c: Add workaround implementation if
4140         HAVE_WORKING_POSIX_SPAWN.
4141         * modules/spawn (Makefile): Substitute
4142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4143         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4144         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4145         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4146         (Depends-on): Update conditions.
4147         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4148         the Solaris 11 bug.
4149
4150 2012-01-08  Bruno Haible  <bruno@clisp.org>
4151
4152         doc: Update for Solaris 11 2011-11.
4153         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4154         * m4/printf.m4: Update comments.
4155
4156 2012-01-08  Bruno Haible  <bruno@clisp.org>
4157
4158         mktime: Avoid compilation error on Solaris 11.
4159         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4160
4161 2012-01-08  Bruno Haible  <bruno@clisp.org>
4162
4163         doc: Small fix.
4164         * doc/posix-headers/nl_types.texi: Correct platforms list.
4165
4166 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4167
4168         Add lgpl-3.0 module.
4169         * MODULES.html.sh (Support for building documentation): Add
4170         lgpl-3.0.
4171         * modules/lgpl-3.0: New file.
4172
4173 2012-01-08  Jim Meyering  <meyering@redhat.com>
4174
4175         select.c: indent with spaces, not TABs
4176         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4177
4178 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4179
4180         quotearg: do not use grave accent for left quote
4181         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4182         locale_quoting_style.
4183         (quotearg_buffer_restyled): Fix example.
4184         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4185
4186 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4187
4188         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4189         Most programs do not have translation catalogs for English and much
4190         less separate catalogs for British and American English.  Drop the
4191         suggestion to translators about these two, and provide it
4192         automatically for Unicode locales.  Like most programs, even those
4193         using American English, we use single quotation marks.  This conflicts
4194         with the American typographic convention, but works better when you
4195         cite the entire error message within double quotes.  It also tries not
4196         to clash with established practice and with what non-gnulib programs
4197         will usually do.
4198         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4199         using an UTF-8 or GB-18030 locale.  The list of other locales with
4200         quotes was provided by Bruno Haible.
4201         (quotearg_buffer_restyled): Adjust instructions to translators.
4202         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4203         text, since this would be wrong when using Unicode.
4204         * modules/quotearg: Depend on c-strcaseeq.
4205
4206 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4207
4208         quotearg: fix Wikipedia link
4209         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4210
4211 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4212
4213         Fix for mingw with MSVC9.
4214         * m4/ld-version-script.m4: Check that compiler rejects version
4215         scripts with syntax errors.  Reported by Bruno Haible
4216         <bruno@clisp.org>.
4217
4218 2012-01-06  Bruno Haible  <bruno@clisp.org>
4219
4220         Talk about "native Windows API", not "Woe32".
4221         * lib/accept4.c: Update comments to mention native Windows.
4222         * lib/execute.c: Likewise.
4223         * lib/fatal-signal.c: Likewise.
4224         * lib/localcharset.c: Likewise.
4225         * lib/nanosleep.c: Likewise.
4226         * lib/nl_langinfo.c: Likewise.
4227         * lib/pclose.c: Likewise.
4228         * lib/pipe-filter-gi.c: Likewise.
4229         * lib/pipe-filter-ii.c: Likewise.
4230         * lib/pipe.c: Likewise.
4231         * lib/pipe2.c: Likewise.
4232         * lib/popen.c: Likewise.
4233         * lib/progreloc.c: Likewise.
4234         * lib/relocatable.c: Likewise.
4235         * lib/sigaction.c: Likewise.
4236         * lib/sigprocmask.c: Likewise.
4237         * lib/spawn-pipe.h: Likewise.
4238         * lib/spawn-pipe.c: Likewise.
4239         * lib/spawni.c: Likewise.
4240         * lib/stat-time.h: Likewise.
4241         * lib/w32spawn.h: Likewise.
4242         * tests/test-isatty.c: Likewise.
4243         * lib/config.charset: More comments.
4244         * doc/gnulib-intro.texi: Mention native Windows.
4245         * doc/posix-functions/_Exit_C99.texi: Likewise.
4246         * doc/posix-headers/fcntl.texi: Likewise.
4247
4248 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4249
4250         argp: Avoid crash if translator uses % characters in a translation.
4251         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4252         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4253
4254 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4255
4256         doc: C11 and C++11 are now official
4257         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4258         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4259         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4260         * modules/stdalign:
4261         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4262
4263 2012-01-06  Bruno Haible  <bruno@clisp.org>
4264
4265         uc-is-grapheme-break tests: Tweak.
4266         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4267         message.
4268
4269 2012-01-06  Bruno Haible  <bruno@clisp.org>
4270
4271         test-init.sh: correct the test for diff -u
4272         * tests/test-init.sh: Also redirect stdout to /dev/null.
4273
4274 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4275
4276         Use ', not `, for quoting output.
4277         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4278         (print_changelog_deltas, get_tool_versions, main program):
4279         * build-aux/git-version-gen:
4280         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4281         * build-aux/move-if-change (help):
4282         * build-aux/useless-if-before-free (usage, main program):
4283         * check-module (parse_module_file, usage)
4284         (find_included_lib_files, check_module):
4285         * lib/argmatch.c (main) [TEST]:
4286         * lib/argp-help.c (_help):
4287         * lib/getopt1.c (main) [TEST]:
4288         * lib/git-merge-changelog.c (usage):
4289         * lib/xstrtol-error.c (xstrtol_error):
4290         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4291         * m4/argz.m4 (gl_FUNC_ARGZ):
4292         * m4/bison.m4 (gl_BISON):
4293         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4295         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4296         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4297         * m4/gc-random.m4 (gl_GC_RANDOM):
4298         * m4/intl.m4 (gt_CHECK_DECL):
4299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4300         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4301         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4303         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4304         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4305         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4306         * tests/test-dirname.c (main):
4307         * tests/test-getpass.c (main):
4308         * tests/test-iconvme.c (main):
4309         * tests/test-parse-datetime.c (LOG):
4310         * tests/test-xstrtoimax.sh:
4311         * tests/test-xstrtol.sh:
4312         * tests/test-xstrtoll.sh:
4313         * tests/test-xstrtoumax.sh:
4314         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4315         * top/GNUmakefile (abort-due-to-no-makefile):
4316         Quote 'like this', not `like this', as per the recent change to
4317         the GNU coding standards.
4318
4319 2012-01-05  Bruno Haible  <bruno@clisp.org>
4320
4321         strtoimax: Don't force a replacement on systems where intmax_t is int.
4322         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4323         'intmax_t' is not larger than 'int'.
4324         Reported by Pádraig Brady <P@draigBrady.com>.
4325
4326 2012-01-05  Bruno Haible  <bruno@clisp.org>
4327
4328         doc: Mention NetBSD bugs.
4329         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4330         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4331
4332 2012-01-05  Bruno Haible  <bruno@clisp.org>
4333
4334         strtoumax tests: Enhance tests.
4335         * tests/test-strtoumax.c (main): Add tests for large values.
4336
4337 2012-01-05  Bruno Haible  <bruno@clisp.org>
4338
4339         strtoimax: Work around AIX 5.1 bug.
4340         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4341         definition.
4342         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4343         Set HAVE_STRTOIMAX.
4344         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4345         REPLACE_STRTOIMAX.
4346         * modules/inttypes-incomplete (Makefile.am): Substitute
4347         REPLACE_STRTOIMAX.
4348         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4349         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4350         (Depends-on): Update conditions.
4351         * tests/test-strtoimax.c (main): Add tests for large values.
4352         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4353
4354 2012-01-05  Bruno Haible  <bruno@clisp.org>
4355
4356         inttypes: Modernize.
4357         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4358         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4359         (Makefile.am): Update inttypes.h rule.
4360
4361 2012-01-05  Jim Meyering  <meyering@redhat.com>
4362
4363         init.sh: don't waste a subshell just to redirect stderr
4364         * tests/init.sh: In testing for diff -u and diff -c, use a
4365         stderr-redirecting exec inside `...` rather than a subshell.
4366
4367         test-init.sh: avoid failure on HP-UX 11.00
4368         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4369         resolves to diff -c or cmp.  Reported by Bruno Haible.
4370
4371 2012-01-05  Bruno Haible  <bruno@clisp.org>
4372
4373         Tests for module 'strtoull'.
4374         * modules/strtoull-tests: New file.
4375         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4376
4377 2012-01-05  Bruno Haible  <bruno@clisp.org>
4378
4379         Tests for module 'strtoll'.
4380         * modules/strtoll-tests: New file.
4381         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4382
4383 2012-01-05  Bruno Haible  <bruno@clisp.org>
4384
4385         Tests for module 'strtoul'.
4386         * modules/strtoul-tests: New file.
4387         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4388
4389 2012-01-05  Bruno Haible  <bruno@clisp.org>
4390
4391         Tests for module 'strtol'.
4392         * modules/strtol-tests: New file.
4393         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4394
4395 2012-01-04  Jim Meyering  <meyering@redhat.com>
4396
4397         test-init.sh: accommodate Solaris 5.10's different diff -u output
4398         * tests/test-init.sh: Also exempt @@ lines from the comparison
4399         of diff output, since Solaris 5.10 and GNU diff formats differ.
4400         Reported by Stefano Lattarini.
4401
4402 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4403
4404         test-posixtm: don't assume signed integer wraparound
4405         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4406         after signed integer overflow.  Inspired by (though it may not
4407         fix) Bruno Haible's bug report in
4408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4409
4410         Spell out "Windows 9x" and "Windows XP".
4411         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4412         "Windows 9x" and "WinXP" with "Windows XP".
4413
4414 2012-01-04  Jim Meyering  <meyering@redhat.com>
4415
4416         test-vc-list-files-cvs.sh: remove obsolete comment
4417         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4418         double exit.  Now that's all encapsulated via skip_ and Exit.
4419
4420 2012-01-04  Bruno Haible  <bruno@clisp.org>
4421
4422         Talk about "native Windows API", not "Win32".
4423         * lib/classpath.c: Update comments to mention native Windows.
4424         * lib/csharpexec.c: Likewise.
4425         * lib/dup2.c: Likewise.
4426         * lib/error.c: Likewise.
4427         * lib/fcntl.c: Likewise.
4428         * lib/filename.h: Likewise.
4429         * lib/findprog.c: Likewise.
4430         * lib/get-rusage-as.c: Likewise.
4431         * lib/get-rusage-data.c: Likewise.
4432         * lib/getpagesize.c: Likewise.
4433         * lib/javaexec.c: Likewise.
4434         * lib/msvc-inval.c: Likewise.
4435         * lib/msvc-nothrow.c: Likewise.
4436         * lib/nanosleep.c: Likewise.
4437         * lib/nonblocking.c: Likewise.
4438         * lib/printf-parse.c: Likewise.
4439         * lib/setlocale.c: Likewise.
4440         * lib/sigaction.c: Likewise.
4441         * lib/strerror_r.c: Likewise.
4442         * lib/tmpdir.c: Likewise.
4443         * lib/vasnprintf.c: Likewise.
4444         * lib/w32spawn.h: Likewise.
4445         * lib/waitpid.c: Likewise.
4446         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4447         * m4/locale-ar.m4: Likewise.
4448         * m4/locale-fr.m4: Likewise.
4449         * m4/locale-ja.m4: Likewise.
4450         * m4/locale-tr.m4: Likewise.
4451         * m4/locale-zh.m4: Likewise.
4452         * m4/printf.m4: Likewise.
4453         * tests/test-cloexec.c: Likewise.
4454         * tests/test-copy-acl.sh: Likewise.
4455         * tests/test-copy-file.sh: Likewise.
4456         * tests/test-file-has-acl.sh: Likewise.
4457         * tests/test-set-mode-acl.sh: Likewise.
4458         * tests/test-dup-safer.c: Likewise.
4459         * tests/test-dup2.c: Likewise.
4460         * tests/test-dup3.c: Likewise.
4461         * tests/test-fcntl.c: Likewise.
4462         * tests/test-nonblocking-pipe.h: Likewise.
4463         * tests/test-nonblocking-socket.h: Likewise.
4464         * tests/test-pipe.c: Likewise.
4465         * tests/test-pipe2.c: Likewise.
4466         * tests/test-spawn-pipe-child.c: Likewise.
4467         * doc/acl-resources.txt: Likewise.
4468         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4469         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4470         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4471         * lib/localcharset.c: Update comments to mention native Windows.
4472         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4473         * lib/localename.c: Likewise.
4474         * lib/progreloc.c: Likewise.
4475         * lib/relocatable.c: Likewise.
4476         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4477         (windows_compute_revents): Renamed from win32_compute_revents.
4478         (windows_compute_revents_socket): Renamed from
4479         win32_compute_revents_socket.
4480         * lib/select.c: Update comments to mention native Windows.
4481         (windows_poll_handle): Renamed from win32_poll_handle.
4482         * m4/threadlib.m4: Update comments to mention native Windows.
4483         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4484         --enable-threads=windows instead of --enable-threads=win32. Set
4485         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4486         * lib/glthread/lock.h: Update comments to mention native Windows.
4487         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4488         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4489         USE_WIN32_THREADS.
4490         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4491         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4492         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4493         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4494         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4495         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4496         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4497         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4498         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4499         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4500         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4501         * tests/test-tls.c: Likewise.
4502         Rationale:
4503         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4504         on both 32-bit and 64-bit Windows systems.
4505         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4506         line of distinction is between "native Windows" on one side and Unix/
4507         POSIX systems on the other side. More details in
4508         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4509         Suggested by Paul Eggert.
4510
4511 2012-01-03  Bruno Haible  <bruno@clisp.org>
4512
4513         isatty: Support for MSVC 9.
4514         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4515         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4516         (_isatty_nothrow): New function.
4517         (isatty): Use it instead of _isatty.
4518         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4519         * lib/poll.c (IsConsoleHandle): Likewise.
4520         * lib/select.c (IsConsoleHandle): Likewise.
4521         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4522         (gl_PREREQ_ISATTY): New macro.
4523         * modules/isatty (Depends-on): Add msvc-inval.
4524         (configure.ac): Invoke gl_PREREQ_ISATTY.
4525
4526 2012-01-03  Jim Meyering  <meyering@redhat.com>
4527
4528         maint.mk: remove temporary transition aid from over 1.5 years ago
4529         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4530         purpose was to aid in the transition (avoiding silent malfunction)
4531         from that old name to the new _sc_search_regexp.  This shim was
4532         added by commit 219c504b.
4533
4534         init.sh: do not try to accommodate compare arguments starting with "-"
4535         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4536         compare arguments that start with "-".  Besides, we do not worry
4537         about this when invoking diff or cmp; why start now with sed?
4538         Using "--" to separate options from argument would trigger sed
4539         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4540         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4541
4542 2012-01-02  Bruno Haible  <bruno@clisp.org>
4543
4544         Enhance tests for module 'isatty'.
4545         * modules/isatty-tests (Depends-on): Add pipe-posix.
4546         * tests/test-isatty.c: Include <fcntl.h>.
4547         (DEV_NULL): New macro.
4548         (main): Test the resut of isatty() also on regular files, pipes, and
4549         /dev/null.
4550
4551         New module 'isatty'.
4552         * lib/unistd.in.h (isatty): New declaration.
4553         * lib/isatty.c: New file, based on an idea of
4554         Bastien Roucariès <roucaries.bastien@gmail.com>.
4555         * m4/isatty.m4: New file.
4556         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4557         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4558         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4559         REPLACE_ISATTY.
4560         * modules/isatty: New file.
4561         * doc/posix-functions/isatty.texi: Mention the new module.
4562         Suggested by Paolo Bonzini.
4563
4564 2012-01-02  Bruno Haible  <bruno@clisp.org>
4565
4566         canonicalize: Tweak 2011-12-29 commit.
4567         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4568         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4569
4570 2012-01-02  Jim Meyering  <meyering@redhat.com>
4571
4572         gitlog-to-changelog: describe input syntax in --help output
4573         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4574
4575         gitlog-to-changelog: fix typo in --help: show backslash before email @
4576         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4577         in sources, but not in actual output.
4578
4579 2011-12-30  Jim Meyering  <meyering@redhat.com>
4580
4581         gitlog-to-changelog: don't malfunction when name contains %-directive
4582         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4583         in a name string cause trouble.  E.g., with a user name of "%s",
4584         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4585
4586 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4587
4588         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4589         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4590         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4591         the "  (tiny change)" notation that is appended to the standard
4592         ChangeLog "date  name  email" header line.
4593
4594 2012-01-01  Jim Meyering  <meyering@redhat.com>
4595
4596         test-framework-sh: init.sh: fix "make dist" failure
4597         When using gnulib-tool's --with-tests option and any module that
4598         depends on test-framework-sh, "make dist" would fail due to the
4599         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4600         in the gltests directory, and not in the gllib/ directory.
4601         One way to work around that is to move the EXTRA_DIST += init.sh
4602         from the primary module to the -tests one:
4603         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4604         * modules/test-framework-sh (Makefile.am): ...not here.
4605         Reported by Tom G. Christensen in
4606         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4607
4608         version-etc: update copyright year reported by --version
4609         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4610
4611 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4612
4613         canonicalize: only stat() if required
4614         * lib/canonicalize.c (canonicalize_filename_mode):
4615         Avoid calling l?stat() when both CAN_MISSING,
4616         and CAN_NOLINKS are set, as we neither need
4617         to resolve symlinks or test component existence.
4618
4619 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4620
4621         doc: cover st_ino issues once; add OpenVMS etc.
4622         * doc/posix-functions/stat.texi (stat):
4623         * doc/posix-functions/lstat.texi (lstat):
4624         * doc/posix-functions/fstatat.texi (fstatat):
4625         * doc/posix-functions/fstat.texi (fstat):
4626         Move general 'struct stat' stuff to sys_stat.texi,
4627         leaving behind a pointer.
4628         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4629         Merge duplicate info about 'struct stat' problems into here.
4630         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4631         and suggest partial workarounds.
4632
4633         same-inode: port to OpenVMS
4634         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4635         three st_ino values.
4636
4637 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4638
4639         canonicalize: fix references to stat() and lstat()
4640         * lib/canonicalize.c (canonicalize_filename_mode):
4641         Ensure references always resolve to a replacement
4642         function if required (even via a macro).
4643
4644 2011-12-30  Jim Meyering  <meyering@redhat.com>
4645
4646         gitlog-to-changelog: remove a little duplication
4647         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4648         rather than twice.
4649
4650 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4651
4652         canonicalize: add support for not resolving symlinks
4653         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4654         indicate we don't want to follow symlinks.  Also
4655         provide CAN_MODE_MASK to aid setting these existing
4656         mutually exclusive values.
4657         * lib/canonicalize.c (canonicalize_filename_mode):
4658         Extract the flags from can_mode parameter, which
4659         are currently just used to select between stat()
4660         and lstat().  Also ensure that mutually exclusive
4661         values are flagged immediately as invalid.
4662         * tests/test-canonicalize.c: Verify symlinks are
4663         not followed, and that invalid flag combinations
4664         are diagnosed.
4665
4666 2011-12-25  Jim Meyering  <meyering@redhat.com>
4667
4668         gitlog-to-changelog: do not clump multi-paragraph entries
4669         Identical header lines (date,name,email+coauthors) are suppressed,
4670         thus putting all entries with those same characteristics under
4671         a single header.  However, when a log entry consists of two or
4672         more paragraphs, it may not be clear where it starts and ends.
4673         This change makes it so that such an entry is always separated
4674         from others by a header line, even when that header would
4675         otherwise be suppressed.
4676         * build-aux/gitlog-to-changelog: Implement the above.
4677         Inspired by a related request from Stefano Lattarini in
4678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4679
4680 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4681
4682         announce-gen: fix `cmd' typo in diagnostic
4683         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4684         diagnostic: a missing '$' meant that the command was not output.
4685
4686 2011-12-23  Jim Meyering  <meyering@redhat.com>
4687
4688         test-framework-sh: distribute init.sh
4689         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4690         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4691         fail due to the lack of init.sh.
4692
4693         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4694         * modules/atexit-tests: Rather than listing tests/init.sh,
4695         now that there's a module for it, simply depend on that new module.
4696         * modules/closein-tests: Likewise.
4697         * modules/exclude-tests: Likewise.
4698         * modules/getcwd-tests: Likewise.
4699         * modules/perror-tests: Likewise.
4700         * modules/pread-tests: Likewise.
4701         * modules/pwrite-tests: Likewise.
4702         * modules/vc-list-files-tests: Likewise.
4703         * modules/verify-tests: Likewise.
4704         * modules/xalloc-die-tests: Likewise.
4705         * modules/xstrtoimax-tests: Likewise.
4706         * modules/xstrtol-tests: Likewise.
4707         * modules/xstrtoll-tests: Likewise.
4708         * modules/xstrtoumax-tests: Likewise.
4709         * modules/yesno-tests: Likewise.
4710
4711 2011-12-22  Jim Meyering  <meyering@redhat.com>
4712
4713         test-framework-sh: add minimal tests of init.sh's compare function
4714         * modules/test-framework-sh-tests: New file.
4715         * tests/test-init.sh: New file.
4716
4717         test-framework-sh: new module
4718         * modules/test-framework-sh: New file.
4719         * MODULES.html.sh (Support for maintaining and releasing projects):
4720         List it.
4721
4722         init.sh: do not emit simulated diff output to stderr
4723         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4724
4725 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4726
4727         .gitignore: ignore gnulib.dvi and regex.info
4728         * doc/.gitignore:add gnulib.dvi and regex.info
4729
4730 2011-12-22  Jim Meyering  <meyering@redhat.com>
4731
4732         init.sh: correct previous change
4733         * tests/init.sh (compare): My previous change was wrong.
4734         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4735
4736         init.sh: avoid unwarranted test failure when using "set -e"
4737         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4738         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4739         a use like "compare exp out" would get evoke an unconditional failure.
4740
4741 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4742
4743         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4744         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4745         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4746         autoreconf that did not.
4747         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4748         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4749
4750 2011-12-17  Jim Meyering  <meyering@redhat.com>
4751
4752         bootstrap: remove some now-unneeded code
4753         This script arose back when gnulib-tool was young.
4754         Since then, it has seen improvements that render much of this
4755         script unnecessary.  In particular, it can now make symlinks
4756         to the files it uses.  Also, I no longer see as much value in
4757         marking files as read-only via comments.
4758         If you relied on the symlink-creation feature of the preceding
4759         version of this script, you can get most of that functionality
4760         by adding the --symlink option to the definition of
4761         gnulib_tool_option_extras in your bootstrap.conf file.
4762         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4763         Run autopoint and libtoolize *before* gnulib-tool.
4764         After it, run an abbreviated autoreconf, rather than a loop around
4765         all tools.
4766         (slirp, bt_mark_as_generated): Remove functions.
4767
4768 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         ftoastr: fix typo
4771         * lib/ftoastr.h: Fix misspelling in comment.
4772
4773 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4774
4775         * top/README-release: fix punctuation.
4776
4777 2011-12-17  Jim Meyering  <meyering@redhat.com>
4778
4779         bootstrap: correct the recent buildreq change
4780         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4781         had no effect.
4782         * build-aux/bootstrap (buildreq): Bracket each search term with
4783         "*...*", so that the shell "case" statement works as intended.
4784         Add comments.
4785
4786 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4787
4788         build: let bootstrap resort to wget when downloading .po files
4789         * build-aux/bootstrap (download_po_files): Fallback to wget when
4790         downloading the .po files via rsync fails.  This is necessary to
4791         bootstrap from behind a strict firewall.
4792
4793 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4794
4795         stdint: don't assume C++11 when compiling with g++
4796         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4798         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4799         work also in C++ before C++11, as that improperly inhibits
4800         generating a substitute stdint.h for that case.
4801
4802 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4803
4804         alloca: protect comment from gnulib-tool
4805         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4806         that gnulib-tool doesn't think it's a license, and munge it to
4807         say "GCC version 3".
4808
4809 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4810
4811         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4812         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4813         $(abs_top_builddir) instead of $(top_builddir).
4814
4815 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4816
4817         strftime-tests: also test nanoseconds
4818         * tests/test-strftime.c (T): Add a test of %N.
4819
4820 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4821
4822         inttypes, stdint: add C++11 support
4823         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4824         when including inttypes.h and stdint.h.  Support this change to
4825         the standard.
4826         * doc/posix-headers/inttypes.texi (inttypes.h):
4827         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4828         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4829         Define if not defined already, for the benefit of pre-C++11 hosts.
4830         Define the standard format macros (e.g., PRId8) always.
4831         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4832         Likewise, if __cpluspus.  Define the standard constant and limit
4833         macros (e.g., INT8_C, INT8_MAX) always.
4834         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4835         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4836         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4837         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4838         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4839         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4840         Likewise.
4841
4842 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4843
4844         nonblocking tests: Fix test failure on Linux/PPC.
4845         Suggested by Prerna Saxena in
4846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4847         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4848         Set to 1100000.
4849
4850 2011-12-12  Jim Meyering  <meyering@redhat.com>
4851
4852         argmatch: don't hard-code `' when listing valid option arguments
4853         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4854         use the quote function to add quotes.  Use fputs rather than
4855         fprintf for the format string with no format directive.
4856
4857 2011-12-07  Eric Blake  <eblake@redhat.com>
4858
4859         bootstrap: detect tools required by gnulib-tool
4860         * build-aux/bootstrap (buildreq): Provide minimum implicit
4861         dependencies.
4862         * DEPENDENCIES: Mention patch as a prereq.
4863
4864 2011-12-04  Bruno Haible  <bruno@clisp.org>
4865
4866         sethostname: Port to Windows platforms.
4867         * lib/sethostname.c: Provide an alternate implementation for Windows
4868         platforms.
4869         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4870         (main): Skip the test if sethostname() fails with EPERM. On Windows
4871         platforms, don't check the result of gethostname().
4872
4873 2011-12-04  Bruno Haible  <bruno@clisp.org>
4874             Jim Meyering  <meyering@redhat.com>
4875
4876         tests: Avoid spurious error message on platforms without mktemp program.
4877         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4878
4879 2011-12-04  Bruno Haible  <bruno@clisp.org>
4880
4881         sethostname: Fix documentation.
4882         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4883         "not fixed" section.
4884
4885 2011-12-03  Bruno Haible  <bruno@clisp.org>
4886
4887         gnulib-tool: Verify that the License field is present and non-empty.
4888         * gnulib-tool (func_get_license_raw): New function, extracted from
4889         func_get_license.
4890         (func_get_license): Use it. Warn if the module is not a test module and
4891         has no license.
4892         Suggested by Jim Meyering.
4893
4894 2011-12-03  Bruno Haible  <bruno@clisp.org>
4895
4896         sethostname tests: Fix link error on mingw.
4897         * tests/test-sethostname1.c: New file, extracted from
4898         tests/test-sethostname.c.
4899         * tests/test-sethostname2.c: New file, extracted from
4900         tests/test-sethostname.c.
4901         * tests/test-sethostname.c: Remove file.
4902         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4903         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4904         (Depends-on): Add gethostname.
4905         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4906         Link the latter with $(GETHOSTNAME_LIB).
4907
4908         sethostname tests: Fix compilation error on mingw.
4909         * tests/test-sethostname.c: Don't include <sys/types.h>.
4910         (geteuid): Use a dummy value without uid_t.
4911         * modules/sethostname-tests (Depends-on): Remove sys_types.
4912
4913         sethostname tests: Avoid a gcc warning.
4914         * tests/test-sethostname.c (main): Remove an unused variable.
4915
4916         Tweak last commit.
4917         * modules/sethostname-tests (Files): Sort by decreasing importance.
4918         (configure.ac): Check for geteuid.
4919         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4920         the test when there's nothing to test. Drop an unnecessary cast.
4921         Improve an error message. Verify that the final sethostname() call
4922         succeeds.
4923
4924 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4925
4926         Add a test suite for the sethostname module.
4927         * modules/sethostname-tests: New file.  A test program
4928         for the sethostname module.
4929         * tests/test-sethostname.c: Likewise.
4930
4931 2011-12-03  Bruno Haible  <bruno@clisp.org>
4932
4933         Tweak last commit.
4934         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4935         Fix preprocessor directives indentation. Fix typos.
4936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4937         * modules/unistd (Makefile): Likewise.
4938
4939 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4940
4941         Integrate the sethostname module into unistd.
4942         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4943         into the unistd.h header.
4944         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4945         preprocessor directives.
4946         * modules/unistd: Setup the Makefile substitutions of the
4947         SETHOSTNAME preprocessor directives.
4948
4949 2011-12-03  Bruno Haible  <bruno@clisp.org>
4950
4951         Tweak last commit.
4952         * lib/sethostname.c: Don't include <string.h>.
4953         (sethostname): No need to copy the argument string to the stack. Don't
4954         call clearerr. Preserve errno when fprintf failed.
4955         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4956         Don't invoke AC_REPLACE_FUNCS.
4957         * modules/sethostname (Link): Remove empty section.
4958         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4959         failure problem.
4960
4961 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4962
4963         New module 'sethostname'.
4964         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4965         for systems that lack it.
4966         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4967         sethostname declaration and function.
4968         * modules/sethostname: New file.  Define the sethostname module.
4969
4970 2011-12-03  Bruno Haible  <bruno@clisp.org>
4971
4972         Tweak last commit.
4973         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4974
4975 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4976
4977         Split the HOST_NAME_MAX detection into a separate m4 macro.
4978         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4979         macro so it can be used by the pending sethostname module.
4980
4981 2011-12-03  Bruno Haible  <bruno@clisp.org>
4982
4983         Fix module descriptions syntax.
4984         * modules/argv-iter (License): Fix syntax.
4985         * modules/di-set (License): Likewise.
4986         * modules/ino-map (License): Likewise.
4987         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4988
4989 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4990
4991         stdalign: port to Clang 3.0
4992         Problem reported by Simon Josefsson in
4993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4994         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4995         which has <stdalign.h> but which does not define alignof.
4996         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4997
4998 2011-12-01  Eric Blake  <eblake@redhat.com>
4999
5000         mktempd: silence dd usage
5001         * build-aux/mktempd (rand_bytes): Silence dd.
5002
5003 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5004
5005         manywarnings: Don't mention gcc version in docstring.
5006         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5007         Jim Meyering <meyering@redhat.com>.
5008
5009 2011-11-30  Jim Meyering  <meyering@redhat.com>
5010
5011         hash: mark a few floating point constants with "f" suffix
5012         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5013         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5014         floating point constants with "f", since they're destined to be
5015         saved/used as "float"s.
5016
5017 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5018
5019         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5020         * tests/test-float.c (test_long_double): Correct and re-enable the
5021         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5022
5023 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5024
5025         Avoid subtracting two pointers that don't point into the same block.
5026         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5027         only pointers into the same memory block are subtracted. We cannot
5028         assume that sizeof (ptrdiff_t) == sizeof (void *).
5029
5030 2011-11-29  Eric Blake  <eblake@redhat.com>
5031
5032         maint.mk: add syntax check for use of compare from init.sh
5033         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5034         moved here from coreutils.
5035
5036         manywarnings: drop -Wunsuffixed-float-constants
5037         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5038         '1.0D', which is the only way to silence this warning for 'double'.
5039
5040 2011-11-29  Jim Meyering  <meyering@redhat.com>
5041
5042         hash: mark compute_bucket_size with the pure attribute
5043         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5044
5045         quotearg, propername: correct pragma guard expression
5046         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5047         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5048
5049 2011-11-28  Jim Meyering  <meyering@redhat.com>
5050
5051         propername: do not mark proper_name with the const attribute
5052         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5053         since it examines data pointed to by its parameter.
5054         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5055         the suggestion from -Wsuggest-attribute=const.
5056
5057         propername: mark one more function as const
5058         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5059
5060 2011-11-27  Jim Meyering  <meyering@redhat.com>
5061
5062         mark functions with const and pure attributes
5063
5064         Mark functions per suggestions from gcc-4.6 when using these options:
5065         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5066         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5067         Follow these guidelines: when possible, apply the attribute to
5068         an extern declaration, not to its definition.  Apply it to the
5069         definition only when the definition is static.
5070         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5071         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5072         * lib/base64.h (isbase64): Likewise.
5073         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5074         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5075         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5076         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5077         (c_tolower, c_toupper): Likewise.
5078         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5079         * lib/chdir-long.c (find_non_slash): Likewise.
5080         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5081         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5082         * lib/file-type.h (file_type): Likewise.
5083         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5084         * lib/filevercmp.c (verrevcmp): Likewise.
5085         * lib/freadahead.h (freadahead): Likewise.
5086         * lib/fts.c (fts_maxarglen): Likewise.
5087         * lib/hash-pjw.h (hash_pjw): Likewise.
5088         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5089         * lib/hash.c (is_prime, next_prime): Likewise.
5090         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5091         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5092         (hash_table_ok, hash_get_first, hash_string): Likewise.
5093         (compute_bucket_size): Likewise.
5094         * lib/i-ring.h (i_ring_empty): Likewise.
5095         * lib/isnan.c (isnanl): Likewise.
5096         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5097         * lib/memcasecmp.h (memcasecmp): Likewise.
5098         * lib/memchr2.h (memchr2): Likewise.
5099         * lib/memcmp2.h (memcmp2): Likewise.
5100         * lib/parse-datetime.y (lookup_zone): Likewise.
5101         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5102         [!WINDOWS_SOCKETS]: Likewise.
5103         * lib/strnlen1.h (strnlen1): Likewise.
5104         * lib/uniwidth.in.h (uc_width): Likewise.
5105         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5106         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5107         (quoting_options_from_style): Add a comment.
5108         * lib/propername.h (proper_name): Add a comment.
5109
5110 2011-11-27  Bruno Haible  <bruno@clisp.org>
5111
5112         Remove unused macros from !_LIBC code in glibc-borrowed files.
5113         * lib/fnmatch.c (STRCOLL): Remove macro.
5114         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5115         * lib/glob.c (__stat, __readdir64): Remove macros.
5116         * lib/tempname.c (__open64, __xstat64): Remove macros.
5117         Suggested by Paul Eggert.
5118
5119 2011-11-27  Bruno Haible  <bruno@clisp.org>
5120
5121         getcwd: Fix link error on MSVC 9.
5122         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5123
5124 2011-11-27  Bruno Haible  <bruno@clisp.org>
5125
5126         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5127         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5128         HAVE_OPENDIR is 0.
5129         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5130         HAVE_CLOSEDIR is 0.
5131         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5132         is 0.
5133         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5134
5135 2011-11-27  Bruno Haible  <bruno@clisp.org>
5136
5137         getcwd: Fix bug from 2011-08-17.
5138         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5139         platforms that need it.
5140         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5141         code of 4 to be a failure, not a success. This ensures that
5142         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5143
5144 2011-11-27  Bruno Haible  <bruno@clisp.org>
5145
5146         binary-io tests: Avoid test failure on mingw when libtool is used.
5147         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5148         Don't verify the size of t-bin-out1.tmp here.
5149         * tests/test-binary-io.sh: Verify it here.
5150         Reported by Simon Josefsson.
5151
5152 2011-11-26  Bruno Haible  <bruno@clisp.org>
5153
5154         Fix conflict between two instantiations of module 'unistd'.
5155         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5156         ${include_guard_prefix} also in the autoconf snippet.
5157         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5159         GNULIB_UNISTD_H_GETOPT.
5160         * modules/getopt-posix (configure.ac): Set the
5161         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5162         * modules/getopt-gnu (configure.ac): Likewise.
5163         * modules/unistd (Makefile.am): Change the substitution value of
5164         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5165         Reported by Simon Josefsson.
5166
5167 2011-11-25  Bruno Haible  <bruno@clisp.org>
5168
5169         pagealign_alloc: Doc and comments.
5170         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5171         module.
5172         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5173
5174 2011-11-25  Jim Meyering  <meyering@redhat.com>
5175
5176         test-update-copyright.sh: avoid false-positive failure
5177         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5178         around false positive failure on Cygwin/Windows.  The latter was
5179         matching erroneously-created files with names like
5180         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5181
5182 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5183
5184         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5185         * m4/valgrind-tests.m4: Check that the parameters that will be
5186         used works, not just a subset of them.  Reported by Bruno Haible
5187         <bruno@clisp.org>.
5188
5189 2011-11-24  Jim Meyering  <meyering@redhat.com>
5190
5191         test-stdalign.c: comment out long double tests
5192         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5193         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5194         error: '_Alignas' specifiers cannot reduce alignment of \
5195         'static_longdouble_alignas'.
5196
5197 2011-11-22  Jim Meyering  <meyering@redhat.com>
5198
5199         init.sh: make "compare /dev/null FILE" output more readable
5200         * tests/init.sh (compare_): Document the preferred order of arguments.
5201         (emit_diff_u_header_): New function.
5202         (compare_dev_null_): Emit a simulated diff, rather than just the
5203         contents of the unexpected file.  Suggestion from Bruno Haible.
5204
5205 2011-11-21  Jim Meyering  <meyering@redhat.com>
5206             Eric Blake  <eblake@redhat.com>
5207
5208         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5209         * tests/init.sh: Make our compare function slightly more portable.
5210         Reported by Bruno Haible in
5211         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5212
5213 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5214
5215         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5216         before using it, in code that ends up in config.h.
5217
5218 2011-11-20  Bruno Haible  <bruno@clisp.org>
5219
5220         getcwd: Work around getcwd bug on AIX 5..7.
5221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5222         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5223         Use a different value for gl_cv_func_getcwd_path_max. Move the
5224         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5225         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5226         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5227         Define HAVE_MINIMALLY_WORKING_GETCWD.
5228         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5229         where it is not even minimally working, that is, on AIX.
5230         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5231         m4/getcwd-path-max.m4.
5232         (main): Update exit code computation.
5233         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5234         getcwd does not handle long file names.
5235
5236 2011-11-20  Bruno Haible  <bruno@clisp.org>
5237
5238         getcwd: Fix bug from 2009-09-10.
5239         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5240         like "no".
5241
5242 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5243
5244         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5245
5246 2011-11-20  Bruno Haible  <bruno@clisp.org>
5247
5248         fma tests: Avoid shadowing local variables.
5249         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5250         expected.
5251
5252 2011-11-20  Bruno Haible  <bruno@clisp.org>
5253
5254         copysignf tests: Fix.
5255         * tests/test-copysignf.c: Fix signature check.
5256
5257 2011-11-20  Bruno Haible  <bruno@clisp.org>
5258
5259         fma: Remove unused code.
5260         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5261         unused macros.
5262
5263 2011-11-20  Bruno Haible  <bruno@clisp.org>
5264
5265         sethostname: Fix doc about AIX.
5266         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5267         sethostname; it has it.
5268
5269         sethostname: Mention more portability problems.
5270         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5271         problem.
5272         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5273
5274 2011-11-19  Bruno Haible  <bruno@clisp.org>
5275
5276         Depend on module fcntl-h when AT_FDCWD is used.
5277         * modules/utimens (Depends-on): Add fcntl-h.
5278         * modules/areadlinkat (Depends-on): Likewise.
5279         * modules/areadlinkat-with-size (Depends-on): Likewise.
5280         * modules/faccessat (Depends-on): Likewise.
5281         * modules/fchmodat (Depends-on): Likewise.
5282         * modules/fchownat (Depends-on): Likewise.
5283         * modules/getcwd (Depends-on): Likewise.
5284         * modules/mkdirat (Depends-on): Likewise.
5285         * modules/mkfifoat (Depends-on): Likewise.
5286         * modules/readlinkat (Depends-on): Likewise.
5287         * modules/symlinkat (Depends-on): Likewise.
5288         * modules/dup2-tests (Depends-on): Likewise.
5289         * modules/fdutimensat-tests (Depends-on): Likewise.
5290         * modules/futimens-tests (Depends-on): Likewise.
5291
5292 2011-11-19  Bruno Haible  <bruno@clisp.org>
5293
5294         euidaccess: Update a comment.
5295         * lib/euidaccess.c: Update comment about platforms with faccessat.
5296
5297 2011-11-19  Bruno Haible  <bruno@clisp.org>
5298
5299         openat: Fix file list.
5300         * modules/openat (Files): Remove lib/at-func.c.
5301
5302 2011-11-19  Bruno Haible  <bruno@clisp.org>
5303
5304         fstatat: Simplify.
5305         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5306         gnulib should define rpl_fstatat, there is a
5307         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5308
5309 2011-11-19  Bruno Haible  <bruno@clisp.org>
5310
5311         Ensure 'inline' can be used in tests/test-utimens-common.h.
5312         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5313         * modules/futimens-tests (configure.ac): Likewise.
5314         * modules/utimens-tests (configure.ac): Likewise.
5315         * modules/utimensat-tests (configure.ac): Likewise.
5316
5317 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5318
5319         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5320         not hash_insert0.
5321         (hash_insert_if_absent): Doc fix.
5322
5323 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5324
5325         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5326
5327 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5328
5329         test-getcwd: disambiguate exit status
5330         * tests/test-getcwd.c (test_long_name): Return 0..7.
5331         (main): Exit with an unambiguous exit status.  The old
5332         code yielded a mysterious mixture of two failure codes.
5333
5334         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5335         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5336         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5337         rpl_fstatat or fstatat.  This should fix the other problem
5338         reported by Kai Habel in
5339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5340         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5342         and I reproduced it on a Solaris 8 host we still have in production.
5343
5344 2011-11-18  Jim Meyering  <meyering@redhat.com>
5345
5346         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5347         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5348         Add a sentence to the comment.
5349         (hash_insert0): New function that simply calls hash_insert_if_absent.
5350         * lib/hash.h (hash_insert_if_absent): Declare it.
5351         (hash_insert0): Add deprecation attribute.
5352         (_GL_ATTRIBUTE_DEPRECATED): Define.
5353         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5354         not hash_insert0.
5355         * NEWS: Mention it, even though it's not really an incompatible change.
5356
5357 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5358
5359         openat: avoid compilation failure due to lack of <errno.h> inclusion
5360         * lib/openat.c: Include <errno.h>.
5361
5362 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5363
5364         * modules/getcwd (Depends-on): Add fdopendir.
5365         This fixes one of the two problems reported by Kai Habel in
5366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5367
5368         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5369         stdalign problem reported by Ian Beckwith in
5370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5371         * modules/crypto/gc-arcfour (Depends-on):
5372         Depend conditionally on crypto/arcfour.
5373         * modules/crypto/gc-arctwo (Depends-on):
5374         Depend conditionally on crypto/arctwo.
5375         * modules/crypto/gc-des (Depends-on):
5376         Depend conditionally on crypto/des.
5377         * modules/crypto/gc-hmac-md5 (Depends-on):
5378         Depend conditionally on crypto/hmac-md5.
5379         * modules/crypto/gc-hmac-sha1 (Depends-on):
5380         Depend conditionally on crypto/hmac-sha1.
5381         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5382         * modules/crypto/gc-md4 (Depends-on):
5383         Depend conditionally on crypto/md4.
5384         * modules/crypto/gc-md5 (Depends-on):
5385         Depend conditionally on crypto/md5.
5386         * modules/crypto/gc-rijndael (Depends-on):
5387         Depend conditionally on crypto/rijndael.
5388         * modules/crypto/gc-sha1 (Depends-on):
5389         Depend conditionally on crypto/sha1.
5390         * modules/crypto/gc-arcfour:
5391         * modules/crypto/gc-arctwo:
5392         * modules/crypto/gc-des:
5393         * modules/crypto/gc-hmac-md5:
5394         * modules/crypto/gc-hmac-sha1:
5395         * modules/crypto/gc-md2:
5396         * modules/crypto/gc-md4:
5397         * modules/crypto/gc-md5:
5398         * modules/crypto/gc-rijndael:
5399         * modules/crypto/gc-sha1:
5400         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5401         now that the conditional dependencies do the work for us.
5402
5403 2011-11-17  Jim Meyering  <meyering@redhat.com>
5404
5405         tests: factor st_ctime-comparison out of two headers
5406         * tests/test-utimens-common.h (ctime_compare): Define.
5407         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5408         * tests/test-lutimens.h (test_lutimens): Likewise.
5409         * tests/test-utimens.h (test_utimens): Likewise.
5410
5411         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5412         Invoke the test program via an init.sh-using wrapper.
5413         * tests/test-getcwd.sh: New file.
5414         * modules/getcwd-tests (Files): Add it.
5415         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5416
5417 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5418
5419         gitlog-to-changelog: support multi-author commits.
5420         The FSF cares about keeping track of all authors of patches to its
5421         projects, but Git doesn't provide obvious support for multi-author
5422         changesets. Consensus seems to be forming around the use of extra
5423         Signed-off-by inspired lines in the log message formatted as
5424         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5425         multi-author commits between version control systems.
5426         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5427         log message and output in standard ChangeLog multi-author format.
5428         Reported by Peter Rosin <peda@lysator.liu.se>
5429
5430 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5431             Bruno Haible  <bruno@clisp.org>
5432
5433         Fix some modules' file list.
5434         * modules/fstatat (Files): Add m4/lstat.m4.
5435         * modules/openat (Files): Likewise.
5436         * modules/unlinkat (Files): Likewise.
5437
5438 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5439
5440         maint.mk: fix tight-scope.mk generation in VPATH builds.
5441         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5442         reference with $(srcdir) so that the file is found correctly even
5443         when running `make syntax-check' in a VPATH build.
5444
5445 2011-11-13  Bruno Haible  <bruno@clisp.org>
5446             Jim Meyering  <meyering@redhat.com>
5447
5448         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5449         * tests/init.sh (compare): Remove "No differences encountered" or
5450         synonymous output from the 'diff' program.
5451
5452 2011-11-13  Bruno Haible  <bruno@clisp.org>
5453
5454         Makefile: Tweak indentation.
5455         * Makefile: Use tab as first character in every line that contains rule
5456         commands.
5457
5458 2011-11-13  Bruno Haible  <bruno@clisp.org>
5459
5460         Syntax check for copyright statements.
5461         * check-copyright: New file.
5462         * Makefile (sc_check_copyright): New rule.
5463
5464 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5465
5466         * build-aux/git-version-gen: Add --prefix to configure the tag
5467         match string.
5468
5469 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5470
5471         * build-aux/git-version-gen: Add --help and --version.
5472
5473 2011-11-12  Jim Meyering  <meyering@redhat.com>
5474
5475         revamp the other test-exclude?.sh scripts to use init.sh, too
5476         * tests/test-exclude1.sh: Use init.sh.
5477         * tests/test-exclude2.sh: Likewise.
5478         * tests/test-exclude3.sh: Likewise.
5479         * tests/test-exclude4.sh: Likewise.
5480         * tests/test-exclude5.sh: Likewise.
5481         * tests/test-exclude6.sh: Likewise.
5482         * tests/test-exclude7.sh: Likewise.
5483         * tests/test-exclude8.sh: Likewise.
5484         * modules/exclude-tests (Files): List init.sh.
5485
5486         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5487         These shell scripts ignored failure of the binary test-exclude,
5488         so making the latter return 77 didn't cause them to be skipped.
5489         * tests/test-exclude5.sh: Exit with test-exclude's error status
5490         when that program fails.  Revamp to use init.sh.
5491         * tests/test-exclude2.sh: Likewise.
5492
5493         test-exclude: fix a typo
5494         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5495
5496 2011-11-11  Bruno Haible  <bruno@clisp.org>
5497
5498         obstack: Fix compilation error on MSVC 9.
5499         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5500
5501 2011-11-11  Jim Meyering  <meyering@redhat.com>
5502
5503         test-exclude: skip tests rather than failing on deficient systems
5504         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5505         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5506         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5507         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5508
5509 2011-11-10  Bruno Haible  <bruno@clisp.org>
5510
5511         ptsname_r test: Avoid gcc warning on glibc systems.
5512         * tests/test-ptsname_r.c (null_ptr): New function.
5513         (test_errors): Use it.
5514
5515 2011-11-10  Bruno Haible  <bruno@clisp.org>
5516
5517         ptsname_r: Avoid compilation error on OSF/1 5.1.
5518         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5520         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5521         function is not declared or incompatibly declared.
5522         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5523         * modules/ptsname_r (Depends-on, configure.ac): Update.
5524         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5525
5526 2011-11-10  Bruno Haible  <bruno@clisp.org>
5527
5528         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5529         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5530         When cross-compiling, guess yes on all platforms except AIX.
5531         Reported by Ludovic Courtès <ludo@gnu.org>.
5532
5533 2011-11-09  Bruno Haible  <bruno@clisp.org>
5534
5535         ptsname_r tests: Fix bugs.
5536         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5537         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5538
5539 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5540
5541         fstatat: work with cross-compilation
5542         Problem reported by Ludovic Courtès in
5543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5544         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5545         "cross-compiling" and assume the bug is present.  Replace
5546         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5547         an inverted sense, to be more conservative about our assumptions.
5548         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5549
5550 2011-11-09  Bruno Haible  <bruno@clisp.org>
5551
5552         Improve MODULES.html output.
5553         * modules/mkfifoat (Description): Use the word "function".
5554         * modules/readlinkat (Description): Likewise.
5555         * modules/symlinkat (Description): Likewise.
5556
5557 2011-11-09  Eric Blake  <eblake@redhat.com>
5558
5559         ptsname_r-tests: new test module
5560         * modules/ptsname_r-tests: New module.
5561         * tests/test-ptsname_r.c: New file.
5562
5563         ptsname_r: new module
5564         * modules/ptsname_r: New module.
5565         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5566         * lib/ptsname.c (__ptsname_r): Split...
5567         * lib/ptsname_r.c: ...into new file.
5568         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5569         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5570         * modules/stdlib (Makefile.am): Substitute witnesses.
5571         * lib/stdlib.in.h (ptsname_r): Declare it.
5572         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5573         * MODULES.html.sh (Misc): Likewise.
5574         * modules/ptsname (Depends-on): Alter dependency.
5575         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5576
5577 2011-11-09  Jim Meyering  <meyering@redhat.com>
5578
5579         announce-gen: be more concise when there's only one URL+tarball
5580         * build-aux/announce-gen (get_tool_versions): When you distribute
5581         only one type of tarball, combine the first two "Here are..."
5582         sections and make the key-checking grammar independent of
5583         how many tarballs there are.
5584
5585 2011-11-09  Eric Blake  <eblake@redhat.com>
5586
5587         openpty: provide a stub on mingw
5588         * lib/pty.in.h (includes): Provide forward declarations.
5589         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5590
5591         raise: fix mingw handling of SIGPIPE
5592         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5593
5594 2011-11-08  Bruno Haible  <bruno@clisp.org>
5595
5596         More conditional dependencies.
5597         * modules/faccessat (Depends-on): Add conditions.
5598         * modules/fchmodat (Depends-on): Likewise.
5599         * modules/fchownat (Depends-on): Likewise.
5600         * modules/fstatat (Depends-on): Likewise.
5601         * modules/mkfifoat (Depends-on): Likewise.
5602         * modules/readlinkat (Depends-on): Likewise.
5603         * modules/symlinkat (Depends-on): Likewise.
5604         * modules/unlinkat (Depends-on): Likewise.
5605         * modules/utimensat (Depends-on): Likewise.
5606         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5607         * modules/linkat (Depends-on): Refine the conditions.
5608         * modules/renameat (Depends-on): Likewise.
5609
5610 2011-11-08  Bruno Haible  <bruno@clisp.org>
5611
5612         faccessat: Move AC_LIBOBJ invocation to module description.
5613         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5614         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5615         invocation from here...
5616         * modules/faccessat (configure.ac): ... to here. Invoke
5617         gl_PREREQ_FACCESSAT.
5618
5619 2011-11-08  Bruno Haible  <bruno@clisp.org>
5620
5621         faccessat: Simplify autoconf macro.
5622         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5623         gl_FUNC_EUIDACCESS.
5624
5625 2011-11-08  Bruno Haible  <bruno@clisp.org>
5626
5627         renameat: Fix dependencies.
5628         * modules/renameat (Depends-on): Add stdbool.
5629
5630 2011-11-08  Bruno Haible  <bruno@clisp.org>
5631
5632         mkfifoat: Fix module description.
5633         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5634         not gl_UNISTD_MODULE_INDICATOR.
5635
5636 2011-11-08  Bruno Haible  <bruno@clisp.org>
5637
5638         fstatat: Remove unused dependency.
5639         * modules/fstatat (Depends-on): Remove fstat.
5640
5641 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5642
5643         GNUmakefile: behave when Makefile is missing.
5644         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5645
5646 2011-11-08  Bruno Haible  <bruno@clisp.org>
5647
5648         openat: Conditionalize dependencies.
5649         * lib/openat.c: Reduce the scope of some #includes.
5650         * modules/openat (Depends-on): Add conditions.
5651
5652 2011-11-07  Jim Meyering  <meyering@redhat.com>
5653
5654         maint.mk: extract GPG key ID without using a temporary file
5655         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5656         without using a temporary file.  Based on a suggestion from Werner Koch
5657         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5658
5659 2011-11-07  Eric Blake  <eblake@redhat.com>
5660
5661         grantpt: fix typo
5662         * lib/stdlib.in.h (grantpt): Check correct function.
5663
5664         maint.mk: silence new syntax check
5665         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5666
5667 2011-11-06  Bruno Haible  <bruno@clisp.org>
5668
5669         Doc about floating-point and math API.
5670         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5671         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5672
5673 2011-11-06  Bruno Haible  <bruno@clisp.org>
5674
5675         stdalign tests: Skip the test when compiled by Sun C.
5676         * tests/test-stdalign.c (main): Skip the test on Sun C.
5677
5678 2011-11-06  Bruno Haible  <bruno@clisp.org>
5679
5680         ansi-c++-opt: Complete the 2011-06-05 change.
5681         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5682         does not support namespaces, set the variable to "no", not to ":".
5683
5684 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5685
5686         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5687
5688 2011-11-06  Bruno Haible  <bruno@clisp.org>
5689
5690         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5691         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5692         (minus_zerol) [HP-UX]: New macro.
5693         (unary_minus) [HP-UX]: New function.
5694         (copysignl) [HP-UX]: Use unary_minus function.
5695
5696 2011-11-06  Bruno Haible  <bruno@clisp.org>
5697
5698         ldexp, ldexpf, ldexpl: Enhance tests.
5699         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5700         and tests/test-ldexpl.c.
5701         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5702         LDEXP, MIN_EXP, MAX_EXP): New macros.
5703         Include test-ldexp.h.
5704         (main): Just call test_function.
5705         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5706         infinity.h, nan.h.
5707         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5708         MAX_EXP): New macros.
5709         Include test-ldexp.h.
5710         (x, y): Remove variables.
5711         (main): Just call test_function.
5712         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5713         infinity.h, nan.h.
5714         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5715         MAX_EXP): New macros.
5716         Include test-ldexp.h.
5717         (x, y): Remove variables.
5718         (main): Just call test_function.
5719         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5720         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5721         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5722         (Depends-on): Add isnand-nolibm, signbit, float.
5723         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5724         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5725         (Depends-on): Add isnanf-nolibm, signbit, float.
5726
5727 2011-11-06  Bruno Haible  <bruno@clisp.org>
5728
5729         math tests: Cosmetics.
5730         * tests/test-math-c++.cc: Reorder declarations.
5731
5732 2011-11-05  Bruno Haible  <bruno@clisp.org>
5733
5734         fma*: Simplify test.
5735         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5736         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5737
5738         Tests for module 'fmal'.
5739         * modules/fmal-tests: New file.
5740         * tests/test-fmal1.c: New file.
5741         * tests/test-fmal2.c: New file.
5742
5743         New module 'fmal'.
5744         * lib/math.in.h (fmal): New declaration.
5745         * lib/fmal.c: New file.
5746         * m4/fmal.m4: New file.
5747         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5749         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5750         REPLACE_FMAL.
5751         * modules/fmal: New file.
5752         * doc/posix-functions/fmal.texi: Mention the new module and the various
5753         bugs.
5754
5755         Tests for module 'fmaf'.
5756         * modules/fmaf-tests: New file.
5757         * tests/test-fmaf1.c: New file.
5758         * tests/test-fmaf2.c: New file.
5759
5760         New module 'fmaf'.
5761         * lib/math.in.h (fmaf): New declaration.
5762         * lib/fmaf.c: New file.
5763         * m4/fmaf.m4: New file.
5764         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5766         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5767         REPLACE_FMAF.
5768         * modules/fmaf: New file.
5769         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5770         bugs.
5771
5772         Tests for module 'fma'.
5773         * modules/fma-tests: New file.
5774         * tests/test-fma1.c: New file.
5775         * tests/test-fma1.h: New file.
5776         * tests/test-fma2.c: New file.
5777         * tests/test-fma2.h: New file.
5778
5779         New module 'fma'.
5780         * lib/math.in.h (fma): New declaration.
5781         * lib/fma.c: New file.
5782         * m4/fma.m4: New file.
5783         * m4/fegetround.m4: New file.
5784         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5786         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5787         REPLACE_FMA.
5788         * modules/fma: New file.
5789         * doc/posix-functions/fma.texi: Mention the new module and the various
5790         bugs.
5791
5792         Extend gl_MATHFUNC.
5793         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5794         Support 'void' as argument type.
5795         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5796
5797 2011-11-05  Jim Meyering  <meyering@redhat.com>
5798
5799         maint.mk: also prohibit inclusion of dirent.h without use
5800         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5801
5802 2011-11-05  Bruno Haible  <bruno@clisp.org>
5803
5804         ldexpl tests: Avoid test failure on MSVC 9.
5805         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5806         value. Needed in order to enforce the conversion from a value greater
5807         than LDBL_MAX to Infinity.
5808
5809 2011-11-05  Bruno Haible  <bruno@clisp.org>
5810
5811         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5812         * modules/at-internal: New file, extracted from modules/openat.
5813         * modules/openat-h: New file.
5814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5815         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5816         * modules/openat (Description): Add reference to POSIX function.
5817         (Files): Remove lib/openat.h, lib/openat-proc.c.
5818         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5819         intprops, unistd.
5820         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5821         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5822         gl_FCNTL_MODULE_INDICATOR.
5823         (Include): Remove unistd.h, openat.h.
5824         * modules/areadlinkat (Files): Add lib/at-func.c.
5825         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5826         openat-die, openat-h, save-cwd.
5827         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5828         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5829         openat-die, openat-h, save-cwd, unistd.
5830         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5831         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5832         openat-h, save-cwd. Remove fcntl-h, openat.
5833         * modules/fchmodat (Files): Remove lib/openat.h.
5834         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5835         openat, stdbool, unistd.
5836         * modules/fchownat (Files): Remove lib/openat.h.
5837         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5838         openat, stdbool, sys_stat.
5839         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5840         lib/openat-proc.c.
5841         (Depends-on): Add at-internal.
5842         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5843         * modules/fstatat (Files): Remove lib/openat.h.
5844         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5845         stdbool, unistd.
5846         * modules/fts (Depends-on): Add openat-h.
5847         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5848         openat.
5849         * modules/mkdirat (Files): Remove lib/openat.h.
5850         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5851         openat, stdbool, sys_stat.
5852         * modules/mkfifoat (Files): Add lib/at-func.c.
5853         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5854         openat-h, save-cwd. Remove fcntl-h, openat.
5855         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5856         * modules/readlinkat (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/renameat (Depends-on): Add at-internal, openat-h. Remove
5860         openat.
5861         * modules/selinux-at (Files): Add lib/at-func.c.
5862         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5863         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5864         * modules/symlinkat (Files): Add lib/at-func.c.
5865         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5866         openat-h, save-cwd. Remove fcntl-h, openat.
5867         * modules/unlinkat (Files): Remove lib/openat.h.
5868         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5869         stdbool.
5870         * modules/utimensat (Files): Add lib/at-func.c.
5871         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5872         openat-die, openat-h, save-cwd.
5873         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5874         * modules/fdutimensat-tests (Depends-on): Add openat.
5875         * modules/fstatat-tests (Depends-on): Add openat-h.
5876         * modules/readlinkat-tests (Depends-on): Add openat.
5877         * modules/symlinkat-tests (Depends-on): Add openat.
5878
5879 2011-11-05  Bruno Haible  <bruno@clisp.org>
5880
5881         openat: Include <stdbool.h>.
5882         * lib/openat.c: Include <stdbool.h>.
5883
5884 2011-11-04  Bruno Haible  <bruno@clisp.org>
5885
5886         fchownat, renameat, unlinkat: Fix dependencies.
5887         * modules/fchownat (Depends-on): Add fstatat.
5888         * modules/renameat (Depends-on): Likewise.
5889         * modules/unlinkat (Depends-on): Likewise.
5890
5891 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5892
5893         openat: remove direct dependency on dirent
5894         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5895         and hasn't been needed ever since fdopendir was split into its own
5896         module on 2009-08-31.
5897         * modules/openat (Depends-on): Remove dirent.
5898
5899 2011-11-04  Bruno Haible  <bruno@clisp.org>
5900
5901         renameat: Optimize code size.
5902         * modules/renameat (configure.ac): Don't compile at-func2.c if
5903         REPLACE_RENAMEAT is 1.
5904
5905 2011-11-04  Bruno Haible  <bruno@clisp.org>
5906
5907         openat tests: Fix file list.
5908         * modules/openat-tests (Files): Add tests/test-open.h.
5909
5910 2011-11-04  Bruno Haible  <bruno@clisp.org>
5911
5912         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5913         * modules/fchmodat (Depends-on): Add openat-die.
5914         * modules/fchownat (Depends-on): Likewise.
5915         * modules/linkat (Depends-on): Likewise.
5916         * modules/renameat (Depends-on): Likewise.
5917         * modules/openat (Depends-on): Add dirent.
5918
5919 2011-11-04  Jim Meyering  <meyering@redhat.com>
5920
5921         at-func*.c: fix comments
5922         * lib/at-func2.c: Correct/improve first-line comment.
5923         * lib/at-func.c: Correct grammar in first-line comment.
5924
5925 2011-11-04  Bruno Haible  <bruno@clisp.org>
5926
5927         New module 'mkdirat', split off from module 'openat'.
5928         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5929         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5930         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5931         * modules/mkdirat: New file, extracted from modules/openat.
5932         * modules/openat (Files): Remove lib/mkdirat.c.
5933         (Depends-on): Remove mkdir.
5934         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5935         (Include): Remove <sys/stat.h>.
5936         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5937         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5938         tests/test-mkdir.h.
5939         (Depends-on): Remove ignore-value.
5940         (Makefile.am): Remove rules for test-mkdirat.
5941         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5942         of module 'openat'.
5943         * NEWS: Mention the change.
5944
5945 2011-11-04  Bruno Haible  <bruno@clisp.org>
5946
5947         closedir: Avoid warning on mingw.
5948         * lib/closedir.c: Include <unistd.h>.
5949
5950 2011-11-04  Bruno Haible  <bruno@clisp.org>
5951
5952         New module 'fstatat', split off from module 'openat'.
5953         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5954         defined.
5955         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5956         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5957         gl_FUNC_FSTATAT.
5958         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5959         * modules/fstatat: New file, extracted from modules/openat.
5960         * modules/openat (Files): Remove lib/fstatat.c.
5961         (Depends-on): Remove lstat.
5962         (configure.ac): Remove AC_LIBOBJ of fstatat.
5963         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5964         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5965         tests/test-lstat.h, tests/test-stat.h.
5966         (Depends-on): Remove getcwd-lgpl.
5967         (Makefile.am): Remove rules for test-fstatat.
5968         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5969         of module 'openat'.
5970         * NEWS: Mention the change.
5971         * modules/getcwd (Depends-on): Add fstatat.
5972         * modules/linkat (Depends-on): Likewise.
5973         * modules/mkfifoat-tests (Depends-on): Likewise.
5974         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5975
5976 2011-11-03  Bruno Haible  <bruno@clisp.org>
5977
5978         New module 'unlinkat', split off from module 'openat'.
5979         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5980         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5981         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5982         * modules/unlinkat: New file, extracted from modules/openat. Correct
5983         the dependency conditions.
5984         * modules/openat (Files): Remove lib/unlinkat.c.
5985         (Depends-on): Remove rmdir, unlink.
5986         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5987         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5988         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5989         tests/test-rmdir.h, tests/test-unlink.h.
5990         (Depends-on): Remove unlinkdir.
5991         (Makefile.am): Remove rules for test-unlinkat.
5992         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5993         of module 'openat'.
5994         * NEWS: Mention the change.
5995         * modules/linkat-tests (Depends-on): Add unlinkat.
5996         * modules/mkfifoat-tests (Depends-on): Likewise.
5997         * modules/readlinkat-tests (Depends-on): Likewise.
5998
5999 2011-11-02  Bruno Haible  <bruno@clisp.org>
6000
6001         New module 'fchmodat', split off from module 'openat'.
6002         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6003         defined.
6004         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6005         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6006         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6007         * modules/fchmodat: New file, extracted from modules/openat.
6008         * modules/openat (Files): Remove lib/fchmodat.c.
6009         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6010         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6011         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6012         (Makefile.am): Remove rules for test-fchmodat.
6013         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6014         of module 'openat'.
6015         * NEWS: Mention the change.
6016
6017 2011-11-02  Jim Meyering  <meyering@redhat.com>
6018
6019         putenv: indent #definition of "environ" to placate cppi
6020         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6021
6022         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6023         Git logs are often treated as immutable, because editing them
6024         changes the SHA1 checksums of all descendants.  Thus, errors in
6025         git logs tend to stay there forever.  However, when we generate
6026         a ChangeLog file -- typically for distribution -- from that git log,
6027         we can actually make corrections in the generated file.  The key
6028         lies in recording in machine-readable/applicable form the desired
6029         corrections.  See --help for description and an example.
6030         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6031         (usage): Describe it; alphabetize option descriptions.
6032         (main): Honor the new option, carefully.
6033
6034 2011-11-01  Jim Meyering  <meyering@redhat.com>
6035
6036         gitlog-to-changelog: avoid an infloop
6037         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6038         that ends up being empty.
6039
6040 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6041
6042         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6043         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6044         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6045         contains (possibly-quoted) backslashes.  This should avoid
6046         all-too-common shell bugs if COMPLICATED contains backslashes in
6047         the "wrong" places.  Reported by David Evans in
6048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6049         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6050         because we want ASCII ranges.  Is there some reason we don't use
6051         the C locale everywhere in this script?
6052         (func_module, top level): Avoid unwanted pathname expansion when
6053         $repo_url_prefix or $repo_url_suffix_repl contain shell
6054         metacharacters like '?' and '*'.
6055
6056 2011-11-01  Bruno Haible  <bruno@clisp.org>
6057
6058         fchownat: Improve description.
6059         * modules/fchownat (Description): Add link to function.
6060
6061 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6062
6063         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6064         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6066         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6067
6068 2011-11-01  Bruno Haible  <bruno@clisp.org>
6069
6070         alignof: Avoid collision with stdalign module.
6071         * lib/alignof.h (alignof): Remove macro.
6072         * NEWS: Mention the change.
6073         Reported by Paul Eggert.
6074
6075 2011-11-01  Bruno Haible  <bruno@clisp.org>
6076
6077         New module 'fchownat', split off from module 'openat'.
6078         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6079         defined.
6080         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6081         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6082         invoke gl_FUNC_FCHOWNAT.
6083         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6084         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6085         * modules/fchownat: New file, extracted from modules/openat.
6086         * modules/openat (Files): Remove lib/fchownat.c.
6087         (Depends-on): Remove lchown.
6088         (configure.ac): Remove AC_LIBOBJ of fchownat.
6089         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6090         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6091         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6092         (Depends-on): Remove mgetgroups, usleep, stat-time.
6093         (configure.ac): Remove test for getegid.
6094         (Makefile.am): Remove rules for test-fchownat.
6095         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6096         of module 'openat'.
6097         * NEWS: Mention the change.
6098
6099 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6100
6101         stdalign: port better to MSVC and to Sun C 5.11
6102         This fixes some of the problems reported by Bruno Haible in
6103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6104         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6105         shortcomings of MSVC and of Sun C 5.11.
6106         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6107         around __declspec arg.
6108         * modules/stdalign-tests (Files): Add tests/macros.h.
6109         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6110         Include macros.h, for ASSERT.
6111         (DECLARE_ALIGNED): Remove.
6112         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6113         to catch bug), and to 1 if not (simplifies the rest of the code).
6114         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6115         (CHECK_AUTO): Remove.
6116         (CHECK_ALIGNED): Check only the alignment of the static vars,
6117         since auto var alignment isn't supported by Sun C 5.11.
6118         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6119         ASSERT failures are easier to diagnose.
6120
6121 2011-10-31  Bruno Haible  <bruno@clisp.org>
6122
6123         doc about some IRIX 5.3 problems.
6124         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6125         on IRIX 5.3.
6126         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6127         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6128         5.3.
6129         * doc/posix-functions/grantpt.texi: Likewise.
6130         * doc/posix-functions/unlockpt.texi: Likewise.
6131         * doc/posix-functions/lgamma.texi: Likewise.
6132         * doc/posix-functions/nextafter.texi: Likewise.
6133         * doc/posix-functions/remainder.texi: Likewise.
6134         * doc/posix-functions/select.texi: Mention misplaced declaration on
6135         IRIX 5.3.
6136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6137
6138 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6139
6140         gitlog-to-changelog: fix git-log invocation.
6141         git-log mishandles date strings before 1970-01-01 UTC, and there is
6142         no use to specify --since=1970-01-01 by default anyway.
6143         * build-aux/gitlog-to-changelog: By default, when no --since option
6144         was given, do not specify explicit --since option to git-log.
6145
6146 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6147
6148         gitlog-to-changelog: new option --append-dot.
6149         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6150         first non-blank line of each commit message terminated with a dot.
6151
6152 2011-10-30  Bruno Haible  <bruno@clisp.org>
6153
6154         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6155         * lib/ffsl.h: Include <config.h>.
6156         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6157
6158 2011-10-30  Jim Meyering  <meyering@redhat.com>
6159
6160         GNUmakefile: reenable "make syntax-check" for most projects
6161         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6162         build-aux variable", "syntax-check" would do nothing but succeed with
6163         the "No version control files detected..." diagnostic (unless you
6164         happened to override _build-aux via cfg.mk).
6165         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6166         to precede inclusion of maint.mk.  Otherwise, these variables would
6167         be used undefined in any project that does not override the default.
6168
6169 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6170
6171         gitlog-to-changelog: treat a message with only blank lines as empty.
6172         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6173         trailing blank lines before the code that issues a warning about an
6174         empty commit message.
6175
6176 2011-10-30  Jim Meyering  <meyering@redhat.com>
6177
6178         test-parse-datetime.c: avoid new DST-related false positive test failure
6179         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6180         based on the time/date we'll convert, not the current time.
6181         Otherwise, the moment we cross a DST boundary like today's in
6182         Europe, (CEST to CET), that offset ends up being one hour off.
6183
6184 2011-10-27  Bruno Haible  <bruno@clisp.org>
6185
6186         fstat: Tweak documentation.
6187         * modules/fstat (Description): More precise description.
6188
6189 2011-10-27  Bruno Haible  <bruno@clisp.org>
6190
6191         Update documentation regarding 'largefile' module.
6192         * doc/posix-functions/fstat.texi: Tweak wording.
6193         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6194         problems with huge directories and/or small ino_t types.
6195         * doc/posix-functions/readdir.texi: Likewise.
6196         * doc/posix-functions/rewinddir.texi: Likewise.
6197
6198 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6199
6200         maint.mk: don't maintain a second build-aux variable.
6201         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6202         depends on GNUmakefile, which already maintains a cfg.mk
6203         overridable $(_build-aux) for projects with a non-standard
6204         build-aux directory location, although without the $(srcdir)
6205         prefix.  Use that variable consistently instead of introducing a
6206         second one.  Adjust all call sites.
6207
6208 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6209
6210         Add stdalign module and use it in other modules.
6211         This is based on a previous proposal by Bruno Haible
6212         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6213
6214         stdalign: new module
6215         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6216         * modules/stdalign: New files.
6217         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6218         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6219
6220         stdalign-tests: new module
6221         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6222
6223         argp: use stdalign
6224         * lib/argp-parse.c: Include <stdalign.h>.
6225         (alignof): Remove.
6226         * modules/argp (Depends-on): Add stdalign.
6227
6228         crypto libraries: use stdalign
6229         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6230         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6231         Do not include <stdlib.h> twice, in md4.c.
6232         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6233         because we are accessing a pointer's bit-pattern, not a size.
6234         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6235         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6236         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6237         * modules/crypto/sha512: Likewise.
6238
6239         sys_socket: use stdalign, not alignof
6240         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6241         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6242
6243 2011-10-27  Bruno Haible  <bruno@clisp.org>
6244
6245         raise test: Avoid a test failure on Linux/MIPS.
6246         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6247         because 99 is a valid signal on Linux/MIPS.
6248
6249 2011-10-27  Bruno Haible  <bruno@clisp.org>
6250
6251         nonblocking tests: Fix test failure on Linux/MIPS.
6252         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6253         Set to 270000.
6254
6255 2011-10-27  Bruno Haible  <bruno@clisp.org>
6256
6257         utimensat: Work around problem on Linux/hppa.
6258         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6259         values.
6260         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6261
6262 2011-10-25  Jim Meyering  <meyering@redhat.com>
6263
6264         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6265         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6266         after symbols like NULL, size_t, etc.
6267         Reported by Alfred M. Szmidt.
6268
6269         maint.mk: exempt ENODATA from a syntax-check rule
6270         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6271         from the sc_prohibit_always-defined_macros syntax-check rule.
6272         Add a comment.  See this for more details:
6273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6274
6275 2011-10-23  Jim Meyering  <meyering@redhat.com>
6276
6277         fts: close parent dir FD before returning from post-traversal fts_read
6278         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6279         unlink A, even though an FD open on A remained.  This is suboptimal
6280         (holding a file descriptor open longer than needed), but otherwise not
6281         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6282         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6283         that represents a real problem: it causes the removal of A to fail
6284         with e.g., "rm: cannot remove `A': Device or resource busy"
6285
6286         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6287         directory file descriptors.  After completing the final, FTS_DP,
6288         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6289         cache, but then proceeded to add a new FD to it via the subsequent
6290         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6291         final file descriptor would be closed only via fts_close's call to
6292         fd_ring_clear.  Now, it is usually closed earlier, via the final
6293         FTS_DP-returning fts_read call.
6294         * lib/fts.c (restore_initial_cwd): New function, converted from
6295         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6296         Update callers.
6297         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6298         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6299
6300 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6301             Bruno Haible  <bruno@clisp.org>
6302             Jim Meyering  <jim@meyering.net>
6303
6304         readme-release: improve safety of release prep instructions.
6305         * README-release: Don't git pull all branches when only master
6306         is needed for the release process.
6307         Run make maintainer-clean before changing trees and merging.
6308         Don't try to run ./configure right after git pull in case files
6309         that influence the bootstrap process have changed, move the
6310         ./configure step to after running ./bootstrap.
6311         Don't bootstrap "one last time"... it's the first time!
6312
6313 2011-10-22  Bruno Haible  <bruno@clisp.org>
6314
6315         errno, strerror-override: Support for MSVC 10.
6316         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6317         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6318         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6319         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6320         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6321         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6322         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6323         Assign values compatible with MSVC 10.
6324         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6325         New macros.
6326         (GNULIB_defined_EWINSOCK): New macro.
6327         * lib/strerror-override.c (strerror_override): Update accordingly.
6328         * lib/strerror-override.h: Likewise.
6329         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6330         longer equal to the corresponding errno value.
6331         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6332
6333 2011-10-22  Bruno Haible  <bruno@clisp.org>
6334
6335         perror: Recognize when test program crashes.
6336         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6337         strerror, set gl_cv_func_perror_works to no.
6338         Reported by Daniel Richard G. <skunk@iskunk.org>.
6339
6340         perror: Fix indentation.
6341         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6342
6343 2011-10-22  Bruno Haible  <bruno@clisp.org>
6344
6345         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6346         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6347         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6348         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6349         functions, not as a macro.
6350         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6351         macros.
6352         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6353         absence of macro.
6354         Suggested by Eric Blake.
6355         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6356
6357 2011-10-21  Bruno Haible  <bruno@clisp.org>
6358
6359         relocatable-prog-wrapper: Don't leave object files behind.
6360         * build-aux/install-reloc: Re-synchronize list of .o files to be
6361         removed with list of compilation units.
6362
6363 2011-10-20  Bruno Haible  <bruno@clisp.org>
6364
6365         openpty, posix_openpt: Remove code duplication.
6366         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6367         * lib/openpty.c: Include <stdlib.h>.
6368         (openpty): Use posix_openpt on all platforms except IRIX.
6369         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6370
6371 2011-10-20  Bruno Haible  <bruno@clisp.org>
6372
6373         unlockpt: Detect invalid argument.
6374         * lib/unlockpt.c: Include <fcntl.h>.
6375         (unlockpt): Check whether fd is valid, using fcntl().
6376         * modules/unlockpt (Depends-on): Add fcntl-h.
6377
6378 2011-10-20  Bruno Haible  <bruno@clisp.org>
6379
6380         openpty: Avoid compilation error on AIX 6.1.
6381         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6382
6383 2011-10-20  Bruno Haible  <bruno@clisp.org>
6384
6385         posix_openpt: Support for OpenBSD.
6386         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6387         (posix_openpt) [OpenBSD]: New code.
6388         * lib/grantpt.c: Include <fcntl.h>.
6389         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6390         * modules/grantpt (Depends-on): Add fcntl-h.
6391
6392 2011-10-20  Bruno Haible  <bruno@clisp.org>
6393
6394         posix_openpt test: Coding style.
6395         * tests/test-posix_openpt.c: Use GNU coding style.
6396
6397 2011-10-20  Bruno Haible  <bruno@clisp.org>
6398
6399         grantpt: Support --avoid=pt_chown.
6400         * modules/grantpt (Files): Add lib/pty-private.h.
6401
6402 2011-10-20  Bruno Haible  <bruno@clisp.org>
6403
6404         posix_openpt: Fix autoconf macro.
6405         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6406         unneeded check for _getpty.
6407
6408 2011-10-20  Bruno Haible  <bruno@clisp.org>
6409
6410         openpty: Update comments.
6411         * lib/openpty.c: Add comments about Minix.
6412
6413 2011-10-19  Eric Blake  <eblake@redhat.com>
6414
6415         openpty: relax license
6416         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6417
6418         pt_chown: use configmake to simplify build
6419         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6420
6421         ptsname and others: relax license
6422         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6423         * modules/unlockpt (License): Likewise.
6424         * modules/pt_chown (License): Likewise.
6425         * modules/ptsname (License): Likewise.
6426         * modules/ttyname_r (License): Likewise.
6427
6428 2011-10-19  Jim Meyering  <meyering@redhat.com>
6429
6430         posix_openpt: remove spurious #endif
6431         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6432
6433 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6434
6435         maint.mk: Respect $(build_aux) in web-manual rule.
6436         * top/maint.mk (web-manual): Find gen-announce script in user's
6437         $(build_aux) directory instead of hard-coding 'build-aux'.
6438
6439 2011-10-19  Bruno Haible  <bruno@clisp.org>
6440
6441         posix_openpt: Fix compilation error.
6442         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6443         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6444         Mention the openpty module as an alternative.
6445
6446 2011-10-19  Bruno Haible  <bruno@clisp.org>
6447
6448         Support for old NeXTstep 3.3 frexp().
6449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6450         execution time of the test to 5 seconds.
6451         Reported by Daniel Richard G. <skunk@iskunk.org>.
6452
6453 2011-10-19  Bruno Haible  <bruno@clisp.org>
6454
6455         Support for old NeXTstep 3.3 sed.
6456         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6457         part, use /.../, not \|...|. Escape periods in the header file name.
6458         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6459         Reported by Daniel Richard G. <skunk@iskunk.org>.
6460
6461 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6462
6463         Support for old NeXTstep 3.3 gcc.
6464         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6465         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6466         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6467         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6468         * lib/regex.h (_Restrict_arr_): Likewise.
6469         * lib/regex_internal.h (re_token_t): Likewise.
6470         * lib/regexec.c (check_node_accept_bytes): Likewise.
6471         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6472
6473 2011-10-18  Eric Blake  <eblake@redhat.com>
6474
6475         posix_openpt: new module
6476         * modules/posix_openpt: New module.
6477         * m4/posix_openpt.m4: New file.
6478         * lib/posix_openpt.c: Likewise.
6479         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6480         (gl_STDLIB_H_DEFAULTS): Set defaults.
6481         * modules/stdlib (Makefile.am): Substitute macros.
6482         * lib/stdlib.in.h (posix_openpt): Declare.
6483         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6484         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6485         * modules/posix_openpt-tests: New test module.
6486         * tests/test-posix_openpt.c: New test.
6487
6488 2011-10-15  Bruno Haible  <bruno@clisp.org>
6489
6490         xstrtoll: Fix compilation failure.
6491         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6492         from lib/strtol.c.
6493         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6494         some platforms.
6495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6496
6497 2011-10-15  Bruno Haible  <bruno@clisp.org>
6498
6499         vasnprintf: Optimize bit search operation.
6500         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6502         gl_DOUBLE_EXPONENT_LOCATION.
6503         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6504         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6505         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6506         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6507         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6508         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6509         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6510         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6511         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6512
6513 2011-10-15  Bruno Haible  <bruno@clisp.org>
6514
6515         vasnprintf: Fix comments.
6516         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6517
6518 2011-10-14  Bruno Haible  <bruno@clisp.org>
6519
6520         Tests for module 'integer_length_ll'.
6521         * modules/integer_length_ll-tests: New file.
6522         * tests/test-integer_length_ll.c: New file.
6523
6524         New module 'integer_length_ll'.
6525         * lib/integer_length_ll.c: New file.
6526         * modules/integer_length_ll: New file.
6527
6528 2011-10-14  Bruno Haible  <bruno@clisp.org>
6529
6530         Tests for module 'integer_length_l'.
6531         * modules/integer_length_l-tests: New file.
6532         * tests/test-integer_length_l.c: New file.
6533
6534         New module 'integer_length_l'.
6535         * lib/integer_length_l.c: New file.
6536         * modules/integer_length_l: New file.
6537
6538 2011-10-14  Bruno Haible  <bruno@clisp.org>
6539
6540         Tests for module 'integer_length'.
6541         * modules/integer_length-tests: New file.
6542         * tests/test-integer_length.c: New file.
6543
6544         New module 'integer_length'.
6545         * lib/integer_length.h: New file.
6546         * lib/integer_length.c: New file.
6547         * modules/integer_length: New file.
6548
6549 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6550
6551         popen: Fix dependency conditions.
6552         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6553
6554 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6555
6556         perror: Fix autoconf test.
6557         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6558         <stdlib.h> and <string.h>.
6559
6560 2011-10-14  Bruno Haible  <bruno@clisp.org>
6561
6562         ffsl: Optimize on 64-bit platforms.
6563         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6564         unrolling.
6565
6566 2011-10-13  Bruno Haible  <bruno@clisp.org>
6567
6568         ffsl: Optimize on 32-bit platforms.
6569         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6570         use ffs() without a loop.
6571
6572         ffsl, ffsll: Optimize for GCC.
6573         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6574         * lib/ffsl.c (GCC_BUILTIN): New macro.
6575         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6576
6577 2011-10-13  Bruno Haible  <bruno@clisp.org>
6578
6579         ffs, bcopy, memset: Support symbol renaming via config.h.
6580         * lib/ffs.c: Include <config.h>.
6581         * lib/bcopy.c: Likewise.
6582         * lib/memset.c: Likewise.
6583
6584 2011-10-10  Bruno Haible  <bruno@clisp.org>
6585
6586         atanl: Simplify for platforms where 'long double' == 'double'.
6587         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6588         alternative implementation.
6589         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6590         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6591         * modules/atanl (Depends-on): Add atan. Update conditions.
6592
6593 2011-10-10  Bruno Haible  <bruno@clisp.org>
6594
6595         acosl: Simplify for platforms where 'long double' == 'double'.
6596         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6597         alternative implementation.
6598         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6599         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6600         * modules/acosl (Depends-on): Add acos. Update conditions.
6601
6602 2011-10-10  Bruno Haible  <bruno@clisp.org>
6603
6604         asinl: Simplify for platforms where 'long double' == 'double'.
6605         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6606         alternative implementation.
6607         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6608         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6609         * modules/asinl (Depends-on): Add asin. Update conditions.
6610
6611 2011-10-10  Bruno Haible  <bruno@clisp.org>
6612
6613         tanl: Simplify for platforms where 'long double' == 'double'.
6614         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6615         implementation.
6616         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6617         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6618         * modules/tanl (Depends-on): Add tan. Update conditions.
6619         (configure.ac): Don't compile trigl.c if
6620         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6621
6622 2011-10-10  Bruno Haible  <bruno@clisp.org>
6623
6624         cosl: Simplify for platforms where 'long double' == 'double'.
6625         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6626         implementation.
6627         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6628         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6629         * modules/cosl (Depends-on): Add cos. Update conditions.
6630         (configure.ac): Don't compile sincosl.c and trigl.c if
6631         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6632
6633 2011-10-10  Bruno Haible  <bruno@clisp.org>
6634
6635         sinl: Simplify for platforms where 'long double' == 'double'.
6636         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6637         implementation.
6638         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6639         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6640         * modules/sinl (Depends-on): Add sin. Update conditions.
6641         (configure.ac): Don't compile sincosl.c and trigl.c if
6642         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6643
6644 2011-10-10  Bruno Haible  <bruno@clisp.org>
6645
6646         logl: Simplify for platforms where 'long double' == 'double'.
6647         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6648         implementation.
6649         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6650         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6651         * modules/logl (Depends-on): Add log. Update conditions.
6652
6653 2011-10-10  Bruno Haible  <bruno@clisp.org>
6654
6655         expl: Simplify for platforms where 'long double' == 'double'.
6656         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6657         implementation.
6658         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6659         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6660         * modules/expl (Depends-on): Add exp. Update conditions.
6661
6662 2011-10-10  Bruno Haible  <bruno@clisp.org>
6663
6664         sqrtl: Simplify for platforms where 'long double' == 'double'.
6665         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6666         alternative implementation.
6667         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6668         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6669         * modules/sqrtl (Depends-on): Update conditions.
6670
6671 2011-10-10  Bruno Haible  <bruno@clisp.org>
6672
6673         ldexpl: Simplify for platforms where 'long double' == 'double'.
6674         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6675         alternative implementation.
6676         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6677         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6678         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6679
6680 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6681
6682         ffsll: set correct witness
6683         * modules/ffsll (configure.ac): Fix typo.
6684
6685 2011-10-10  Bruno Haible  <bruno@clisp.org>
6686
6687         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6688         * lib/printf-frexpl.c: Include <config.h>.
6689         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6690         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6691         second time.
6692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6693         gl_LONG_DOUBLE_VS_DOUBLE.
6694         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6695         conditions.
6696
6697 2011-10-10  Bruno Haible  <bruno@clisp.org>
6698
6699         frexpl: Simplify for platforms where 'long double' == 'double'.
6700         * lib/frexpl.c: Include <config.h>.
6701         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6702         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6703         time.
6704         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6705         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6706         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6707         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6708         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6709         conditions.
6710
6711 2011-10-10  Jim Meyering  <meyering@redhat.com>
6712
6713         test-renameat: don't leave behind a temporary file
6714         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6715           ERROR: files left in build directory after distclean:
6716           ./gltests/test-renameat.too
6717           make[1]: *** [distcleancheck] Error 1
6718         Reported by Tom G. Christensen.
6719
6720 2011-10-09  Bruno Haible  <bruno@clisp.org>
6721
6722         rint: Determine RINT_LIBM correctly on AIX 7.
6723         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6724         directly, not only through a function pointer. Also accept an optional
6725         4th argument with extra code.
6726         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6727         rintf() call by gcc when optimizing.
6728
6729         mathfunc.m4: Refactor.
6730         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6731         m4 variable.
6732
6733 2011-10-09  Bruno Haible  <bruno@clisp.org>
6734
6735         rintl: Simplify for platforms where 'long double' == 'double'.
6736         * lib/rintl.c: Include <config.h>.
6737         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6738         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6739         time.
6740         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6741         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6742         * modules/rintl (Depends-on): Add rint. Update conditions.
6743
6744 2011-10-09  Bruno Haible  <bruno@clisp.org>
6745
6746         roundl: Simplify for platforms where 'long double' == 'double'.
6747         * lib/roundl.c: Include <config.h>.
6748         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6749         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6750         time.
6751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6752         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6753         * modules/roundl (Depends-on): Add round. Update conditions.
6754
6755 2011-10-09  Bruno Haible  <bruno@clisp.org>
6756
6757         truncl: Simplify for platforms where 'long double' == 'double'.
6758         * lib/truncl.c: Include <config.h>.
6759         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6760         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6761         time.
6762         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6763         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6764         * modules/truncl (Depends-on): Add trunc. Update conditions.
6765
6766 2011-10-09  Bruno Haible  <bruno@clisp.org>
6767
6768         ceill: Simplify for platforms where 'long double' == 'double'.
6769         * lib/ceill.c: Include <config.h>.
6770         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6771         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6772         time.
6773         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6774         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6775         * modules/ceill (Depends-on): Add ceil. Update conditions.
6776
6777 2011-10-09  Bruno Haible  <bruno@clisp.org>
6778
6779         floorl: Simplify for platforms where 'long double' == 'double'.
6780         * lib/floorl.c: Include <config.h>.
6781         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6782         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6783         time.
6784         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6785         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6786         * modules/floorl (Depends-on): Add floor. Update conditions.
6787
6788 2011-10-09  Bruno Haible  <bruno@clisp.org>
6789
6790         rint: Fix ordering constraints.
6791         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6792         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6793         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6794
6795 2011-10-09  Bruno Haible  <bruno@clisp.org>
6796
6797         copysignl: Simplify for platforms where 'long double' == 'double'.
6798         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6799         alternative.
6800         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6801         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6802         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6803
6804 2011-10-09  Bruno Haible  <bruno@clisp.org>
6805
6806         Tests for module 'rintl'.
6807         * modules/rintl-tests: New file.
6808         * tests/test-rintl.c: New file.
6809
6810         New module 'rintl'.
6811         * lib/math.in.h (rintl): New declaration.
6812         * lib/rintl.c: New file.
6813         * m4/rintl.m4: New file.
6814         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6816         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6817         * modules/rintl: New file.
6818         * tests/test-math-c++.cc: Check the declaration of rintl.
6819         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6820         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6821         * doc/posix-functions/rintl.texi: Mention the new module.
6822
6823 2011-10-09  Bruno Haible  <bruno@clisp.org>
6824
6825         Tests for module 'rintf'.
6826         * modules/rintf-tests: New file.
6827         * tests/test-rintf.c: New file.
6828
6829         New module 'rintf'.
6830         * lib/math.in.h (rintf): New declaration.
6831         * lib/rintf.c: New file.
6832         * m4/rintf.m4: New file.
6833         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6835         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6836         * modules/rintf: New file.
6837         * tests/test-math-c++.cc: Check the declaration of rintf.
6838         * doc/posix-functions/rintf.texi: Mention the new module.
6839
6840 2011-10-09  Bruno Haible  <bruno@clisp.org>
6841
6842         rint: Support for MSVC.
6843         * lib/math.in.h (rint): New declaration.
6844         * lib/rint.c: New file.
6845         * m4/rint.m4: New file.
6846         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6848         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6849         * modules/rint (Description): Fix.
6850         (Files): Add lib/rint.c, m4/rint.m4.
6851         (Depends-on): Add math.
6852         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6853         gl_MATH_MODULE_INDICATOR.
6854         * tests/test-math-c++.cc: Check the declaration of rint.
6855         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6856         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6857         * doc/posix-functions/rint.texi: Mention the replacement provided by
6858         the module.
6859
6860         rint tests: More tests.
6861         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6862         minus-zero.h, infinity.h, nan.h.
6863         (main): Skip the test if the current rounding mode is not standard. Add
6864         tests for negative numbers, minus zero, infinity, NaN.
6865         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6866         tests/nan.h.
6867         (Depends-on): Add isnand-nolibm.
6868
6869 2011-10-09  Bruno Haible  <bruno@clisp.org>
6870
6871         Tests for module 'copysignl'.
6872         * modules/copysignl-tests: New file.
6873         * tests/test-copysignl.c: New file.
6874
6875         New module 'copysignl'.
6876         * lib/math.in.h (copysignl): New declaration.
6877         * lib/copysignl.c: New file.
6878         * m4/copysignl.m4: New file.
6879         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6881         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6882         HAVE_COPYSIGNL.
6883         * modules/copysignl: New file.
6884         * tests/test-math-c++.cc: Check the declaration of copysignl.
6885         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6886         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6887         * doc/posix-functions/copysignl.texi: Mention the new module.
6888
6889 2011-10-09  Bruno Haible  <bruno@clisp.org>
6890
6891         Tests for module 'copysignf'.
6892         * modules/copysignf-tests: New file.
6893         * tests/test-copysignf.c: New file.
6894
6895         New module 'copysignf'.
6896         * lib/math.in.h (copysignf): New declaration.
6897         * lib/copysignf.c: New file.
6898         * m4/copysignf.m4: New file.
6899         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6901         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6902         HAVE_COPYSIGNF.
6903         * modules/copysignf: New file.
6904         * tests/test-math-c++.cc: Check the declaration of copysignf.
6905         * doc/posix-functions/copysignf.texi: Mention the new module.
6906
6907 2011-10-09  Bruno Haible  <bruno@clisp.org>
6908
6909         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6910         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6911         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6912         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6914         gl_SIGNAL_H_DEFAULTS.
6915
6916 2011-10-09  Bruno Haible  <bruno@clisp.org>
6917
6918         poll: Make macro safer.
6919         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6920         ac_cv_header_poll_h is not set.
6921
6922 2011-10-09  Bruno Haible  <bruno@clisp.org>
6923
6924         copysign: Provide replacement.
6925         * lib/math.in.h (copysign): New declaration.
6926         * lib/copysign.c: New file.
6927         * m4/copysign.m4: New file.
6928         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6930         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6931         HAVE_COPYSIGN.
6932         * modules/copysign (Description): Clarify.
6933         (Files): Add lib/copysign.c, m4/copysign.m4.
6934         (Depends-on): Add math, signbit.
6935         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6936         gl_MATH_MODULE_INDICATOR.
6937         * tests/test-math-c++.cc: Check the declaration of copysign.
6938         * doc/posix-functions/copysign.texi: Mention the effects of the module
6939         on Minix and MSVC.
6940
6941 2011-10-09  Bruno Haible  <bruno@clisp.org>
6942
6943         isinf: Ensure macro on AIX 5.1.
6944         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6945         macro.
6946         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6947
6948 2011-10-09  Bruno Haible  <bruno@clisp.org>
6949
6950         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6951         * modules/snprintf-posix-tests (configure.ac): Require
6952         gl_LONG_DOUBLE_VS_DOUBLE.
6953         * modules/sprintf-posix-tests (configure.ac): Likewise.
6954         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6955         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6956         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6957         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6958         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6959         tests on platforms where 'long double' is the same as 'double'.
6960         * tests/test-sprintf-posix.h (test_function): Likewise.
6961         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6962         * tests/test-vasprintf-posix.c (test_function): Likewise.
6963
6964         *printf: Fix for platforms where 'long double' == 'double'.
6965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6966         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6967         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6968         * modules/fprintf-posix (Files): Likewise.
6969         * modules/obstack-printf-posix (Files): Likewise.
6970         * modules/snprintf-posix (Files): Likewise.
6971         * modules/sprintf-posix (Files): Likewise.
6972         * modules/vasnprintf (Files): Likewise.
6973         * modules/vasnprintf-posix (Files): Likewise.
6974         * modules/vasprintf-posix (Files): Likewise.
6975         * modules/vdprintf-posix (Files): Likewise.
6976         * modules/vfprintf-posix (Files): Likewise.
6977         * modules/vsnprintf-posix (Files): Likewise.
6978         * modules/vsprintf-posix (Files): Likewise.
6979         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6980         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6981         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6982         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6983         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6984         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6985         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6986
6987         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6988         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6989         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6990         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6991         'long double'.
6992         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6993
6994         isinf: Fix for platforms where 'long double' == 'double'.
6995         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6996         Don't blindly assume 80-bit 'long double'.
6997
6998         isfinite: Fix for platforms where 'long double' == 'double'.
6999         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7000         Don't blindly assume 80-bit 'long double'.
7001
7002         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7003         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7004         * modules/isfinite-tests (configure.ac): Require
7005         gl_LONG_DOUBLE_VS_DOUBLE.
7006         * modules/isinf-tests (configure.ac): Likewise.
7007         * modules/isnan-tests (configure.ac): Likewise.
7008         * modules/isnanl-tests (configure.ac): Likewise.
7009         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7010         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7011         tests on platforms where 'long double' is the same as 'double'.
7012         * tests/test-isinf.c (test_isinfl): Likewise.
7013         * tests/test-isnan.c (test_long_double): Likewise.
7014         * tests/test-isnanl.h (main): Likewise.
7015
7016 2011-10-08  Bruno Haible  <bruno@clisp.org>
7017
7018         Tests for module 'tanhf'.
7019         * modules/tanhf-tests: New file.
7020         * tests/test-tanhf.c: New file.
7021
7022         New module 'tanhf'.
7023         * lib/math.in.h (tanhf): New declaration.
7024         * lib/tanhf.c: New file.
7025         * m4/tanhf.m4: New file.
7026         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7028         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7029         * modules/tanhf: New file.
7030         * tests/test-math-c++.cc: Check the declaration of tanhf.
7031         * doc/posix-functions/tanhf.texi: Mention the new module.
7032
7033         tanh: Use a .m4 file.
7034         * m4/tanh.m4: New file.
7035         * modules/tanh (Files): Add it.
7036         (configure.ac): Just invoke gl_FUNC_TANH.
7037
7038 2011-10-08  Bruno Haible  <bruno@clisp.org>
7039
7040         Tests for module 'coshf'.
7041         * modules/coshf-tests: New file.
7042         * tests/test-coshf.c: New file.
7043
7044         New module 'coshf'.
7045         * lib/math.in.h (coshf): New declaration.
7046         * lib/coshf.c: New file.
7047         * m4/coshf.m4: New file.
7048         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7050         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7051         * modules/coshf: New file.
7052         * tests/test-math-c++.cc: Check the declaration of coshf.
7053         * doc/posix-functions/coshf.texi: Mention the new module.
7054
7055         cosh: Use a .m4 file.
7056         * m4/cosh.m4: New file.
7057         * modules/cosh (Files): Add it.
7058         (configure.ac): Just invoke gl_FUNC_COSH.
7059
7060 2011-10-08  Bruno Haible  <bruno@clisp.org>
7061
7062         Tests for module 'sinhf'.
7063         * modules/sinhf-tests: New file.
7064         * tests/test-sinhf.c: New file.
7065
7066         New module 'sinhf'.
7067         * lib/math.in.h (sinhf): New declaration.
7068         * lib/sinhf.c: New file.
7069         * m4/sinhf.m4: New file.
7070         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7072         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7073         * modules/sinhf: New file.
7074         * tests/test-math-c++.cc: Check the declaration of sinhf.
7075         * doc/posix-functions/sinhf.texi: Mention the new module.
7076
7077         sinh: Use a .m4 file.
7078         * m4/sinh.m4: New file.
7079         * modules/sinh (Files): Add it.
7080         (configure.ac): Just invoke gl_FUNC_SINH.
7081
7082 2011-10-08  Bruno Haible  <bruno@clisp.org>
7083
7084         Tests for module 'atan2f'.
7085         * modules/atan2f-tests: New file.
7086         * tests/test-atan2f.c: New file.
7087
7088         New module 'atan2f'.
7089         * lib/math.in.h (atan2f): New declaration.
7090         * lib/atan2f.c: New file.
7091         * m4/atan2f.m4: New file.
7092         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7094         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7095         * modules/atan2f: New file.
7096         * tests/test-math-c++.cc: Check the declaration of atan2f.
7097         * doc/posix-functions/atan2f.texi: Mention the new module.
7098
7099         atan2: Use a .m4 file.
7100         * m4/atan2.m4: New file.
7101         * modules/atan2 (Files): Add it.
7102         (configure.ac): Just invoke gl_FUNC_ATAN2.
7103
7104 2011-10-08  Bruno Haible  <bruno@clisp.org>
7105
7106         Tests for module 'atanf'.
7107         * modules/atanf-tests: New file.
7108         * tests/test-atanf.c: New file.
7109
7110         New module 'atanf'.
7111         * lib/math.in.h (atanf): New declaration.
7112         * lib/atanf.c: New file.
7113         * m4/atanf.m4: New file.
7114         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7116         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7117         * modules/atanf: New file.
7118         * tests/test-math-c++.cc: Check the declaration of atanf.
7119         * doc/posix-functions/atanf.texi: Mention the new module.
7120
7121         atan: Use a .m4 file.
7122         * m4/atan.m4: New file.
7123         * modules/atan (Files): Add it.
7124         (configure.ac): Just invoke gl_FUNC_ATAN.
7125
7126 2011-10-08  Bruno Haible  <bruno@clisp.org>
7127
7128         Tests for module 'acosf'.
7129         * modules/acosf-tests: New file.
7130         * tests/test-acosf.c: New file.
7131
7132         New module 'acosf'.
7133         * lib/math.in.h (acosf): New declaration.
7134         * lib/acosf.c: New file.
7135         * m4/acosf.m4: New file.
7136         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7138         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7139         * modules/acosf: New file.
7140         * tests/test-math-c++.cc: Check the declaration of acosf.
7141         * doc/posix-functions/acosf.texi: Mention the new module.
7142
7143         acos: Use a .m4 file.
7144         * m4/acos.m4: New file.
7145         * modules/acos (Files): Add it.
7146         (configure.ac): Just invoke gl_FUNC_ACOS.
7147
7148 2011-10-08  Bruno Haible  <bruno@clisp.org>
7149
7150         Tests for module 'asinf'.
7151         * modules/asinf-tests: New file.
7152         * tests/test-asinf.c: New file.
7153
7154         New module 'asinf'.
7155         * lib/math.in.h (asinf): New declaration.
7156         * lib/asinf.c: New file.
7157         * m4/asinf.m4: New file.
7158         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7160         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7161         * modules/asinf: New file.
7162         * tests/test-math-c++.cc: Check the declaration of asinf.
7163         * doc/posix-functions/asinf.texi: Mention the new module.
7164
7165         asin: Use a .m4 file.
7166         * m4/asin.m4: New file.
7167         * modules/asin (Files): Add it.
7168         (configure.ac): Just invoke gl_FUNC_ASIN.
7169
7170 2011-10-08  Bruno Haible  <bruno@clisp.org>
7171
7172         Tests for module 'tanf'.
7173         * modules/tanf-tests: New file.
7174         * tests/test-tanf.c: New file.
7175
7176         New module 'tanf'.
7177         * lib/math.in.h (tanf): New declaration.
7178         * lib/tanf.c: New file.
7179         * m4/tanf.m4: New file.
7180         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7182         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7183         * modules/tanf: New file.
7184         * tests/test-math-c++.cc: Check the declaration of tanf.
7185         * doc/posix-functions/tanf.texi: Mention the new module.
7186
7187         tan: Use a .m4 file.
7188         * m4/tan.m4: New file.
7189         * modules/tan (Files): Add it.
7190         (configure.ac): Just invoke gl_FUNC_TAN.
7191
7192 2011-10-08  Bruno Haible  <bruno@clisp.org>
7193
7194         Tests for module 'cosf'.
7195         * modules/cosf-tests: New file.
7196         * tests/test-cosf.c: New file.
7197
7198         New module 'cosf'.
7199         * lib/math.in.h (cosf): New declaration.
7200         * lib/cosf.c: New file.
7201         * m4/cosf.m4: New file.
7202         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7204         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7205         * modules/cosf: New file.
7206         * tests/test-math-c++.cc: Check the declaration of cosf.
7207         * doc/posix-functions/cosf.texi: Mention the new module.
7208
7209         cos: Use a .m4 file.
7210         * m4/cos.m4: New file.
7211         * modules/cos (Files): Add it.
7212         (configure.ac): Just invoke gl_FUNC_COS.
7213
7214 2011-10-08  Bruno Haible  <bruno@clisp.org>
7215
7216         Tests for module 'sinf'.
7217         * modules/sinf-tests: New file.
7218         * tests/test-sinf.c: New file.
7219
7220         New module 'sinf'.
7221         * lib/math.in.h (sinf): New declaration.
7222         * lib/sinf.c: New file.
7223         * m4/sinf.m4: New file.
7224         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7226         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7227         * modules/sinf: New file.
7228         * tests/test-math-c++.cc: Check the declaration of sinf.
7229         * doc/posix-functions/sinf.texi: Mention the new module.
7230
7231         sin: Use a .m4 file.
7232         * m4/sin.m4: New file.
7233         * modules/sin (Files): Add it.
7234         (configure.ac): Just invoke gl_FUNC_SIN.
7235
7236 2011-10-08  Bruno Haible  <bruno@clisp.org>
7237
7238         Tests for module 'powf'.
7239         * modules/powf-tests: New file.
7240         * tests/test-powf.c: New file.
7241
7242         New module 'powf'.
7243         * lib/math.in.h (powf): New declaration.
7244         * lib/powf.c: New file.
7245         * m4/powf.m4: New file.
7246         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7248         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7249         * modules/powf: New file.
7250         * tests/test-math-c++.cc: Check the declaration of powf.
7251         * doc/posix-functions/powf.texi: Mention the new module.
7252
7253         pow: Use a .m4 file.
7254         * m4/pow.m4: New file.
7255         * modules/pow (Files): Add it.
7256         (configure.ac): Just invoke gl_FUNC_POW.
7257
7258 2011-10-08  Bruno Haible  <bruno@clisp.org>
7259
7260         Tests for module 'log10f'.
7261         * modules/log10f-tests: New file.
7262         * tests/test-log10f.c: New file.
7263
7264         New module 'log10f'.
7265         * lib/math.in.h (log10f): New declaration.
7266         * lib/log10f.c: New file.
7267         * m4/log10f.m4: New file.
7268         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7270         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7271         * modules/log10f: New file.
7272         * tests/test-math-c++.cc: Check the declaration of log10f.
7273         * doc/posix-functions/log10f.texi: Mention the new module.
7274
7275         log10: Use a .m4 file.
7276         * m4/log10.m4: New file.
7277         * modules/log10 (Files): Add it.
7278         (configure.ac): Just invoke gl_FUNC_LOG10.
7279
7280 2011-10-08  Bruno Haible  <bruno@clisp.org>
7281
7282         Tests for module 'logf'.
7283         * modules/logf-tests: New file.
7284         * tests/test-logf.c: New file.
7285
7286         New module 'logf'.
7287         * lib/math.in.h (logf): New declaration.
7288         * lib/logf.c: New file.
7289         * m4/logf.m4: New file.
7290         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7292         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7293         * modules/logf: New file.
7294         * tests/test-math-c++.cc: Check the declaration of logf.
7295         * doc/posix-functions/logf.texi: Mention the new module.
7296
7297         log: Use a .m4 file.
7298         * m4/log.m4: New file.
7299         * modules/log (Files): Add it.
7300         (configure.ac): Just invoke gl_FUNC_LOG.
7301
7302 2011-10-08  Bruno Haible  <bruno@clisp.org>
7303
7304         Tests for module 'expf'.
7305         * modules/expf-tests: New file.
7306         * tests/test-expf.c: New file.
7307
7308         New module 'expf'.
7309         * lib/math.in.h (expf): New declaration.
7310         * lib/expf.c: New file.
7311         * m4/expf.m4: New file.
7312         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7314         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7315         * modules/expf: New file.
7316         * tests/test-math-c++.cc: Check the declaration of expf.
7317         * doc/posix-functions/expf.texi: Mention the new module.
7318
7319         exp: Use a .m4 file.
7320         * m4/exp.m4: New file.
7321         * modules/exp (Files): Add it.
7322         (configure.ac): Just invoke gl_FUNC_EXP.
7323
7324 2011-10-08  Bruno Haible  <bruno@clisp.org>
7325
7326         Tests for module 'sqrtf'.
7327         * modules/sqrtf-tests: New file.
7328         * tests/test-sqrtf.c: New file.
7329
7330         New module 'sqrtf'.
7331         * lib/math.in.h (sqrtf): New declaration.
7332         * lib/sqrtf.c: New file.
7333         * m4/sqrtf.m4: New file.
7334         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7336         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7337         * modules/sqrtf: New file.
7338         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7339         * doc/posix-functions/sqrtf.texi: Mention the new module.
7340
7341 2011-10-08  Bruno Haible  <bruno@clisp.org>
7342
7343         Tests: Avoid link failures w.r.t. libintl.
7344         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7345         $(LIBINTL).
7346         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7347         $(LIBINTL).
7348         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7349         against $(LIBINTL).
7350         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7351         $(LIBINTL).
7352         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7353         $(LIBINTL).
7354         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7355
7356 2011-10-08  Bruno Haible  <bruno@clisp.org>
7357
7358         pow tests: Defeat compiler optimizations.
7359         * tests/test-pow.c (main): Assign arguments to x and y before use.
7360
7361 2011-10-08  Bruno Haible  <bruno@clisp.org>
7362
7363         gnulib-tool: Improve last commit.
7364         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7365         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7366         ignore dependencies that are not among the modules list.
7367
7368 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7369
7370         gnulib-tool: don't follow dependencies to avoided modules
7371         This fixes a bug that is related to the previous one.
7372         * gnulib-tool (func_modules_transitive_closure)
7373         (func_emit_autoconf_snippets):
7374         Check whether a dependency is acceptable before using it.
7375         (--extract-dependencies): Report an error if --avoid is also used,
7376         since this combination of options is not yet supported.
7377
7378         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7379         Problem reported by Peter Dyballa in
7380         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7381         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7382         when echoing "$condition".
7383
7384 2011-10-07  Bruno Haible  <bruno@clisp.org>
7385
7386         Fix documentation about math functions on MacOS X.
7387         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7388         MacOS X 10.5.
7389         * doc/posix-functions/fdim.texi: Likewise.
7390         * doc/posix-functions/feclearexcept.texi: Likewise.
7391         * doc/posix-functions/fegetenv.texi: Likewise.
7392         * doc/posix-functions/fegetround.texi: Likewise.
7393         * doc/posix-functions/feholdexcept.texi: Likewise.
7394         * doc/posix-functions/feraiseexcept.texi: Likewise.
7395         * doc/posix-functions/fesetenv.texi: Likewise.
7396         * doc/posix-functions/fesetround.texi: Likewise.
7397         * doc/posix-functions/fetestexcept.texi: Likewise.
7398         * doc/posix-functions/feupdateenv.texi: Likewise.
7399         * doc/posix-functions/fmax.texi: Likewise.
7400         * doc/posix-functions/fmin.texi: Likewise.
7401         * doc/posix-functions/log2.texi: Likewise.
7402         * doc/posix-functions/modff.texi: Likewise.
7403         * doc/posix-functions/nan.texi: Likewise.
7404         * doc/posix-functions/nanf.texi: Likewise.
7405         * doc/posix-functions/nextafterf.texi: Likewise.
7406         * doc/posix-functions/remquo.texi: Likewise.
7407
7408 2011-10-07  Bruno Haible  <bruno@clisp.org>
7409
7410         modff: Drop assumption about library that defines modff.
7411         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7412         AC_CHECK_FUNCS.
7413         * modules/modff (Files): Add m4/mathfunc.m4.
7414
7415 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7416
7417         raise tests: Avoid a GCC warning.
7418         * tests/test-raise.c (handler): Use _Noreturn.
7419
7420 2011-10-07  Bruno Haible  <bruno@clisp.org>
7421
7422         Tests for module 'ldexpf'.
7423         * modules/ldexpf-tests: New file.
7424         * tests/test-ldexpf.c: New file.
7425
7426         New module 'ldexpf'.
7427         * lib/math.in.h (ldexpf): New declaration.
7428         * lib/ldexpf.c: New file.
7429         * m4/ldexpf.m4: New file.
7430         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7432         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7433         * modules/ldexpf: New file.
7434         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7435         * doc/posix-functions/ldexpf.texi: Mention the new module.
7436
7437 2011-10-06  Bruno Haible  <bruno@clisp.org>
7438
7439         frexpf: Work around problems on IRIX and mingw.
7440         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7442         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7443         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7444         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7445         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7446         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7447
7448 2011-10-06  Bruno Haible  <bruno@clisp.org>
7449
7450         fabsf: Drop assumption about library that defines fabsf.
7451         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7452         AC_CHECK_FUNCS.
7453         * modules/fabsf (Files): Add m4/mathfunc.m4.
7454
7455 2011-10-06  Bruno Haible  <bruno@clisp.org>
7456
7457         frexpf: Drop assumption about library that defines frexpf.
7458         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7459         'int *', 'float *', 'long double *', 'float', 'long double'.
7460         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7461         AC_CHECK_FUNCS.
7462         * modules/frexpf (Files): Add m4/mathfunc.m4.
7463
7464         Tests for module 'frexpf'.
7465         * modules/frexpf-tests: New file.
7466         * tests/test-frexpf.c: New file.
7467
7468         New module 'frexpf'.
7469         * lib/math.in.h (frexpf): New declaration.
7470         * lib/frexpf.c: New file.
7471         * m4/frexpf.m4: New file.
7472         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7474         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7475         * modules/frexpf: New file.
7476         * tests/test-math-c++.cc: Check the declaration of frexpf.
7477         * doc/posix-functions/frexpf.texi: Mention the new module.
7478
7479 2011-10-06  Bruno Haible  <bruno@clisp.org>
7480
7481         math: Sort function declarations of math.in.h.
7482         * lib/math.in.h (frexp, logb): Move declarations.
7483
7484 2011-10-05  Bruno Haible  <bruno@clisp.org>
7485
7486         Tests for module 'modff'.
7487         * modules/modff-tests: New file.
7488         * tests/test-modff.c: New file.
7489
7490         New module 'modff'.
7491         * lib/math.in.h (modff): New declaration.
7492         * lib/modff.c: New file.
7493         * m4/modff.m4: New file.
7494         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7496         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7497         * modules/modff: New file.
7498         * tests/test-math-c++.cc: Check the declaration of modff.
7499         * doc/posix-functions/modff.texi: Mention the new module.
7500
7501         modf tests: Make test sharper.
7502         * tests/test-modf.c (main): Strengthen upper bound.
7503
7504         modf: Use a .m4 file.
7505         * m4/modf.m4: New file.
7506         * modules/modf (Files): Add it.
7507         (configure.ac): Just invoke gl_FUNC_MODF.
7508
7509 2011-10-05  Bruno Haible  <bruno@clisp.org>
7510
7511         Tests for module 'fmodf'.
7512         * modules/fmodf-tests: New file.
7513         * tests/test-fmodf.c: New file.
7514
7515         New module 'fmodf'.
7516         * lib/math.in.h (fmodf): New declaration.
7517         * lib/fmodf.c: New file.
7518         * m4/fmodf.m4: New file.
7519         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7521         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7522         * modules/fmodf: New file.
7523         * tests/test-math-c++.cc: Check the declaration of fmodf.
7524         * doc/posix-functions/fmodf.texi: Mention the new module.
7525
7526         fmod: Use a .m4 file.
7527         * m4/fmod.m4: New file.
7528         * modules/fmod (Files): Add it.
7529         (configure.ac): Just invoke gl_FUNC_FMOD.
7530
7531 2011-10-05  Bruno Haible  <bruno@clisp.org>
7532
7533         Tests for module 'fabsf'.
7534         * modules/fabsf-tests: New file.
7535         * tests/test-fabsf.c: New file.
7536
7537         New module 'fabsf'.
7538         * lib/math.in.h (fabsf): New declaration.
7539         * lib/fabsf.c: New file.
7540         * m4/fabsf.m4: New file.
7541         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7543         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7544         * modules/fabsf: New file.
7545         * tests/test-math-c++.cc: Check the declaration of fabsf.
7546         * doc/posix-functions/fabsf.texi: Mention the new module.
7547
7548         fabs: Use a .m4 file.
7549         * m4/fabs.m4: New file.
7550         * modules/fabs (Files): Add it.
7551         (configure.ac): Just invoke gl_FUNC_FABS.
7552
7553 2011-10-05  Jim Meyering  <meyering@redhat.com>
7554
7555         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7556         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7557         ls -lL regression introduced in coreutils-8.12, it does so at the
7558         cost of an additional stat call in the common case.  Besides, now
7559         that the kernel change that prompted commit 95f7c57f has been reverted
7560         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7561         we have no use for commit 95f7c57f, "file-has-acl: use
7562         acl_extended_file_nofollow if available".
7563
7564 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7565
7566         file-has-acl: revert unintended change in behavior of ls -L
7567         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7568         derived from...
7569         (file_has_acl): ...code here.  Call it.
7570         This problem was introduced with 2011-07-22 commit 95f7c57f,
7571         "file-has-acl: use acl_extended_file_nofollow if available".
7572         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7573
7574 2011-10-03  Bruno Haible  <bruno@clisp.org>
7575
7576         poll: Avoid link errors on MSVC.
7577         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7578         * modules/poll (Depends-on): Add sockets.
7579         (Link): New section.
7580         * NEWS: Mention the change.
7581         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7582         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7583         $(LIB_POLL) instead of $(LIBSOCKET).
7584
7585 2011-10-03  Bruno Haible  <bruno@clisp.org>
7586
7587         sys_select tests: Fix link error on MSVC 9.
7588         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7589         with $(LIB_SELECT) instead of $(LIBSOCKET).
7590
7591 2011-10-03  Bruno Haible  <bruno@clisp.org>
7592
7593         sys_select: Fix compilation error on mingw.
7594         * lib/sys_select.in.h: On native Windows, include <io.h>.
7595
7596 2011-10-03  Bruno Haible  <bruno@clisp.org>
7597
7598         wmemset: Support for MSVC.
7599         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7600         whether wmemset() exists.
7601
7602 2011-10-03  Bruno Haible  <bruno@clisp.org>
7603
7604         wmemmove: Support for MSVC.
7605         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7606         whether wmemmove() exists.
7607
7608 2011-10-03  Bruno Haible  <bruno@clisp.org>
7609
7610         wmemcpy: Support for MSVC.
7611         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7612         whether wmemcpy() exists.
7613
7614 2011-10-03  Bruno Haible  <bruno@clisp.org>
7615
7616         wmemcmp: Support for MSVC.
7617         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7618         whether wmemcmp() exists.
7619
7620 2011-10-03  Bruno Haible  <bruno@clisp.org>
7621
7622         wmemchr: Support for MSVC.
7623         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7624         whether wmemchr() exists.
7625
7626 2011-10-03  Bruno Haible  <bruno@clisp.org>
7627
7628         glthread/*, strsignal: Support for MSVC.
7629         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7630         including <winsock.h> on MSVC 9.
7631         * lib/glthread/lock.h: Likewise.
7632         * lib/glthread/thread.h: Likewise.
7633         * lib/glthread/tls.h: Likewise.
7634         * lib/glthread/yield.h: Likewise.
7635         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7636         if HAVE_UNISTD_H is false.
7637         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7638
7639 2011-10-03  Bruno Haible  <bruno@clisp.org>
7640
7641         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7642         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7643         Set to 100000.
7644
7645 2011-10-03  Bruno Haible  <bruno@clisp.org>
7646
7647         acl: Fix specification.
7648         * lib/file-has-acl.c (file_has_acl): Fix specification.
7649
7650 2011-10-03  Bruno Haible  <bruno@clisp.org>
7651
7652         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7653         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7654         (compute_curr_prefix, shared_library_fullname,
7655         find_shared_library_fullname, get_shared_library_fullname, relocate):
7656         Use it together with PIC && INSTALLDIR.
7657         Reported by <jojelino@gmail.com>
7658         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7659
7660 2011-10-01  Jim Meyering  <meyering@redhat.com>
7661
7662         maint.mk: adjust a release-related rule not to require use of gzip
7663         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7664         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7665         projects that build only .tar.xz files.  Also fix an erroneous test.
7666
7667         test-linkat: don't leave behind a temporary file
7668         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7669         Otherwise, coreutils' "make distcheck" would fail with this:
7670           Only in /c/cu/tests/torture/coreutils/test/\
7671             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7672           make[2]: *** [my-distcheck] Error 1
7673
7674         float, math: add omitted file
7675         * lib/itold.c: Add file, required for yesterday's float change.
7676
7677 2011-10-01  Bruno Haible  <bruno@clisp.org>
7678
7679         isinf: Fix for OpenBSD/x86.
7680         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7681         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7682         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7683
7684 2011-10-01  Bruno Haible  <bruno@clisp.org>
7685
7686         isfinite: Fix syntax error in configure test.
7687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7688
7689         isfinite: Fix typo.
7690         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7691         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7692
7693 2011-10-01  Bruno Haible  <bruno@clisp.org>
7694
7695         nonblocking tests: Fix test failure on Linux/IA-64.
7696         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7697         Set to 270000.
7698
7699 2011-10-01  Bruno Haible  <bruno@clisp.org>
7700
7701         mkfifoat tests: Fix a test failure on mingw.
7702         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7703         with error ENOSYS.
7704
7705 2011-09-30  Bruno Haible  <bruno@clisp.org>
7706
7707         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7708         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7709         'long double'. Set REPLACE_ITOLD.
7710         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7711         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7712         * lib/itold.c: New file.
7713         * modules/float (Files): Add lib/itold.c.
7714         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7715         (Makefile.am): Substitute REPLACE_ITOLD.
7716         * modules/math (Depends-on): Add float.
7717         (Makefile.am): Substitute REPLACE_ITOLD.
7718         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7719         * doc/posix-headers/math.texi: Likewise.
7720         * doc/posix-functions/logl.texi: Likewise.
7721
7722 2011-09-30  Bruno Haible  <bruno@clisp.org>
7723
7724         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7725         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7726         Set to 140000.
7727
7728 2011-09-30  Bruno Haible  <bruno@clisp.org>
7729
7730         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7731         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7732         invocation, say "right after AC_PROG_CC_STDC", not "right after
7733         AC_PROG_CC".
7734         Reported by Gary V. Vaughan <gary@gnu.org>.
7735
7736 2011-09-30  Bruno Haible  <bruno@clisp.org>
7737
7738         Centralize C99 requirement.
7739         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7740         * modules/stdarg (configure.ac-early): Invoke it instead of
7741         AC_PROG_CC_STDC.
7742         Reported by Gary V. Vaughan and Paul Eggert.
7743
7744 2011-09-29  Bruno Haible  <bruno@clisp.org>
7745
7746         float: Fix LDBL_MAX value on Linux/PowerPC.
7747         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7748         on Linux/PowerPC.
7749         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7750         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7751         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7752         platform.
7753         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7754
7755 2011-09-29  Bruno Haible  <bruno@clisp.org>
7756
7757         doc: Improve doc about gl_EARLY.
7758         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7759         AC_PROG_CC_STDC invocation.
7760         Reported by Gary V. Vaughan <gary@gnu.org>.
7761
7762 2011-09-28  Bruno Haible  <bruno@clisp.org>
7763
7764         fgetc, fputc, fread, fwrite tests: Fix link error.
7765         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7766         on non-MSVC platforms.
7767         * tests/test-fputc.c (main): Likewise.
7768         * tests/test-fread.c (main): Likewise.
7769         * tests/test-fwrite.c (main): Likewise.
7770         Reported by Jim Meyering.
7771
7772 2011-09-27  Bruno Haible  <bruno@clisp.org>
7773
7774         fputc, fwrite tests: Avoid test failure on MSVC.
7775         * tests/test-fgetc.c: Include msvc-inval.h.
7776         (main): Invoke gl_msvc_inval_ensure_handler.
7777         * tests/test-fputc.c: Include msvc-inval.h.
7778         (main): Invoke gl_msvc_inval_ensure_handler.
7779         * tests/test-fread.c: Include msvc-inval.h.
7780         (main): Invoke gl_msvc_inval_ensure_handler.
7781         * tests/test-fwrite.c: Include msvc-inval.h.
7782         (main): Invoke gl_msvc_inval_ensure_handler.
7783         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7784         * modules/fputc-tests (Depends-on): Likewise.
7785         * modules/fread-tests (Depends-on): Likewise.
7786         * modules/fwrite-tests (Depends-on): Likewise.
7787
7788 2011-09-27  Bruno Haible  <bruno@clisp.org>
7789
7790         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7791         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7792         (raise): Remove older, duplicated declaration.
7793         (_gl_raise_SIGPIPE): New declaration.
7794         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7795         (rpl_raise): Remove function.
7796         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7797         a gnulib-defined SIGPIPE here.
7798         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7799         'sigprocmask' has detected missing signal-blocking and the module
7800         'sigpipe' is enabled.
7801         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7802
7803 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7804
7805         base64-tests: avoid memory leak
7806         * tests/test-base64.c (main): Plug memory leak.
7807
7808         base32: new module
7809         * modules/base32: New module.
7810         * lib/base32.c: New file.
7811         * lib/base32.h: Likewise.
7812         * m4/base32.m4: Likewise.
7813         * modules/base32-tests: New test.
7814         * tests/test-base32.c: Likewise.
7815         * MODULES.html.sh (Misc): Mention it.
7816
7817 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7818
7819         gnulib: use more-standard license notice wording
7820         * gnulib-tool (func_emit_copyright_notice): When emitting a
7821         license notice into a file, use the standard wording as suggested
7822         by the current information for GNU maintainers, except say "file"
7823         rather than "program".  The new wording gives a license version
7824         number, which addresses an issue raised by Glenn Morris in
7825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7826         * m4/onceonly.m4: Use that same wording here, too.
7827
7828         dup2: minor simplification
7829         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7830         as lib/dup2.c no longer uses 'inline'.
7831
7832 2011-09-25  Bruno Haible  <bruno@clisp.org>
7833
7834         strings: Fix compilation error on MSVC.
7835         * lib/strings.in.h: Include <stddef.h> for size_t.
7836
7837 2011-09-25  Bruno Haible  <bruno@clisp.org>
7838
7839         fflush et al.: Document limitation on MSVC.
7840         * doc/posix-functions/fflush.texi: Document possible crash in handling
7841         mode other than DEFAULT_HANDLING.
7842         * doc/posix-functions/fgetc.texi: Likewise.
7843         * doc/posix-functions/fputc.texi: Likewise.
7844         * doc/posix-functions/fread.texi: Likewise.
7845         * doc/posix-functions/fwrite.texi: Likewise.
7846
7847 2011-09-25  Bruno Haible  <bruno@clisp.org>
7848
7849         msvc-inval: Allow three invalid parameter handling modes.
7850         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7851         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7852         macros.
7853         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7854         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7855         SANE_LIBRARY_HANDLING as a no-op.
7856         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7857         <stdlib.h>.
7858         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7859
7860 2011-09-25  Bruno Haible  <bruno@clisp.org>
7861
7862         msvc-inval: Make handler multithread-safe.
7863         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7864         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7865         declarations.
7866         (gl_msvc_inval_current): New declaration.
7867         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7868         Operate on the structure returned by gl_msvc_inval_current().
7869         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7870         Remove varaiables.
7871         (tls_index, tls_initialized): New variables.
7872         (not_per_thread): New variable.
7873         (gl_msvc_inval_current): New function.
7874         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7875         returned by gl_msvc_inval_current().
7876
7877 2011-09-25  Bruno Haible  <bruno@clisp.org>
7878
7879         msvc-inval: Install handler globally.
7880         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7881         !_MSC_VER.
7882         (gl_msvc_invalid_parameter_handler): Remove declaration.
7883         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7884         declarations.
7885         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7886         Install the handler globally, don't uninstall it.
7887         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7888         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7889         currently valid, call RaiseException instead.
7890         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7891         for !_MSC_VER.
7892
7893 2011-09-25  Bruno Haible  <bruno@clisp.org>
7894
7895         strerror_r-posix: Fix for MSVC 9.
7896         * lib/strerror_r.c (local_snprintf): New function.
7897         (snprintf): Define to local_snprintf, not to _snprintf.
7898
7899 2011-09-25  Bruno Haible  <bruno@clisp.org>
7900
7901         ftruncate: Support for MSVC 9.
7902         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7903         (chsize_nothrow): New function.
7904         (chsize): Redefine as a macro.
7905         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7906         * modules/ftruncate (Depends-on): Add msvc-inval.
7907
7908 2011-09-25  Bruno Haible  <bruno@clisp.org>
7909
7910         New module 'fstat'.
7911         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7912         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7913         * lib/fchdir.c (rpl_fstat): Remove function.
7914         * m4/fstat.m4: New file.
7915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7916         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7917         declared.
7918         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7919         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7920         * modules/fstat: New file.
7921         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7922         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7923         is set.
7924         * doc/posix-functions/fstat.texi: Mention the new module and the
7925         problem on MSVC.
7926         * NEWS: Mention the change.
7927         * modules/acl (Depends-on): Add fstat.
7928         * modules/chdir-safer (Depends-on): Likewise.
7929         * modules/chown (Depends-on): Likewise.
7930         * modules/copy-file (Depends-on): Likewise.
7931         * modules/fchdir (Depends-on): Likewise.
7932         * modules/fdopendir (Depends-on): Likewise.
7933         * modules/fopen (Depends-on): Likewise.
7934         * modules/fts (Depends-on): Likewise.
7935         * modules/getcwd (Depends-on): Likewise.
7936         * modules/isapipe (Depends-on): Likewise.
7937         * modules/linkat (Depends-on): Likewise.
7938         * modules/lseek (Depends-on): Likewise.
7939         * modules/mkdir-p (Depends-on): Likewise.
7940         * modules/open (Depends-on): Likewise.
7941         * modules/openat (Depends-on): Likewise.
7942         * modules/read-file (Depends-on): Likewise.
7943         * modules/renameat (Depends-on): Likewise.
7944         * modules/utimens (Depends-on): Likewise.
7945
7946 2011-09-25  Bruno Haible  <bruno@clisp.org>
7947
7948         linkat: Fix compilation on MSVC 9.
7949         * lib/linkat.c: Don't include <stdint.h>.
7950
7951 2011-09-25  Bruno Haible  <bruno@clisp.org>
7952
7953         fclose: Support for MSVC 9.
7954         * lib/fclose.c: Include msvc-inval.h.
7955         (fclose_nothrow): New function.
7956         (rpl_fclose): Use it.
7957         * modules/fclose (Depends-on): Add msvc-inval.
7958         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7959
7960 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7961
7962         dup2: minor simplifications
7963         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7964         that it's a performance win.
7965         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7966         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7967
7968 2011-09-24  Jim Meyering  <meyering@redhat.com>
7969
7970         test-futimens: avoid a warning from gcc -Wshadow
7971         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7972         to avoid a shadowing warning.
7973
7974 2011-09-24  Bruno Haible  <bruno@clisp.org>
7975
7976         fdopen: Support for MSVC 9.
7977         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7978         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7979         * lib/fdopen.c: Include msvc-inval.h.
7980         (fdopen_nothrow): New function.
7981         (rpl_fdopen): Use it.
7982         * modules/fdopen (Depends-on): Add msvc-inval.
7983         * modules/fclose-tests (Depends-on): Add fdopen.
7984         * modules/fflush-tests (Depends-on): Likewise.
7985         * modules/fgetc-tests (Depends-on): Likewise.
7986         * modules/fputc-tests (Depends-on): Likewise.
7987         * modules/fread-tests (Depends-on): Likewise.
7988         * modules/freopen-tests (Depends-on): Likewise.
7989         * modules/fseeko-tests (Depends-on): Likewise.
7990         * modules/ftello-tests (Depends-on): Likewise.
7991         * modules/fwrite-tests  (Depends-on): Likewise.
7992         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7993
7994 2011-09-24  Bruno Haible  <bruno@clisp.org>
7995
7996         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7997         * modules/fgetc-tests (Depends-on): Add unistd.
7998         * modules/fputc-tests (Depends-on): Likewise.
7999         * modules/fread-tests (Depends-on): Likewise.
8000         * modules/fwrite-tests (Depends-on): Likewise.
8001
8002 2011-09-24  Bruno Haible  <bruno@clisp.org>
8003
8004         dup: Simplify autoconf test.
8005         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8006         on gl_MSVC_INVAL's result.
8007
8008 2011-09-24  Bruno Haible  <bruno@clisp.org>
8009
8010         Tests for function fwrite().
8011         * modules/fwrite-tests: New file.
8012         * tests/test-fwrite.c: New file.
8013         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8014
8015         Tests for function fread().
8016         * modules/fread-tests: New file.
8017         * tests/test-fread.c: New file.
8018         * modules/stdio-tests (Depends-on): Add fread-tests.
8019
8020         Activate fputc tests.
8021         * modules/stdio-tests (Depends-on): Add fputc-tests.
8022
8023         Enhance fgetc, fputc tests.
8024         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8025         * tests/test-fputc.c (main): Likewise.
8026
8027 2011-09-24  Bruno Haible  <bruno@clisp.org>
8028
8029         write: Support for MSVC 9.
8030         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8031         is not 1.
8032         * lib/write.c (write_nothrow): New function.
8033         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8034         not 1. Use write_nothrow.
8035         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8036         invalid parameter handler.
8037         (gl_PREREQ_WRITE): New macro.
8038         * modules/write (Depends-on): Add msvc-inval.
8039         (configure.ac): Invoke gl_PREREQ_WRITE.
8040         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8041
8042 2011-09-24  Bruno Haible  <bruno@clisp.org>
8043
8044         read: Fix last commit.
8045         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8046
8047 2011-09-24  Bruno Haible  <bruno@clisp.org>
8048
8049         dup2: Fix last commit.
8050         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8051         (rpl_dup2): Disable fcntl workaround on native Windows.
8052
8053         sigprocmask: Make code safer.
8054         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8055         section that changes macro definitions for this compilation unit.
8056
8057 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8058
8059         dup2: clarify by coalescing Windows-specific material
8060         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8061         "msvc-nothrow.h"' to the Windows-specific section, so that the
8062         Emacs source need not contain these include files.
8063         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8064         Windows-specific fixes into this function rather than just the
8065         nothrow fix, as this shortens and clarifies the code.  Always
8066         define as a function, as that's a bit cleaner than having it be
8067         sometimes a function and sometimes a macro.
8068         (rpl_dup2): Move the Windows-specific stuff out of here and into
8069         ms_windows_dup2.  Don't protect the Haiku-related fix with
8070         "#if !defined __linux__", as the same code also works around
8071         a Linux kernel bug, and it doesn't add any system calls on any
8072         platform.  Add comment about FreeBSD 6.1.
8073
8074         sigprocmask: move #include directive
8075         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8076         Windows-specific section, so that the Emacs source need not
8077         contain msvc-inval.h.
8078
8079 2011-09-23  Bruno Haible  <bruno@clisp.org>
8080
8081         read: Support for MSVC 9.
8082         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8083         is not 1.
8084         * lib/read.c (read_nothrow): New function.
8085         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8086         read_nothrow.
8087         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8088         invalid parameter handler.
8089         (gl_PREREQ_READ): New macro.
8090         * modules/read (Depends-on): Add msvc-inval.
8091         (configure.ac): Invoke gl_PREREQ_READ.
8092         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8093
8094 2011-09-23  Bruno Haible  <bruno@clisp.org>
8095
8096         close: Support for MSVC 9.
8097         * lib/close.c: Include <errno.h>, msvc-inval.h.
8098         (close_nothrow): New function.
8099         (rpl_close): Use it.
8100         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8101         invalid parameter handler.
8102         * modules/close (Depends-on): Add msvc-inval.
8103         * modules/dup2-tests (Depends-on): Add close.
8104         * modules/dup3-tests (Depends-on): Likewise.
8105         * modules/fcntl-tests (Depends-on): Likewise.
8106         * modules/spawn-pipe-tests (Depends-on): Likewise.
8107         * modules/unistd-safer-tests (Depends-on): Likewise.
8108         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8109
8110 2011-09-23  Bruno Haible  <bruno@clisp.org>
8111
8112         New module 'dup'.
8113         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8114         Allow replacement.
8115         * lib/dup.c: New file.
8116         * lib/fchdir.c (rpl_dup): Remove function.
8117         * m4/dup.m4: New file.
8118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8119         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8120         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8121         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8122         * modules/dup: New file.
8123         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8124         'dup' module is in use.
8125         * modules/fdopendir (Depends-on): Add dup.
8126         * modules/fdutimensat-tests (Depends-on): Likewise.
8127         * modules/fts (Depends-on): Likewise.
8128         * modules/futimens-tests (Depends-on): Likewise.
8129         * modules/posix_spawnp-tests (Depends-on): Likewise.
8130         * modules/unistd-safer-tests (Depends-on): Likewise.
8131         * modules/utimens-tests (Depends-on): Likewise.
8132         * doc/posix-functions/dup.texi: Mention the new module and the problem
8133         on MSVC.
8134
8135 2011-09-23  Bruno Haible  <bruno@clisp.org>
8136
8137         getdtablesize: Support for MSVC 9.
8138         * lib/getdtablesize.c: Include msvc-inval.h.
8139         (_setmaxstdio_nothrow): New function.
8140         (_setmaxstdio): Redefine it.
8141         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8142         * modules/getdtablesize (Depends-on): Add msvc-inval.
8143         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8144
8145 2011-09-23  Bruno Haible  <bruno@clisp.org>
8146
8147         signal-h: Rename from signal.
8148         * modules/signal-h: Renamed from modules/signal.
8149         * modules/pthread_sigmask (Depends-on): Update.
8150         * modules/raise (Depends-on): Likewise.
8151         * modules/sigaction (Depends-on): Likewise.
8152         * modules/sigpipe (Depends-on): Likewise.
8153         * modules/sigprocmask (Depends-on): Likewise.
8154         * modules/sys_select (Depends-on): Likewise.
8155         * modules/signal-h-tests: Renamed from modules/signal-tests.
8156         (Files, Depends-on, Makefile.am): Update.
8157         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8158         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8159         (Files, Makefile.am): Update.
8160         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8161         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8162         * modules/signal: New placeholder file.
8163         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8164         * doc/posix-headers/signal.texi: Update.
8165         * NEWS: Mention the change.
8166
8167 2011-09-23  Bruno Haible  <bruno@clisp.org>
8168
8169         sigprocmask: Avoid crashes through signal() on MSVC 9.
8170         * lib/sigprocmask.c: Include msvc-inval.h.
8171         (signal_nothrow): New function.
8172         (signal): Redefine it.
8173         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8174         * modules/sigprocmask (Depends-on): Add msvc-inval.
8175         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8176
8177 2011-09-23  Bruno Haible  <bruno@clisp.org>
8178
8179         Tests for module 'raise'.
8180         * modules/raise-tests: New file.
8181         * tests/test-raise.c: New file.
8182
8183         raise: Support for MSVC.
8184         * lib/signal.in.h (raise): New declaration.
8185         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8186         for native Windows platforms.
8187         * m4/raise.m4: New file.
8188         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8189         HAVE_RAISE, REPLACE_RAISE.
8190         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8191         REPLACE_RAISE.
8192         * modules/raise (Status, Notice): Remove fields.
8193         (Files): Add m4/raise.m4.
8194         (Depends-on): Add signal, msvc-inval.
8195         (configure.ac): Use the common idioms.
8196         (Maintainer): Add me.
8197         * tests/test-signal-c++.cc: Check the signature of raise.
8198         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8199
8200 2011-09-23  Bruno Haible  <bruno@clisp.org>
8201
8202         pipe2: Fix compilation on pre-C99 compilers.
8203         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8204
8205 2011-09-23  Bruno Haible  <bruno@clisp.org>
8206
8207         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8208         * lib/msvc-nothrow.h: New file.
8209         * lib/msvc-nothrow.c: New file.
8210         * m4/msvc-nothrow.m4: New file.
8211         * modules/msvc-nothrow: New file.
8212         * lib/dup2.c: Include msvc-nothrow.h.
8213         (rpl_dup2): No need to protect _get_osfhandle call here.
8214         * lib/accept4.c: Include msvc-nothrow.h.
8215         * lib/error.c: Likewise.
8216         * lib/fcntl.c: Likewise.
8217         * lib/lseek.c: Likewise.
8218         * lib/nonblocking.c: Likewise.
8219         * lib/poll.c: Likewise.
8220         * lib/read.c: Likewise.
8221         * lib/select.c: Likewise.
8222         * lib/sockets.h: Likewise.
8223         * lib/sockets.c: Likewise.
8224         * lib/stdio-read.c: Likewise.
8225         * lib/stdio-write.c: Likewise.
8226         * lib/write.c: Likewise.
8227         * lib/w32sock.h: Likewise.
8228         * lib/w32spawn.h: Likewise.
8229         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8230         * lib/fsync.c: Likewise.
8231         * lib/isapipe.c: Likewise.
8232         * modules/dup2 (Depends-on): Add msvc-nothrow.
8233         * modules/accept4 (Depends-on): Likewise.
8234         * modules/error (Depends-on): Likewise.
8235         * modules/fcntl (Depends-on): Likewise.
8236         * modules/lseek (Depends-on): Likewise.
8237         * modules/nonblocking (Depends-on): Likewise.
8238         * modules/poll (Depends-on): Likewise.
8239         * modules/read (Depends-on): Likewise.
8240         * modules/select (Depends-on): Likewise.
8241         * modules/sockets (Depends-on): Likewise.
8242         * modules/sigpipe (Depends-on): Likewise.
8243         * modules/write (Depends-on): Likewise.
8244         * modules/accept (Depends-on): Likewise.
8245         * modules/bind (Depends-on): Likewise.
8246         * modules/connect (Depends-on): Likewise.
8247         * modules/gethostname (Depends-on): Likewise.
8248         * modules/getpeername (Depends-on): Likewise.
8249         * modules/getsockname (Depends-on): Likewise.
8250         * modules/getsockopt (Depends-on): Likewise.
8251         * modules/ioctl (Depends-on): Likewise.
8252         * modules/listen (Depends-on): Likewise.
8253         * modules/recv (Depends-on): Likewise.
8254         * modules/recvfrom (Depends-on): Likewise.
8255         * modules/send (Depends-on): Likewise.
8256         * modules/sendto (Depends-on): Likewise.
8257         * modules/setsockopt (Depends-on): Likewise.
8258         * modules/shutdown (Depends-on): Likewise.
8259         * modules/socket (Depends-on): Likewise.
8260         * modules/execute (Depends-on): Likewise.
8261         * modules/spawn-pipe (Depends-on): Likewise.
8262         * modules/flock (Depends-on): Likewise.
8263         * modules/fsync (Depends-on): Likewise.
8264         * modules/isapipe (Depends-on): Likewise.
8265         * tests/test-cloexec.c: Include msvc-nothrow.h.
8266         * tests/test-dup-safer.c: Likewise.
8267         * tests/test-dup2.c: Likewise.
8268         * tests/test-dup3.c: Likewise.
8269         * tests/test-fcntl.c: Likewise.
8270         * tests/test-pipe.c: Likewise.
8271         * tests/test-pipe2.c: Likewise.
8272         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8273         * modules/unistd-safer-tests (Depends-on): Likewise.
8274         * modules/dup2-tests (Depends-on): Likewise.
8275         * modules/dup3-tests (Depends-on): Likewise.
8276         * modules/fcntl-tests (Depends-on): Likewise.
8277         * modules/pipe-posix-tests (Depends-on): Likewise.
8278         * modules/pipe2-tests (Depends-on): Likewise.
8279
8280 2011-09-23  Bruno Haible  <bruno@clisp.org>
8281
8282         dup2: Make code more maintainable.
8283         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8284         (rpl_dup2): Use it.
8285         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8286         * modules/dup2 (configure.ac): Invoke it.
8287         Reported by Paul Eggert.
8288
8289 2011-09-23  Bruno Haible  <bruno@clisp.org>
8290
8291         msvc-inval: Fix compilation error.
8292         * lib/msvc-inval.h: Include <excpt.h>.
8293
8294 2011-09-23  Bruno Haible  <bruno@clisp.org>
8295
8296         mkdir: Tweak for MSVC 9.
8297         * lib/sys_stat.in.h: Update comments.
8298         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8299
8300         Tests for module 'chdir'.
8301         * modules/chdir-tests: New file.
8302         * tests/test-chdir.c: New file.
8303
8304         New module 'chdir'.
8305         * modules/chdir: New file.
8306         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8307         (chdir): New declaration.
8308         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8309         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8310         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8311         * tests/test-unistd-c++.cc: Check signature of chdir.
8312         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8313         * modules/chdir-long (Depends-on): Add chdir.
8314         * modules/fchdir (Depends-on): Likewise.
8315         * modules/rename (Depends-on): Likewise.
8316         * modules/savewd (Depends-on): Likewise.
8317
8318         rmdir: Support for mingw, MSVC 9.
8319         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8320         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8321
8322         getcwd: Tweak for MSVC 9.
8323         * lib/unistd.in.h: Update comments.
8324         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8325
8326 2011-09-22  Bruno Haible  <bruno@clisp.org>
8327
8328         strerror_r-posix: Avoid a link error on MSVC.
8329         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8330         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8331
8332 2011-09-22  Bruno Haible  <bruno@clisp.org>
8333
8334         select: Avoid link errors on MSVC.
8335         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8336         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8337         * modules/pselect (Link): Likewise.
8338         * NEWS: Mention the change.
8339         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8340         test-select-stdin against $(LIB_SELECT).
8341         * modules/pselect-tests (Makefile.am): Link test-pselect against
8342         $(LIB_SELECT).
8343
8344 2011-09-22  Bruno Haible  <bruno@clisp.org>
8345
8346         select: Avoid compilation error on MSVC.
8347         * lib/select.c: Don't include <stdbool.h>.
8348
8349 2011-09-21  Bruno Haible  <bruno@clisp.org>
8350
8351         Consolidate all uses of PATH_MAX in *.m4 files.
8352         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8353         macros.
8354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8355         and gl_PATHMAX_SNIPPET.
8356         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8358         * modules/chdir-long (Files): Add m4/pathmax.m4.
8359         * modules/getcwd (Files): Likewise.
8360
8361 2011-09-21  Bruno Haible  <bruno@clisp.org>
8362
8363         ftruncate: Un-deprecate, concentrate on Win32 support.
8364         * modules/ftruncate (Status, Notice): Remove sections.
8365         (Depends-on): Add largefile.
8366         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8367         non-mingw platforms.
8368         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8369         include <io.h>.
8370         * modules/perror-tests (Depends-on): Add ftruncate.
8371         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8372         'ftruncate' module.
8373
8374 2011-09-21  Bruno Haible  <bruno@clisp.org>
8375
8376         Add dependencies to new dirent related modules.
8377         * modules/opendir (Depends-on): Add closedir.
8378         * modules/getcwd (Depends-on): Add opendir, closedir.
8379         * modules/dirent-safer-tests (Depends-on): Likewise.
8380         * modules/fdopendir-tests (Depends-on): Likewise.
8381         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8382         * modules/renameat-tests (Depends-on): Likewise.
8383
8384 2011-09-21  Bruno Haible  <bruno@clisp.org>
8385
8386         opendir: Avoid compilation error on mingw.
8387         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8388         * modules/opendir (Depends-on): Add unistd.
8389
8390 2011-09-21  Bruno Haible  <bruno@clisp.org>
8391
8392         ftruncate tests: Avoid a test failure on mingw.
8393         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8394
8395 2011-09-21  Bruno Haible  <bruno@clisp.org>
8396
8397         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8398         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8399         native Windows.
8400
8401 2011-09-21  Bruno Haible  <bruno@clisp.org>
8402
8403         New module 'fdopen'.
8404         * lib/stdio.in.h (fdopen): New declaration.
8405         * lib/fdopen.c: New file.
8406         * m4/fdopen.m4: New file.
8407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8408         REPLACE_FDOPEN.
8409         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8410         REPLACE_FDOPEN.
8411         * modules/fdopen: New file.
8412         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8413         * tests/test-stdio-c++.cc: Check signature of fdopen.
8414         * doc/posix-functions/fdopen.texi: Mention the new module.
8415
8416 2011-09-21  Bruno Haible  <bruno@clisp.org>
8417
8418         unlockpt tests: Avoid test failure on NetBSD 5.1.
8419         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8420         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8421
8422 2011-09-21  Bruno Haible  <bruno@clisp.org>
8423
8424         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8425         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8426         * tests/test-getlogin_r.c (main): Likewise.
8427
8428 2011-09-20  Bruno Haible  <bruno@clisp.org>
8429
8430         time tests: Don't require pid_t.
8431         * doc/posix-headers/time.texi: Revert last change.
8432         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8433         * tests/test-time.c: Comment out the check for pid_t.
8434
8435 2011-09-20  Bruno Haible  <bruno@clisp.org>
8436
8437         fsync tests: Avoid a test failure on mingw.
8438         * tests/test-fsync.c (main): Allow a failure with EIO.
8439
8440 2011-09-20  Bruno Haible  <bruno@clisp.org>
8441
8442         euidaccess: Update comments.
8443         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8444
8445 2011-09-20  Bruno Haible  <bruno@clisp.org>
8446
8447         Ensure EBADF returns for socket functions on mingw.
8448         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8449         descriptor is invalid.
8450         * lib/bind.c (rpl_bind): Likewise.
8451         * lib/connect.c (rpl_connect): Likewise.
8452         * lib/getpeername.c (rpl_getpeername): Likewise.
8453         * lib/getsockname.c (rpl_getsockname): Likewise.
8454         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8455         * lib/listen.c (rpl_listen): Likewise.
8456         * lib/recv.c (rpl_recv): Likewise.
8457         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8458         * lib/send.c (rpl_send): Likewise.
8459         * lib/sendto.c (rpl_sendto): Likewise.
8460         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8461         * lib/shutdown.c (rpl_shutdown): Likewise.
8462
8463 2011-09-20  Bruno Haible  <bruno@clisp.org>
8464
8465         select tests: EBADF tests.
8466         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8467         test_bad_fd): New functions.
8468         (test_function): Invoke also test_bad_fd.
8469
8470 2011-09-20  Bruno Haible  <bruno@clisp.org>
8471
8472         Tests for module 'posix_spawn_file_actions_addopen.
8473         * modules/posix_spawn_file_actions_addopen-tests: New file.
8474         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8475
8476         Tests for module 'posix_spawn_file_actions_adddup2'.
8477         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8478         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8479
8480         Tests for module 'posix_spawn_file_actions_addclose'.
8481         * modules/posix_spawn_file_actions_addclose-tests: New file.
8482         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8483
8484 2011-09-20  Bruno Haible  <bruno@clisp.org>
8485
8486         Tests for module 'unlockpt'.
8487         * modules/unlockpt-tests: New file.
8488         * tests/test-unlockpt.c: New file.
8489         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8490
8491         Tests for module 'grantpt'.
8492         * modules/grantpt-tests: New file.
8493         * tests/test-grantpt.c: New file.
8494         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8495
8496 2011-09-20  Bruno Haible  <bruno@clisp.org>
8497
8498         freopen tests: EBADF tests.
8499         * tests/test-freopen.c: Include errno.h, unistd.h.
8500         (main): Add tests for EBADF, commented out for the moment.
8501
8502         fclose tests: EBADF tests.
8503         * tests/test-fclose.c (main): Add tests for EBADF.
8504
8505         fflush tests: EBADF tests.
8506         * tests/test-fflush.c: Include errno.h, macros.h.
8507         (main): Add tests for EBADF.
8508
8509         ftello tests: EBADF tests.
8510         * tests/test-ftello4.sh: New file.
8511         * tests/test-ftello4.c: New file.
8512         * modules/ftello-tests (Files): Add them.
8513         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8514
8515         fseeko tests: EBADF tests.
8516         * tests/test-fseeko4.sh: New file.
8517         * tests/test-fseeko4.c: New file.
8518         * modules/fseeko-tests (Files): Add them.
8519         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8520
8521         Tests for function fputc().
8522         * modules/fputc-tests: New file.
8523         * tests/test-fputc.c: New file.
8524         * modules/stdio-tests (Depends-on): Add fputc-tests.
8525
8526         Tests for function fgetc().
8527         * modules/fgetc-tests: New file.
8528         * tests/test-fgetc.c: New file.
8529         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8530
8531         Tests for function fdopen().
8532         * modules/fdopen-tests: New file.
8533         * tests/test-fdopen.c: New file.
8534         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8535
8536         Tests for module 'vdprintf'.
8537         * modules/vdprintf-tests: New file.
8538         * tests/test-vdprintf.c: New file.
8539
8540         Tests for module 'dprintf'.
8541         * modules/dprintf-tests: New file.
8542         * tests/test-dprintf.c: New file.
8543
8544 2011-09-20  Bruno Haible  <bruno@clisp.org>
8545
8546         Tests for module 'ioctl'.
8547         * modules/ioctl-tests: New file.
8548         * tests/test-ioctl.c: New file.
8549
8550 2011-09-20  Bruno Haible  <bruno@clisp.org>
8551
8552         fcntl tests: EBADF tests.
8553         * tests/test-fcntl.c (main): Add more tests for EBADF.
8554
8555 2011-09-20  Bruno Haible  <bruno@clisp.org>
8556
8557         utimensat tests: EBADF tests.
8558         * tests/test-utimensat.c (main): Add tests for EBADF.
8559
8560         renameat tests: EBADF tests.
8561         * tests/test-renameat.c (main): Add tests for EBADF.
8562
8563         mkfifoat tests: EBADF tests.
8564         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8565
8566         readlinkat tests: EBADF tests.
8567         * tests/test-readlinkat.c (main): Add tests for EBADF.
8568
8569         symlinkat tests: EBADF tests.
8570         * tests/test-symlinkat.c (main): Add tests for EBADF.
8571
8572         linkat tests: EBADF tests.
8573         * tests/test-linkat.c (main): Add tests for EBADF.
8574
8575         Tests for module 'faccessat'.
8576         * modules/faccessat-tests: New file.
8577         * tests/test-faccessat.c: New file.
8578
8579         fdopendir tests: EBADF tests.
8580         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8581
8582         openat tests: EBADF tests.
8583         * tests/test-fchownat.c (main): Add tests for EBADF.
8584         * tests/test-fstatat.c (main): Likewise.
8585         * tests/test-mkdirat.c (main): Likewise.
8586         * tests/test-openat.c (main): Likewise.
8587         * tests/test-unlinkat.c (main): Likewise.
8588         * tests/test-fchmodat.c: New file.
8589         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8590         (Makefile.am): Also run 'test-fchmodat'.
8591
8592 2011-09-20  Bruno Haible  <bruno@clisp.org>
8593
8594         utimens, futimens, fdutimensat tests: EBADF tests.
8595         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8596
8597         Tests for function fstat().
8598         * modules/fstat-tests: New file.
8599         * tests/test-fstat.c: New file.
8600         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8601
8602 2011-09-20  Bruno Haible  <bruno@clisp.org>
8603
8604         test-ttyname_r tests: EBADF tests.
8605         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8606
8607         Tests for module 'isatty'.
8608         * modules/isatty-tests: New file.
8609         * tests/test-isatty.c: New file.
8610
8611         Tests for module 'write'.
8612         * modules/write-tests: New file.
8613         * tests/test-write.c: New file.
8614
8615         Tests for module 'read'.
8616         * modules/read-tests: New file.
8617         * tests/test-read.c: New file.
8618
8619         pwrite tests: EBADF tests.
8620         * tests/test-pwrite.c (main): Add tests for EBADF.
8621
8622         pread tests: EBADF tests.
8623         * tests/test-pread.c (main): Add tests for EBADF.
8624
8625         lseek tests: EBADF tests.
8626         * tests/test-lseek.c (main): Add more tests for EBADF.
8627
8628         Tests for module 'ftruncate'.
8629         * modules/ftruncate-tests: New file.
8630         * tests/test-ftruncate.sh: New file.
8631         * tests/test-ftruncate.c: New file.
8632
8633         fsync tests: EBADF tests.
8634         * tests/test-fsync.c (main): Add more tests for EBADF.
8635
8636         fdatasync tests: EBADF tests.
8637         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8638
8639         Tests for module 'fchown'.
8640         * modules/fchown-tests: New file.
8641         * tests/test-fchown.c: New file.
8642
8643         Tests for module 'fchmod'.
8644         * modules/fchmod-tests: New file.
8645         * tests/test-fchmod.c: New file.
8646
8647         fchdir tests: EBADF tests.
8648         * tests/test-fchdir.c (main): Add more tests for EBADF.
8649
8650         dup2 tests: EBADF tests.
8651         * tests/test-dup2.c (main): Add more tests for EBADF.
8652
8653         Tests for module 'dup'.
8654         * modules/dup-tests: New file.
8655         * tests/test-dup.c: New file.
8656
8657         Tests for module 'close'.
8658         * modules/close-tests: New file.
8659         * tests/test-close.c: New file.
8660
8661 2011-09-20  Bruno Haible  <bruno@clisp.org>
8662
8663         Tests for module 'shutdown'.
8664         * modules/shutdown-tests: New file.
8665         * tests/test-shutdown.c: New file.
8666
8667         Tests for module 'setsockopt'.
8668         * modules/setsockopt-tests: New file.
8669         * tests/test-setsockopt.c: New file.
8670
8671         Tests for module 'sendto'.
8672         * modules/sendto-tests: New file.
8673         * tests/test-sendto.c: New file.
8674
8675         Tests for module 'send'.
8676         * modules/send-tests: New file.
8677         * tests/test-send.c: New file.
8678
8679         Tests for module 'recvfrom'.
8680         * modules/recvfrom-tests: New file.
8681         * tests/test-recvfrom.c: New file.
8682
8683         Tests for module 'recv'.
8684         * modules/recv-tests: New file.
8685         * tests/test-recv.c: New file.
8686
8687         Tests for module 'listen'.
8688         * modules/listen-tests: New file.
8689         * tests/test-listen.c: New file.
8690
8691         Tests for module 'getsockopt'.
8692         * modules/getsockopt-tests: New file.
8693         * tests/test-getsockopt.c: New file.
8694
8695         Tests for module 'getsockname'.
8696         * modules/getsockname-tests: New file.
8697         * tests/test-getsockname.c: New file.
8698
8699         Tests for module 'getpeername'.
8700         * modules/getpeername-tests: New file.
8701         * tests/test-getpeername.c: New file.
8702
8703         Tests for module 'connect'.
8704         * modules/connect-tests: New file.
8705         * tests/test-connect.c: New file.
8706
8707         Tests for module 'bind'.
8708         * modules/bind-tests: New file.
8709         * tests/test-bind.c: New file.
8710
8711         accept4 tests: Fix for native Windows.
8712         * tests/test-accept4.c: Include sockets.h.
8713         (main): Invoke gl_sockets_startup.
8714         * modules/accept4-tests (Depends-on): Add sockets.
8715
8716         accept tests: Fix for native Windows.
8717         * tests/test-accept.c: Include sockets.h.
8718         (main): Invoke gl_sockets_startup.
8719         * modules/accept-tests (Depends-on): Add sockets.
8720
8721 2011-09-19  Bruno Haible  <bruno@clisp.org>
8722
8723         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8724         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8725         do...while(0).
8726         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8727         Suggested by Paul Eggert.
8728
8729 2011-09-19  Bruno Haible  <bruno@clisp.org>
8730
8731         sched: Ensure pid_t is defined.
8732         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8733         not define pid_t.
8734         * lib/sched.in.h: Include <sys/types.h>.
8735         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8737
8738 2011-09-19  Bruno Haible  <bruno@clisp.org>
8739
8740         msvc-inval: Ensure the entire expansion is a single statement.
8741         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8742         of braces.
8743
8744 2011-09-19  Jim Meyering  <meyering@redhat.com>
8745
8746         tests: use printf, not echo in init.sh's warn_ function
8747         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8748         misbehave when given strings containing a backslash or starting
8749         with e.g., -n.  James Youngman suggested setting IFS.
8750
8751 2011-09-19  Eric Blake  <eblake@redhat.com>
8752
8753         futimens: enhance test
8754         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8755         closed non-negative fd.
8756
8757         date: accept 'hence' as opposite of 'ago'
8758         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8759         * tests/test-parse-datetime.c (main): Enhance test.
8760         Suggested by Jesse Wilson.
8761
8762 2011-09-19  Jim Meyering  <meyering@redhat.com>
8763
8764         getcwd: don't fail in a deep directory on a system without openat
8765         Before this change, getcwd would fail when called from a directory
8766         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8767         the non-openat implementation used "..", "../..", "../../..", etc.
8768         to access ancestor directories.  With too many, that string would
8769         be longer than PATH_MAX.
8770         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8771         using gnulib's openat replacement.
8772         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8773         we're using the replacement function.
8774
8775 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8776
8777         maint.mk: avoid warnings from perl about missing files
8778         * top/maint.mk (def_sym_regex): Ignore files listed in
8779         $(gl_other_headers_) that do not exist, say because a project
8780         does not use a corresponding module.
8781
8782 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8783
8784         stat: use pathmax.h only if needed
8785         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8786         This is better for Emacs, which does not have a mingw port and
8787         therefore can avoid the pathmax module.
8788
8789         utimens: remove dependency on dup2
8790         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8791         to work around the Linux kernel bug.
8792         * modules/utimens (Depends-on): Remove dup2.
8793
8794 2011-09-18  Bruno Haible  <bruno@clisp.org>
8795
8796         inet_ntop, inet_pton: Look for it also in libresolv.
8797         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8798         libnsl, search for it in libresolv.
8799         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8800         Needed on Solaris 7.
8801
8802 2011-09-18  Bruno Haible  <bruno@clisp.org>
8803
8804         accept, accept4 tests: Avoid link error on Solaris.
8805         * modules/accept-tests (Makefile.am): Link test-accept against
8806         $(LIBSOCKET).
8807         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8808         $(LIBSOCKET).
8809
8810         accept4: Avoid link error on Solaris.
8811         * modules/accept4 (Link): New section.
8812
8813         socket functions: Avoid link errors on Solaris.
8814         * modules/accept (Depends-on): Add socketlib.
8815         (Link): New section.
8816         * modules/bind (Depends-on): Add socketlib.
8817         (Link): New section.
8818         * modules/connect (Depends-on): Add socketlib.
8819         (Link): New section.
8820         * modules/getpeername (Depends-on): Add socketlib.
8821         (Link): New section.
8822         * modules/getsockname (Depends-on): Add socketlib.
8823         (Link): New section.
8824         * modules/getsockopt (Depends-on): Add socketlib.
8825         (Link): New section.
8826         * modules/listen (Depends-on): Add socketlib.
8827         (Link): New section.
8828         * modules/recv (Depends-on): Add socketlib.
8829         (Link): New section.
8830         * modules/recvfrom (Depends-on): Add socketlib.
8831         (Link): New section.
8832         * modules/send (Depends-on): Add socketlib.
8833         (Link): New section.
8834         * modules/sendto (Depends-on): Add socketlib.
8835         (Link): New section.
8836         * modules/setsockopt (Depends-on): Add socketlib.
8837         (Link): New section.
8838         * modules/shutdown (Depends-on): Add socketlib.
8839         (Link): New section.
8840         * modules/socket (Depends-on): Add socketlib.
8841         (Link): New section.
8842
8843 2011-09-18  Bruno Haible  <bruno@clisp.org>
8844
8845         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8846         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8847         than 5 seconds.
8848         * modules/ptsname-tests (configure.ac): Test for alarm.
8849
8850 2011-09-18  Bruno Haible  <bruno@clisp.org>
8851
8852         posix_spawn_file_actions_add*: Fix module dependencies.
8853         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8854         posix_spawn_file_actions_init.
8855         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8856         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8857
8858 2011-09-18  Bruno Haible  <bruno@clisp.org>
8859
8860         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8861         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8862         * tests/test-renameat.c (main): Likewise.
8863
8864 2011-09-18  Bruno Haible  <bruno@clisp.org>
8865
8866         Tests for module 'accept4'.
8867         * modules/accept4-tests: New file.
8868         * tests/test-accept4.c: New file.
8869
8870 2011-09-18  Bruno Haible  <bruno@clisp.org>
8871
8872         Tests for module 'accept'.
8873         * modules/accept-tests: New file.
8874         * tests/test-accept.c: New file.
8875
8876 2011-09-18  Bruno Haible  <bruno@clisp.org>
8877
8878         dup2: Support for MSVC.
8879         * lib/dup2.c: Include msvc-inval.h.
8880         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8881         _get_osfhandle calls.
8882         * modules/dup2 (Depends-on): Add msvc-inval.
8883         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8884
8885         New module 'msvc-inval'.
8886         * lib/msvc-inval.h: New file.
8887         * lib/msvc-inval.c: New file.
8888         * m4/msvc-inval.m4: New file.
8889         * modules/msvc-inval: New file.
8890
8891 2011-09-17  Bruno Haible  <bruno@clisp.org>
8892
8893         Tests for module 'pclose'.
8894         * modules/pclose-tests: New file.
8895
8896         New module 'pclose'.
8897         * lib/stdio.in.h (pclose): New declaration.
8898         * lib/pclose.c: New file.
8899         * m4/pclose.m4: New file.
8900         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8901         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8902         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8903         * modules/pclose: New file.
8904         * modules/popen-tests (Depends-on): Add pclose.
8905         * modules/popen-safer-tests (Depends-on): Likewise.
8906         * doc/posix-functions/pclose.texi: Mention the new module.
8907
8908 2011-09-17  Bruno Haible  <bruno@clisp.org>
8909
8910         popen: Support for MSVC.
8911         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8912         * lib/popen.c (popen): Provide alternate definition for native Windows.
8913         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8915         * modules/popen (Depends-on, configure.ac): Update condition.
8916         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8917         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8918         fixed.
8919
8920 2011-09-17  Bruno Haible  <bruno@clisp.org>
8921
8922         isnanl, isnand, isnanf: Work around MSVC bug.
8923         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8924
8925 2011-09-17  Bruno Haible  <bruno@clisp.org>
8926
8927         sys_socket tests: Fix recent mistake.
8928         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8929
8930 2011-09-17  Bruno Haible  <bruno@clisp.org>
8931
8932         putenv: Support for MSVC.
8933         * modules/putenv (Depends-on): Add environ.
8934         * lib/putenv.c (environ): Disable declaration.
8935         * lib/unistd.in.h: Update comment.
8936
8937 2011-09-17  Bruno Haible  <bruno@clisp.org>
8938
8939         math: Avoid macro redefinition warnings on MSVC.
8940         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8941         Undefine before redefining.
8942
8943 2011-09-17  Bruno Haible  <bruno@clisp.org>
8944
8945         doc: Mention functions which are declared as macros.
8946         * doc/posix-functions/*[fl].texi: Mention that some functions are
8947         defined as macros with arguments only.
8948
8949 2011-09-17  Bruno Haible  <bruno@clisp.org>
8950
8951         Add dependencies to new dirent related modules.
8952         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8953         * modules/fts (Depends-on): Likewise.
8954         * modules/glob (Depends-on): Likewise.
8955         * modules/savedir (Depends-on): Likewise.
8956         * modules/scandir (Depends-on): Likewise.
8957         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8958         * modules/fdopendir (Depends-on): Add opendir.
8959
8960 2011-09-17  Bruno Haible  <bruno@clisp.org>
8961
8962         inet_pton: Support for MSVC on Windows Vista or newer.
8963         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8964         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8965         HAVE_DECL_INET_PTON is defined.
8966         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8967         On platforms with <winsock2.h>, test whether inet_pton is declared in
8968         <ws2tcpip.h>. If so, arrange to replace it.
8969         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8970         REPLACE_INET_PTON.
8971         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8972         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8973         (Depends-on, configure.ac): Update condition.
8974         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8975
8976 2011-09-17  Bruno Haible  <bruno@clisp.org>
8977
8978         inet_ntop: Support for MSVC on Windows Vista or newer.
8979         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8980         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8981         HAVE_DECL_INET_NTOP is defined.
8982         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8983         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8984         <ws2tcpip.h>. If so, arrange to replace it.
8985         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8986         REPLACE_INET_NTOP.
8987         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8988         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8989         (Depends-on, configure.ac): Update condition.
8990         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8991
8992 2011-09-16  Eric Blake  <eblake@redhat.com>
8993
8994         test-fsync: yet another enhancement
8995         * tests/test-fsync.c (main): Also test behavior on read-only text
8996         file.
8997
8998 2011-09-16  Bruno Haible  <bruno@clisp.org>
8999
9000         Enhance fsync, fdatasync tests.
9001         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9002         * tests/test-fdatasync.c (main): Likewise.
9003
9004 2011-09-16  Bruno Haible  <bruno@clisp.org>
9005
9006         Support for MSVC compiler: Ensure mode_t gets defined.
9007         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9008         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9010         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9011         * tests/test-fcntl-h.c: Check that mode_t is defined.
9012         * tests/test-sys_stat.c: Likewise.
9013         * tests/test-sys_types.c: Likewise.
9014         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9015         * doc/posix-headers/sys_stat.texi: Likewise.
9016         * doc/posix-headers/sys_types.texi: Likewise.
9017
9018 2011-09-16  Bruno Haible  <bruno@clisp.org>
9019
9020         sys_stat: Support for MSVC.
9021         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9022         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9023         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9024         MSVC.
9025
9026 2011-09-16  Bruno Haible  <bruno@clisp.org>
9027
9028         Support for MSVC compiler: Ensure off_t gets defined.
9029         * lib/unistd.in.h: Include <sys/types.h>.
9030         * tests/test-fcntl-h.c: Check that off_t is defined.
9031         * tests/test-sys_stat.c: Likewise.
9032         * tests/test-sys_types.c: Likewise.
9033
9034 2011-09-16  Eric Blake  <eblake@redhat.com>
9035
9036         fdatasync: port to Solaris
9037         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9038         * modules/fdatasync (Link): Document it.
9039         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9040
9041         fdatasync: port to MacOS X 10.7
9042         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9043         declared.
9044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9045         * modules/unistd (Makefile.am): Substitute it.
9046         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9047         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9048
9049         fdatasync: minor improvements
9050         * modules/fdatasync (Depends-on): Add condition for fsync.
9051         * lib/fdatasync.c (fdatasync): Add comment.
9052         * tests/test-unistd-c++.cc: Test fdatasync.
9053
9054         unistd: update refs to newer POSIX
9055         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9056         Suggested by Bruno Haible.
9057
9058         fdatasync: new module
9059         * modules/fsync (Description): Document difference to fdatasync.
9060         * modules/fdatasync: New module.
9061         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9062         * lib/fdatasync.c (fdatasync): Likewise.
9063         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9064         defaults.
9065         * modules/unistd (Makefile.am): Set witnesses.
9066         * lib/unistd.in.h (fdatasync): Declare.
9067         * MODULES.html.sh: Document it.
9068         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9069         * modules/fdatasync-tests: New test.
9070         * tests/test-fdatasync.c: Likewise.
9071
9072 2011-09-16  Eric Blake  <eblake@redhat.com>
9073
9074         test-fsync: enhance tests
9075         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9076         * tests/test-fsync.c (main): Enhance test.
9077
9078 2011-09-15  Bruno Haible  <bruno@clisp.org>
9079
9080         Support for MSVC compiler: Ensure ssize_t gets defined.
9081         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9082         * doc/posix-headers/stdio.texi: Likewise.
9083         * modules/stdio (Depends-on): Add ssize_t.
9084         * modules/sys_socket (Depends-on): Likewise.
9085         * modules/sys_types (Depends-on): Likewise.
9086         * modules/sys_uio (Depends-on): Likewise.
9087         * modules/unistd (Depends-on): Likewise.
9088         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9089         * tests/test-sys_types.c: Check that ssize_t is defined.
9090
9091 2011-09-14  Bruno Haible  <bruno@clisp.org>
9092
9093         Avoid using #, the m4 comment starter character, near brackets.
9094         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9095         delimiter character in sed expressions.
9096         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9097         Suggested by Eric Blake.
9098
9099         Properly quote AC_CHECK_DECLS' 4th argument.
9100         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9101         argument.
9102         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9103         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9104         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9105         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9106         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9107         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9109         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9110         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9111         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9112         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9113         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9114         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9115         * m4/isinf.m4 (gl_ISINF): Likewise.
9116         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9117         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9118         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9119         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9122         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9123         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9124         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9125         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9126         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9127         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9129         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9131         Reported by Eric Blake.
9132
9133         Properly quote AC_CHECK_DECL's 4th argument.
9134         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9135         argument.
9136         * m4/argp.m4 (gl_ARGP): Likewise.
9137         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9138         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9139         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9140         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9141         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9142         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9144         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9146         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9147         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9148         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9149         Reported by Eric Blake.
9150
9151 2011-09-14  Eric Blake  <eblake@redhat.com>
9152
9153         opendir: avoid compile warning
9154         * lib/opendir.c (includes): Always include errno.h.
9155         Reported by Tatsuro MATSUOKA.
9156
9157 2011-09-14  Jim Meyering  <meyering@redhat.com>
9158
9159         maint.mk: sc_tight_scope: propagate failure from sub-make
9160         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9161         Reported by Martin von Gagern.
9162
9163 2011-09-13  Bruno Haible  <bruno@clisp.org>
9164
9165         tempname: Support for MSVC.
9166         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9167         MSVC.
9168         * modules/tempname (Depends-on): Add fcntl-h.
9169
9170 2011-09-13  Bruno Haible  <bruno@clisp.org>
9171
9172         sys_time: Support for MSVC.
9173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9174         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9175         include <winsock2.h>.
9176         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9177         function declarations that collide with POSIX.
9178         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9179         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9180
9181 2011-09-13  Bruno Haible  <bruno@clisp.org>
9182
9183         stat: Support for MSVC.
9184         * lib/stat.c: Include pathmax.h.
9185         * modules/stat (Depends-on): Add pathmax.
9186
9187         pathmax: Support for native Windows.
9188         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9189
9190 2011-09-12  Bruno Haible  <bruno@clisp.org>
9191
9192         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9193         * lib/dirent.in.h (struct dirent): New type.
9194         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9195         DT_WHT): New macros.
9196         (DIR): New type.
9197         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9198         (readdir, rewinddir): New declarations.
9199         * lib/dirent-private.h: New file.
9200         * lib/opendir.c: New file.
9201         * lib/readdir.c: New file.
9202         * lib/rewinddir.c: New file.
9203         * lib/closedir.c: New file.
9204         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9205         * m4/opendir.m4: New file.
9206         * m4/readdir.m4: New file.
9207         * m4/rewinddir.m4: New file.
9208         * m4/closedir.m4: New file.
9209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9210         REPLACE_CLOSEDIR here.
9211         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9212         readdir, rewinddir are declared.
9213         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9214         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9215         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9216         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9217         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9218         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9219         * modules/opendir: New file.
9220         * modules/readdir: New file.
9221         * modules/rewinddir: New file.
9222         * modules/closedir: New file.
9223         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9224         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9225         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9226         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9227         * NEWS: Mention the 'fchdir' change.
9228
9229 2011-09-11  Bruno Haible  <bruno@clisp.org>
9230
9231         asm-underscore.m4: Support for MSVC.
9232         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9233         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9234
9235 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9236
9237         Doc about crypt functions.
9238         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9239         needing for _GNU_SOURCE to get crypt.
9240         * doc/posix-functions/encrypt.texi: Likewise.
9241         * doc/posix-functions/setkey.texi: Likewise.
9242
9243 2011-09-11  Bruno Haible  <bruno@clisp.org>
9244
9245         doc: Update regarding MSVC 9.
9246         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9247         tested".
9248         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9249         * doc/posix-headers/*.texi: Likewise.
9250         * doc/pastposix-functions/*.texi: Likewise.
9251         * doc/glibc-functions/*.texi: Likewise.
9252         * doc/glibc-headers/*.texi: Likewise.
9253
9254 2011-09-11  Bruno Haible  <bruno@clisp.org>
9255
9256         unistd et al.: Don't assume <unistd.h> exists.
9257         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9258         does not exist.
9259         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9260         exist. But include <stdlib.h>.
9261         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9262         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9263         symlink() does not exist.
9264         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9265         include <io.h> instead.
9266         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9267         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9268         include <direct.h> instead.
9269         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9271         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9272         <io.h> instead.
9273         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9274         correctly if the system does not have hard links.
9275         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9276         <direct.h> instead.
9277         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9278         it when looking for function declarations.
9279         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9280         <direct.h> and <io.h> instead.
9281         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9282
9283 2011-09-11  Bruno Haible  <bruno@clisp.org>
9284
9285         strcase: Support for MSVC.
9286         * modules/strcase (Status, Notice): Remove obsoletion mark.
9287         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9288         * doc/posix-functions/strncasecmp.texi: Likewise.
9289
9290         strings: Don't assume <strings.h> exists.
9291         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9292         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9293         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9294         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9295
9296 2011-09-11  Bruno Haible  <bruno@clisp.org>
9297
9298         dirent: Don't assume <dirent.h> exists.
9299         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9300         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9301         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9302         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9303
9304 2011-09-11  Bruno Haible  <bruno@clisp.org>
9305
9306         Fix wint_t on MSVC.
9307         * lib/wchar.in.h (wint_t): On MSVC, override it.
9308         * lib/wctype.in.h (wint_t): Likewise.
9309         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9310         MSVC.
9311         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9312         * doc/posix-headers/wctype.texi: Likewise.
9313
9314 2011-09-11  Bruno Haible  <bruno@clisp.org>
9315
9316         sys_types: Fix typo.
9317         * lib/sys_types.in.h: Fix typo in comment.
9318         Reported by Paul Eggert.
9319
9320         Support for MSVC compiler: Ensure size_t gets defined.
9321         * modules/strings (Depends-on): Add 'sys_types'.
9322         * modules/sys_uio (Depends-on): Likewise.
9323         * lib/sys_uio.in.h: Update comment.
9324
9325         C++ tests for module 'sys_types'.
9326         * modules/sys_types-c++-tests: New file.
9327         * tests/test-sys_types-c++.cc: New file.
9328
9329         Tests for module 'sys_types'.
9330         * modules/sys_types-tests: New file.
9331         * tests/test-sys_types.c: New file.
9332
9333         New module 'sys_types'.
9334         * lib/sys_types.in.h: New file.
9335         * m4/sys_types_h.m4: New file.
9336         * modules/sys_types: New file.
9337         * doc/posix-headers/sys_types.texi: Mention the new module and the
9338         size_t problem on MSVC 9.
9339
9340 2011-09-11  Bruno Haible  <bruno@clisp.org>
9341
9342         Support for MSVC compiler: Avoid division by a literal 0.
9343         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9344         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9345         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9346         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9347         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9348         * tests/infinity.h: New file.
9349         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9350         on MSVC.
9351         * tests/test-ceilf1.c: Include infinity.h.
9352         (main): Use Infinityf.
9353         * tests/test-ceil1.c: Include infinity.h.
9354         (main): Use Infinityd.
9355         * tests/test-ceill.c: Include infinity.h.
9356         (main): Use Infinityl.
9357         * tests/test-dprintf-posix.c: Include infinity.h.
9358         (test_function): Use Infinityd.
9359         * tests/test-floorf1.c: Include infinity.h.
9360         (main): Use Infinityf.
9361         * tests/test-floor1.c: Include infinity.h.
9362         (main): Use Infinityd.
9363         * tests/test-floorl.c: Include infinity.h.
9364         (main): Use Infinityl.
9365         * tests/test-fprintf-posix.c: Include infinity.h.
9366         (test_function): Use Infinityd.
9367         * tests/test-frexp.c: Include infinity.h.
9368         (main): Use Infinityd.
9369         * tests/test-frexpl.c: Include infinity.h.
9370         (main): Use Infinityl.
9371         * tests/test-isfinite.c: Include infinity.h.
9372         (test_isfinitef): Use Infinityf.
9373         (test_isfinited): Use Infinityd.
9374         (test_isfinitel): Use Infinityl.
9375         * tests/test-isinf.c: Include infinity.h.
9376         (test_isinff): Use Infinityf.
9377         (test_isinfd): Use Infinityd.
9378         (test_isinfl): Use Infinityl.
9379         * tests/test-isnan.c: Include infinity.h.
9380         (test_float): Use Infinityf.
9381         (test_double): Use Infinityd.
9382         (test_long_double): Use Infinityl.
9383         * tests/test-isnanf.h: Include infinity.h.
9384         (main): Use Infinityf.
9385         * tests/test-isnand.h: Include infinity.h.
9386         (main): Use Infinityd.
9387         * tests/test-isnanl.h: Include infinity.h.
9388         (main): Use Infinityl.
9389         * tests/test-ldexpl.c: Include infinity.h.
9390         (main): Use Infinityl.
9391         * tests/test-printf-posix.h: Include infinity.h.
9392         (test_function): Use Infinityd.
9393         * tests/test-roundf1.c: Include infinity.h.
9394         (main): Use Infinityf.
9395         * tests/test-round1.c: Include infinity.h.
9396         (main): Use Infinityd.
9397         * tests/test-roundl.c: Include infinity.h.
9398         (main): Use Infinityl.
9399         * tests/test-signbit.c: Include infinity.h.
9400         (test_signbitf): Use Infinityf.
9401         (test_signbitd): Use Infinityd.
9402         (test_signbitl): Use Infinityl.
9403         * tests/test-snprintf-posix.h: Include infinity.h.
9404         (test_function): Use Infinityd, Infinityl.
9405         * tests/test-sprintf-posix.h: Include infinity.h.
9406         (test_function): Use Infinityd, Infinityl.
9407         * tests/test-truncf1.c: Include infinity.h.
9408         (main): Use Infinityf.
9409         * tests/test-trunc1.c: Include infinity.h.
9410         (main): Use Infinityd.
9411         * tests/test-truncl.c: Include infinity.h.
9412         (main): Use Infinityl.
9413         * tests/test-vasnprintf-posix.c: Include infinity.h.
9414         (test_function): Use Infinityd, Infinityl.
9415         * tests/test-vasprintf-posix.c: Include infinity.h.
9416         (test_function): Use Infinityd, Infinityl.
9417         * modules/ceilf-tests (Files): Add tests/infinity.h.
9418         * modules/ceil-tests (Files): Likewise.
9419         * modules/ceill-tests (Files): Likewise.
9420         * modules/dprintf-posix-tests (Files): Likewise.
9421         * modules/floorf-tests (Files): Likewise.
9422         * modules/floor-tests (Files): Likewise.
9423         * modules/floorl-tests (Files): Likewise.
9424         * modules/fprintf-posix-tests (Files): Likewise.
9425         * modules/frexp-tests (Files): Likewise.
9426         * modules/frexp-nolibm-tests (Files): Likewise.
9427         * modules/frexpl-tests (Files): Likewise.
9428         * modules/frexpl-nolibm-tests (Files): Likewise.
9429         * modules/isfinite-tests (Files): Likewise.
9430         * modules/isinf-tests (Files): Likewise.
9431         * modules/isnan-tests (Files): Likewise.
9432         * modules/isnanf-tests (Files): Likewise.
9433         * modules/isnanf-nolibm-tests (Files): Likewise.
9434         * modules/isnand-tests (Files): Likewise.
9435         * modules/isnand-nolibm-tests (Files): Likewise.
9436         * modules/isnanl-tests (Files): Likewise.
9437         * modules/isnanl-nolibm-tests (Files): Likewise.
9438         * modules/ldexpl-tests (Files): Likewise.
9439         * modules/printf-posix-tests (Files): Likewise.
9440         * modules/roundf-tests (Files): Likewise.
9441         * modules/round-tests (Files): Likewise.
9442         * modules/roundl-tests (Files): Likewise.
9443         * modules/signbit-tests (Files): Likewise.
9444         * modules/snprintf-posix-tests (Files): Likewise.
9445         * modules/sprintf-posix-tests (Files): Likewise.
9446         * modules/truncf-tests (Files): Likewise.
9447         * modules/trunc-tests (Files): Likewise.
9448         * modules/truncl-tests (Files): Likewise.
9449         * modules/vasnprintf-posix-tests (Files): Likewise.
9450         * modules/vasprintf-posix-tests (Files): Likewise.
9451         * modules/vdprintf-posix-tests (Files): Likewise.
9452         * modules/vfprintf-posix-tests (Files): Likewise.
9453         * modules/vprintf-posix-tests (Files): Likewise.
9454         * modules/vsnprintf-posix-tests (Files): Likewise.
9455         * modules/vsprintf-posix-tests (Files): Likewise.
9456         * modules/xprintf-posix-tests (Files): Likewise.
9457
9458 2011-09-11  Bruno Haible  <bruno@clisp.org>
9459
9460         Ensure pid_t gets defined.
9461         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9462         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9463         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9464         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9465         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9466         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9467         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9468         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9469         * tests/test-fcntl-h.c: Check that pid_t is defined.
9470         * tests/test-sched.c: Likewise.
9471         * tests/test-termios.c: Likewise.
9472         * tests/test-time.c: Likewise.
9473         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9474         * doc/posix-headers/signal.texi: Likewise.
9475         * doc/posix-headers/sys_types.texi: Likewise.
9476         * doc/posix-headers/time.texi: Likewise.
9477
9478 2011-09-11  Bruno Haible  <bruno@clisp.org>
9479
9480         acl: Fix compilation on Solaris 10 (older version).
9481         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9482         of ACE_EVERYONE.
9483         * lib/set-mode-acl.c (qset_acl): Likewise.
9484         Reported by Christian Jullien <eligis@orange.fr>.
9485
9486 2011-09-10  Bruno Haible  <bruno@clisp.org>
9487
9488         iconv, unsetenv: Add support for MSVC compiler.
9489         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9490         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9491
9492 2011-09-10  Bruno Haible  <bruno@clisp.org>
9493
9494         *printf: Add support for MSVC compiler.
9495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9496         handles the exception caused by the %n directive. When cross-compiling,
9497         guess no on native Windows.
9498         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9499         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9500         emulate it through vsnprintf.
9501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9502         * doc/posix-functions/dprintf.texi: Update documentation regarding
9503         MSVC 9.
9504         * doc/posix-functions/fprintf.texi: Likewise.
9505         * doc/posix-functions/printf.texi: Likewise.
9506         * doc/posix-functions/snprintf.texi: Likewise.
9507         * doc/posix-functions/sprintf.texi: Likewise.
9508         * doc/posix-functions/swprintf.texi: Likewise.
9509         * doc/posix-functions/vdprintf.texi: Likewise.
9510         * doc/posix-functions/vfprintf.texi: Likewise.
9511         * doc/posix-functions/vprintf.texi: Likewise.
9512         * doc/posix-functions/vsnprintf.texi: Likewise.
9513         * doc/posix-functions/vsprintf.texi: Likewise.
9514         * doc/glibc-functions/asprintf.texi: Likewise.
9515         * doc/glibc-functions/obstack_printf.texi: Likewise.
9516         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9517         * doc/glibc-functions/vasprintf.texi: Likewise.
9518
9519 2011-09-10  Bruno Haible  <bruno@clisp.org>
9520
9521         nocrash: Add support for native Windows.
9522         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9523
9524 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9525             Bruno Haible  <bruno@clisp.org>
9526
9527         absolute-header, include-next: Add support for MSVC compiler.
9528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9529         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9530         directory separator in #line directives.
9531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9532         recognize also backslash as directory separator in #line directives.
9533
9534 2011-09-08  Jim Meyering  <meyering@redhat.com>
9535
9536         maint.mk: mark the post-release commit log with "maint: " prefix
9537         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9538         one-line commit-log summary.
9539
9540 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9541             Bruno Haible  <bruno@clisp.org>
9542
9543         Doc about crypt functions.
9544         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9545         systems.
9546         * doc/posix-functions/encrypt.texi: Likewise.
9547         * doc/posix-functions/setkey.texi: Likewise.
9548
9549 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9550
9551         * lib/gc.h: Fix copyright header.
9552
9553 2011-09-07  Bruno Haible  <bruno@clisp.org>
9554
9555         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9556         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9557         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9558
9559 2011-09-07  Bruno Haible  <bruno@clisp.org>
9560
9561         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9562         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9563         * lib/freopen.c: Likewise.
9564         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9565         * lib/lstat.c: Likewise.
9566         * lib/stat.c: Likewise.
9567         * lib/open.c: Use different syntax for include of <fcntl.h>.
9568         * lib/openat.c: Include fcntl.h again, explicitly.
9569
9570 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9571
9572         parse-datetime: document the newly accepted format
9573         * doc/parse-datetime.texi (Combined date and time of day items):
9574         New section.
9575
9576 2011-09-06  Bruno Haible  <bruno@clisp.org>
9577
9578         acl: Fix a test failure on newer Solaris 10 with ZFS.
9579         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9580         ENOSYS as no ACL.
9581         Reported by Jim Meyering.
9582
9583 2011-09-06  Bruno Haible  <bruno@clisp.org>
9584
9585         acl: Update for AIX >= 5.3 with NFS.
9586         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9587         ENOSYS as no ACL.
9588
9589         acl: Fix a test failure on AIX >= 5.3 with NFS.
9590         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9591         as no ACL.
9592
9593 2011-09-06  Bruno Haible  <bruno@clisp.org>
9594
9595         acl: Fix a test failure on IRIX 6.5 with NFS.
9596         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9597         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9598         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9599         * lib/copy-acl.c (qcopy_acl): Likewise.
9600
9601 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9602
9603         openat: port to AIX 7.1 with large files
9604         AIX 7.1 does a "#define openat open64at" if large files are in use,
9605         so we can't simply #undef openat.  Use the orig_openat trick (similar
9606         to orig_open in lib/open.c) to work around the problem.  Problem
9607         reported by Kevin Brott for GNU tar, in the thread containing
9608         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9609         * lib/openat.c (__need_system_fcntl_h): Define first.
9610         Include <fcntl.h> and <sys/types.h> before undefining.
9611         (orig_openat) [HAVE_OPENAT]: New inline function.
9612         (openat) [HAVE_OPENAT]: Do not undef.
9613         (rpl_openat): Use orig_openat, not openat.
9614
9615 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9616             Bruno Haible  <bruno@clisp.org>
9617
9618         acl: Avoid errors on NonStop Kernel.
9619         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9620         ENOTSUP errors.
9621
9622 2011-09-05  Bruno Haible  <bruno@clisp.org>
9623
9624         acl: Clean up Solaris code.
9625         * lib/acl-internal.h: Remove no-op #if.
9626         * lib/file-has-acl.c: Likewise.
9627         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9628         * lib/copy-acl.c (qcopy_acl): Likewise.
9629
9630 2011-09-05  Bruno Haible  <bruno@clisp.org>
9631
9632         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9633         binaries built on the original Solaris 10.
9634         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9635         trivial.
9636
9637 2011-09-05  Bruno Haible  <bruno@clisp.org>
9638
9639         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9640         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9641         10.
9642         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9643         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9644         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9645         instead of acl_get, facl_get, acl_set, facl_set.
9646
9647 2011-09-05  Bruno Haible  <bruno@clisp.org>
9648
9649         copy-file: Try unit tests on more file systems.
9650         * tests/test-copy-file-1.sh: New file.
9651         * tests/test-copy-file-2.sh: New file.
9652         * modules/copy-file-tests (Files): Add them.
9653         (Makefile.am): Add them to TESTS.
9654
9655         acl: Try unit tests on more file systems.
9656         * tests/test-file-has-acl-1.sh: New file.
9657         * tests/test-file-has-acl-2.sh: New file.
9658         * tests/test-set-mode-acl-1.sh: New file.
9659         * tests/test-set-mode-acl-2.sh: New file.
9660         * tests/test-copy-acl-1.sh: New file.
9661         * tests/test-copy-acl-2.sh: New file.
9662         * modules/acl-tests (Files): Add them.
9663         (Makefile.am): Add them to TESTS.
9664
9665 2011-09-04  Bruno Haible  <bruno@clisp.org>
9666
9667         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9668         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9669         10.
9670         (OLD_ALLOW, OLD_DENY): New macros.
9671         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9672         ACE_ACCESS_ALLOWED_ACE_TYPE.
9673         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9674         ACE_ACCESS_DENIED_ACE_TYPE.
9675         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9676         (NEW_ACE_EXECUTE): Fix value.
9677         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9678         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9679         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9680         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9681         NEW_ACE_SYNCHRONIZE): New macros.
9682         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9683         instead of acl_fromtext, acl_set, facl_set.
9684         Fixes a coreutils/tests/cp/perm failure.
9685
9686 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9687
9688         openat: test for fstatat (..., 0) bug
9689         Further testing with tar suggests that fstatat (..., 0)
9690         does not work in general, on AIX 7.1; see
9691         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9692         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9693         replacement fstatat (which is what older AIX releases were using
9694         anyway).
9695         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9696         use is now changed to orig_fstatat.  This was probably the right
9697         thing to do anyway.
9698         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9699         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9700         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9701         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9702         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9703         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9704         if the bug is found.
9705
9706         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9707         This tests for another fstatat bug on AIX 7.1:
9708         fstatat (AT_FDCWD, ..., 0) does not work.  See
9709         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9710         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9711         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9712         (rpl_fstatat): Adjust so that it works around either (or both)
9713         bugs if present.
9714         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9715
9716 2011-09-03  Karl Berry  <karl@gnu.org>
9717
9718         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9719         in index entries.
9720
9721 2011-09-02  Bruno Haible  <bruno@clisp.org>
9722
9723         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9724         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9725         values of AR, ARFLAGS, RANLIB.
9726         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9727
9728 2011-09-02  Bruno Haible  <bruno@clisp.org>
9729
9730         Find 'ar' program that fits with --host argument.
9731         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9732
9733 2011-09-02  Bruno Haible  <bruno@clisp.org>
9734
9735         tests: init.sh: Support any non-GNU diff.
9736         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9737         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9738         Solaris 8.
9739
9740 2011-09-02  Bruno Haible  <bruno@clisp.org>
9741
9742         tests: init.sh: work also with any non-GNU diff that supports -u
9743         * tests/init.sh: Relax check for diff -u support.
9744         Rather than checking for GNU diff via --version, simply check
9745         for support for -u itself.  Useful at least on OpenBSD 4.9,
9746         AIX 7.1, IRIX 6.5, and Solaris 10.
9747
9748 2011-09-01  Bruno Haible  <bruno@clisp.org>
9749
9750         strtoimax, strtoumax: Document problem on HP-UX 11.
9751         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9752         * doc/posix-functions/strtoumax.texi: Likewise.
9753
9754 2011-09-01  Bruno Haible  <bruno@clisp.org>
9755
9756         strtoumax: Avoid link error on OSF/1 with DTK cc.
9757         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9758         defined as a function.
9759         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9760         strtoumax is defined, not whether it is declared.
9761
9762 2011-09-01  Bruno Haible  <bruno@clisp.org>
9763
9764         strtoimax: Avoid link error on OSF/1 with DTK cc.
9765         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9766         defined as a function.
9767         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9768         strtoimax is defined, not whether it is declared.
9769
9770 2011-09-01  Bruno Haible  <bruno@clisp.org>
9771
9772         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9773         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9774         as a function.
9775         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9776         whether it is declared.
9777
9778 2011-09-01  Bruno Haible  <bruno@clisp.org>
9779
9780         imaxabs: Avoid link error on OSF/1 with DTK cc.
9781         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9782         as a function.
9783         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9784         whether it is declared.
9785
9786 2011-09-01  Bruno Haible  <bruno@clisp.org>
9787
9788         Tests for module 'strtoumax'.
9789         * modules/strtoumax-tests: New file.
9790         * tests/test-strtoumax.c: New file.
9791
9792         Tests for module 'strtoimax'.
9793         * modules/strtoimax-tests: New file.
9794         * tests/test-strtoimax.c: New file.
9795
9796         Tests for module 'imaxdiv'.
9797         * modules/imaxdiv-tests: New file.
9798         * tests/test-imaxdiv.c: New file.
9799
9800         Tests for module 'imaxabs'.
9801         * modules/imaxabs-tests: New file.
9802         * tests/test-imaxabs.c: New file.
9803
9804 2011-09-01  Bruno Haible  <bruno@clisp.org>
9805
9806         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9807         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9808         pthread_create.
9809
9810 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9811
9812         openat: work around AIX 7.1 fstatat issue
9813         This should fix the problem that was not properly fixed
9814         in the previous change, dated 2011-08-30.
9815         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9816         __need_system_stat_h defined.
9817         (orig_fstatat) [HAVE_FSTATAT]: New function.
9818         (rpl_fstatat): Go back to the old way of doing things,
9819         except call orig_fstatat instead of fstatat.
9820         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9821         Remove unnecessary check whether fstatat fills in st_size etc.
9822
9823 2011-09-01  Bruno Haible  <bruno@clisp.org>
9824
9825         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9826         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9827         just include the system's header.
9828
9829 2011-08-31  Jim Meyering  <meyering@redhat.com>
9830
9831         tests: avoid spurious assertion failure in test-float.c on ppc64
9832         * tests/test-float.c (test_long_double): Comment out an assertion,
9833         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9834         with gcc-4.4.4.
9835
9836         maint: indent with spaces, not TABs
9837         I need to get in the habit of running gnulib's "make check".
9838         Both of these would have been caught.
9839         * m4/largefile.m4: Indent with spaces, not TABs.
9840         * lib/parse-datetime.y (iso_8601_time): Likewise.
9841         Spotted by Pádraig Brady.
9842
9843         test-parse-datetime.c: accommodate a relatively strict gcc warning
9844         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9845         to avoid a warning from gcc's -Werror=missing-declarations.
9846         Insert a few spaces-before-funcall-parenthesis.
9847
9848 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9849
9850         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9851         The parser now accepts ISO 8601 date-time strings with "T" as the
9852         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9853         with a space between the date and time strings.  Now it also parses
9854         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9855         variants like "2004-02-29T16:21:42.333-07:00"
9856         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9857         of day representation using the 'T' separator character.
9858         * doc/parse-datetime.texi (General date syntax): replace use of
9859         deprecated --iso-8601 option with --rfc-3339 in example of date
9860         command output formats that can be parsed.
9861         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9862         lib/parse-datetime.y.
9863         (gmt_offset): New function.
9864         (main): Add additional test cases to validate ISO8601 extended
9865         date and time of day parsing.
9866
9867 2011-08-31  Bruno Haible  <bruno@clisp.org>
9868
9869         freopen: Documentation.
9870         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9871         name.
9872         Reported by Claudio Bley <claudio.bley@gmail.com>.
9873
9874 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9875
9876         freopen: Don't crash if the filename argument is NULL.
9877         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9878         NULL.
9879
9880 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9881
9882         openat: work around AIX 7.1 fstatat bug
9883         Problem reported by Kevin Brott for GNU tar, in the thread containing
9884         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9885         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9886         FSTATAT_ST_SIZE_ETC_BROKEN.
9887         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9888         rpl_fstatat.
9889         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9890         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9891         AC_CHECK_FUNCS_ONCE for fstatat.
9892         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9893         fchmodat, mkdirat, openat and unlinkat.
9894
9895 2011-08-30  Bruno Haible  <bruno@clisp.org>
9896
9897         Avoid endless recursions if config.h includes some header files.
9898         * lib/fopen.c (__need_FILE): Define already before including config.h.
9899         * lib/freopen.c (__need_FILE): Likewise.
9900         * lib/open.c (__need_system_fcntl_h): Likewise.
9901         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9902         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9903         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9904
9905 2011-08-25  Karl Berry  <karl@gnu.org>
9906
9907         * config/srclist.txt (ylwrap): new try.
9908         * build-aux/ylwrap: new file.
9909
9910 2011-08-23  Bruno Haible  <bruno@clisp.org>
9911
9912         tmpdir: Use a good default directory on native Windows.
9913         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9914         (P_tmpdir): Default to _P_tmpdir on native Windows.
9915         (path_search): On native Windows, try the value returned by GetTempPath
9916         before trying P_tmpdir.
9917         * modules/tmpdir (Depends-on): Add pathmax.
9918         Suggested by John Darrington <john@darrington.wattle.id.au>.
9919
9920 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9921
9922         doc: fix typo in README-release
9923         * top/README-release: Capitalize first word of a sentence.
9924
9925 2011-08-19  Jim Meyering  <meyering@redhat.com>
9926
9927         fts: do not exhaust memory when processing million-entry directories
9928         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9929         directory would require about 256*N bytes of memory.  Thus, it was
9930         easy to construct a directory too large to be processed by any of
9931         those tools.  With this change, fts' maximum memory utilization is
9932         now limited to around 30MB.
9933         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9934         (fts_read): When we've processed the final entry (i.e., when
9935         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9936         using the parent entry to read any remaining entries.  Dispatch
9937         depending on what fts_build returns:
9938         - NULL+stop, aka failure: stop
9939         - NULL otherwise: move up in the dir hierarchy
9940         - non-NULL: handle this new entry
9941         (fts_build): Declare and use new local, continue_readdir.
9942         Prepare to be called from fts_read, when the entries
9943         from a partially-read directory have just been exhausted.
9944         In that case, we'll skip the opendir and instead use the parent's
9945         fts_dirp and derive dir_fd from that.
9946         Finally, in the readdir loop, if we read max_entries entries,
9947         exit the loop ensuring *not* to call closedir.  This is required
9948         so that fts_dirp can be reused on a subsequent call.
9949         Prompted by Ben England's report of memory exhaustion in find
9950         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9951
9952         maint: fts: move decl of `dp' down into while loop; split a long line
9953         * lib/fts.c (fts_build): No semantic change.
9954
9955         fts: add/use new struct member, fts_dirp
9956         We are about to use this to manage any directory with
9957         too many entries to read all of them into memory at once.
9958         To do that, we'll need to save the DIR* pointer in each
9959         affected FTSENT struct.
9960         * lib/fts_.h: Include <dirent.h>.
9961         (struct FTSENT) [fts_dirp]: New member.
9962         * lib/fts.c (closedir_and_clear): Define.
9963         Use it in place of closedir so that we are sure to
9964         clear the new fts_dirp member when done with it.
9965         (fts_alloc): Initialize the new member.
9966         (fts_lfree): Free, if needed.
9967
9968         maint: fts: give __opendir2 a new parameter and rename
9969         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9970         than surreptitiously using sole caller's "dir_fd".
9971         (fts_opendir): Rename from __opendir2.
9972
9973         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9974         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9975
9976         maint: fts.c: correct off-by-one indentation
9977         * lib/fts.c (fts_build): Correct indentation, change style
9978         of a couple of block comments, and bracing style.
9979
9980         maint: fts.c: move __opendir2 #define "up" out of function body
9981         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9982
9983         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9984         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9985         out for a long time and besides was useful only on BSD systems.
9986
9987 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9988
9989         regex: port to Stratus OpenVOS
9990         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9991         define to empty, rather than attempting nonportable optimizations.
9992         Problem reported by Paul Green in:
9993         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9994         and fix suggested by Eric Blake in:
9995         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9996
9997 2011-08-17  Eric Blake  <eblake@redhat.com>
9998
9999         getcwd: fix test failures on mingw
10000         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10001         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10002         test if long directory cannot be created, and allow mingw errno.
10003
10004         getcwd-lgpl: fix m4 to match relaxed test for BSD
10005         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10006         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10007         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10008         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10009         signature problem.
10010
10011         getcwd: fix compilation on mingw64
10012         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10013         getcwd.
10014         Reported by Marc-André Lureau.
10015
10016         pipe2: silence compiler warning
10017         * lib/pipe2.c (pipe2): Hide label if it is not used.
10018
10019 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10020
10021         relocatable-prog: fix link error
10022         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10023         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10024         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10025         into modules/relocatable-lib without noticing that
10026         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10027         also needs to build relocatable.c.
10028
10029 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10030
10031         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10033         shell code: it contained a 'break' that was not in a loop.
10034         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10035         via a shell-language loop; this may have been true in old Autoconf
10036         versions, but it's not true in Autoconf 2.68.  I found this bug
10037         when testing coreutils git on Solaris 8, whose shell complains
10038         about the syntax error.
10039
10040 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10041
10042         * lib/base64.c: Fix comment to reference RFC 4648.
10043         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10044         <gvtulder@gmail.com>.
10045
10046 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10047
10048         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10049
10050         po/Makefile.in.in: fix make -q problem
10051         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10052         rule, since there's no file named 'check-macro-version' and its
10053         use as a file breaks make -q.
10054         (all): Don't depend on check-macro-version.
10055         (CHECK_MACRO_VERSION): New macro.
10056         (stamp-po): Use it.
10057
10058         configmake: fix make -q problem
10059         * modules/configmake (configmake.h): Update configmake.h's time stamp
10060         even if the file does not change.  Otherwise, 'make -q' fails.
10061         Problem reported by Simon Josefsson in
10062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10063
10064 2011-08-11  Jim Meyering  <meyering@redhat.com>
10065
10066         git-version-gen: correct the advice in a comment
10067         * build-aux/git-version-gen: Correct comment.
10068         Don't recommend to list .tarball-version in .gitignore.
10069
10070 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10071
10072         base64: fix off-by-one buffer size bug
10073         Problem and (trivial) fix reported by Gijs van Tulder in
10074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10075         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10076         * tests/test-base64.c (main): Catch the bug.
10077
10078 2011-08-10  Eric Blake  <eblake@redhat.com>
10079
10080         closein: correct comments
10081         * lib/closein.c (close_stdin): Improve comments.
10082
10083 2011-08-09  Bruno Haible  <bruno@clisp.org>
10084
10085         More tests for 'fseeko'.
10086         * tests/test-fseeko3.c: New file, from Eric Blake.
10087         * tests/test-fseeko3.sh: New file.
10088         * modules/fseeko-tests (Files): Add them.
10089         (TESTS): Add test-fseeko3.sh.
10090         (check_PROGRAMS): Add test-fseeko3.
10091
10092 2011-08-09  Eric Blake  <eblake@redhat.com>
10093
10094         fseeko: remove unneeded hack
10095         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10096
10097         fseeko: fix bug on glibc
10098         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10099         Reported by John W. Eaton.
10100
10101 2011-08-08  Bruno Haible  <bruno@clisp.org>
10102
10103         unictype/base: Fix interoperability with preinstalled libunistring.
10104         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10105         Reported by Simon Josefsson.
10106
10107 2011-08-08  Bruno Haible  <bruno@clisp.org>
10108
10109         iswblank: Detect declaration correctly.
10110         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10111         AC_CHECK_DECLS invocation.
10112
10113 2011-08-08  Bruno Haible  <bruno@clisp.org>
10114
10115         tcgetsid: Detect declaration correctly.
10116         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10117         AC_CHECK_DECLS invocation.
10118         Reported by Simon Josefsson.
10119
10120 2011-08-08  Eric Blake  <eblake@redhat.com>
10121
10122         largefile: fix typo that regressed large file support
10123         * modules/largefile (configure.ac-early): Fix section name.
10124
10125 2011-08-06  Karl Berry  <karl@gnu.org>
10126
10127         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10128         a separate module.
10129
10130 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10131
10132         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10133         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10134         get prototype for free.
10135
10136 2011-08-04  Bruno Haible  <bruno@clisp.org>
10137
10138         Tests for module 'pathmax'.
10139         * modules/pathmax-tests: New file.
10140         * tests/test-pathmax.c: New file.
10141
10142         canonicalize-lgpl: Support larger filenames on the Hurd.
10143         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10144         Reported by Paul Eggert.
10145
10146         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10147         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10148         * lib/chdir-long.h: Include pathmax.h.
10149         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10150         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10151         (PATH_MAX): Remove code that is done by pathmax.h.
10152         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10153         * lib/tmpfile.c: Add a comment.
10154         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10155         * modules/chdir-long (Depends-on): Add pathmax.
10156         * modules/getcwd (Depends-on): Add pathmax.
10157         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10158         is not defined.
10159         * doc/posix-headers/limits.texi: Mention the pathmax module.
10160         * NEWS: Mention the change.
10161
10162 2011-08-02  Bruno Haible  <bruno@clisp.org>
10163
10164         pthread_sigmask: Actually use results of gl_THREADLIB.
10165         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10166         gl_THREADLIB, not gl_[]THREADLIB.
10167         Reported by Eric Blake.
10168
10169 2011-08-02  Jim Meyering  <meyering@redhat.com>
10170
10171         maint.mk: relax the default _gl_TS_function_match regexp
10172         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10173         space between function name and "(" in an "extern" declaration.
10174         That would fail to match a decl with no space there: extern void foo();
10175
10176 2011-07-31  Iain Nicol  <iain@thenicols.net>
10177
10178         git-version-gen: document that EXTRA_DIST must include .version
10179         * build-aux/git-version-gen: In the how-to-use comment, document
10180         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10181         will fail when run from an unpacked distribution tarball.
10182
10183 2011-08-01  Bruno Haible  <bruno@clisp.org>
10184
10185         wctype-h: Fix last change.
10186         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10187         REPLACE_TOWLOWER to 0.
10188         Reported by Sam Steingold <sds@gnu.org>.
10189
10190 2011-07-31  Bruno Haible  <bruno@clisp.org>
10191
10192         frexpl: Update autoconf test.
10193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10194         according to changes of 2011-06-20.
10195
10196 2011-07-31  Bruno Haible  <bruno@clisp.org>
10197
10198         sys_utsname: Add support for Minix.
10199         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10200         <sys/utsname.h>.
10201         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10202         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10203
10204 2011-07-31  Bruno Haible  <bruno@clisp.org>
10205
10206         strings: Add support for Minix.
10207         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10208         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10209         * doc/posix-headers/strings.texi: Document the Minix problem.
10210
10211 2011-07-31  Bruno Haible  <bruno@clisp.org>
10212
10213         wctype-h: Add support for Minix.
10214         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10215         REPLACE_TOWLOWER.
10216         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10217         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10218         REPLACE_ISWCNTRL.
10219
10220 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10221
10222         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10223         This is a performance improvement for 64-bit hosts: it causes the
10224         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10225
10226 2011-07-31  Bruno Haible  <bruno@clisp.org>
10227
10228         stdioext: Add support for Minix.
10229         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10230         * lib/fpurge.c (fpurge): Likewise.
10231         * lib/freadahead.c (freadahead): Likewise.
10232         * lib/freadable.c (freadable): Likewise.
10233         * lib/freading.c (freading): Likewise.
10234         * lib/freadptr.c (freadptr): Likewise.
10235         * lib/freadseek.c (freadptrinc): Likewise.
10236         * lib/fseeko.c (rpl_fseeko): Likewise.
10237         * lib/fseterr.c (fseterr): Likewise.
10238         * lib/fwritable.c (fwritable): Likewise.
10239         * lib/fwriting.c (fwriting): Likewise.
10240         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10241         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10242
10243 2011-07-31  Bruno Haible  <bruno@clisp.org>
10244
10245         errno: Port to Minix.
10246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10247         ECONNABORTED are defined.
10248         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10249         GNULIB_defined_ECONNABORTED): New macros.
10250         * lib/strerror-override.h (strerror_override): Test also
10251         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10252         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10253         ECONNABORTED.
10254         * doc/posix-headers/errno.texi: Mention the Minix problem.
10255
10256 2011-07-31  Bruno Haible  <bruno@clisp.org>
10257
10258         Work around declaration collisions on Minix.
10259         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10260         defined, set REPLACE_MBSINIT.
10261         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10262         defined, set REPLACE_MBRTOWC.
10263         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10264         set REPLACE_MBRLEN.
10265         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10266         defined, set REPLACE_MBSRTOWCS.
10267         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10268         defined, set REPLACE_WCRTOMB.
10269         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10270         defined, set REPLACE_WCSRTOMBS.
10271
10272 2011-07-31  Bruno Haible  <bruno@clisp.org>
10273
10274         Add support for Minix with ACK compiler.
10275         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10276         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10277         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10278
10279 2011-07-31  Bruno Haible  <bruno@clisp.org>
10280
10281         Documentation about Minix.
10282         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10283         * doc/glibc-headers/*.texi: Likewise.
10284         * doc/posix-functions/*.texi: Likewise.
10285         * doc/glibc-functions/*.texi: Likewise.
10286
10287 2011-07-31  Bruno Haible  <bruno@clisp.org>
10288
10289         snippet/warn-on-use: Fix indentation.
10290         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10291
10292 2011-07-25  Jim Meyering  <meyering@redhat.com>
10293
10294         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10295         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10296         commands.
10297
10298 2011-07-27  Jim Meyering  <meyering@redhat.com>
10299
10300         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10301         * top/maint.mk (gl_extract_significant_defines_): Now that
10302         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10303         gnulib/lib/signal.in.h, and now that we recommend to
10304         define-if-undefined those two symbols in application code,
10305         we must filter them out of the "significant" list.
10306         This avoids a "make syntax-check" failure in coreutils.
10307
10308 2011-07-26  Eric Blake  <eblake@redhat.com>
10309
10310         warnings: add comments about previous patch
10311         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10312         * m4/include_next.m4: Likewise.
10313         * m4/warn-on-use.m4: Likewise.
10314         * m4/warnings.m4: Likewise, and simplify use.
10315         Suggested by Stefano Lattarini.
10316
10317         include-next, warnings: support older autoconf
10318         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10319         AS_VAR_PUSHDEF in a way that works with older autoconf.
10320         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10321         Reported by Daniel P. Berrange.
10322
10323 2011-07-25  Bruno Haible  <bruno@clisp.org>
10324
10325         fseek, ftell: Fix doc.
10326         * doc/posix-functions/fseek.texi: Reword statement about
10327         AC_SYS_LARGEFILE.
10328         * doc/posix-functions/ftell.texi: Likewise.
10329
10330 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10331             Bruno Haible  <bruno@clisp.org>
10332
10333         Add dependencies to the 'largefile' module.
10334         * modules/fopen (Depends-on): Add 'largefile'.
10335         * modules/freopen (Depends-on): Likewise.
10336         * modules/fseeko (Depends-on): Likewise.
10337         * modules/ftello (Depends-on): Likewise.
10338         * modules/glob (Depends-on): Likewise.
10339         * modules/lseek (Depends-on): Likewise.
10340         * modules/lstat (Depends-on): Likewise.
10341         * modules/mkostemp (Depends-on): Likewise.
10342         * modules/mkostemps (Depends-on): Likewise.
10343         * modules/mkstemp (Depends-on): Likewise.
10344         * modules/mkstemps (Depends-on): Likewise.
10345         * modules/open (Depends-on): Likewise.
10346         * modules/openat (Depends-on): Likewise.
10347         * modules/pread (Depends-on): Likewise.
10348         * modules/pwrite (Depends-on): Likewise.
10349         * modules/scandir (Depends-on): Likewise.
10350         * modules/stat (Depends-on): Likewise.
10351         * modules/tmpfile (Depends-on): Likewise.
10352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10353         since the containing module now depends on the largefile module.
10354         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10355         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10356         off_t is fixed by gnulib.
10357         * doc/posix-functions/freopen.texi: Likewise.
10358         * doc/posix-functions/fseeko.texi: Likewise.
10359         * doc/posix-functions/fstatat.texi: Likewise.
10360         * doc/posix-functions/ftello.texi: Likewise.
10361         * doc/posix-functions/glob.texi: Likewise.
10362         * doc/posix-functions/lseek.texi: Likewise.
10363         * doc/posix-functions/lstat.texi: Likewise.
10364         * doc/posix-functions/mkstemp.texi: Likewise.
10365         * doc/posix-functions/open.texi: Likewise.
10366         * doc/posix-functions/openat.texi: Likewise.
10367         * doc/posix-functions/pread.texi: Likewise.
10368         * doc/posix-functions/pwrite.texi: Likewise.
10369         * doc/posix-functions/scandir.texi: Likewise.
10370         * doc/posix-functions/stat.texi: Likewise.
10371         * doc/posix-functions/tmpfile.texi: Likewise.
10372         * doc/glibc-functions/mkostemp.texi: Likewise.
10373         * doc/glibc-functions/mkostemps.texi: Likewise.
10374         * doc/glibc-functions/mkstemps.texi: Likewise.
10375
10376 2011-07-25  Bruno Haible  <bruno@clisp.org>
10377
10378         fcntl: Move AC_LIBOBJ invocation to module description.
10379         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10380         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10381
10382         fcntl: Remove call-in from fchdir.m4.
10383         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10385
10386         dup3: Remove potential call-in from fchdir.m4.
10387         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10389
10390         dup2: Move AC_LIBOBJ invocation to module description.
10391         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10392         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10393         Don't invoke AC_LIBOBJ.
10394         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10395
10396         dup2: Remove call-in from fchdir.m4.
10397         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10399
10400         fclose: Move AC_LIBOBJ invocation to module description.
10401         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10402         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10403         to 1.
10404         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10405
10406         fclose: Remove call-in from close.m4.
10407         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10408         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10409
10410         close: Move AC_LIBOBJ invocation to module description.
10411         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10412         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10413         1.
10414         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10415
10416         close: Remove call-in from fchdir.m4.
10417         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10419
10420         open: Move AC_LIBOBJ invocation to module description.
10421         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10422         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10423         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10424
10425         open: Remove call-in from fchdir.m4.
10426         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10428
10429         fchdir: Start to remove gl_REPLACE_* idiom.
10430         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10431         (gl_FUNC_FCHDIR): Invoke it.
10432
10433 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10434
10435         * lib/ftell.c (ftell): Comment out cast.
10436
10437         close: use gl_REPLACE_FCLOSE only if defined
10438         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10439         is defined.  The close module doesn't depend on the fclose module
10440         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10442         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10443
10444 2011-07-24  Jim Meyering  <meyering@redhat.com>
10445
10446         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10447         * tests/test-select.h (test_function): Declare as "static".
10448
10449 2011-07-24  Bruno Haible  <bruno@clisp.org>
10450
10451         doc: Mention the effects of AC_SYS_LARGEFILE.
10452         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10453         on this function.
10454         * doc/posix-functions/aio_error.texi: Likewise.
10455         * doc/posix-functions/aio_fsync.texi: Likewise.
10456         * doc/posix-functions/aio_read.texi: Likewise.
10457         * doc/posix-functions/aio_return.texi: Likewise.
10458         * doc/posix-functions/aio_suspend.texi: Likewise.
10459         * doc/posix-functions/aio_write.texi: Likewise.
10460         * doc/posix-functions/fgetpos.texi: Likewise.
10461         * doc/posix-functions/fopen.texi: Likewise.
10462         * doc/posix-functions/freopen.texi: Likewise.
10463         * doc/posix-functions/fsetpos.texi: Likewise.
10464         * doc/posix-functions/fstatvfs.texi: Likewise.
10465         * doc/posix-functions/ftruncate.texi: Likewise.
10466         * doc/posix-functions/ftw.texi: Likewise.
10467         * doc/posix-functions/getrlimit.texi: Likewise.
10468         * doc/posix-functions/glob.texi: Likewise.
10469         * doc/posix-functions/lio_listio.texi: Likewise.
10470         * doc/posix-functions/lockf.texi: Likewise.
10471         * doc/posix-functions/mkstemp.texi: Likewise.
10472         * doc/posix-functions/mmap.texi: Likewise.
10473         * doc/posix-functions/nftw.texi: Likewise.
10474         * doc/posix-functions/openat.texi: Likewise.
10475         * doc/posix-functions/opendir.texi: Likewise.
10476         * doc/posix-functions/posix_fadvise.texi: Likewise.
10477         * doc/posix-functions/posix_fallocate.texi: Likewise.
10478         * doc/posix-functions/pread.texi: Likewise.
10479         * doc/posix-functions/pwrite.texi: Likewise.
10480         * doc/posix-functions/readdir.texi: Likewise.
10481         * doc/posix-functions/readdir_r.texi: Likewise.
10482         * doc/posix-functions/rewinddir.texi: Likewise.
10483         * doc/posix-functions/scandir.texi: Likewise.
10484         * doc/posix-functions/seekdir.texi: Likewise.
10485         * doc/posix-functions/setrlimit.texi: Likewise.
10486         * doc/posix-functions/statvfs.texi: Likewise.
10487         * doc/posix-functions/telldir.texi: Likewise.
10488         * doc/posix-functions/tmpfile.texi: Likewise.
10489         * doc/posix-functions/truncate.texi: Likewise.
10490         * doc/glibc-functions/fallocate.texi: Likewise.
10491         * doc/glibc-functions/fstatfs.texi: Likewise.
10492         * doc/glibc-functions/fts_children.texi: Likewise.
10493         * doc/glibc-functions/fts_read.texi: Likewise.
10494         * doc/glibc-functions/getdirentries.texi: Likewise.
10495         * doc/glibc-functions/mkostemp.texi: Likewise.
10496         * doc/glibc-functions/mkostemps.texi: Likewise.
10497         * doc/glibc-functions/mkstemps.texi: Likewise.
10498         * doc/glibc-functions/preadv.texi: Likewise.
10499         * doc/glibc-functions/pwritev.texi: Likewise.
10500         * doc/glibc-functions/sendfile.texi: Likewise.
10501         * doc/glibc-functions/statfs.texi: Likewise.
10502
10503 2011-07-24  Bruno Haible  <bruno@clisp.org>
10504
10505         doc: Fix typo.
10506         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10507
10508 2011-07-24  Bruno Haible  <bruno@clisp.org>
10509
10510         doc: Mention fsusage.
10511         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10512
10513 2011-07-24  Bruno Haible  <bruno@clisp.org>
10514
10515         doc: Mention new glibc headers and functions.
10516         * doc/glibc-headers/gshadow.texi: New file.
10517         * doc/glibc-functions/endsgent.texi: New file.
10518         * doc/glibc-functions/fgetsgent.texi: New file.
10519         * doc/glibc-functions/fgetsgent_r.texi: New file.
10520         * doc/glibc-functions/getsgent.texi: New file.
10521         * doc/glibc-functions/getsgent_r.texi: New file.
10522         * doc/glibc-functions/getsgnam.texi: New file.
10523         * doc/glibc-functions/getsgnam_r.texi: New file.
10524         * doc/glibc-functions/putsgent.texi: New file.
10525         * doc/glibc-functions/setsgent.texi: New file.
10526         * doc/glibc-functions/sgetsgent.texi: New file.
10527         * doc/glibc-functions/sgetsgent_r.texi: New file.
10528         * doc/glibc-functions/malloc_info.texi: New file.
10529         * doc/glibc-functions/preadv.texi: New file.
10530         * doc/glibc-functions/pwritev.texi: New file.
10531         * doc/glibc-functions/register_printf_modifier.texi: New file.
10532         * doc/glibc-functions/register_printf_specifier.texi: New file.
10533         * doc/glibc-functions/register_printf_type.texi: New file.
10534         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10535         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10536         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10537         * doc/glibc-functions/pthread_getname_np.texi: New file.
10538         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10539         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10540         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10541         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10542         * doc/glibc-functions/pthread_setname_np.texi: New file.
10543         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10544         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10545         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10546         * doc/glibc-functions/qsort_r.texi: New file.
10547         * doc/glibc-functions/quick_exit.texi: New file.
10548         * doc/glibc-functions/syncfs.texi: New file.
10549         * doc/gnulib.texi: Include them.
10550         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10551         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10552         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10553         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10554         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10555         * doc/glibc-functions/execvpe.texi: Likewise.
10556
10557 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         ftell: don't include <unistd.h>
10560         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10561         guaranteed to define off_t, and the ftell module depends on the
10562         stdio module.
10563
10564         ftell: do not assume wraparound signed arithmetic
10565         * lib/ftell.c: Include <limits.h>.
10566         (ftell): Don't assume wraparound signed arithmetic.
10567
10568 2011-07-24  Bruno Haible  <bruno@clisp.org>
10569
10570         close: No longer depend on module 'fclose'.
10571         * modules/close (Depends-on): Remove fclose.
10572         * NEWS: Mention the change.
10573         Suggested by Sam Steingold <sds@gnu.org>.
10574
10575 2011-07-24  Bruno Haible  <bruno@clisp.org>
10576
10577         fsusage: Enable large volume support on AIX >= 5.2.
10578         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10579         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10580         instead of STAT_STATVFS.
10581         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10582
10583         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10584         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10585         f_blocks field only on MacOS X.
10586
10587         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10589         * modules/fsusage (Depends-on): Add largefile.
10590
10591 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         * README: Modernize discussion of signed integers.
10594         Assuming overflow wraparound is no longer safe.
10595         Mention ones' complement and signed magnitude.
10596
10597 2011-07-22  Bruno Haible  <bruno@clisp.org>
10598
10599         select tests, pselect tests: Refactor.
10600         * tests/test-select.h: New file, extracted from tests/test-select.c.
10601         (select_fn): New type.
10602         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10603         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10604         test_pipe): Add my_select argument.
10605         (test_function): Renamed from main. Add my_select argument.
10606         * tests/test-select.c: Move most code to tests/test-select.h. Include
10607         test-select.h.
10608         * modules/select-tests (Files): Add tests/test-select.h.
10609         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10610         (my_select, main): New functions.
10611         * modules/pselect-tests (Files): Add tests/test-select.h,
10612         tests/macros.h, tests/signature.h.
10613         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10614         (configure.ac): Check for <sys/wait.h>.
10615
10616 2011-07-22  Bruno Haible  <bruno@clisp.org>
10617
10618         sys_select tests: Check the signature of FD_*.
10619         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10620         signature tests from here...
10621         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10622         here.
10623         * modules/sys_select-tests (Files): Add tests/signature.h.
10624
10625 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         largefile: new module, replacing large-inode
10628         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10629         * MODULES.html.sh: Add largefile, remove large-inode.
10630         * modules/largefile, m4/largefile.m4: New files.
10631         * modules/large-inode, m4/large-inode.m4: Remove.
10632
10633         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10635         implementations that use only 32 bits to count blocks.
10636         On typical hosts with 1024-byte blocks, this fails with file
10637         systems as small as 4 TiB.  Problem reported by Herb Wartens
10638         <http://debbugs.gnu.org/9140> and this should also fix a similar
10639         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10640
10641         large-inode: New module
10642         * MODULES.html.sh: Add it.
10643         * modules/large-inode, m4/large-inode.m4: New files.
10644
10645         extensions: Enable extensions on MacOS X 10.5 and later.
10646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10647
10648 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10649
10650         file-has-acl: use acl_extended_file_nofollow if available
10651         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10652         (acl_extended_file): New macro.
10653         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10654         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10655
10656 2011-07-21  Bruno Haible  <bruno@clisp.org>
10657
10658         Declare system functions in a way that works with C++.
10659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10660         declare fdopendir as extern "C".
10661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10662         declare frexpl as extern "C".
10663         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10664         declare gai_strerror as extern "C".
10665         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10666         programs, declare gai_strerror as extern "C".
10667         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10668         declare getlogin_r as extern "C".
10669         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10670         as extern "C".
10671         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10672         declare ldexpl as extern "C".
10673         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10674         as extern "C".
10675         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10676         program, declare getmntinfo as extern "C".
10677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10678         stpncpy as extern "C".
10679         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10680         program, declare __xpg_strerror_r as extern "C".
10681         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10682         strndup as extern "C".
10683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10684         declare memset and bzero as extern "C".
10685         Reported by Sam Steingold <sds@gnu.org>.
10686
10687 2011-07-12  Jim Meyering  <meyering@redhat.com>
10688
10689         maint.mk: prohibit inclusion of "verify.h" without use
10690         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10691
10692 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10693
10694         timer-time: A new module to check for timer_settime()
10695         * m4/timer_time.m4: Check for the posix function.
10696         * modules/timer-time: Add the new module.
10697         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10698         Mention it.
10699
10700 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10701             Bruno Haible  <bruno@clisp.org>
10702
10703         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10704         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10705         not defined, assume POSIX threads and look for pthread_sigmask in
10706         $LIBS, without changing $CPPFLAGS.
10707
10708 2011-07-19  Bruno Haible  <bruno@clisp.org>
10709
10710         strstr: Update cross-compilation guess.
10711         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10712         CPUs, guess no, in view of glibc
10713         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10714         Suggested by Eric Blake. Reported by Reuben Thomas.
10715
10716 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10717
10718         getopt-gnu: suppress core dumps from detection code
10719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10720         to suppress core dumps that may well occur on glibc systems.
10721         * modules/getopt-gnu: Depend on nocrash.
10722
10723 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10724
10725         pthread_sigmask: ensure usleep is declared
10726         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10727         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10728
10729 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10730
10731         doc: Document NonStop portability issues.
10732         * doc/posix-functions/sigaction.texi (sigaction):
10733         * doc/posix-headers/signal.texi (signal.h):
10734         Document NonStop.  See Joachim Schmitz in
10735         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10736
10737 2011-07-15  Bruno Haible  <bruno@clisp.org>
10738
10739         ffsl, ffsll: Avoid unportable behaviour.
10740         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10741
10742 2011-07-15  Bruno Haible  <bruno@clisp.org>
10743
10744         ffs: More tests.
10745         * tests/test-ffs.c (NBITS): New macro.
10746         (main): Add more tests.
10747         * tests/test-ffsl.c (NBITS): New macro.
10748         (main): Add more tests.
10749         * tests/test-ffsll.c (NBITS): New macro.
10750         (main): Add more tests.
10751
10752 2011-07-15  Eric Blake  <eblake@redhat.com>
10753
10754         ffsl, ffsll: new modules
10755         * modules/ffsl: New file.
10756         * modules/ffsll: Likewise.
10757         * m4/ffsl.m4: Likewise.
10758         * m4/ffsll.m4: Likewise.
10759         * lib/ffsl.c: Likewise.
10760         * lib/ffsl.h: Likewise.
10761         * lib/ffsll.c: Likewise.
10762         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10763         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10764         * modules/string (Makefile.am): Substitute witnesses.
10765         * lib/strings.in.h (ffsl, ffsll): Declare.
10766         * modules/ffsl-tests: New test file.
10767         * modules/ffsll-tests: Likewise.
10768         * tests/test-ffsl.c: Likewise.
10769         * tests/test-ffsll.c: Likewise.
10770         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10771         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10772         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10773
10774         ffs: fix m4 prerequisite
10775         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10776
10777         ffs: avoid undefined behavior
10778         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10779         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10780         Reported by Bruno Haible.
10781
10782 2011-07-12  Bruno Haible  <bruno@clisp.org>
10783
10784         pthread_sigmask: Rely on module 'threadlib'.
10785         * modules/pthread_sigmask (Depends-on): Add threadlib.
10786         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10787         is defined.
10788
10789 2011-07-12  Bruno Haible  <bruno@clisp.org>
10790
10791         regex: Depend on module 'strcase'.
10792         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10793
10794 2011-07-12  Jim Meyering  <meyering@redhat.com>
10795
10796         warn-on-use: fix typo in file name
10797         * modules/snippet/warn-on-use (Files): Correct file name:
10798         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10799
10800 2011-07-12  Bruno Haible  <bruno@clisp.org>
10801
10802         strings: Document module.
10803         * doc/posix-headers/strings.texi: Mention module 'strings'.
10804
10805 2011-07-12  Bruno Haible  <bruno@clisp.org>
10806
10807         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10808         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10809         (Files, Makefile.am): Update.
10810         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10811         * modules/stdlib (Depends-on): Update.
10812
10813 2011-07-12  Bruno Haible  <bruno@clisp.org>
10814
10815         * NEWS: Mention the changes.
10816
10817         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10818         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10819         (Files, Makefile.am): Update.
10820         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10821         * modules/arpa_inet (Depends-on): Update.
10822         * modules/ctype (Depends-on): Update.
10823         * modules/dirent (Depends-on): Update.
10824         * modules/fcntl-h (Depends-on): Update.
10825         * modules/glob (Depends-on): Update.
10826         * modules/iconv-h (Depends-on): Update.
10827         * modules/inttypes-incomplete (Depends-on): Update.
10828         * modules/langinfo (Depends-on): Update.
10829         * modules/locale (Depends-on): Update.
10830         * modules/math (Depends-on): Update.
10831         * modules/netdb (Depends-on): Update.
10832         * modules/poll-h (Depends-on): Update.
10833         * modules/pty (Depends-on): Update.
10834         * modules/search (Depends-on): Update.
10835         * modules/signal (Depends-on): Update.
10836         * modules/spawn (Depends-on): Update.
10837         * modules/stdio (Depends-on): Update.
10838         * modules/stdlib (Depends-on): Update.
10839         * modules/string (Depends-on): Update.
10840         * modules/strings (Depends-on): Update.
10841         * modules/sys_file (Depends-on): Update.
10842         * modules/sys_ioctl (Depends-on): Update.
10843         * modules/sys_select (Depends-on): Update.
10844         * modules/sys_socket (Depends-on): Update.
10845         * modules/sys_stat (Depends-on): Update.
10846         * modules/sys_time (Depends-on): Update.
10847         * modules/sys_times (Depends-on): Update.
10848         * modules/sys_utsname (Depends-on): Update.
10849         * modules/sys_wait (Depends-on): Update.
10850         * modules/termios (Depends-on): Update.
10851         * modules/time (Depends-on): Update.
10852         * modules/unistd (Depends-on): Update.
10853         * modules/wchar (Depends-on): Update.
10854         * modules/wctype-h (Depends-on): Update.
10855         * MODULES.html.sh (Support for building libraries and executables):
10856         Update.
10857
10858         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10859         * modules/snippet/unused-parameter: Renamed from
10860         modules/unused-parameter.
10861         (Files, Makefile.am): Update.
10862         * build-aux/snippet/unused-parameter.h: Renamed from
10863         build-aux/unused-parameter.h.
10864         * modules/selinux-h (Depends-on): Update.
10865         * modules/unistr/base (Depends-on): Update.
10866         * MODULES.html.sh (Core language properties): Update.
10867
10868         Rename module 'link-warning' to 'snippet/link-warning'.
10869         * modules/snippet/link-warning: Renamed from modules/link-warning.
10870         (Files, Makefile.am): Update.
10871         * build-aux/snippet/link-warning.h: Renamed from
10872         build-aux/link-warning.h.
10873         * MODULES.html.sh (Support for building libraries and executables):
10874         Update.
10875
10876         Rename module 'c++defs' to 'snippet/c++defs'.
10877         * modules/snippet/c++defs: Renamed from modules/c++defs.
10878         (Files, Makefile.am): Update.
10879         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10880         * modules/arpa_inet (Depends-on): Update.
10881         * modules/ctype (Depends-on): Update.
10882         * modules/dirent (Depends-on): Update.
10883         * modules/fcntl-h (Depends-on): Update.
10884         * modules/glob (Depends-on): Update.
10885         * modules/iconv-h (Depends-on): Update.
10886         * modules/langinfo (Depends-on): Update.
10887         * modules/locale (Depends-on): Update.
10888         * modules/math (Depends-on): Update.
10889         * modules/netdb (Depends-on): Update.
10890         * modules/poll-h (Depends-on): Update.
10891         * modules/pty (Depends-on): Update.
10892         * modules/search (Depends-on): Update.
10893         * modules/signal (Depends-on): Update.
10894         * modules/spawn (Depends-on): Update.
10895         * modules/stdio (Depends-on): Update.
10896         * modules/stdlib (Depends-on): Update.
10897         * modules/string (Depends-on): Update.
10898         * modules/strings (Depends-on): Update.
10899         * modules/sys_ioctl (Depends-on): Update.
10900         * modules/sys_select (Depends-on): Update.
10901         * modules/sys_socket (Depends-on): Update.
10902         * modules/sys_stat (Depends-on): Update.
10903         * modules/sys_time (Depends-on): Update.
10904         * modules/sys_wait (Depends-on): Update.
10905         * modules/termios (Depends-on): Update.
10906         * modules/time (Depends-on): Update.
10907         * modules/unistd (Depends-on): Update.
10908         * modules/wchar (Depends-on): Update.
10909         * modules/wctype-h (Depends-on): Update.
10910
10911         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10912         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10913         (Files, Makefile.am): Update.
10914         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10915         * modules/argv-iter (Depends-on): Update.
10916         * modules/arpa_inet (Depends-on): Update.
10917         * modules/dirent (Depends-on): Update.
10918         * modules/fcntl-h (Depends-on): Update.
10919         * modules/fnmatch (Depends-on): Update.
10920         * modules/getopt-posix (Depends-on): Update.
10921         * modules/glob (Depends-on): Update.
10922         * modules/iconv-h (Depends-on): Update.
10923         * modules/inttypes-incomplete (Depends-on): Update.
10924         * modules/locale (Depends-on): Update.
10925         * modules/math (Depends-on): Update.
10926         * modules/netdb (Depends-on): Update.
10927         * modules/search (Depends-on): Update.
10928         * modules/signal (Depends-on): Update.
10929         * modules/spawn (Depends-on): Update.
10930         * modules/stdio (Depends-on): Update.
10931         * modules/stdlib (Depends-on): Update.
10932         * modules/string (Depends-on): Update.
10933         * modules/strings (Depends-on): Update.
10934         * modules/sys_socket (Depends-on): Update.
10935         * modules/sys_stat (Depends-on): Update.
10936         * modules/sys_time (Depends-on): Update.
10937         * modules/sys_times (Depends-on): Update.
10938         * modules/sys_utsname (Depends-on): Update.
10939         * modules/time (Depends-on): Update.
10940         * modules/unistd (Depends-on): Update.
10941         * modules/wchar (Depends-on): Update.
10942         * MODULES.html.sh (Support for building libraries and executables):
10943         Update.
10944
10945 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10946
10947         Improvements on _Noreturn and related modules.
10948
10949         modules/_Exit-tests: test _Noreturn too
10950         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10951         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10952         (main): Use them.
10953
10954         stdnoreturn, stdnoreturn-tests: remove modules
10955         They're not needed here and a bit premature for use elsewhere.  See
10956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10957         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10958         * tests/test-stdnoreturn.c: Remove files.
10959         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10960         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10961         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10962         and using noreturn.
10963         * modules/openat, modules/sigpipe-die, modules/xalloc:
10964         * modules/xmemdup0, modules/xstrtol:
10965         Remove dependency on stdnoreturn.
10966
10967         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10968         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10969         Reparenthesize to avoid GCC warning.
10970         Support Microsoft's syntax.
10971         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10972
10973         _Noreturn-tests: remove module
10974         * modules/_Noreturn-tests: Remove.
10975         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10976         * tests/test-_Noreturn.c: Remove.
10977         * tests/test-stdnoreturn.c: Merge from the old
10978         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10979
10980 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10981
10982         _Noreturn, stdnoreturn, and related modules.
10983
10984         * top/maint.mk: Adjust to new noreturn support.
10985         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10986         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10987
10988         xalloc: use stdnoreturn.h
10989         * lib/xalloc.h: Include <stdnoreturn.h>.
10990         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10991         * modules/xalloc (Depends-on): Add stdnoreturn.
10992
10993         xstrtol: use stdnoreturn.h
10994         * lib/xstrtol.h: Include <stdnoreturn.h>.
10995         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10996         * modules/xstrtol (Depends-on): Add stdnoreturn.
10997
10998         xmemdup0: use stdnoreturn.h
10999         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11000         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11001         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11002
11003         sigpipe-die: use stdnoreturn.h
11004         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11005         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11006         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11007
11008         openat: use stdnoreturn.h
11009         * lib/openat.h: Include <stdnoreturn.h>.
11010         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11011         * modules/openat (Depends-on): Add stdnoreturn.
11012
11013         * lib/openat-die.c (openat_save_fail): Modernize comment.
11014
11015         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11016
11017         * lib/glthread/thread.h: Modernize comment.
11018
11019         obstack: use _Noreturn
11020         * lib/obstack.c (__attribute__): Remove macro.
11021         (print_and_abort): Use _Noreturn.
11022
11023         c-stack: use _Noreturn
11024         * lib/c-stack.c (die, overflow_handler, segv_handler):
11025         Use _Noreturn rather than __attribute__((noreturn)).
11026
11027         argmatch-tests, exclude_tests: use _Noreturn
11028         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11029         Remove.
11030         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11031
11032         stdlib: use _Noreturn
11033         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11034         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11035         * modules/stdlib (Depends-on): Add _Noreturn.
11036         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11037
11038         stdnoreturn-tests: new module
11039         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11040
11041         stdnoreturn: new module
11042         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11043         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11044
11045         _Noreturn-tests: new module
11046         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11047
11048         _Noreturn: new module
11049         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11050         New section, mentioning it.
11051         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11052
11053         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11054
11055 2011-07-11  Eric Blake  <eblake@redhat.com>
11056
11057         ffs: new module
11058         * modules/ffs: New file.
11059         * m4/ffs.m4: Likewise.
11060         * lib/ffs.c: Likewise.
11061         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11062         * modules/strings (Makefile.am): Substitute witness.
11063         (Depends-on): Add c++defs.
11064         * lib/strings.in.h (ffs): Declare.
11065         * modules/ffs-tests: New test file.
11066         * tests/test-ffs.c: Test new module.
11067         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11068         * doc/posix-functions/ffs.texi (ffs): Likewise.
11069
11070         regex: avoid compiler warning
11071         * lib/regex.c (includes): Include <strings.h>, for use of
11072         strcasecmp in regcomp.c.
11073         Reported by Joachim Schmitz.
11074
11075 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11076
11077         stdint: respect system's intmax_t if INTMAX_MAX
11078         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11079         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11080         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11081         long but int64_t is long long, and where we will clash with the
11082         system intmax_t if we override it.  See
11083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11084         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11085         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11086         similarly for UINTMAX_C.
11087
11088 2011-07-08  Bruno Haible  <bruno@clisp.org>
11089
11090         pthread_sigmask tests: Avoid a compiler warning.
11091         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11092         non-zero.
11093
11094         sigprocmask tests: A better way to avoid a compiler warning.
11095         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11096         (main): Complain if system() returns non-zero.
11097         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11098
11099 2011-07-08  Bruno Haible  <bruno@clisp.org>
11100
11101         pthread_sigmask: Work around IRIX bug.
11102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11103         bug.
11104         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11105         there may be unblocked pending signals.
11106         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11107
11108 2011-07-08  Bruno Haible  <bruno@clisp.org>
11109
11110         pthread_sigmask: Work around Cygwin bug.
11111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11112         bug.
11113         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11114         the system's pthread_sigmask function.
11115         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11116
11117 2011-07-08  Bruno Haible  <bruno@clisp.org>
11118
11119         pthread_sigmask: Work around bug in single-threaded implementation.
11120         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11121         FreeBSD, HP-UX, Solaris bug.
11122         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11123         * lib/pthread_sigmask.c: Include <stddef.h>.
11124         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11125         the system's pthread_sigmask function.
11126         * modules/pthread_sigmask (configure.ac): Invoke
11127         gl_PREREQ_PTHREAD_SIGMASK.
11128         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11129         HP-UX, Solaris.
11130
11131 2011-07-08  Eric Blake  <eblake@redhat.com>
11132
11133         test-sigprocmask: avoid compiler warning
11134         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11135         * tests/test-sigprocmask.c (main): Use it to silence warning.
11136         Reported by Jim Meyering.
11137
11138         test-snprintf: avoid compiler warning
11139         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11140         * tests/test-vsnprintf.c (main): Likewise.
11141         Reported by Jim Meyering.
11142
11143 2011-07-08  Bruno Haible  <bruno@clisp.org>
11144
11145         Tests for module 'pthread_sigmask'.
11146         * modules/pthread_sigmask-tests: New file.
11147         * tests/test-pthread_sigmask1.c: New file, based on
11148         tests/test-sigprocmask.c.
11149         * tests/test-pthread_sigmask2.c: New file.
11150
11151 2011-07-08  Jim Meyering  <meyering@redhat.com>
11152
11153         test-getopt.h: avoid warning about an unused variable
11154         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11155
11156 2011-07-07  Jim Meyering  <meyering@redhat.com>
11157
11158         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11159         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11160         now that it no longer contains leading TABs.
11161         Remove unused "url=FIXME" statement.
11162
11163 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11164
11165         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11166         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11167         When gl_THREADLIB is not in use, assume that the POSIX sematics
11168         are desired.  This is better for Emacs, which uses POSIX semantics
11169         on GNUish and/or POSIXish platforms, and does not use threads at
11170         all otherwise.
11171
11172         pthread_sigmask: fix typo when testing for libraries
11173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11174         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11175
11176 2011-07-08  Eric Blake  <eblake@redhat.com>
11177
11178         fts: introduce FTS_NOATIME
11179         * lib/fts_.h (FTS_NOATIME): New bit flag.
11180         (FTS_OPTIONMASK): Adjust.
11181         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11182         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11183
11184 2011-07-08  Bruno Haible  <bruno@clisp.org>
11185
11186         Tests for module 'thread'.
11187         * modules/thread-tests: New file.
11188         * tests/test-thread_self.c: New file.
11189         * tests/test-thread_create.cc: New file.
11190
11191 2011-07-08  Bruno Haible  <bruno@clisp.org>
11192
11193         thread: Avoid gcc warnings when using gl_thread_self().
11194         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11195         'void *'.
11196         (gl_thread_self_pointer): Update.
11197
11198 2011-07-07  Bruno Haible  <bruno@clisp.org>
11199
11200         signal-c++-tests: Check declaration of pthread_sigmask.
11201         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11202         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11203         $(LIB_PTHREAD_SIGMASK).
11204
11205 2011-07-07  Bruno Haible  <bruno@clisp.org>
11206
11207         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11208         * lib/signal.in.h (pthread_sigmask): Override if
11209         REPLACE_PTHREAD_SIGMASK is 1.
11210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11211         REPLACE_PTHREAD_SIGMASK.
11212         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11213         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11214         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11215         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11216         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11217
11218 2011-07-07  Bruno Haible  <bruno@clisp.org>
11219
11220         pthread_sigmask: Ensure declaration in <signal.h>.
11221         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11222         include <pthread.h>.
11223         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11224         problem.
11225
11226 2011-07-07  Bruno Haible  <bruno@clisp.org>
11227
11228         pthread_sigmask: Document the module.
11229         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11230
11231 2011-07-07  Bruno Haible  <bruno@clisp.org>
11232
11233         pthread_sigmask: Follow gnulib conventions.
11234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11235         gl_PTHREAD_SIGMASK.
11236         * modules/pthread_sigmask (configure.ac): Update.
11237
11238 2011-07-07  Bruno Haible  <bruno@clisp.org>
11239
11240         pthread_sigmask: Make declaration C++ safe.
11241         * lib/signal.in.h: In two special conditions, just do an #include_next.
11242         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11243         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11244         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11245         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11246         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11247         not REPLACE_PTHREAD_MASK.
11248         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11249         not REPLACE_PTHREAD_MASK.
11250         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11251
11252 2011-07-07  Bruno Haible  <bruno@clisp.org>
11253
11254         pthread_sigmask: Fix return value.
11255         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11256         * lib/pthread_sigmask.c: New file.
11257         * modules/pthread_sigmask (Files): Add it.
11258         (configure.ac): Invoke AC_LIBOBJ.
11259
11260 2011-07-07  Eric Blake  <eblake@redhat.com>
11261
11262         getopt: more portable argv creation
11263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11264         const, use char arrays rather than strings.
11265         Suggested by Paul Eggert.
11266
11267 2011-07-07  Bruno Haible  <bruno@clisp.org>
11268
11269         Tests for module 'sigprocmask'.
11270         * modules/sigprocmask-tests: New file.
11271         * tests/test-sigprocmask.c: New file.
11272
11273 2011-07-07  Bruno Haible  <bruno@clisp.org>
11274
11275         float tests: Tweak.
11276         * tests/test-float.c (main): Tweak skip message.
11277
11278 2011-07-07  Eric Blake  <eblake@redhat.com>
11279
11280         getopt: avoid compiler warning during configure
11281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11282         assigning string literals to non-const pointer.
11283
11284         getopt-gnu: avoid crash in glibc getopt
11285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11286         * tests/test-getopt.h (test_getopt): Enhance test.
11287         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11288         * doc/posix-functions/getopt.texi (getopt): Document it.
11289         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11291         Likewise.
11292
11293 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11294
11295         getopt: handle W; without long options in getopt [BZ #12922]
11296         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11297         but no long options are defined, just return 'W'.
11298
11299 2011-07-07  Bruno Haible  <bruno@clisp.org>
11300
11301         Avoid literal tabs.
11302         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11303         variable containing a tab instead of a literal tab.
11304         Reported by Jim Meyering.
11305
11306 2011-07-07  Bruno Haible  <bruno@clisp.org>
11307
11308         Comments.
11309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11310
11311 2011-07-06  Bruno Haible  <bruno@clisp.org>
11312
11313         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11314         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11315         <winsock2.h>.
11316         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11317         lib/sys_socket.in.h.
11318         (close, gethostname): Hide declarations from <winsock2.h>.
11319         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11320         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11321         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11322         (select): Don't override if gnulib's <sys/select.h> was already
11323         included.
11324         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11325         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11326         setsockopt, shutdown, select): Tweak indentation.
11327
11328 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11329
11330         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11331         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11332         in an application that does not use the sys_select module.
11333
11334 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11335
11336         poll: do not return 0 on timeout=-1
11337         * lib/poll.c: Loop with yield if no events occured
11338
11339 2011-07-06  Eric Blake  <eblake@redhat.com>
11340
11341         pthread_sigmask: always replace when not using pthread
11342         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11343         replacement when using some threading other than pthread.  Fix
11344         logic bug.
11345
11346 2011-07-06  Bruno Haible  <bruno@clisp.org>
11347
11348         Comments.
11349         * m4/printf.m4: Update comments about mingw.
11350
11351 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11352
11353         sys_select: define sigset_t more portably
11354         * lib/sys_select.in.h: Always include <sys/types.h>, since
11355         we now need sigset_t and mingw defines it there.
11356         Include <signal.h> before split inclusion guard, to avoid
11357         mishaps on Solaris, whose <signal.h> eventually includes us.
11358         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11359         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11360         which come from ...
11361         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11362         gl_CHECK_TYPE_SIGSET_T.
11363         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11364         does the real work.
11365         * modules/sys_select (Depends-on): Add 'signal'.
11366
11367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11368         Suggested by Bruno Haible.
11369
11370         pselect: Use pthread_sigmask, not sigprocmask.
11371         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11372         multithreaded apps better than sigprocmask does.
11373         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11374         sigprocmask directly.
11375
11376 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11377
11378         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11379         Don't #undef,  since we don't need any underlying pselect.
11380         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11381         (Depends-on): Add select.
11382         (Link): Add $(LIBSOCKET).
11383         These changes suggested by Bruno Haible.
11384
11385         pselect: document better
11386         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11387         * doc/posix-functions/pselect.texi (pselect): Document new module.
11388
11389         pthread_sigmask: new module
11390         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11391         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11392         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11393         This is done only as a macro; I don't know how well that'll
11394         work for C++.  Move <sys/types.h> include before the include_next,
11395         to avoid mishap on Solaris.
11396         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11397         * modules/signal (Makefile.am): Substitute the check's results.
11398         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11399
11400         test-pselect: new module
11401         * modules/pselect-tests, tests/test-pselect.c: New files.
11402         * tests/test-select.c, tests/test-sys_select-c++.cc:
11403         If TEST_PSELECT is defined, test pselect instead of testing select.
11404
11405         * tests/test-sys_select.c (sigset_t): Test for it, too.
11406         Suggested by Bruno Haible.
11407
11408 2011-07-05  Eric Blake  <eblake@redhat.com>
11409
11410         snprintf: guarantee %1$d, for libintl
11411         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11412         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11413         * doc/posix-functions/snprintf.texi (snprintf): Update.
11414         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11415         * tests/test-snprintf.c (main): Enhance test.
11416         * tests/test-vsnprintf.c (main): Likewise.
11417
11418 2011-07-05  Jim Meyering  <meyering@redhat.com>
11419
11420         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11421         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11422         per Bruno's request, to accommodate this idiom (no space after "#")
11423         even when the function is inside an #if block:
11424         char *
11425         gets (char *s)
11426         #undef gets
11427         {
11428           ...
11429         }
11430
11431 2011-07-04  Jim Meyering  <meyering@redhat.com>
11432
11433         maint: indent with spaces, not TABs, and add a rule to check this
11434         * tests/test-userspec.c: Indent with spaces, not TABs.
11435         * tests/test-argp.c: Likewise.
11436         * tests/test-c-stack2.sh: Likewise.
11437         * tests/test-parse-duration.sh: Likewise
11438         * m4/strtod.m4: Likewise.
11439         * m4/alloca.m4: Likewise.
11440         * m4/pselect.m4: Likewise.
11441         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11442
11443 2011-07-03  Jim Meyering  <meyering@redhat.com>
11444
11445         maint.mk: correct omissions in prohibit_argmatch_without_use check
11446         This rule would mistakenly report that argmatch.h is included without
11447         use even when both the argmatch and invalid_arg macro were used.
11448         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11449         of argmatch and invalid_arg.
11450
11451 2011-07-03  Bruno Haible  <bruno@clisp.org>
11452
11453         Comments about EINTR.
11454         * lib/safe-read.h: Explain the purpose of this module.
11455         * lib/safe-write.h: Likewise.
11456         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11457         module.
11458         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11459         module.
11460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11461
11462 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11463
11464         xnanosleep: Rewrite to use new dtotimespec module.
11465         It has the conversion code that used to be in xnanosleep.
11466         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11467         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11468         (TIME_T_MAX): Remove.
11469         (xnanosleep): Rewrite in terms of dtotimespec.
11470         * modules/xnanosleep (Depends-on): Add dtotimespec.
11471         Remove intprops, stdbool.
11472
11473         timespec-add, timespec-sub: new modules
11474         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11475         * lib/timespec-add.c, lib/timespec-sub.c:
11476         * modules/timespec-add, modules/timespec-sub: New files.
11477
11478         dtotimespec: new module
11479         * lib/timespec.h (dtotimespec): New decl.
11480         * lib/dtotimespec.c, modules/dtotimespec: New files.
11481
11482         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11483
11484         pselect: new module
11485         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11486         (pselect): New decls.
11487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11488         since the standard pselect decl uses 'restrict'.
11489         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11490         HAVE_PSELECT, REPLACE_PSELECT.
11491         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11492         HAVE_PSELECT, REPLACE_PSELECT.
11493         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11494
11495         sys_select: don't depend on sys_socket
11496         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11498         This fix works on GNU and GNU-like platforms, but has not been tested
11499         on native Windows.
11500         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11502         gl_HEADER_SYS_SOCKET.
11503         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11504         gl_PREREQ_SYS_H_WINSOCK2.
11505
11506 2011-06-29  Eric Blake  <eblake@redhat.com>
11507
11508         pipe2: fix C89 compile problem
11509         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11510         Reported by Bruno Haible.
11511
11512         pipe, pipe2: don't corrupt fd on error
11513         * lib/pipe.c (pipe): Leave fd unchanged on error.
11514         * lib/pipe2.c (pipe2): Likewise.
11515         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11516         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11517
11518 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11519
11520         mmap-anon: do not use regular expressions inadvertently
11521         * m4/mmap-anon.m4: Remove trailing period from strings sought
11522         in the output.
11523
11524 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11525
11526         nanosleep: fix integer overflow problem
11527         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11528         arithmetic wraps around on overflow.
11529
11530         nanosleep: simplify carrying
11531         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11532         first call to the underyling nanosleep, not for the last one.
11533         This doesn't fix any bugs, but it simplifies the computation of
11534         the remaining delay.  Found while auditing integer overflow issues.
11535
11536         dup2: remove test for existence of fcntl
11537         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11538         "#if HAVE_FCNTL", in the configure-time test program.
11539         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11540         and therefore speeds up "configure" a bit.  Found while
11541         adding the dup2 module to Emacs.
11542
11543 2011-06-24  Eric Blake  <eblake@redhat.com>
11544
11545         maint.mk: enhance useless header checks
11546         * top/maint.mk (_sc_header_without_use): Check both include
11547         styles.
11548         (sc_prohibit_assert_without_use)
11549         (sc_prohibit_close_stream_without_use)
11550         (sc_prohibit_getopt_without_use)
11551         (sc_prohibit_quotearg_without_use)
11552         (sc_prohibit_quote_without_use)
11553         (sc_prohibit_long_options_without_use)
11554         (sc_prohibit_inttostr_without_use)
11555         (sc_prohibit_ignore_value_without_use)
11556         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11557         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11558         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11559         (sc_prohibit_hash_pjw_without_use)
11560         (sc_prohibit_safe_read_without_use)
11561         (sc_prohibit_argmatch_without_use)
11562         (sc_prohibit_canonicalize_without_use)
11563         (sc_prohibit_root_dev_ino_without_use)
11564         (sc_prohibit_openat_without_use)
11565         (sc_prohibit_c_ctype_without_use)
11566         (sc_prohibit_signal_without_use)
11567         (sc_prohibit_stdio--_without_use)
11568         (sc_prohibit_stdio-safer_without_use)
11569         (sc_prohibit_strings_without_use)
11570         (sc_prohibit_intprops_without_use)
11571         (sc_prohibit_stddef_without_use)
11572         (sc_prohibit_xfreopen_without_use): Update clients.
11573
11574 2011-06-24  Jim Meyering  <meyering@redhat.com>
11575
11576         syntax-check: keep one maint.mk rule in sync with its header
11577         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11578         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11579         I prefer to avoid temporary files here, so use <(...), but that
11580         is not supported by /bin/sh, so...
11581         (SHELL): Define to /bin/bash.
11582
11583 2011-06-24  Eric Blake  <eblake@redhat.com>
11584
11585         maint.mk: update sc_prohibit_intprops_without_use
11586         * top/maint.mk (_intprops_names): Match recent changes.
11587
11588 2011-06-24  Bruno Haible  <bruno@clisp.org>
11589
11590         strerror-override: No-op tweak.
11591         * lib/strerror-override.h (strerror_override): Reorder conditions,
11592         for consistency with lib/strerror-override.c.
11593
11594 2011-06-23  Eric Blake  <eblake@redhat.com>
11595
11596         maint.mk: test further PATH_MAX issues
11597         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11598         (sc_prohibit_path_max_allocation): ...and also test alloca.
11599         Suggested by Jim Meyering.
11600
11601 2011-06-22  Eric Blake  <eblake@redhat.com>
11602
11603         maint.mk: add syntax-check to avoid char[PATH_MAX]
11604         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11605
11606         stat: be robust to PATH_MAX definition
11607         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11608         * modules/stat (Depends-on): Add verify.
11609
11610         link: work around IRIX bug
11611         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11612         * lib/link.c (rpl_link): Work around it.
11613         * tests/test-link.h (test_link): Enhance test.
11614         * doc/posix-functions/link.texi (link): Document the bug.
11615
11616         getopt: silence clang warning
11617         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11618         dereference.
11619         Reported by Gustavo Martin Domato.
11620
11621 2011-06-22  Jim Meyering  <meyering@redhat.com>
11622
11623         bootstrap: do not insert a blank line into each .gitignore file
11624         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11625
11626 2011-06-21  Eric Blake  <eblake@redhat.com>
11627
11628         perror: test for output mismatch
11629         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11630         perror on IRIX.
11631
11632         strerror_r: fix OpenBSD behavior on out-of-range
11633         * lib/strerror_r.c (strerror_r): Always use maximal string.
11634         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11635
11636         strerror_r: fix OpenBSD behavior on 0
11637         * lib/strerror-override.c (strerror_override): Also override 0
11638         when needed.
11639         * lib/strerror-override.h (strerror_override): Likewise.
11640         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11641         earlier.
11642         * lib/strerror_r.c (strerror_r): Likewise.
11643         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11644         behavior...
11645         (gl_FUNC_STRERROR_0): ...into new macro.
11646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11647         is overridden.
11648         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11649         * modules/strerror-override (Files): Add strerror.m4.
11650         (configure.ac): Also provide override for 0 when needed.
11651         * doc/posix-functions/strerror.texi (strerror): Document this.
11652         * doc/posix-functions/perror.texi (perror): Likewise.
11653
11654         perror: adjust array size
11655         * modules/perror (Depends-on): Add strerror-override.
11656         * lib/perror.c (perror): Use it to avoid magic number.
11657
11658         strerror-override: reduce size
11659         * lib/strerror-override.c (strerror_override): Use fewer lines.
11660
11661 2011-06-20  Bruno Haible  <bruno@clisp.org>
11662
11663         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11664         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11665
11666 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11667
11668         alloca: port to compilers that can optimize like GCC 4.6.0
11669         * lib/alloca.c (find_stack_direction): New signature, taken from
11670         Autoconf git.  This works with GCC 4.6.0.  This code should never
11671         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11672         be used with other compilers that optimize as well as GCC 4.6.0 does.
11673         (alloca): Adjust to new signature.
11674         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11675         New macro, which patches Autoconf in a similar way.
11676
11677         c-stack: stop worrying about stack direction
11678         * lib/c-stack.c (find_stack_direction): Remove.
11679         (segv_handler): Don't worry about stack direction growth, as it's
11680         too much of a pain to configure this correctly, given how compilers
11681         are optimizing-away our stack-growth detection code.  Instead, assume
11682         that any access to just before or just after the stack is OK.
11683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11684         Don't require AC_FUNC_ALLOCA; no longer needed.
11685
11686 2011-06-20  Eric Blake  <eblake@redhat.com>
11687
11688         test-stat: don't allocate PATH_MAX bytes
11689         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11690         PATH_MAX-sized buffer.
11691         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11692         * modules/stat-tests (Depends-on): Likewise.
11693         * tests/test-fstatat.c (includes): Drop pathmax.h.
11694         * tests/test-stat.c (includes): Likewise.
11695         Reported by Bruno Haible.
11696
11697 2011-06-20  Bruno Haible  <bruno@clisp.org>
11698
11699         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11700         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11701         * lib/float.c: New file.
11702         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11703         REPLACE_FLOAT_LDBL.
11704         * modules/float (Files): Add lib/float.c.
11705         (configure.ac): Invoke AC_LIBOBJ.
11706         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11707
11708 2011-06-20  Bruno Haible  <bruno@clisp.org>
11709
11710         Tests for module 'float'.
11711         * modules/float-tests: New file.
11712         * tests/test-float.c: New file.
11713
11714 2011-06-19  Bruno Haible  <bruno@clisp.org>
11715
11716         isinf: Coding style.
11717         * lib/isinf.c: Use GNU coding style.
11718
11719 2011-06-19  Bruno Haible  <bruno@clisp.org>
11720
11721         linkat test: Avoid test failure on AIX 7.1.
11722         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11723         * tests/test-link.h (test_link): Likewise.
11724
11725 2011-06-19  Bruno Haible  <bruno@clisp.org>
11726
11727         pread test: Avoid test failure on OpenBSD 4.9.
11728         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11729
11730 2011-06-19  Bruno Haible  <bruno@clisp.org>
11731
11732         sprintf-posix: Fix test failure on AIX 7.1.
11733         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11734         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11735         on AIX.
11736         * doc/posix-functions/fprintf.texi: Likewise.
11737         * doc/posix-functions/printf.texi: Likewise.
11738         * doc/posix-functions/snprintf.texi: Likewise.
11739         * doc/posix-functions/sprintf.texi: Likewise.
11740         * doc/posix-functions/vdprintf.texi: Likewise.
11741         * doc/posix-functions/vfprintf.texi: Likewise.
11742         * doc/posix-functions/vprintf.texi: Likewise.
11743         * doc/posix-functions/vsnprintf.texi: Likewise.
11744         * doc/posix-functions/vsprintf.texi: Likewise.
11745
11746 2011-06-19  Bruno Haible  <bruno@clisp.org>
11747
11748         roundl-ieee: Fix test failure on AIX 7.1.
11749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11750         * doc/posix-functions/roundl.texi: Mention problem with negative
11751         arguments.
11752
11753 2011-06-19  Bruno Haible  <bruno@clisp.org>
11754
11755         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11756         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11757         * doc/posix-functions/round.texi: Mention problem with negative
11758         arguments.
11759         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11760
11761 2011-06-19  Bruno Haible  <bruno@clisp.org>
11762
11763         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11765         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11766         * doc/posix-functions/roundf.texi: Mention problem with negative
11767         arguments.
11768         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11769
11770 2011-06-19  Bruno Haible  <bruno@clisp.org>
11771
11772         ceilf-ieee: Work around bug on MacOS X 10.5.
11773         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11774
11775         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11776         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11777         IEEE compliant, avoid compiler optimizations.
11778         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11779         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11780         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11781         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11782         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11783         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11786         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11787         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11788
11789 2011-06-19  Bruno Haible  <bruno@clisp.org>
11790
11791         ceilf-ieee: Work around bug on AIX 7.1.
11792         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11793         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11794
11795 2011-06-19  Bruno Haible  <bruno@clisp.org>
11796
11797         ceil-ieee: Work around bug on AIX 7.1.
11798         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11799         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11800
11801 2011-06-18  Bruno Haible  <bruno@clisp.org>
11802
11803         fsync test: Avoid test failure on MacOS X and AIX.
11804         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11805         EINVAL.
11806
11807 2011-06-18  Bruno Haible  <bruno@clisp.org>
11808
11809         openat, fdopendir tests: Fix link errors.
11810         * modules/openat-tests (Depends-on): Add progname.
11811         * modules/fdopendir-tests (Depends-on): Likewise.
11812         * tests/test-fchownat.c: Include progname.h.
11813         (main): Call set_program_name.
11814         * tests/test-fstatat.c: Include progname.h.
11815         (main): Call set_program_name.
11816         * tests/test-mkdirat.c: Include progname.h.
11817         (main): Call set_program_name.
11818         * tests/test-openat.c: Include progname.h.
11819         (main): Call set_program_name.
11820         * tests/test-unlinkat.c: Include progname.h.
11821         (main): Call set_program_name.
11822         * tests/test-fdopendir.c: Include progname.h.
11823         (main): Call set_program_name.
11824
11825 2011-06-18  Bruno Haible  <bruno@clisp.org>
11826
11827         Doc update.
11828         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11829         HP-UX.
11830         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11831
11832 2011-06-18  Bruno Haible  <bruno@clisp.org>
11833
11834         getcwd tests: Avoid compilation error on HP-UX 11.31.
11835         * modules/getcwd-tests (Depends-on): Add pathmax.
11836         * tests/test-getcwd.c: Include pathmax.h.
11837
11838 2011-06-18  Bruno Haible  <bruno@clisp.org>
11839
11840         isfinite, isinf: Fix link error on AIX 6 and 7.
11841         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11842         needed, also test the macro with a 'float' argument.
11843         * m4/isinf.m4 (gl_ISINF): Likewise.
11844
11845 2011-06-18  Bruno Haible  <bruno@clisp.org>
11846
11847         getloadavg: Don't clobber LIBS. Regression from previous commit.
11848         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11849         AC_CHECK_LIB from here...
11850         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11851         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11852         gl_func_getloadavg_done.
11853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11854
11855 2011-06-18  Bruno Haible  <bruno@clisp.org>
11856
11857         clean-temp: Improve documentation.
11858         * lib/clean-temp.h: Explain better how to use this module.
11859         Reported by John Darrington <john@darrington.wattle.id.au>.
11860
11861 2011-06-17  Bruno Haible  <bruno@clisp.org>
11862
11863         pread, pwrite: Avoid cc warning on AIX.
11864         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11865         (pwrite): Likewise.
11866
11867 2011-06-17  Bruno Haible  <bruno@clisp.org>
11868
11869         spawn-pipe tests: Fix link error.
11870         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11872
11873 2011-06-17  Bruno Haible  <bruno@clisp.org>
11874
11875         Tests: Remove unnecessary dependency.
11876         * modules/canonicalize-tests (Depends-on): Remove progname.
11877         * modules/chown-tests (Depends-on): Likewise.
11878         * modules/dirname-tests (Depends-on): Likewise.
11879         * modules/fdopendir-tests (Depends-on): Likewise.
11880         * modules/fdutimensat-tests (Depends-on): Likewise.
11881         * modules/hash-tests (Depends-on): Likewise.
11882         * modules/lchown-tests (Depends-on): Likewise.
11883         * modules/linkat-tests (Depends-on): Likewise.
11884         * modules/renameat-tests (Depends-on): Likewise.
11885         * modules/spawn-pipe-tests (Depends-on): Likewise.
11886         * modules/utimensat-tests (Depends-on): Likewise.
11887
11888 2011-06-17  Bruno Haible  <bruno@clisp.org>
11889
11890         spawn-pipe tests: Fix link error.
11891         * tests/test-spawn-pipe-child.c: Undefine fflush.
11892
11893 2011-06-17  Bruno Haible  <bruno@clisp.org>
11894
11895         Fix tests link errors.
11896         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11897         * modules/chown-tests (Makefile.am): Don't link test-chown with
11898         LIBINTL.
11899         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11900         LIBINTL.
11901         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11902         LIBINTL.
11903         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11904         LIBINTL.
11905
11906 2011-06-16  Bruno Haible  <bruno@clisp.org>
11907
11908         crypto/gc-sha1: Fix recent regression.
11909         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11910         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11911
11912         crypto/gc-md5: Fix recent regression.
11913         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11914
11915         crypto/gc-md4: Fix recent regression.
11916         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11917         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11918
11919         crypto/gc-arctwo: Fix recent regression.
11920         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11921         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11922
11923         crypto/gc-rijndael: Fix recent regression.
11924         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11925         (configure.ac): Invoke AC_LIBOBJ here.
11926         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11928
11929         crypto/gc-hmac-sha1: Fix recent regression.
11930         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11931         (configure.ac): Invoke AC_LIBOBJ here.
11932         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11934
11935         crypto/gc-hmac-md5: Fix recent regression.
11936         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11937         (configure.ac): Invoke AC_LIBOBJ here.
11938         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11940
11941         crypto/gc-des: Fix recent regression.
11942         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11943         (configure.ac): Invoke AC_LIBOBJ here.
11944         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11946
11947         crypto/gc-arcfour: Fix recent regression.
11948         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11949         (configure.ac): Invoke AC_LIBOBJ here.
11950         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11952
11953 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11954
11955         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11956         After the 2011-05-21 change, this macro requires
11957         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11958         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11959
11960 2011-06-16  Bruno Haible  <bruno@clisp.org>
11961
11962         fprintftime: Move AC_LIBOBJ invocations to module description.
11963         * m4/fprintftime.m4: Remove file.
11964         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11965         (configure.ac): Remove gl_FPRINTFTIME call.
11966         (Makefile.am): Augment lib_SOURCES.
11967         Reported by Jim Meyering.
11968
11969 2011-06-16  Bruno Haible  <bruno@clisp.org>
11970
11971         tmpfile-safer: Finish 2011-05-23 commit.
11972         * m4/stdio-safer.m4: Really remove file.
11973         Reported by Jim Meyering.
11974
11975 2011-06-16  Bruno Haible  <bruno@clisp.org>
11976
11977         syntax-check: Fix typo.
11978         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11979         printf-posix.m4.
11980         Reported by Jim Meyering.
11981
11982 2011-06-13  Jim Meyering  <meyering@redhat.com>
11983
11984         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11985         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11986
11987 2011-05-23  Bruno Haible  <bruno@clisp.org>
11988
11989         yesno: Move AC_LIBOBJ invocations to module description.
11990         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11991         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11992
11993 2011-05-23  Bruno Haible  <bruno@clisp.org>
11994
11995         xstrtol: Move AC_LIBOBJ invocations to module description.
11996         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11997         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11998
11999 2011-05-23  Bruno Haible  <bruno@clisp.org>
12000
12001         xstrtold: Move AC_LIBOBJ invocations to module description.
12002         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12003         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12004
12005 2011-05-23  Bruno Haible  <bruno@clisp.org>
12006
12007         xstrtod: Move AC_LIBOBJ invocations to module description.
12008         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12009         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12010
12011 2011-05-23  Bruno Haible  <bruno@clisp.org>
12012
12013         xnanosleep: Move AC_LIBOBJ invocations to module description.
12014         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12015         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12016
12017 2011-05-23  Bruno Haible  <bruno@clisp.org>
12018
12019         xgetcwd: Move AC_LIBOBJ invocations to module description.
12020         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12021         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12022
12023 2011-05-23  Bruno Haible  <bruno@clisp.org>
12024
12025         xalloc: Move AC_LIBOBJ invocations to module description.
12026         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12027         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12028
12029 2011-05-23  Bruno Haible  <bruno@clisp.org>
12030
12031         write-any-file: Move AC_LIBOBJ invocations to module description.
12032         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12033         invocation.
12034         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12035
12036 2011-05-23  Bruno Haible  <bruno@clisp.org>
12037
12038         utimens: Move AC_LIBOBJ invocations to module description.
12039         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12040         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12041
12042 2011-05-23  Bruno Haible  <bruno@clisp.org>
12043
12044         utimecmp: Move AC_LIBOBJ invocations to module description.
12045         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12046         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12047
12048 2011-05-23  Bruno Haible  <bruno@clisp.org>
12049
12050         userspec: Move AC_LIBOBJ invocations to module description.
12051         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12052         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12053
12054 2011-05-23  Bruno Haible  <bruno@clisp.org>
12055
12056         unlinkdir: Move AC_LIBOBJ invocations to module description.
12057         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12058         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12059
12060 2011-05-23  Bruno Haible  <bruno@clisp.org>
12061
12062         unistd-safer: Move AC_LIBOBJ invocations to module description.
12063         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12064         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12065
12066 2011-05-23  Bruno Haible  <bruno@clisp.org>
12067
12068         tempname: Move AC_LIBOBJ invocations to module description.
12069         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12070         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12071
12072 2011-05-23  Bruno Haible  <bruno@clisp.org>
12073
12074         strftime: Move AC_LIBOBJ invocations to module description.
12075         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12076         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12077
12078 2011-05-23  Bruno Haible  <bruno@clisp.org>
12079
12080         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12081         * m4/stdlib-safer.m4: Remove file.
12082         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12083         (configure.ac): Remove gl_STDLIB_SAFER call.
12084         (Makefile.am): Augment lib_SOURCES.
12085
12086 2011-05-23  Bruno Haible  <bruno@clisp.org>
12087
12088         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12089         * m4/stdio-safer.m4: Remove file.
12090         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12091         (configure.ac): Remove gl_TMPFILE_SAFER call.
12092         (Makefile.am): Augment lib_SOURCES.
12093
12094 2011-05-23  Bruno Haible  <bruno@clisp.org>
12095
12096         popen-safer: Move AC_LIBOBJ invocations to module description.
12097         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12098         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12099         (configure.ac): Remove gl_POPEN_SAFER call.
12100         (Makefile.am): Augment lib_SOURCES.
12101
12102 2011-05-23  Bruno Haible  <bruno@clisp.org>
12103
12104         freopen-safer: Move AC_LIBOBJ invocations to module description.
12105         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12106         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12107         (configure.ac): Remove gl_FREOPEN_SAFER call.
12108         (Makefile.am): Augment lib_SOURCES.
12109
12110 2011-05-23  Bruno Haible  <bruno@clisp.org>
12111
12112         fopen-safer: Move AC_LIBOBJ invocations to module description.
12113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12114         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12115         (configure.ac): Remove gl_FOPEN_SAFER call.
12116         (Makefile.am): Augment lib_SOURCES.
12117
12118 2011-05-23  Bruno Haible  <bruno@clisp.org>
12119
12120         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12121         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12122         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12123
12124 2011-05-23  Bruno Haible  <bruno@clisp.org>
12125
12126         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12127         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12128         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12129
12130 2011-05-23  Bruno Haible  <bruno@clisp.org>
12131
12132         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12133         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12134         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12135
12136 2011-05-23  Bruno Haible  <bruno@clisp.org>
12137
12138         settime: Move AC_LIBOBJ invocations to module description.
12139         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12140         * modules/settime (Makefile.am): Augment lib_SOURCES.
12141
12142 2011-05-23  Bruno Haible  <bruno@clisp.org>
12143
12144         savedir: Move AC_LIBOBJ invocations to module description.
12145         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12146         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12147
12148 2011-05-23  Bruno Haible  <bruno@clisp.org>
12149
12150         save-cwd: Move AC_LIBOBJ invocations to module description.
12151         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12152         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12153
12154 2011-05-23  Bruno Haible  <bruno@clisp.org>
12155
12156         same: Move AC_LIBOBJ invocations to module description.
12157         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12158         * modules/same (Makefile.am): Augment lib_SOURCES.
12159
12160 2011-05-23  Bruno Haible  <bruno@clisp.org>
12161
12162         safe-write: Move AC_LIBOBJ invocations to module description.
12163         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12164         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12165         instead of gl_SAFE_WRITE.
12166         (Makefile.am): Augment lib_SOURCES.
12167
12168 2011-05-23  Bruno Haible  <bruno@clisp.org>
12169
12170         safe-read: Move AC_LIBOBJ invocations to module description.
12171         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12172         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12173         of gl_SAFE_READ.
12174         (Makefile.am): Augment lib_SOURCES.
12175
12176 2011-05-23  Bruno Haible  <bruno@clisp.org>
12177
12178         safe-alloc: Move AC_LIBOBJ invocations to module description.
12179         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12180         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12181
12182 2011-05-23  Bruno Haible  <bruno@clisp.org>
12183
12184         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12185         * m4/rijndael.m4: Remove file.
12186         * modules/crypto/rijndael (Files): Remove it.
12187         (configure.ac): Remove gl_RIJNDAEL call.
12188         (Makefile.am): Augment lib_SOURCES.
12189
12190 2011-05-23  Bruno Haible  <bruno@clisp.org>
12191
12192         readtokens: Move AC_LIBOBJ invocations to module description.
12193         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12194         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12195
12196 2011-05-23  Bruno Haible  <bruno@clisp.org>
12197
12198         read-file: Move AC_LIBOBJ invocations to module description.
12199         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12200         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12201         of gl_FUNC_READ_FILE.
12202         (Makefile.am): Augment lib_SOURCES.
12203
12204 2011-05-23  Bruno Haible  <bruno@clisp.org>
12205
12206         quotearg: Move AC_LIBOBJ invocations to module description.
12207         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12208         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12209
12210 2011-05-23  Bruno Haible  <bruno@clisp.org>
12211
12212         quote: Move AC_LIBOBJ invocations to module description.
12213         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12214         * modules/quote (Makefile.am): Augment lib_SOURCES.
12215
12216 2011-05-23  Bruno Haible  <bruno@clisp.org>
12217
12218         posixver: Move AC_LIBOBJ invocations to module description.
12219         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12220         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12221
12222 2011-05-23  Bruno Haible  <bruno@clisp.org>
12223
12224         posixtm: Move AC_LIBOBJ invocations to module description.
12225         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12226         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12227
12228 2011-05-23  Bruno Haible  <bruno@clisp.org>
12229
12230         physmem: Move AC_LIBOBJ invocations to module description.
12231         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12232         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12233
12234 2011-05-23  Bruno Haible  <bruno@clisp.org>
12235
12236         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12237         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12238         invocation.
12239         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12240
12241 2011-05-23  Bruno Haible  <bruno@clisp.org>
12242
12243         mpsort: Move AC_LIBOBJ invocations to module description.
12244         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12245         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12246
12247 2011-05-23  Bruno Haible  <bruno@clisp.org>
12248
12249         modechange: Move AC_LIBOBJ invocations to module description.
12250         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12251         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12252
12253 2011-05-23  Bruno Haible  <bruno@clisp.org>
12254
12255         mkdir-p: Move AC_LIBOBJ invocations to module description.
12256         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12257         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12258
12259 2011-05-23  Bruno Haible  <bruno@clisp.org>
12260
12261         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12262         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12263         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12264
12265 2011-05-23  Bruno Haible  <bruno@clisp.org>
12266
12267         mgetgroups: Move AC_LIBOBJ invocations to module description.
12268         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12269         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12270
12271 2011-05-23  Bruno Haible  <bruno@clisp.org>
12272
12273         memxor: Move AC_LIBOBJ invocations to module description.
12274         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12275         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12276
12277 2011-05-23  Bruno Haible  <bruno@clisp.org>
12278
12279         memcoll: Move AC_LIBOBJ invocations to module description.
12280         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12281         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12282
12283 2011-05-23  Bruno Haible  <bruno@clisp.org>
12284
12285         memcasecmp: Move AC_LIBOBJ invocations to module description.
12286         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12287         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12288
12289 2011-05-23  Bruno Haible  <bruno@clisp.org>
12290
12291         crypto/md5: Move AC_LIBOBJ invocations to module description.
12292         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12293         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12294
12295 2011-05-23  Bruno Haible  <bruno@clisp.org>
12296
12297         crypto/md4: Move AC_LIBOBJ invocations to module description.
12298         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12299         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12300
12301 2011-05-23  Bruno Haible  <bruno@clisp.org>
12302
12303         crypto/md2: Move AC_LIBOBJ invocations to module description.
12304         * m4/md2.m4: Remove file.
12305         * modules/crypto/md2 (Files): Remove it.
12306         (configure.ac): Remove gl_MD2 call.
12307         (Makefile.am): Augment lib_SOURCES.
12308
12309 2011-05-23  Bruno Haible  <bruno@clisp.org>
12310
12311         long-options: Move AC_LIBOBJ invocations to module description.
12312         * m4/long-options.m4: Remove file.
12313         * modules/long-options (Files): Remove it.
12314         (configure.ac): Remove gl_LONG_OPTIONS call.
12315         (Makefile.am): Augment lib_SOURCES.
12316
12317 2011-05-23  Bruno Haible  <bruno@clisp.org>
12318
12319         i-ring: Move AC_LIBOBJ invocations to module description.
12320         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12321         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12322
12323 2011-05-23  Bruno Haible  <bruno@clisp.org>
12324
12325         idcache: Move AC_LIBOBJ invocations to module description.
12326         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12327         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12328
12329 2011-05-23  Bruno Haible  <bruno@clisp.org>
12330
12331         human: Move AC_LIBOBJ invocations to module description.
12332         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12333         * modules/human (Makefile.am): Augment lib_SOURCES.
12334
12335 2011-05-23  Bruno Haible  <bruno@clisp.org>
12336
12337         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12338         * m4/hmac-sha1.m4: Remove file.
12339         * modules/crypto/hmac-sha1 (Files): Remove it.
12340         (configure.ac): Remove gl_HMAC_SHA1 call.
12341         (Makefile.am): Augment lib_SOURCES.
12342
12343 2011-05-23  Bruno Haible  <bruno@clisp.org>
12344
12345         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12346         * m4/hmac-md5.m4: Remove file.
12347         * modules/crypto/hmac-md5 (Files): Remove it.
12348         (configure.ac): Remove gl_HMAC_MD5 call.
12349         (Makefile.am): Augment lib_SOURCES.
12350
12351 2011-05-23  Bruno Haible  <bruno@clisp.org>
12352
12353         hash: Move AC_LIBOBJ invocations to module description.
12354         * m4/hash.m4: Remove file.
12355         * modules/hash (Files): Remove it.
12356         (configure.ac): Remove gl_HASH call.
12357         (Makefile.am): Augment lib_SOURCES.
12358
12359 2011-05-23  Bruno Haible  <bruno@clisp.org>
12360
12361         hard-locale: Move AC_LIBOBJ invocations to module description.
12362         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12363         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12364
12365 2011-05-23  Bruno Haible  <bruno@clisp.org>
12366
12367         getugroups: Move AC_LIBOBJ invocations to module description.
12368         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12369         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12370
12371 2011-05-23  Bruno Haible  <bruno@clisp.org>
12372
12373         gettime: Move AC_LIBOBJ invocations to module description.
12374         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12375         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12376
12377 2011-05-23  Bruno Haible  <bruno@clisp.org>
12378
12379         getndelim2: Move AC_LIBOBJ invocations to module description.
12380         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12381         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12382
12383 2011-05-23  Bruno Haible  <bruno@clisp.org>
12384
12385         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12386         * m4/gc-pbkdf2-sha1.m4: Remove file.
12387         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12388         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12389         (Makefile.am): Augment lib_SOURCES.
12390
12391 2011-05-23  Bruno Haible  <bruno@clisp.org>
12392
12393         fts: Move AC_LIBOBJ invocations to module description.
12394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12395         * modules/fts (configure.ac): ... to here.
12396
12397 2011-05-23  Bruno Haible  <bruno@clisp.org>
12398
12399         file-type: Move AC_LIBOBJ invocations to module description.
12400         * m4/file-type.m4: Remove file.
12401         * modules/file-type (Files): Remove it.
12402         (configure.ac): Remove gl_FILE_TYPE call.
12403         (Makefile.am): Augment lib_SOURCES.
12404
12405 2011-05-23  Bruno Haible  <bruno@clisp.org>
12406
12407         filenamecat*: Respect rules for use of AC_LIBOBJ.
12408         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12409         Remove AC_LIBOBJ invocation.
12410         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12411         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12412
12413 2011-05-23  Bruno Haible  <bruno@clisp.org>
12414
12415         filemode: Move AC_LIBOBJ invocations to module description.
12416         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12417         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12418
12419 2011-05-23  Bruno Haible  <bruno@clisp.org>
12420
12421         openat-safer: Move AC_LIBOBJ invocations to module description.
12422         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12423         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12424
12425 2011-05-23  Bruno Haible  <bruno@clisp.org>
12426
12427         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12429         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12430
12431 2011-05-23  Bruno Haible  <bruno@clisp.org>
12432
12433         exclude: Move AC_LIBOBJ invocations to module description.
12434         * m4/exclude.m4: Remove file.
12435         * modules/exclude (Files): Remove it.
12436         (configure.ac): Remove gl_EXCLUDE call.
12437         (Makefile.am): Augment lib_SOURCES.
12438
12439 2011-05-23  Bruno Haible  <bruno@clisp.org>
12440
12441         dirname*: Respect rules for use of AC_LIBOBJ.
12442         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12443         invocations.
12444         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12445         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12446
12447 2011-05-23  Bruno Haible  <bruno@clisp.org>
12448
12449         dirent-safer: Move AC_LIBOBJ invocations to module description.
12450         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12451         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12452
12453 2011-05-23  Bruno Haible  <bruno@clisp.org>
12454
12455         crypto/des: Move AC_LIBOBJ invocations to module description.
12456         * m4/des.m4: Remove file.
12457         * modules/crypto/des (Files): Remove it.
12458         (configure.ac): Remove gl_DES call.
12459         (Makefile.am): Augment lib_SOURCES.
12460
12461 2011-05-23  Bruno Haible  <bruno@clisp.org>
12462
12463         cycle-check: Move AC_LIBOBJ invocations to module description.
12464         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12465         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12466
12467 2011-05-23  Bruno Haible  <bruno@clisp.org>
12468
12469         c-strtold: Move AC_LIBOBJ invocations to module description.
12470         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12471         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12472
12473 2011-05-23  Bruno Haible  <bruno@clisp.org>
12474
12475         c-strtod: Move AC_LIBOBJ invocations to module description.
12476         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12477         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12478
12479 2011-05-23  Bruno Haible  <bruno@clisp.org>
12480
12481         crc: Move AC_LIBOBJ invocations to module description.
12482         * m4/crc.m4: Remove file.
12483         * modules/crc (Files): Remove it.
12484         (configure.ac): Remove gl_CRC call.
12485         (Makefile.am): Augment lib_SOURCES.
12486
12487 2011-05-23  Bruno Haible  <bruno@clisp.org>
12488
12489         close-stream: Move AC_LIBOBJ invocations to module description.
12490         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12491         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12492
12493 2011-05-23  Bruno Haible  <bruno@clisp.org>
12494
12495         closeout: Move AC_LIBOBJ invocations to module description.
12496         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12497         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12498
12499 2011-05-23  Bruno Haible  <bruno@clisp.org>
12500
12501         closein: Move AC_LIBOBJ invocations to module description.
12502         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12503         * modules/closein (Makefile.am): Augment lib_SOURCES.
12504
12505 2011-05-23  Bruno Haible  <bruno@clisp.org>
12506
12507         cloexec: Move AC_LIBOBJ invocations to module description.
12508         * m4/cloexec.m4: Remove file.
12509         * modules/cloexec (Files): Remove it.
12510         (configure.ac): Remove gl_CLOEXEC call.
12511         (Makefile.am): Augment lib_SOURCES.
12512
12513 2011-05-23  Bruno Haible  <bruno@clisp.org>
12514
12515         check-version: Move AC_LIBOBJ invocations to module description.
12516         * m4/check-version.m4: Remove file.
12517         * modules/check-version (Files): Remove it.
12518         (configure.ac): Remove gl_CHECK_VERSION call.
12519         (Makefile.am): Augment lib_SOURCES.
12520
12521 2011-05-23  Bruno Haible  <bruno@clisp.org>
12522
12523         chdir-safer: Move AC_LIBOBJ invocations to module description.
12524         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12525         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12526
12527 2011-05-23  Bruno Haible  <bruno@clisp.org>
12528
12529         canonicalize: Move AC_LIBOBJ invocations to module description.
12530         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12531         AC_LIBOBJ invocation.
12532         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12533
12534 2011-05-23  Bruno Haible  <bruno@clisp.org>
12535
12536         canon-host: Move AC_LIBOBJ invocations to module description.
12537         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12538         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12539         instead of gl_CANON_HOST.
12540         (Makefile.am): Augment lib_SOURCES.
12541
12542 2011-05-23  Bruno Haible  <bruno@clisp.org>
12543
12544         backupfile: Move AC_LIBOBJ invocations to module description.
12545         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12546         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12547
12548 2011-05-23  Bruno Haible  <bruno@clisp.org>
12549
12550         argmatch: Move AC_LIBOBJ invocations to module description.
12551         * m4/argmatch.m4: Remove file.
12552         * modules/argmatch (Files): Remove it.
12553         (configure.ac): Remove gl_ARGMATCH call.
12554         (Makefile.am): Augment lib_SOURCES.
12555
12556 2011-05-23  Bruno Haible  <bruno@clisp.org>
12557
12558         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12559         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12560         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12561
12562 2011-05-23  Bruno Haible  <bruno@clisp.org>
12563
12564         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12565         * m4/arcfour.m4: Remove file.
12566         * modules/crypto/arcfour (Files): Remove it.
12567         (configure.ac): Remove gl_ARCFOUR call.
12568         (Makefile.am): Augment lib_SOURCES.
12569
12570 2011-05-22  Bruno Haible  <bruno@clisp.org>
12571
12572         write: Move AC_LIBOBJ invocations to module description.
12573         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12574         * modules/write (configure.ac): ... to here.
12575
12576 2011-05-22  Bruno Haible  <bruno@clisp.org>
12577
12578         wmemset: Move AC_LIBOBJ invocations to module description.
12579         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12580         here...
12581         * modules/wmemset (configure.ac): ... to here.
12582
12583 2011-05-22  Bruno Haible  <bruno@clisp.org>
12584
12585         wmemmove: Move AC_LIBOBJ invocations to module description.
12586         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12587         here...
12588         * modules/wmemmove (configure.ac): ... to here.
12589
12590 2011-05-22  Bruno Haible  <bruno@clisp.org>
12591
12592         wmemcpy: Move AC_LIBOBJ invocations to module description.
12593         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12594         here...
12595         * modules/wmemcpy (configure.ac): ... to here.
12596
12597 2011-05-22  Bruno Haible  <bruno@clisp.org>
12598
12599         wmemcmp: Move AC_LIBOBJ invocations to module description.
12600         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12601         here...
12602         * modules/wmemcmp (configure.ac): ... to here.
12603
12604 2011-05-22  Bruno Haible  <bruno@clisp.org>
12605
12606         wmemchr: Move AC_LIBOBJ invocations to module description.
12607         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12608         here...
12609         * modules/wmemchr (configure.ac): ... to here.
12610
12611 2011-05-22  Bruno Haible  <bruno@clisp.org>
12612
12613         wcswidth: Move AC_LIBOBJ invocations to module description.
12614         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12615         here...
12616         * modules/wcswidth (configure.ac): ... to here.
12617
12618 2011-05-22  Bruno Haible  <bruno@clisp.org>
12619
12620         wcwidth: Respect rules for use of AC_LIBOBJ.
12621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12622         invocation from here...
12623         * modules/wcwidth (configure.ac): ... to here.
12624         (Depends-on): Update conditions.
12625
12626 2011-05-22  Bruno Haible  <bruno@clisp.org>
12627
12628         wctype: Move AC_LIBOBJ invocations to module description.
12629         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12630         invocation from here...
12631         * modules/wctype (configure.ac): ... to here.
12632         (Depends-on): Update conditions.
12633
12634 2011-05-22  Bruno Haible  <bruno@clisp.org>
12635
12636         wctrans: Move AC_LIBOBJ invocations to module description.
12637         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12638         invocation from here...
12639         * modules/wctrans (configure.ac): ... to here.
12640
12641 2011-05-22  Bruno Haible  <bruno@clisp.org>
12642
12643         wctomb: Move AC_LIBOBJ invocations to module description.
12644         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12645         invocations from here...
12646         * modules/wctomb (configure.ac): ... to here.
12647
12648 2011-05-22  Bruno Haible  <bruno@clisp.org>
12649
12650         wctob: Move AC_LIBOBJ invocations to module description.
12651         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12652         gl_PREREQ_WCTOB invocations from here...
12653         * modules/wctob (configure.ac): ... to here.
12654         (Depends-on): Update conditions.
12655
12656 2011-05-22  Bruno Haible  <bruno@clisp.org>
12657
12658         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12659         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12660         here...
12661         * modules/wcsxfrm (configure.ac): ... to here.
12662
12663 2011-05-22  Bruno Haible  <bruno@clisp.org>
12664
12665         wcstok: Move AC_LIBOBJ invocations to module description.
12666         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12667         * modules/wcstok (configure.ac): ... to here.
12668
12669 2011-05-22  Bruno Haible  <bruno@clisp.org>
12670
12671         wcsstr: Move AC_LIBOBJ invocations to module description.
12672         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12673         * modules/wcsstr (configure.ac): ... to here.
12674
12675 2011-05-22  Bruno Haible  <bruno@clisp.org>
12676
12677         wcsspn: Move AC_LIBOBJ invocations to module description.
12678         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12679         * modules/wcsspn (configure.ac): ... to here.
12680
12681 2011-05-22  Bruno Haible  <bruno@clisp.org>
12682
12683         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12684         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12685         gl_PREREQ_WCSRTOMBS invocations from here...
12686         * modules/wcsrtombs (configure.ac): ... to here.
12687
12688 2011-05-22  Bruno Haible  <bruno@clisp.org>
12689
12690         wcsrchr: Move AC_LIBOBJ invocations to module description.
12691         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12692         here...
12693         * modules/wcsrchr (configure.ac): ... to here.
12694
12695 2011-05-22  Bruno Haible  <bruno@clisp.org>
12696
12697         wcspbrk: Move AC_LIBOBJ invocations to module description.
12698         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12699         here...
12700         * modules/wcspbrk (configure.ac): ... to here.
12701
12702 2011-05-22  Bruno Haible  <bruno@clisp.org>
12703
12704         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12706         gl_PREREQ_WCSNRTOMBS invocations from here...
12707         * modules/wcsnrtombs (configure.ac): ... to here.
12708
12709 2011-05-22  Bruno Haible  <bruno@clisp.org>
12710
12711         wcsnlen: Move AC_LIBOBJ invocations to module description.
12712         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12713         here...
12714         * modules/wcsnlen (configure.ac): ... to here.
12715
12716 2011-05-22  Bruno Haible  <bruno@clisp.org>
12717
12718         wcsncpy: Move AC_LIBOBJ invocations to module description.
12719         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12720         here...
12721         * modules/wcsncpy (configure.ac): ... to here.
12722
12723 2011-05-22  Bruno Haible  <bruno@clisp.org>
12724
12725         wcsncmp: Move AC_LIBOBJ invocations to module description.
12726         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12727         here...
12728         * modules/wcsncmp (configure.ac): ... to here.
12729
12730 2011-05-22  Bruno Haible  <bruno@clisp.org>
12731
12732         wcsncat: Move AC_LIBOBJ invocations to module description.
12733         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12734         here...
12735         * modules/wcsncat (configure.ac): ... to here.
12736
12737 2011-05-22  Bruno Haible  <bruno@clisp.org>
12738
12739         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12740         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12741         from here...
12742         * modules/wcsncasecmp (configure.ac): ... to here.
12743
12744 2011-05-22  Bruno Haible  <bruno@clisp.org>
12745
12746         wcslen: Move AC_LIBOBJ invocations to module description.
12747         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12748         * modules/wcslen (configure.ac): ... to here.
12749
12750 2011-05-22  Bruno Haible  <bruno@clisp.org>
12751
12752         wcsdup: Move AC_LIBOBJ invocations to module description.
12753         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12754         * modules/wcsdup (configure.ac): ... to here.
12755
12756 2011-05-22  Bruno Haible  <bruno@clisp.org>
12757
12758         wcscspn: Move AC_LIBOBJ invocations to module description.
12759         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12760         here...
12761         * modules/wcscspn (configure.ac): ... to here.
12762
12763 2011-05-22  Bruno Haible  <bruno@clisp.org>
12764
12765         wcscpy: Move AC_LIBOBJ invocations to module description.
12766         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12767         * modules/wcscpy (configure.ac): ... to here.
12768
12769 2011-05-22  Bruno Haible  <bruno@clisp.org>
12770
12771         wcscoll: Move AC_LIBOBJ invocations to module description.
12772         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12773         here...
12774         * modules/wcscoll (configure.ac): ... to here.
12775
12776 2011-05-22  Bruno Haible  <bruno@clisp.org>
12777
12778         wcscmp: Move AC_LIBOBJ invocations to module description.
12779         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12780         * modules/wcscmp (configure.ac): ... to here.
12781
12782 2011-05-22  Bruno Haible  <bruno@clisp.org>
12783
12784         wcschr: Move AC_LIBOBJ invocations to module description.
12785         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12786         * modules/wcschr (configure.ac): ... to here.
12787
12788 2011-05-22  Bruno Haible  <bruno@clisp.org>
12789
12790         wcscat: Move AC_LIBOBJ invocations to module description.
12791         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12792         * modules/wcscat (configure.ac): ... to here.
12793
12794 2011-05-22  Bruno Haible  <bruno@clisp.org>
12795
12796         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12797         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12798         here...
12799         * modules/wcscasecmp (configure.ac): ... to here.
12800
12801 2011-05-22  Bruno Haible  <bruno@clisp.org>
12802
12803         wcrtomb: Move AC_LIBOBJ invocations to module description.
12804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12805         invocations from here...
12806         * modules/wcrtomb (configure.ac): ... to here.
12807
12808 2011-05-22  Bruno Haible  <bruno@clisp.org>
12809
12810         wcpncpy: Move AC_LIBOBJ invocations to module description.
12811         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12812         here...
12813         * modules/wcpncpy (configure.ac): ... to here.
12814
12815 2011-05-22  Bruno Haible  <bruno@clisp.org>
12816
12817         wcpcpy: Move AC_LIBOBJ invocations to module description.
12818         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12819         * modules/wcpcpy (configure.ac): ... to here.
12820
12821 2011-05-22  Bruno Haible  <bruno@clisp.org>
12822
12823         waitpid: Move AC_LIBOBJ invocations to module description.
12824         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12825         invocation from here...
12826         * modules/waitpid (configure.ac): ... to here.
12827
12828 2011-05-22  Bruno Haible  <bruno@clisp.org>
12829
12830         utimensat: Move AC_LIBOBJ invocations to module description.
12831         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12832         here...
12833         * modules/utimensat (configure.ac): ... to here.
12834
12835 2011-05-22  Bruno Haible  <bruno@clisp.org>
12836
12837         usleep: Move AC_LIBOBJ invocations to module description.
12838         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12839         here...
12840         * modules/usleep (configure.ac): ... to here.
12841
12842 2011-05-22  Bruno Haible  <bruno@clisp.org>
12843
12844         unlockpt: Move AC_LIBOBJ invocations to module description.
12845         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12846         gl_PREREQ_UNLOCKPT invocations from here...
12847         * modules/unlockpt (configure.ac): ... to here.
12848
12849 2011-05-22  Bruno Haible  <bruno@clisp.org>
12850
12851         unlink: Respect rules for use of AC_LIBOBJ.
12852         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12853         * modules/unlink (configure.ac): ... to here.
12854
12855 2011-05-22  Bruno Haible  <bruno@clisp.org>
12856
12857         uname: Move AC_LIBOBJ invocations to module description.
12858         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12860         here...
12861         * modules/uname (configure.ac): ... to here.
12862
12863 2011-05-22  Bruno Haible  <bruno@clisp.org>
12864
12865         ttyname_r: Move AC_LIBOBJ invocations to module description.
12866         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12867         gl_PREREQ_TTYNAME_R invocations from here...
12868         * modules/ttyname_r (configure.ac): ... to here.
12869
12870 2011-05-22  Bruno Haible  <bruno@clisp.org>
12871
12872         tsearch: Move AC_LIBOBJ invocations to module description.
12873         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12874         invocations from here...
12875         * modules/tsearch (configure.ac): ... to here.
12876
12877 2011-05-22  Bruno Haible  <bruno@clisp.org>
12878
12879         towctrans: Move AC_LIBOBJ invocations to module description.
12880         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12881         AC_LIBOBJ invocation from here...
12882         * modules/towctrans (configure.ac): ... to here.
12883
12884 2011-05-22  Bruno Haible  <bruno@clisp.org>
12885
12886         tmpfile: Move AC_LIBOBJ invocations to module description.
12887         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12888         invocations from here...
12889         * modules/tmpfile (configure.ac): ... to here.
12890
12891 2011-05-22  Bruno Haible  <bruno@clisp.org>
12892
12893         times: Move AC_LIBOBJ invocations to module description.
12894         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12895         * modules/times (configure.ac): ... to here.
12896
12897 2011-05-22  Bruno Haible  <bruno@clisp.org>
12898
12899         time_r: Move AC_LIBOBJ invocations to module description.
12900         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12901         invocations from here...
12902         * modules/time_r (configure.ac): ... to here.
12903
12904 2011-05-22  Bruno Haible  <bruno@clisp.org>
12905
12906         timegm: Move AC_LIBOBJ invocations to module description.
12907         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12908         invocations from here...
12909         * modules/timegm (configure.ac): ... to here.
12910
12911 2011-05-22  Bruno Haible  <bruno@clisp.org>
12912
12913         tcgetsid: Move AC_LIBOBJ invocations to module description.
12914         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12915         and gl_PREREQ_TCGETSID invocations from here...
12916         * modules/tcgetsid (configure.ac): ... to here.
12917         (Depends-on): Update conditions.
12918
12919 2011-05-22  Bruno Haible  <bruno@clisp.org>
12920
12921         symlinkat: Move AC_LIBOBJ invocations to module description.
12922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12923         here...
12924         * modules/symlinkat (configure.ac): ... to here.
12925
12926 2011-05-22  Bruno Haible  <bruno@clisp.org>
12927
12928         symlink: Move AC_LIBOBJ invocations to module description.
12929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12930         here...
12931         * modules/symlink (configure.ac): ... to here.
12932
12933 2011-05-22  Bruno Haible  <bruno@clisp.org>
12934
12935         strverscmp: Move AC_LIBOBJ invocations to module description.
12936         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12938         from here...
12939         * modules/strverscmp (configure.ac): ... to here.
12940
12941 2011-05-22  Bruno Haible  <bruno@clisp.org>
12942
12943         strtok_r: Move AC_LIBOBJ invocations to module description.
12944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12945         and gl_PREREQ_STRTOK_R invocations from here...
12946         * modules/strtok_r (configure.ac): ... to here.
12947         (Depends-on): Update conditions.
12948
12949 2011-05-22  Bruno Haible  <bruno@clisp.org>
12950
12951         strtoumax: Move AC_LIBOBJ invocations to module description.
12952         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12954         from here...
12955         * modules/strtoumax (configure.ac): ... to here.
12956
12957 2011-05-22  Bruno Haible  <bruno@clisp.org>
12958
12959         strtoimax: Move AC_LIBOBJ invocations to module description.
12960         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12962         from here...
12963         * modules/strtoimax (configure.ac): ... to here.
12964
12965 2011-05-22  Bruno Haible  <bruno@clisp.org>
12966
12967         strtoull: Move AC_LIBOBJ invocations to module description.
12968         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12970         from here...
12971         * modules/strtoull (configure.ac): ... to here.
12972
12973 2011-05-22  Bruno Haible  <bruno@clisp.org>
12974
12975         strtoll: Move AC_LIBOBJ invocations to module description.
12976         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12978         here...
12979         * modules/strtoll (configure.ac): ... to here.
12980
12981 2011-05-22  Bruno Haible  <bruno@clisp.org>
12982
12983         strtoul: Move AC_LIBOBJ invocations to module description.
12984         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12985         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12986         * modules/strtoul (configure.ac): ... to here.
12987
12988 2011-05-22  Bruno Haible  <bruno@clisp.org>
12989
12990         strtol: Move AC_LIBOBJ invocations to module description.
12991         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12992         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12993         * modules/strtol (configure.ac): ... to here.
12994
12995 2011-05-22  Bruno Haible  <bruno@clisp.org>
12996
12997         strtod: Move AC_LIBOBJ invocations to module description.
12998         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12999         invocations from here...
13000         * modules/strtod (configure.ac): ... to here.
13001
13002 2011-05-22  Bruno Haible  <bruno@clisp.org>
13003
13004         strstr*: Move AC_LIBOBJ invocations to module description.
13005         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13006         invocations from here...
13007         * modules/strstr-simple (configure.ac): ... to here.
13008         * modules/strstr (configure.ac): ... and here.
13009
13010 2011-05-22  Bruno Haible  <bruno@clisp.org>
13011
13012         strsignal: Move AC_LIBOBJ invocations to module description.
13013         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13014         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13015         * modules/strsignal (configure.ac): ... to here.
13016         (Depends-on): Update conditions.
13017
13018 2011-05-22  Bruno Haible  <bruno@clisp.org>
13019
13020         strsep: Move AC_LIBOBJ invocations to module description.
13021         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13023         here...
13024         * modules/strsep (configure.ac): ... to here.
13025
13026 2011-05-22  Bruno Haible  <bruno@clisp.org>
13027
13028         strptime: Move AC_LIBOBJ invocations to module description.
13029         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13030         gl_PREREQ_STRPTIME invocations from here...
13031         * modules/strptime (configure.ac): ... to here.
13032
13033 2011-05-22  Bruno Haible  <bruno@clisp.org>
13034
13035         strpbrk: Move AC_LIBOBJ invocations to module description.
13036         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13038         here...
13039         * modules/strpbrk (configure.ac): ... to here.
13040
13041 2011-05-22  Bruno Haible  <bruno@clisp.org>
13042
13043         strnlen: Move AC_LIBOBJ invocations to module description.
13044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13045         invocations from here...
13046         * modules/strnlen (configure.ac): ... to here.
13047
13048 2011-05-22  Bruno Haible  <bruno@clisp.org>
13049
13050         strndup: Move AC_LIBOBJ invocations to module description.
13051         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13052         invocations from here...
13053         * modules/strndup (configure.ac): ... to here.
13054         (Depends-on): Update conditions.
13055
13056 2011-05-22  Bruno Haible  <bruno@clisp.org>
13057
13058         strncat: Move AC_LIBOBJ invocations to module description.
13059         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13060         invocations from here...
13061         * modules/strncat (configure.ac): ... to here.
13062
13063 2011-05-22  Bruno Haible  <bruno@clisp.org>
13064
13065         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13066         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13067         invocations from here...
13068         * modules/strdup (configure.ac): ... to here.
13069         * modules/strdup-posix (configure.ac): ... and here.
13070
13071 2011-05-22  Bruno Haible  <bruno@clisp.org>
13072
13073         strcspn: Move AC_LIBOBJ invocations to module description.
13074         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13076         here...
13077         * modules/strcspn (configure.ac): ... to here.
13078
13079 2011-05-22  Bruno Haible  <bruno@clisp.org>
13080
13081         strchrnul: Move AC_LIBOBJ invocations to module description.
13082         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13083         gl_PREREQ_STRCHRNUL invocations from here...
13084         * modules/strchrnul (configure.ac): ... to here.
13085
13086 2011-05-22  Bruno Haible  <bruno@clisp.org>
13087
13088         strcasestr*: Move AC_LIBOBJ invocations to module description.
13089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13090         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13091         * modules/strcasestr-simple (configure.ac): ... to here.
13092         * modules/strcasestr (configure.ac): ... and here.
13093
13094 2011-05-22  Bruno Haible  <bruno@clisp.org>
13095
13096         strcase: Move AC_LIBOBJ invocations to module description.
13097         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13098         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13099         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13100         gl_PREREQ_STRNCASECMP invocations from here...
13101         * modules/strcase (configure.ac): ... to here.
13102
13103 2011-05-22  Bruno Haible  <bruno@clisp.org>
13104
13105         stpncpy: Move AC_LIBOBJ invocations to module description.
13106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13107         here...
13108         * modules/stpncpy (configure.ac): ... to here.
13109
13110 2011-05-22  Bruno Haible  <bruno@clisp.org>
13111
13112         stpcpy: Move AC_LIBOBJ invocations to module description.
13113         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13115         here...
13116         * modules/stpcpy (configure.ac): ... to here.
13117
13118 2011-05-21  Bruno Haible  <bruno@clisp.org>
13119
13120         stat: Move AC_LIBOBJ invocations to module description.
13121         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13122         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13123         here...
13124         * modules/stat (configure.ac): ... to here.
13125
13126 2011-05-21  Bruno Haible  <bruno@clisp.org>
13127
13128         sleep: Move AC_LIBOBJ invocations to module description.
13129         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13130         * modules/sleep (configure.ac): ... to here.
13131
13132 2011-05-21  Bruno Haible  <bruno@clisp.org>
13133
13134         signbit: Move AC_LIBOBJ invocations to module description.
13135         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13136         * modules/signbit (configure.ac): ... to here.
13137
13138 2011-05-21  Bruno Haible  <bruno@clisp.org>
13139
13140         sigprocmask: Move AC_LIBOBJ invocations to module description.
13141         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13142         gl_PREREQ_SIGPROMASK invocations from here...
13143         * modules/sigprocmask (configure.ac): ... to here.
13144
13145 2011-05-21  Bruno Haible  <bruno@clisp.org>
13146
13147         sigaction: Move AC_LIBOBJ invocations to module description.
13148         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13149         gl_PREREQ_SIGACTION invocations from here...
13150         * modules/sigaction (configure.ac): ... to here.
13151
13152 2011-05-21  Bruno Haible  <bruno@clisp.org>
13153
13154         sig2str: Move AC_LIBOBJ invocations to module description.
13155         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13157         here...
13158         * modules/sig2str (configure.ac): ... to here.
13159
13160 2011-05-21  Bruno Haible  <bruno@clisp.org>
13161
13162         setlocale: Move AC_LIBOBJ invocations to module description.
13163         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13164         gl_PREREQ_SETLOCALE invocations from here...
13165         * modules/setlocale (configure.ac): ... to here.
13166
13167 2011-05-21  Bruno Haible  <bruno@clisp.org>
13168
13169         unsetenv: Move AC_LIBOBJ invocations to module description.
13170         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13171         and gl_PREREQ_UNSETENV invocations from here...
13172         * modules/unsetenv (configure.ac): ... to here.
13173         (Depends-on): Update.
13174
13175 2011-05-21  Bruno Haible  <bruno@clisp.org>
13176
13177         setenv: Move AC_LIBOBJ invocations to module description.
13178         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13179         here...
13180         * modules/setenv (configure.ac): ... to here.
13181
13182 2011-05-21  Bruno Haible  <bruno@clisp.org>
13183
13184         selinux-h: Move AC_LIBOBJ invocations to module description.
13185         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13186         AC_LIBOBJ invocation from here...
13187         * modules/selinux-h (configure.ac): ... to here.
13188
13189 2011-05-21  Bruno Haible  <bruno@clisp.org>
13190
13191         select: Respect rules for use of AC_LIBOBJ.
13192         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13193         here...
13194         * modules/select (configure.ac): ... to here.
13195
13196 2011-05-21  Bruno Haible  <bruno@clisp.org>
13197
13198         scandir: Move AC_LIBOBJ invocations to module description.
13199         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13200         invocations from here...
13201         * modules/scandir (configure.ac): ... to here.
13202
13203 2011-05-21  Bruno Haible  <bruno@clisp.org>
13204
13205         rpmatch: Move AC_LIBOBJ invocations to module description.
13206         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13207         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13208         here...
13209         * modules/rpmatch (configure.ac): ... to here.
13210
13211 2011-05-21  Bruno Haible  <bruno@clisp.org>
13212
13213         rmdir: Respect rules for use of AC_LIBOBJ.
13214         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13215         * modules/rmdir (configure.ac): ... to here.
13216
13217 2011-05-21  Bruno Haible  <bruno@clisp.org>
13218
13219         renameat: Move AC_LIBOBJ invocations to module description.
13220         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13221         here...
13222         * modules/renameat (configure.ac): ... to here.
13223
13224 2011-05-21  Bruno Haible  <bruno@clisp.org>
13225
13226         rename: Respect rules for use of AC_LIBOBJ.
13227         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13228         here...
13229         * modules/rename (configure.ac): ... to here.
13230
13231 2011-05-21  Bruno Haible  <bruno@clisp.org>
13232
13233         remove: Move AC_LIBOBJ invocations to module description.
13234         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13235         here...
13236         * modules/remove (configure.ac): ... to here.
13237
13238 2011-05-21  Bruno Haible  <bruno@clisp.org>
13239
13240         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13241         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13242         macro.
13243         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13244         * modules/relocatable-lib (configure.ac): ... to here.
13245         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13246         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13247
13248 2011-05-21  Bruno Haible  <bruno@clisp.org>
13249
13250         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13251         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13252         here...
13253         * modules/relocatable-prog (configure.ac): ... to here.
13254
13255 2011-05-21  Bruno Haible  <bruno@clisp.org>
13256
13257         regex: Move AC_LIBOBJ invocations to module description.
13258         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13259         invocations from here...
13260         * modules/regex (configure.ac): ... to here.
13261
13262 2011-05-21  Bruno Haible  <bruno@clisp.org>
13263
13264         realloc-*: Move AC_LIBOBJ invocations to module description.
13265         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13266         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13267         AC_LIBOBJ invocations from here...
13268         * modules/realloc-gnu (configure.ac): ... to here.
13269         * modules/realloc-posix (configure.ac): ... and here.
13270
13271 2011-05-21  Bruno Haible  <bruno@clisp.org>
13272
13273         readutmp: Move AC_LIBOBJ invocations to module description.
13274         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13275         * modules/readutmp (configure.ac): ... to here.
13276
13277 2011-05-21  Bruno Haible  <bruno@clisp.org>
13278
13279         readlinkat: Move AC_LIBOBJ invocations to module description.
13280         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13281         here...
13282         * modules/readlinkat (configure.ac): ... to here.
13283
13284 2011-05-21  Bruno Haible  <bruno@clisp.org>
13285
13286         readlink: Move AC_LIBOBJ invocations to module description.
13287         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13288         gl_PREREQ_READLINK invocations from here...
13289         * modules/readlink (configure.ac): ... to here.
13290
13291 2011-05-21  Bruno Haible  <bruno@clisp.org>
13292
13293         readline: Move AC_LIBOBJ invocations to module description.
13294         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13295         gl_PREREQ_READLINE invocations from here...
13296         * modules/readline (configure.ac): ... to here.
13297
13298 2011-05-21  Bruno Haible  <bruno@clisp.org>
13299
13300         read: Move AC_LIBOBJ invocations to module description.
13301         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13302         * modules/read (configure.ac): ... to here.
13303
13304 2011-05-21  Bruno Haible  <bruno@clisp.org>
13305
13306         rawmemchr: Move AC_LIBOBJ invocations to module description.
13307         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13309         from here...
13310         * modules/rawmemchr (configure.ac): ... to here.
13311
13312 2011-05-21  Bruno Haible  <bruno@clisp.org>
13313
13314         random_r: Move AC_LIBOBJ invocations to module description.
13315         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13316         gl_PREREQ_RANDOM_R invocations from here...
13317         * modules/random_r (configure.ac): ... to here.
13318
13319 2011-05-21  Bruno Haible  <bruno@clisp.org>
13320
13321         pwrite: Move AC_LIBOBJ invocations to module description.
13322         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13323         * modules/pwrite (configure.ac): ... to here.
13324
13325 2011-05-21  Bruno Haible  <bruno@clisp.org>
13326
13327         putenv: Move AC_LIBOBJ invocations to module description.
13328         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13329         * modules/putenv (configure.ac): ... to here.
13330
13331 2011-05-21  Bruno Haible  <bruno@clisp.org>
13332
13333         login_tty: Move AC_LIBOBJ invocations to module description.
13334         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13335         * modules/login_tty (configure.ac): ... to here.
13336
13337 2011-05-21  Bruno Haible  <bruno@clisp.org>
13338
13339         openpty: Move AC_LIBOBJ invocations to module description.
13340         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13341         * modules/openpty (configure.ac): ... to here.
13342
13343 2011-05-21  Bruno Haible  <bruno@clisp.org>
13344
13345         forkpty: Move AC_LIBOBJ invocations to module description.
13346         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13347         * modules/forkpty (configure.ac): ... to here.
13348
13349 2011-05-21  Bruno Haible  <bruno@clisp.org>
13350
13351         ptsname: Move AC_LIBOBJ invocations to module description.
13352         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13353         invocations from here...
13354         * modules/ptsname (configure.ac): ... to here.
13355
13356 2011-05-21  Bruno Haible  <bruno@clisp.org>
13357
13358         pread: Move AC_LIBOBJ invocations to module description.
13359         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13360         * modules/pread (configure.ac): ... to here.
13361
13362 2011-05-21  Bruno Haible  <bruno@clisp.org>
13363
13364         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13365         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13366         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13367         * modules/posix_spawn (configure.ac): ... to here.
13368         * modules/posix_spawnp (configure.ac): ... and here.
13369
13370 2011-05-21  Bruno Haible  <bruno@clisp.org>
13371
13372         popen: Move AC_LIBOBJ invocations to module description.
13373         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13374         invocations from here...
13375         * modules/popen (configure.ac): ... to here.
13376
13377 2011-05-21  Bruno Haible  <bruno@clisp.org>
13378
13379         poll: Move AC_LIBOBJ invocations to module description.
13380         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13381         invocations from here...
13382         * modules/poll (configure.ac): ... to here.
13383
13384 2011-05-21  Bruno Haible  <bruno@clisp.org>
13385
13386         pipe-posix: Move AC_LIBOBJ invocations to module description.
13387         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13388         * modules/pipe-posix (configure.ac): ... to here.
13389
13390 2011-05-21  Bruno Haible  <bruno@clisp.org>
13391
13392         openat: Respect rules for use of AC_LIBOBJ.
13393         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13394         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13395         * modules/openat (configure.ac): ... to here.
13396
13397 2011-05-21  Bruno Haible  <bruno@clisp.org>
13398
13399         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13400         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13401         invocation from here...
13402         * modules/obstack-printf (configure.ac): ... to here.
13403         * modules/obstack-printf-posix (configure.ac): ... and here.
13404
13405 2011-05-21  Bruno Haible  <bruno@clisp.org>
13406
13407         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13408         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13409         from here...
13410         * modules/nl_langinfo (configure.ac): ... to here.
13411
13412 2011-05-21  Bruno Haible  <bruno@clisp.org>
13413
13414         nanosleep: Move AC_LIBOBJ invocations to module description.
13415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13416         gl_PREREQ_NANOSLEEP invocations from here...
13417         * modules/nanosleep (configure.ac): ... to here.
13418
13419 2011-05-21  Bruno Haible  <bruno@clisp.org>
13420
13421         mountlist: Move AC_LIBOBJ invocations to module description.
13422         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13423         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13424         * modules/mountlist (configure.ac): ... to here.
13425
13426 2011-05-21  Bruno Haible  <bruno@clisp.org>
13427
13428         mktime: Respect rules for use of AC_LIBOBJ.
13429         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13430         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13431         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13432         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13433         * modules/mktime (configure.ac): ... to here.
13434         * modules/mktime-internal (configure.ac): ... and here.
13435         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13436
13437 2011-05-21  Bruno Haible  <bruno@clisp.org>
13438
13439         mkstemps: Move AC_LIBOBJ invocations to module description.
13440         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13441         here...
13442         * modules/mkstemps (configure.ac): ... to here.
13443
13444 2011-05-21  Bruno Haible  <bruno@clisp.org>
13445
13446         mkstemp: Move AC_LIBOBJ invocations to module description.
13447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13448         gl_PREREQ_MKSTEMP invocations from here...
13449         * modules/mkstemp (configure.ac): ... to here.
13450
13451 2011-05-21  Bruno Haible  <bruno@clisp.org>
13452
13453         mkostemps: Move AC_LIBOBJ invocations to module description.
13454         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13455         here...
13456         * modules/mkostemps (configure.ac): ... to here.
13457
13458 2011-05-21  Bruno Haible  <bruno@clisp.org>
13459
13460         mkostemp: Move AC_LIBOBJ invocations to module description.
13461         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13462         gl_PREREQ_MKOSTEMP invocations from here...
13463         * modules/mkostemp (configure.ac): ... to here.
13464
13465 2011-05-21  Bruno Haible  <bruno@clisp.org>
13466
13467         mknod: Move AC_LIBOBJ invocations to module description.
13468         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13469         * modules/mknod (configure.ac): ... to here.
13470
13471 2011-05-21  Bruno Haible  <bruno@clisp.org>
13472
13473         mkfifoat: Move AC_LIBOBJ invocations to module description.
13474         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13475         here...
13476         * modules/mkfifoat (configure.ac): ... to here.
13477
13478 2011-05-21  Bruno Haible  <bruno@clisp.org>
13479
13480         mkfifo: Respect rules for use of AC_LIBOBJ.
13481         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13482         here...
13483         * modules/mkfifo (configure.ac): ... to here.
13484
13485 2011-05-21  Bruno Haible  <bruno@clisp.org>
13486
13487         mkdtemp: Move AC_LIBOBJ invocations to module description.
13488         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13489         invocations from here...
13490         * modules/mkdtemp (configure.ac): ... to here.
13491
13492 2011-05-21  Bruno Haible  <bruno@clisp.org>
13493
13494         mkdir: Move AC_LIBOBJ invocations to module description.
13495         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13496         * modules/mkdir (configure.ac): ... to here.
13497
13498 2011-05-21  Bruno Haible  <bruno@clisp.org>
13499
13500         memset: Move AC_LIBOBJ invocations to module description.
13501         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13503         here...
13504         * modules/memset (configure.ac): ... to here.
13505
13506 2011-05-21  Bruno Haible  <bruno@clisp.org>
13507
13508         memrchr: Move AC_LIBOBJ invocations to module description.
13509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13511         here...
13512         * modules/memrchr (configure.ac): ... to here.
13513
13514 2011-05-21  Bruno Haible  <bruno@clisp.org>
13515
13516         mempcpy: Move AC_LIBOBJ invocations to module description.
13517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13519         here...
13520         * modules/mempcpy (configure.ac): ... to here.
13521
13522 2011-05-21  Bruno Haible  <bruno@clisp.org>
13523
13524         memmove: Move AC_LIBOBJ invocations to module description.
13525         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13527         here...
13528         * modules/memmove (configure.ac): ... to here.
13529
13530 2011-05-21  Bruno Haible  <bruno@clisp.org>
13531
13532         memmem*: Move AC_LIBOBJ invocations to module description.
13533         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13534         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13535         here...
13536         (gl_FUNC_MEMMEM): ... and here...
13537         * modules/memmem-simple (configure.ac): ... to here.
13538         * modules/memmem (configure.ac): ... and here.
13539
13540 2011-05-21  Bruno Haible  <bruno@clisp.org>
13541
13542         memcpy: Move AC_LIBOBJ invocations to module description.
13543         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13545         here...
13546         * modules/memcpy (configure.ac): ... to here.
13547
13548 2011-05-21  Bruno Haible  <bruno@clisp.org>
13549
13550         memcmp: Simplify autoconf macro.
13551         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13552         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13553         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13554
13555 2011-05-21  Bruno Haible  <bruno@clisp.org>
13556
13557         memcmp: Move AC_LIBOBJ invocations to module description.
13558         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13559         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13560         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13561         * modules/memcmp (configure.ac): ... to here.
13562         (Depends-on): Update conditions.
13563
13564 2011-05-21  Bruno Haible  <bruno@clisp.org>
13565
13566         memchr: Respect rules for use of AC_LIBOBJ.
13567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13568         invocations from here...
13569         * modules/memchr (configure.ac): ... to here.
13570
13571 2011-05-21  Bruno Haible  <bruno@clisp.org>
13572
13573         mbtowc: Move AC_LIBOBJ invocations to module description.
13574         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13575         invocations from here...
13576         * modules/mbtowc (configure.ac): ... to here.
13577
13578 2011-05-21  Bruno Haible  <bruno@clisp.org>
13579
13580         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13582         gl_PREREQ_MBSRTOWCS invocations from here...
13583         * modules/mbsrtowcs (configure.ac): ... to here.
13584
13585 2011-05-21  Bruno Haible  <bruno@clisp.org>
13586
13587         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13588         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13589         gl_PREREQ_MBSNRTOWCS invocations from here...
13590         * modules/mbsnrtowcs (configure.ac): ... to here.
13591
13592 2011-05-21  Bruno Haible  <bruno@clisp.org>
13593
13594         mbsinit: Move AC_LIBOBJ invocations to module description.
13595         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13596         invocations from here...
13597         * modules/mbsinit (configure.ac): ... to here.
13598
13599 2011-05-21  Bruno Haible  <bruno@clisp.org>
13600
13601         mbrlen: Move AC_LIBOBJ invocations to module description.
13602         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13603         invocations from here...
13604         * modules/mbrlen (configure.ac): ... to here.
13605
13606 2011-05-21  Bruno Haible  <bruno@clisp.org>
13607
13608         mbrtowc: Respect rules for use of AC_LIBOBJ.
13609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13610         invocations from here...
13611         * modules/mbrtowc (configure.ac): ... to here.
13612
13613 2011-05-21  Bruno Haible  <bruno@clisp.org>
13614
13615         malloc-*: Move AC_LIBOBJ invocations to module description.
13616         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13617         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13618         AC_LIBOBJ invocations from here...
13619         * modules/malloc-gnu (configure.ac): ... to here.
13620         * modules/malloc-posix (configure.ac): ... and here.
13621
13622 2011-05-21  Bruno Haible  <bruno@clisp.org>
13623
13624         lstat, openat: Respect rules for use of AC_LIBOBJ.
13625         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13627         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13628         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13629         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13630         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13631         here.
13632         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13633
13634 2011-05-21  Bruno Haible  <bruno@clisp.org>
13635
13636         lseek: Move AC_LIBOBJ invocations to module description.
13637         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13638         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13639         * modules/lseek (configure.ac): ... to here.
13640
13641 2011-05-21  Bruno Haible  <bruno@clisp.org>
13642
13643         linkat: Move AC_LIBOBJ invocations to module description.
13644         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13645         here...
13646         * modules/linkat (configure.ac): ... to here.
13647
13648 2011-05-21  Bruno Haible  <bruno@clisp.org>
13649
13650         link: Respect rules for use of AC_LIBOBJ.
13651         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13652         * modules/link (configure.ac): ... to here.
13653
13654 2011-05-21  Bruno Haible  <bruno@clisp.org>
13655
13656         lchown: Move AC_LIBOBJ invocations to module description.
13657         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13658         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13659         * modules/lchown (configure.ac): ... to here.
13660
13661 2011-05-21  Bruno Haible  <bruno@clisp.org>
13662
13663         iswctype: Move AC_LIBOBJ invocations to module description.
13664         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13665         here...
13666         * modules/iswctype (configure.ac): ... to here.
13667
13668 2011-05-21  Bruno Haible  <bruno@clisp.org>
13669
13670         iswblank: Move AC_LIBOBJ invocations to module description.
13671         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13672         here...
13673         * modules/iswblank (configure.ac): ... to here.
13674
13675 2011-05-21  Bruno Haible  <bruno@clisp.org>
13676
13677         atanl: Move AC_LIBOBJ invocations to module description.
13678         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13679         * modules/atanl (configure.ac): ... to here.
13680
13681 2011-05-21  Bruno Haible  <bruno@clisp.org>
13682
13683         acosl: Move AC_LIBOBJ invocations to module description.
13684         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13685         * modules/acosl (configure.ac): ... to here.
13686
13687 2011-05-21  Bruno Haible  <bruno@clisp.org>
13688
13689         asinl: Respect rules for use of AC_LIBOBJ.
13690         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13691         * modules/asinl (configure.ac): ... to here.
13692
13693 2011-05-21  Bruno Haible  <bruno@clisp.org>
13694
13695         tanl: Move AC_LIBOBJ invocations to module description.
13696         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13697         * modules/tanl (configure.ac): ... to here.
13698
13699 2011-05-21  Bruno Haible  <bruno@clisp.org>
13700
13701         cosl: Move AC_LIBOBJ invocations to module description.
13702         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13703         * modules/cosl (configure.ac): ... to here.
13704
13705 2011-05-21  Bruno Haible  <bruno@clisp.org>
13706
13707         sinl: Move AC_LIBOBJ invocations to module description.
13708         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13709         * modules/sinl (configure.ac): ... to here.
13710
13711 2011-05-21  Bruno Haible  <bruno@clisp.org>
13712
13713         logl: Move AC_LIBOBJ invocations to module description.
13714         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13715         * modules/logl (configure.ac): ... to here.
13716
13717 2011-05-21  Bruno Haible  <bruno@clisp.org>
13718
13719         expl: Move AC_LIBOBJ invocations to module description.
13720         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13721         * modules/expl (configure.ac): ... to here.
13722
13723 2011-05-21  Bruno Haible  <bruno@clisp.org>
13724
13725         roundl: Move AC_LIBOBJ invocations to module description.
13726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13727         * modules/roundl (configure.ac): ... to here.
13728
13729 2011-05-21  Bruno Haible  <bruno@clisp.org>
13730
13731         round: Move AC_LIBOBJ invocations to module description.
13732         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13733         * modules/round (configure.ac): ... to here.
13734
13735 2011-05-21  Bruno Haible  <bruno@clisp.org>
13736
13737         roundf: Move AC_LIBOBJ invocations to module description.
13738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13739         * modules/roundf (configure.ac): ... to here.
13740
13741 2011-05-21  Bruno Haible  <bruno@clisp.org>
13742
13743         truncl: Move AC_LIBOBJ invocations to module description.
13744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13745         * modules/truncl (configure.ac): ... to here.
13746
13747 2011-05-21  Bruno Haible  <bruno@clisp.org>
13748
13749         trunc: Move AC_LIBOBJ invocations to module description.
13750         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13751         * modules/trunc (configure.ac): ... to here.
13752
13753 2011-05-21  Bruno Haible  <bruno@clisp.org>
13754
13755         truncf: Move AC_LIBOBJ invocations to module description.
13756         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13757         * modules/truncf (configure.ac): ... to here.
13758
13759 2011-05-21  Bruno Haible  <bruno@clisp.org>
13760
13761         ceill: Move AC_LIBOBJ invocations to module description.
13762         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13763         * modules/ceill (configure.ac): ... to here.
13764
13765 2011-05-21  Bruno Haible  <bruno@clisp.org>
13766
13767         ceil: Move AC_LIBOBJ invocations to module description.
13768         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13769         * modules/ceil (configure.ac): ... to here.
13770
13771 2011-05-21  Bruno Haible  <bruno@clisp.org>
13772
13773         ceilf: Move AC_LIBOBJ invocations to module description.
13774         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13775         * modules/ceilf (configure.ac): ... to here.
13776
13777 2011-05-21  Bruno Haible  <bruno@clisp.org>
13778
13779         floorl: Respect rules for use of AC_LIBOBJ.
13780         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13781         * modules/floorl (configure.ac): ... to here.
13782
13783 2011-05-21  Bruno Haible  <bruno@clisp.org>
13784
13785         floor: Respect rules for use of AC_LIBOBJ.
13786         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13787         * modules/floor (configure.ac): ... to here.
13788
13789 2011-05-21  Bruno Haible  <bruno@clisp.org>
13790
13791         floorf: Move AC_LIBOBJ invocations to module description.
13792         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13793         * modules/floorf (configure.ac): ... to here.
13794
13795 2011-05-20  Bruno Haible  <bruno@clisp.org>
13796
13797         sqrtl: Respect rules for use of AC_LIBOBJ.
13798         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13799         * modules/sqrtl (configure.ac): ... to here.
13800
13801 2011-05-20  Bruno Haible  <bruno@clisp.org>
13802
13803         ldexpl: Respect rules for use of AC_LIBOBJ.
13804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13805         * modules/ldexpl (configure.ac): ... to here.
13806
13807 2011-05-20  Bruno Haible  <bruno@clisp.org>
13808
13809         frexpl*: Respect rules for use of AC_LIBOBJ.
13810         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13811         invocation from here...
13812         * modules/frexpl (configure.ac): ... to here.
13813         * modules/frexpl-nolibm (configure.ac): ... and here.
13814
13815 2011-05-20  Bruno Haible  <bruno@clisp.org>
13816
13817         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13818         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13819         invocation from here...
13820         * modules/frexp (configure.ac): ... to here.
13821         * modules/frexp-nolibm (configure.ac): ... and here.
13822
13823 2011-05-20  Bruno Haible  <bruno@clisp.org>
13824
13825         isnan: Respect rules for use of AC_LIBOBJ.
13826         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13827         invocations here.
13828         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13829         REPLACE_ISNAN.
13830         * modules/isnand (configure.ac): Likewise.
13831         * modules/isnanl (configure.ac): Likewise.
13832
13833 2011-05-20  Bruno Haible  <bruno@clisp.org>
13834
13835         isnanl*: Respect rules for use of AC_LIBOBJ.
13836         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13837         invocation from here...
13838         * modules/isnanl (configure.ac): ... to here.
13839         * modules/isnanl-nolibm (configure.ac): ... and here.
13840
13841 2011-05-20  Bruno Haible  <bruno@clisp.org>
13842
13843         isnand*: Move AC_LIBOBJ invocations to module description.
13844         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13845         invocation from here...
13846         * modules/isnand (configure.ac): ... to here.
13847         * modules/isnand-nolibm (configure.ac): ... and here.
13848
13849 2011-05-20  Bruno Haible  <bruno@clisp.org>
13850
13851         isnanf*: Move AC_LIBOBJ invocations to module description.
13852         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13853         invocation from here...
13854         * modules/isnanf (configure.ac): ... to here.
13855         * modules/isnanf-nolibm (configure.ac): ... and here.
13856
13857 2011-05-20  Bruno Haible  <bruno@clisp.org>
13858
13859         isnan*: Separate the AC_LIBOBJ invocations.
13860         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13861         AC_LIBOBJ invocation.
13862         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13863         here.
13864         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13865         AC_LIBOBJ invocation.
13866         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13867         here.
13868         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13869         AC_LIBOBJ invocation.
13870         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13871         here.
13872         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13873
13874 2011-05-08  Bruno Haible  <bruno@clisp.org>
13875
13876         isinf: Move AC_LIBOBJ invocations to module description.
13877         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13878         * modules/isinf (configure.ac): ... to here.
13879
13880 2011-05-08  Bruno Haible  <bruno@clisp.org>
13881
13882         isfinite: Move AC_LIBOBJ invocations to module description.
13883         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13884         * modules/isfinite (configure.ac): ... to here.
13885
13886 2011-05-08  Bruno Haible  <bruno@clisp.org>
13887
13888         isblank: Move AC_LIBOBJ invocations to module description.
13889         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13890         here...
13891         * modules/isblank (configure.ac): ... to here.
13892
13893 2011-05-08  Bruno Haible  <bruno@clisp.org>
13894
13895         isapipe: Move AC_LIBOBJ invocations to module description.
13896         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13897         gl_PREREQ_ISAPIPE invocations from here...
13898         * modules/isapipe (configure.ac): ... to here.
13899         (Depends-on): Update condition.
13900
13901 2011-05-08  Bruno Haible  <bruno@clisp.org>
13902
13903         ioctl: Move AC_LIBOBJ invocations to module description.
13904         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13905         invocations from here...
13906         * modules/ioctl (configure.ac): ... to here.
13907         (Depends-on): Update condition.
13908
13909 2011-05-08  Bruno Haible  <bruno@clisp.org>
13910
13911         imaxdiv: Move AC_LIBOBJ invocations to module description.
13912         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13913         invocations from here...
13914         * modules/imaxdiv (configure.ac): ... to here.
13915
13916 2011-05-08  Bruno Haible  <bruno@clisp.org>
13917
13918         imaxabs: Move AC_LIBOBJ invocations to module description.
13919         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13920         invocations from here...
13921         * modules/imaxabs (configure.ac): ... to here.
13922
13923 2011-05-08  Bruno Haible  <bruno@clisp.org>
13924
13925         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13927         AC_LIBOBJ invocations from here...
13928         * modules/getaddrinfo (configure.ac): ... to here.
13929         (Depends-on): Add conditions.
13930
13931 2011-05-08  Bruno Haible  <bruno@clisp.org>
13932
13933         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13934         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13935         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13936         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13937         (gl_PREREQ_INET_PTON): ... from here.
13938         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13939         gl_PREREQ_INET_PTON here.
13940         (Depends-on): Update condition.
13941
13942 2011-05-08  Bruno Haible  <bruno@clisp.org>
13943
13944         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13945         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13946         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13947         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13948         (gl_PREREQ_INET_NTOP): ... from here.
13949         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13950         gl_PREREQ_INET_NTOP here.
13951         (Depends-on): Update condition.
13952
13953 2011-05-08  Bruno Haible  <bruno@clisp.org>
13954
13955         iconv_open: Move AC_LIBOBJ invocations to module description.
13956         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13957         AC_LIBOBJ invocations from here...
13958         * modules/iconv_open (configure.ac): ... to here.
13959
13960 2011-05-08  Bruno Haible  <bruno@clisp.org>
13961
13962         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13963         If module 'iconv_open' is among the main modules and module
13964         'iconv_open-utf' is among the tests dependencies, then
13965         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13966         return the special iconv_t values. Therefore iconv() and iconv_close()
13967         must support these special iconv_t values, already in lib, not only in
13968         tests.
13969         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13971         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13972         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13973         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13974         (Depends-on): Add the dependencies of iconv_open-utf.
13975         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13976         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13977         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13978
13979 2011-05-08  Bruno Haible  <bruno@clisp.org>
13980
13981         group-member: Move AC_LIBOBJ invocations to module description.
13982         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13983         gl_PREREQ_GROUP_MEMBER invocations from here...
13984         * modules/group-member (configure.ac): ... to here.
13985
13986 2011-05-08  Bruno Haible  <bruno@clisp.org>
13987
13988         grantpt: Move AC_LIBOBJ invocations to module description.
13989         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13990         invocations from here...
13991         * modules/grantpt (configure.ac): ... to here.
13992
13993 2011-05-08  Bruno Haible  <bruno@clisp.org>
13994
13995         glob: Move AC_LIBOBJ invocations to module description.
13996         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13997         from here...
13998         * modules/glob (configure.ac): ... to here.
13999
14000 2011-05-08  Bruno Haible  <bruno@clisp.org>
14001
14002         getusershell: Move AC_LIBOBJ invocations to module description.
14003         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14004         Move AC_LIBOBJ invocation from here...
14005         * modules/getusershell (configure.ac): ... to here.
14006         (Depends-on): Update condition.
14007
14008 2011-05-08  Bruno Haible  <bruno@clisp.org>
14009
14010         gettimeofday: Move AC_LIBOBJ invocations to module description.
14011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14012         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14013         gl_PREREQ_GETTIMEOFDAY invocations from here...
14014         * modules/gettimeofday (configure.ac): ... to here.
14015
14016 2011-05-08  Bruno Haible  <bruno@clisp.org>
14017
14018         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14019         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14020         just gl_FUNC_TZSET.
14021         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14022         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14024         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14025
14026 2011-05-08  Bruno Haible  <bruno@clisp.org>
14027
14028         getsubopt: Move AC_LIBOBJ invocations to module description.
14029         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14030         gl_PREREQ_GETSUBOPT invocations from here...
14031         * modules/getsubopt (configure.ac): ... to here.
14032
14033 2011-05-08  Bruno Haible  <bruno@clisp.org>
14034
14035         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14036         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14037         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14038         * modules/getpass-gnu (configure.ac): ... to here.
14039
14040 2011-05-08  Bruno Haible  <bruno@clisp.org>
14041
14042         getpass: Move AC_LIBOBJ invocations to module description.
14043         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14044         gl_PREREQ_GETPASS invocations from here...
14045         * modules/getpass (configure.ac): ... to here.
14046
14047 2011-05-08  Bruno Haible  <bruno@clisp.org>
14048
14049         getpagesize: Move AC_LIBOBJ invocations to module description.
14050         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14051         from here...
14052         * modules/getpagesize (configure.ac): ... to here.
14053
14054 2011-05-08  Bruno Haible  <bruno@clisp.org>
14055
14056         getopt: Move AC_LIBOBJ invocations to module description.
14057         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14058         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14059         invocations from here...
14060         * modules/getopt-gnu (configure.ac): ... to here.
14061         * modules/getopt-posix (configure.ac): ... and here.
14062         (Depends-on): Update condition.
14063
14064 2011-05-08  Bruno Haible  <bruno@clisp.org>
14065
14066         getopt, argp: Respect rules for use of AC_LIBOBJ.
14067         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14068         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14069         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14070         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14071
14072 2011-05-08  Bruno Haible  <bruno@clisp.org>
14073
14074         getlogin_r: Move AC_LIBOBJ invocations to module description.
14075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14076         gl_PREREQ_GETLOGIN_R invocations from here...
14077         * modules/getlogin_r (configure.ac): ... to here.
14078
14079 2011-05-08  Bruno Haible  <bruno@clisp.org>
14080
14081         getlogin: Move AC_LIBOBJ invocations to module description.
14082         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14083         here...
14084         * modules/getlogin (configure.ac): ... to here.
14085
14086 2011-05-08  Bruno Haible  <bruno@clisp.org>
14087
14088         getloadavg: Move AC_LIBOBJ invocations to module description.
14089         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14090         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14091         * modules/getloadavg (configure.ac): ... to here.
14092
14093 2011-05-08  Bruno Haible  <bruno@clisp.org>
14094
14095         gethrxtime: Move AC_LIBOBJ invocations to module description.
14096         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14097         LIB_GETHRXTIME from here...
14098         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14099         invocations from here...
14100         * modules/gethrxtime (configure.ac): ... to here.
14101
14102 2011-05-08  Bruno Haible  <bruno@clisp.org>
14103
14104         gethostname: Move AC_LIBOBJ invocations to module description.
14105         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14106         gl_PREREQ_GETHOSTNAME invocations from here...
14107         * modules/gethostname (configure.ac): ... to here.
14108
14109 2011-05-08  Bruno Haible  <bruno@clisp.org>
14110
14111         getgroups: Move AC_LIBOBJ invocations to module description.
14112         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14113         here...
14114         * modules/getgroups (configure.ac): ... to here.
14115
14116 2011-05-08  Bruno Haible  <bruno@clisp.org>
14117
14118         getdtablesize: Move AC_LIBOBJ invocations to module description.
14119         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14120         invocation from here...
14121         * modules/getdtablesize (configure.ac): ... to here.
14122
14123 2011-05-08  Bruno Haible  <bruno@clisp.org>
14124
14125         getdomainname: Move AC_LIBOBJ invocations to module description.
14126         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14127         gl_PREREQ_GETDOMAINNAME invocations from here...
14128         * modules/getdomainname (configure.ac): ... to here.
14129
14130 2011-05-08  Bruno Haible  <bruno@clisp.org>
14131
14132         getline: Move AC_LIBOBJ invocations to module description.
14133         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14134         invocations from here...
14135         * modules/getline (configure.ac): ... to here.
14136
14137 2011-05-08  Bruno Haible  <bruno@clisp.org>
14138
14139         getline: Simplify.
14140         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14141         It's already handled through the module dependency.
14142
14143 2011-05-08  Bruno Haible  <bruno@clisp.org>
14144
14145         getdelim: Move AC_LIBOBJ invocations to module description.
14146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14147         and gl_PREREQ_GETDELIM invocations from here...
14148         * modules/getdelim (configure.ac): ... to here.
14149         (Depends-on): Fix condition.
14150
14151 2011-05-08  Bruno Haible  <bruno@clisp.org>
14152
14153         getcwd: Move AC_LIBOBJ invocations to module description.
14154         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14155         invocations from here...
14156         * modules/getcwd (configure.ac): ... to here.
14157
14158 2011-05-08  Bruno Haible  <bruno@clisp.org>
14159
14160         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14161         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14162         here...
14163         * modules/getcwd-lgpl (configure.ac): ... to here.
14164
14165 2011-05-07  Bruno Haible  <bruno@clisp.org>
14166
14167         crypto/gc: Move AC_LIBOBJ invocations to module description.
14168         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14169         * modules/crypto/gc (configure.ac): ... to here.
14170
14171 2011-05-07  Bruno Haible  <bruno@clisp.org>
14172
14173         fwriting: Move AC_LIBOBJ invocations to module description.
14174         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14175         here...
14176         * modules/fwriting (configure.ac): ... to here.
14177
14178 2011-05-07  Bruno Haible  <bruno@clisp.org>
14179
14180         fwritable: Move AC_LIBOBJ invocations to module description.
14181         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14182         here...
14183         * modules/fwritable (configure.ac): ... to here.
14184
14185 2011-05-07  Bruno Haible  <bruno@clisp.org>
14186
14187         futimens: Move AC_LIBOBJ invocations to module description.
14188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14189         here...
14190         * modules/futimens (configure.ac): ... to here.
14191
14192 2011-05-07  Bruno Haible  <bruno@clisp.org>
14193
14194         ftruncate: Move AC_LIBOBJ invocations to module description.
14195         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14196         gl_PREREQ_FTRUNCATE invocations from here...
14197         * modules/ftruncate (configure.ac): ... to here.
14198
14199 2011-05-07  Bruno Haible  <bruno@clisp.org>
14200
14201         fsync: Move AC_LIBOBJ invocations to module description.
14202         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14203         invocations from here...
14204         * modules/fsync (configure.ac): ... to here.
14205
14206 2011-05-07  Bruno Haible  <bruno@clisp.org>
14207
14208         fsusage: Move AC_LIBOBJ invocations to module description.
14209         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14210         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14211         * modules/fsusage (configure.ac): ... to here.
14212
14213 2011-05-07  Bruno Haible  <bruno@clisp.org>
14214
14215         freopen: Move AC_LIBOBJ invocations to module description.
14216         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14217         invocations from here...
14218         * modules/freopen (configure.ac): ... to here.
14219
14220 2011-05-07  Bruno Haible  <bruno@clisp.org>
14221
14222         free: Move AC_LIBOBJ invocations to module description.
14223         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14224         invocations from here...
14225         * modules/free (configure.ac): ... to here.
14226
14227 2011-05-07  Bruno Haible  <bruno@clisp.org>
14228
14229         freadable: Move AC_LIBOBJ invocations to module description.
14230         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14231         here...
14232         * modules/freadable (configure.ac): ... to here.
14233
14234 2011-05-07  Bruno Haible  <bruno@clisp.org>
14235
14236         fpurge: Move AC_LIBOBJ invocations to module description.
14237         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14238         invocations from here...
14239         * modules/fpurge (configure.ac): ... to here.
14240
14241 2011-05-07  Bruno Haible  <bruno@clisp.org>
14242
14243         fpending: Move AC_LIBOBJ invocations to module description.
14244         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14245         gl_FUNC_FPENDING.
14246         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14247         invocations from here...
14248         * modules/fpending (configure.ac): ... to here.
14249
14250 2011-05-07  Bruno Haible  <bruno@clisp.org>
14251
14252         fopen: Move AC_LIBOBJ invocations to module description.
14253         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14254         invocations from here...
14255         * modules/fopen (configure.ac): ... to here.
14256
14257 2011-05-07  Bruno Haible  <bruno@clisp.org>
14258
14259         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14260         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14261         gl_FUNC_FNMATCH_POSIX.
14262         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14263         invocations from here...
14264         * modules/fnmatch (configure.ac): ... to here.
14265         * modules/fnmatch-gnu (configure.ac): ... and here.
14266
14267 2011-05-07  Bruno Haible  <bruno@clisp.org>
14268
14269         flock: Move AC_LIBOBJ invocations to module description.
14270         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14271         invocations from here...
14272         * modules/flock (configure.ac): ... to here.
14273
14274 2011-05-07  Bruno Haible  <bruno@clisp.org>
14275
14276         fileblocks: Move AC_LIBOBJ invocations to module description.
14277         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14278         gl_PREREQ_FILEBLOCKS invocations from here...
14279         * modules/fileblocks (configure.ac): ... to here.
14280
14281 2011-05-06  Bruno Haible  <bruno@clisp.org>
14282
14283         fflush: Move AC_LIBOBJ invocations to module description.
14284         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14285         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14286         invocations from here...
14287         * modules/fflush (configure.ac): ... to here.
14288
14289 2011-05-06  Bruno Haible  <bruno@clisp.org>
14290
14291         fdopendir: Move AC_LIBOBJ invocations to module description.
14292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14293         here...
14294         * modules/fdopendir (configure.ac): ... to here.
14295         (Depends-on): Improve conditions.
14296
14297 2011-05-06  Bruno Haible  <bruno@clisp.org>
14298
14299         _Exit: Move AC_LIBOBJ invocations to module description.
14300         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14301         invocations from here...
14302         * modules/_Exit (configure.ac): ... to here.
14303
14304 2011-05-21  Bruno Haible  <bruno@clisp.org>
14305
14306         euidaccess: Respect rules for use of AC_LIBOBJ.
14307         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14309         from here...
14310         * modules/euidaccess (configure.ac): ... to here.
14311
14312 2011-05-06  Bruno Haible  <bruno@clisp.org>
14313
14314         error: Move AC_LIBOBJ invocations to module description.
14315         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14316         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14317         invocations from here...
14318         * modules/error (configure.ac): ... to here.
14319
14320 2011-05-06  Bruno Haible  <bruno@clisp.org>
14321
14322         duplocale: Move AC_LIBOBJ invocations to module description.
14323         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14324         gl_PREREQ_DUPLOCALE invocations from here...
14325         * modules/duplocale (configure.ac): ... to here.
14326
14327 2011-05-05  Bruno Haible  <bruno@clisp.org>
14328
14329         dirfd: Move AC_LIBOBJ invocations to module description.
14330         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14331         gl_FUNC_DIRFD.
14332         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14333         here...
14334         * modules/dirfd (configure.ac): ... to here.
14335         (Depends-on): Fix condition.
14336
14337 2011-05-05  Bruno Haible  <bruno@clisp.org>
14338
14339         chown: Respect rules for use of AC_LIBOBJ.
14340         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14341         * modules/chown (configure.ac): ... to here.
14342
14343 2011-05-05  Bruno Haible  <bruno@clisp.org>
14344
14345         chdir-long: Move AC_LIBOBJ invocations to module description.
14346         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14347         gl_PREREQ_CHDIR_LONG invocations from here...
14348         * modules/chdir-long (configure.ac): ... to here.
14349
14350 2011-05-05  Bruno Haible  <bruno@clisp.org>
14351
14352         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14353         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14354         from here...
14355         * modules/canonicalize-lgpl (configure.ac): ... to here.
14356
14357 2011-05-05  Bruno Haible  <bruno@clisp.org>
14358
14359         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14360         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14361         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14362         REPLACE_CALLOC.
14363         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14364         * modules/calloc-gnu (configure.ac): Likewise.
14365
14366 2011-05-05  Bruno Haible  <bruno@clisp.org>
14367
14368         btowc: Move AC_LIBOBJ invocations to module description.
14369         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14370         invocations from here...
14371         * modules/btowc (configure.ac): ... to here.
14372
14373 2011-05-21  Bruno Haible  <bruno@clisp.org>
14374
14375         atexit: Move AC_LIBOBJ invocations to module description.
14376         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14378         here...
14379         * modules/atexit (configure.ac): ... to here.
14380
14381 2011-05-05  Bruno Haible  <bruno@clisp.org>
14382
14383         atoll: Move AC_LIBOBJ invocations to module description.
14384         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14385         invocations from here...
14386         * modules/atoll (configure.ac): ... to here.
14387
14388 2011-05-05  Bruno Haible  <bruno@clisp.org>
14389
14390         argz: Move AC_LIBOBJ invocations to module description.
14391         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14392         * modules/argz (configure.ac): ... to here.
14393
14394 2011-05-05  Bruno Haible  <bruno@clisp.org>
14395
14396         alphasort: Move AC_LIBOBJ invocations to module description.
14397         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14398         gl_PREREQ_ALPHASORT invocations from here...
14399         * modules/alphasort (configure.ac): ... to here.
14400
14401 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14402
14403         verify: new macro verify_expr; verify_true deprecated
14404         * NEWS: Mention this.
14405         * doc/verify.texi (Compile-time Assertions): Document this.
14406         * lib/verify.h (verify_true): Deprecate.
14407         (verify_expr): New macro.
14408         * tests/test-verify.c (function): Test verify_expr.
14409
14410 2011-06-14  Jim Meyering  <meyering@redhat.com>
14411
14412         init.sh: give more portable redirection-related advice in a comment
14413         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14414         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14415         for lots of discussion.  Stefano Lattarini suggested the solution
14416         of putting "9>&2" after the command.  Reported by Bruno Haible.
14417
14418 2011-06-13  Bruno Haible  <bruno@clisp.org>
14419
14420         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14422         'none'.
14423
14424 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         ftoastr: use strtof only if HAVE_STRTOF
14427         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14429         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14430         * modules/ftoastr (configure.ac): Check for strtof.
14431
14432 2011-06-13  Bruno Haible  <bruno@clisp.org>
14433
14434         gnulib-tool: Addendum to 2011-06-08 commit.
14435         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14436         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14437
14438 2011-06-13  Bruno Haible  <bruno@clisp.org>
14439
14440         fseeko: Provide a non-inline replacement of fseek().
14441         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14442         * modules/fseeko (Depends-on): Add fseek.
14443         * modules/fseek (License): Change to LGPLv2+.
14444
14445 2011-06-13  Bruno Haible  <bruno@clisp.org>
14446
14447         ftello: Provide a non-inline replacement of ftell().
14448         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14449         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14450         not have ftello() (such as on mingw).
14451         * modules/ftello (Depends-on): Add ftell.
14452         * modules/ftell (License): Change to LGPLv2+.
14453
14454 2011-05-07  Bruno Haible  <bruno@clisp.org>
14455
14456         ftell: Move AC_LIBOBJ invocations to module description.
14457         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14458         * modules/ftell (configure.ac): ... to here.
14459
14460 2011-05-07  Bruno Haible  <bruno@clisp.org>
14461
14462         ftello: Respect rules for use of AC_LIBOBJ.
14463         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14464         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14465         here...
14466         * modules/ftello (configure.ac): ... to here.
14467
14468 2011-05-07  Bruno Haible  <bruno@clisp.org>
14469
14470         fseeko: Simplify.
14471         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14472         (gl_FUNC_FSEEKO): Inline it here.
14473
14474 2011-05-07  Bruno Haible  <bruno@clisp.org>
14475
14476         fseek: Move AC_LIBOBJ invocations to module description.
14477         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14478         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14479         * modules/fseek (configure.ac): ... to here.
14480
14481 2011-05-07  Bruno Haible  <bruno@clisp.org>
14482
14483         fseek: Respect rules for use of AC_LIBOBJ.
14484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14485         here...
14486         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14487
14488 2011-05-07  Bruno Haible  <bruno@clisp.org>
14489
14490         fseeko: Respect rules for use of AC_LIBOBJ.
14491         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14492         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14493         here...
14494         * modules/fseeko (configure.ac): ... to here.
14495
14496 2011-06-13  Bruno Haible  <bruno@clisp.org>
14497
14498         gnulib-tool: Allow comments in the 'Depends-on' section.
14499         * doc/gnulib.texi (Module description): Mention comment syntax in the
14500         Depends-on section.
14501         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14502
14503 2011-06-13  Bruno Haible  <bruno@clisp.org>
14504
14505         file-set.h: guard __attibute__ use, now that it's not always defined
14506         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14507         versions that support it.  This fixes a coreutils build failure with
14508         the vendor cc on HP-UX 11.31.
14509
14510 2011-06-12  Bruno Haible  <bruno@clisp.org>
14511
14512         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14513         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14514         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14515         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14516         (acl, aclsort): New declarations.
14517         (aclv_nontrivial): New declaration.
14518         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14519         (file_has_acl): Read also the second kind of HP-UX ACLs.
14520         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14521         kind of HP-UX ACLs if the first kind fails.
14522         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14523         second kind of HP-UX ACLs.
14524         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14525         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14526         agree.
14527         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14528         hpuxjfs.
14529         Handle hpuxjfs.
14530         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14531         hpuxjfs.
14532         Handle hpuxjfs.
14533         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14534         (func_test_same_acls): Use both lsacl and getacl.
14535         Handle hpuxjfs.
14536         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14537         (func_test_same_acls): Use both lsacl and getacl.
14538         Handle hpuxjfs.
14539
14540 2011-06-12  Bruno Haible  <bruno@clisp.org>
14541
14542         acl: Complete the 2010-08-10 fix.
14543         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14544         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14545         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14546         explicitly.
14547         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14548         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14549
14550 2011-06-12  Bruno Haible  <bruno@clisp.org>
14551
14552         spawn-pipe tests: Comments.
14553         * tests/test-spawn-pipe-child.c (main): Update comment.
14554         Reported by James Youngman <jay@gnu.org>.
14555
14556 2011-06-11  James Youngman  <jay@gnu.org>
14557
14558         New module 'stat-size'.
14559         * modules/stat-size: New module.  Provides macros for accessing
14560         file size information in instances of struct stat.  Depends on the
14561         fileblocks module because it calls st_blocks.
14562         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14563         * doc/gnulib.texi: Include stat-size.texi.
14564         * doc/stat-size.texi: Documentation for this module.
14565         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14566         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14567         AC_STRUCT_ST_BLOCKS.
14568
14569 2011-06-09  Bruno Haible  <bruno@clisp.org>
14570
14571         thread: Support pthreads-win32.
14572         * lib/glthread/thread.h (gl_thread_self): Define differently on
14573         pthreads-win32.
14574         (gl_null_thread): New declaration.
14575         (gl_thread_self_pointer): New macro.
14576         * lib/glthread/thread.c (gl_null_thread): New constant.
14577         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14578         gl_thread_self.
14579         * tests/test-tls.c: Likewise.
14580         Suggested by Paul Eggert. Reported by Eric Blake.
14581
14582 2011-06-09  Bruno Haible  <bruno@clisp.org>
14583
14584         thread: Fix confusion between NULL and 0.
14585         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14586         Reported by Paul Eggert.
14587
14588 2011-06-09  Bruno Haible  <bruno@clisp.org>
14589
14590         spawn-pipe tests: Avoid test failure on HP-UX 11.
14591         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14592         is closed.
14593
14594 2011-06-09  Bruno Haible  <bruno@clisp.org>
14595
14596         acl tests: Fix compilation error on HP-UX 11.
14597         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14598
14599 2011-06-09  Bruno Haible  <bruno@clisp.org>
14600
14601         rmdir: Avoid test failure on HP-UX 10.20.
14602         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14603         EEXIST.
14604
14605 2011-06-08  Eric Blake  <eblake@redhat.com>
14606
14607         perror: fix test on mingw
14608         * modules/perror-tests (Depends-on): Add dup2.
14609
14610         strerror_r-posix: fix on MacOS
14611         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14613         logic bug.
14614         * lib/strerror_r.c (strerror_r): Fix the bug.
14615         * lib/strerror.c (strerror): Likewise.
14616         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14617         problem.
14618         * doc/posix-functions/strerror.texi (strerror): Likewise.
14619         * doc/posix-functions/perror.texi (perror): Likewise.
14620         * tests/test-strerror.c (main): Enhance test.
14621         * tests/test-strerror_r.c (main): Likewise.
14622
14623 2011-06-08  Bruno Haible  <bruno@clisp.org>
14624
14625         gnulib-tool: Better isolation between different gnulib-tool invocations.
14626         * gnulib-tool: New option --witness-c-macro.
14627         (witness_c_macro): New variable.
14628         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14629         AM_CPPFLAGS define it as a C macro.
14630         (func_emit_tests_Makefile_am): Likewise.
14631         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14632         read it from there.
14633         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14634         m4_define, not AC_DEFUN.
14635         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14636         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14637         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14638         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14639         s|...|...|, to substitute the values of the GNULIB_* module indicator
14640         variables.
14641         * modules/dirent (Makefile.am): Likewise.
14642         * modules/fcntl-h (Makefile.am): Likewise.
14643         * modules/iconv-h (Makefile.am): Likewise.
14644         * modules/langinfo (Makefile.am): Likewise.
14645         * modules/locale (Makefile.am): Likewise.
14646         * modules/math (Makefile.am): Likewise.
14647         * modules/netdb (Makefile.am): Likewise.
14648         * modules/poll-h (Makefile.am): Likewise.
14649         * modules/pty (Makefile.am): Likewise.
14650         * modules/search (Makefile.am): Likewise.
14651         * modules/signal (Makefile.am): Likewise.
14652         * modules/spawn (Makefile.am): Likewise.
14653         * modules/stdio (Makefile.am): Likewise.
14654         * modules/stdlib (Makefile.am): Likewise.
14655         * modules/string (Makefile.am): Likewise.
14656         * modules/sys_ioctl (Makefile.am): Likewise.
14657         * modules/sys_select (Makefile.am): Likewise.
14658         * modules/sys_socket (Makefile.am): Likewise.
14659         * modules/sys_stat (Makefile.am): Likewise.
14660         * modules/sys_times (Makefile.am): Likewise.
14661         * modules/sys_utsname (Makefile.am): Likewise.
14662         * modules/sys_wait (Makefile.am): Likewise.
14663         * modules/termios (Makefile.am): Likewise.
14664         * modules/time (Makefile.am): Likewise.
14665         * modules/unistd (Makefile.am): Likewise.
14666         * modules/wchar (Makefile.am): Likewise.
14667
14668 2011-06-08  Eric Blake  <eblake@redhat.com>
14669
14670         strerror: simplify replacement
14671         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14672         * modules/strerror (configure.ac): No prereqs needed here...
14673         * modules/strerror-override (configure.ac): ...but this needs it.
14674         (Files): Add file for needed prereq macro.
14675
14676 2011-06-08  Bruno Haible  <bruno@clisp.org>
14677
14678         strerror_r-posix: Tweaks.
14679         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14680         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14681         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14682         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14683         (gl_FUNC_STRERROR_R): ... to here.
14684         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14685
14686 2011-06-07  Eric Blake  <eblake@redhat.com>
14687
14688         perror: document fixed bugs
14689         * doc/posix-functions/perror.texi (perror): Document recent
14690         patches.
14691
14692 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14693
14694         stat-time: get_stat_birthtime failure is better-defined
14695         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14696         return a timestamp whose tv_sec and tv_nsec values are both -1.
14697         Previously, the spec said only that the tv_nsec value was negative.
14698         This upward-compatible change simplifies GNU tar a bit.
14699
14700 2011-06-07  Eric Blake  <eblake@redhat.com>
14701
14702         strerror_r-posix: work around cygwin 1.7.9
14703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14704         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14705         bug without replacing strerror_r.
14706         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14707         strerror_r is buggy, but without requiring strerror_r compilation.
14708         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14709
14710         test-perror: relax test to ignore cygwin bug
14711         * tests/test-perror2.c (main): Relax test on requiring detection
14712         of stream errors, and use unbuffered stream.
14713         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14714         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14715         * doc/posix-functions/fputc.texi (fputc): Likewise.
14716         * doc/posix-functions/fputs.texi (fputs): Likewise.
14717         * doc/posix-functions/fputws.texi (fputws): Likewise.
14718         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14719         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14720         * doc/posix-functions/getopt.texi (getopt): Likewise.
14721         * doc/posix-functions/perror.texi (perror): Likewise.
14722         * doc/posix-functions/printf.texi (printf): Likewise.
14723         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14724         * doc/posix-functions/psignal.texi (psignal): Likewise.
14725         * doc/posix-functions/putc.texi (putc): Likewise.
14726         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14727         Likewise.
14728         * doc/posix-functions/putchar.texi (putchar): Likewise.
14729         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14730         Likewise.
14731         * doc/posix-functions/puts.texi (puts): Likewise.
14732         * doc/posix-functions/putwc.texi (putwc): Likewise.
14733         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14734         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14735         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14736         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14737         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14738         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14739         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14740         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14741
14742 2011-05-22  Bruno Haible  <bruno@clisp.org>
14743
14744         strerror: Move AC_LIBOBJ invocations to module description.
14745         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14746         gl_PREREQ_STRERROR invocations from here...
14747         * modules/strerror (configure.ac): ... to here.
14748
14749 2011-05-21  Bruno Haible  <bruno@clisp.org>
14750
14751         perror: Use common idiom.
14752         * modules/perror (configure.ac): Reorder statements.
14753
14754 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14755
14756         tests: fix usage message in 'mktempd_'
14757         * tests/init.sh (mktempd_): In the usage message, use literal
14758         'mktempd_', not '$ME' (which is even undefined), as the name of
14759         the subroutine.
14760
14761 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14762
14763         tests init: new function 'fatal_', for hard errors
14764         Before this patch, the only way offered by tests/init.sh to
14765         properly signal a hard error was the `framework_failure_'
14766         function.  But the error message issued by that function,
14767         as its name would suggest, refers to a set-up failure in the
14768         testsuite, while hard errors can obviously also be due to
14769         other reasons.  The best way to fix this inconsistency is to
14770         introduce a new function with a more general error message.
14771         * tests/init.sh (fatal_): New function.
14772
14773 2011-06-06  Eric Blake  <eblake@redhat.com>
14774
14775         canonicalize-lgpl: use common idiom
14776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14777         over newer POSIX -Rf.
14778         Reported by Bruno Haible.
14779
14780         canonicalize-lgpl: work around AIX realpath bug
14781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14782         * doc/posix-functions/realpath.texi (realpath): Document it.
14783         Reported by Bruno Haible.
14784
14785         strerror: work around FreeBSD bug
14786         * lib/strerror.c (strerror): Special case 0.
14787         Reported by Bruno Haible.
14788
14789         strerror-override: avoid bloating errno module
14790         * modules/errno (Files, configure.ac): Move replacement strings...
14791         * modules/strerror-override: ...to new module.
14792         * modules/strerror (Depends-on): Add strerror-override.
14793         * modules/strerror_r-posix (Depends-on): Likewise.
14794         * MODULES.html.sh: Document new module.
14795         Reported by Bruno Haible.
14796
14797 2011-06-06  Bruno Haible  <bruno@clisp.org>
14798
14799         spawn-pipe tests: Rename program.
14800         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14801         * tests/test-spawn-pipe-child.c: Update comment.
14802         * tests/test-spawn-pipe.sh: Update.
14803         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14804
14805         spawn-pipe tests: Link the child program only against libc.
14806         * tests/test-spawn-pipe-child.c: New file, extracted from
14807         tests/test-spawn-pipe.c.
14808         (main): Expect only one argument.
14809         (is_open): New function, copied from tests/test-pipe.c.
14810         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14811         (child_main): Remove function.
14812         (test_pipe): Pass only one argument to the child program.
14813         (main): Remove child process code. Expect the child program's name as
14814         first argument.
14815         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14816         argument.
14817         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14818         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14819         test-spawn-pipe-child against no libraries.
14820
14821 2011-06-06  Bruno Haible  <bruno@clisp.org>
14822
14823         careadlinkat: Avoid mismatch between ssize_t and int.
14824         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14825         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14826
14827 2011-06-06  Jim Meyering  <meyering@redhat.com>
14828
14829         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14830         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14831         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14832
14833 2011-06-05  Bruno Haible  <bruno@clisp.org>
14834
14835         ansi-c++-opt: Interoperability with libtool.
14836         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14837         set the variable to "no", not to ":".
14838         * NEWS: Mention the change.
14839
14840 2011-06-05  Bruno Haible  <bruno@clisp.org>
14841
14842         acl: Fix test failure on AIX 7.
14843         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14844         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14845
14846 2011-06-05  Bruno Haible  <bruno@clisp.org>
14847
14848         pipe-filter-ii: Fix test failure on AIX and IRIX.
14849         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14850         with EAGAIN, retry with a smaller buffer size.
14851
14852 2011-06-05  Bruno Haible  <bruno@clisp.org>
14853
14854         localename: Fix link dependencies.
14855         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14856         * modules/localename-tests (Makefile.am): Link test-localename with
14857         $(LIBTHREAD).
14858
14859 2011-06-05  Bruno Haible  <bruno@clisp.org>
14860
14861         error: Avoid gcc warning.
14862         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14863
14864 2011-06-05  Bruno Haible  <bruno@clisp.org>
14865
14866         unsetenv: Avoid gcc warning.
14867         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14868
14869 2011-06-05  Bruno Haible  <bruno@clisp.org>
14870
14871         setenv: Avoid gcc warning.
14872         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14873
14874 2011-06-05  Bruno Haible  <bruno@clisp.org>
14875
14876         sys_select: Ensure memset is declared also on AIX 7.
14877         * lib/sys_select.in.h: Include <string.h> also on AIX.
14878         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14879         self-contained also on AIX 7.1.
14880
14881 2011-06-04  Jim Meyering  <meyering@redhat.com>
14882
14883         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14884         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14885         function name, "error".
14886         (_gl_translatable_diag_func_re): New configurable variable.
14887
14888 2011-06-04  Bruno Haible  <bruno@clisp.org>
14889
14890         getopt: Avoid gcc warning.
14891         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14892
14893 2011-06-04  Bruno Haible  <bruno@clisp.org>
14894
14895         strerror_r: Fix comments.
14896         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14897         commit.
14898
14899 2011-06-04  Bruno Haible  <bruno@clisp.org>
14900
14901         perror: Fix compilation error.
14902         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14903         Undefine fprintf, not sprintf.
14904         * modules/perror (Depends-on): Remove intprops, verify.
14905
14906 2011-06-04  Bruno Haible  <bruno@clisp.org>
14907
14908         setlocale: Enable replacement on Cygwin 1.5.
14909         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14910         Cygwin 1.5.x.
14911         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14912         LC_CTYPE category also exists on Cygwin 1.5.x.
14913
14914 2011-06-04  Bruno Haible  <bruno@clisp.org>
14915
14916         strerror-override: Don't disable symbol renamings.
14917         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14918         * lib/strerror-override.c: Include config.h.
14919         (strerror_override): Don't undefine.
14920
14921 2011-06-03  Bruno Haible  <bruno@clisp.org>
14922
14923         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14924         * lib/localename.h: Update copyright header.
14925         * lib/localename.c: Likewise.
14926         * lib/relocatable.h: Likewise.
14927         * lib/relocatable.c: Likewise.
14928
14929 2011-06-02  Bruno Haible  <bruno@clisp.org>
14930
14931         doc: Fix a module name.
14932         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14933
14934 2011-06-02  Bruno Haible  <bruno@clisp.org>
14935
14936         pipe2: Remove dependency on 'nonblocking' module.
14937         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14938         O_NONBLOCK is defined by gnulib.
14939         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14940         is zero.
14941         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14942         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14943         defined by gnulib.
14944         (get_nonblocking_flag): New function.
14945         (main): Test O_NONBLOCK flag only if it is nonzero.
14946         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14947
14948 2011-06-03  Jim Meyering  <meyering@redhat.com>
14949
14950         maint: three new prohibit-header-without-use rules
14951         Prohibit use of cloexec.h, posixver.h, same.h without use.
14952         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14953         (sc_prohibit_posixver_without_use): Likewise.
14954         (sc_prohibit_same_without_use): Likewise.
14955
14956 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14957
14958         allocator: 'die' routine is now given requested size
14959         * lib/allocator.h (struct allocator.die): New size arg.
14960         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14961         If the actual problem is an ssize_t limitation, not a size_t or
14962         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14963
14964 2011-06-01  Eric Blake  <eblake@redhat.com>
14965
14966         strerror: drop strerror_r dependency
14967         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14968         * lib/strerror-override.c (strerror_override): ...to new file.
14969         * lib/strerror-override.h: Add prototype.
14970         * lib/strerror-impl.h: Delete.
14971         * lib/strerror.c (strerror): New implementation.
14972         * modules/errno (Files): Add new files.
14973         (configure.ac): Compile new file as appropriate.
14974         * modules/strerror (Files): Drop unused file.
14975         (Depends-on): Drop strerror_r-posix.
14976         * MODULES.html.sh: Document strerror_r-posix.
14977         Requested by Sam Steingold.
14978
14979         perror: call strerror_r directly
14980         * modules/perror (Files): Drop strerror-impl.h.
14981         * lib/perror.c (perror): Use our own stack buffer, rather than
14982         calling a wrapper that uses static storage.
14983         * doc/posix-functions/perror.texi (perror): Document a limitation
14984         of our replacement.
14985
14986         strerror_r: fix includes for FreeBSD
14987         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14988         since we use abort on some platforms.
14989         Reported by Matthias Bolte.
14990
14991 2011-05-31  Bruno Haible  <bruno@clisp.org>
14992
14993         Fix link errors in tests: openat-die uses gettext-h.
14994         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14995         against $(LIBINTL).
14996         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14997         against $(LIBINTL).
14998         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14999         $(LIBINTL).
15000         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15001         against $(LIBINTL).
15002         * modules/linkat-tests (Makefile.am): Link test-linkat against
15003         $(LIBINTL).
15004         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15005         $(LIBINTL).
15006         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15007         against $(LIBINTL).
15008         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15009         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15010         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15011         $(LIBINTL).
15012         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15013         $(LIBINTL).
15014         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15015         $(LIBINTL).
15016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15017
15018 2011-05-31  Bruno Haible  <bruno@clisp.org>
15019
15020         Fix link errors in tests: wait-process uses gettext-h.
15021         * modules/nonblocking-pipe-tests (Makefile.am): Set
15022         test_nonblocking_pipe_main_LDADD.
15023         * modules/nonblocking-socket-tests (Makefile.am): Link
15024         test-nonblocking-socket-main against $(LIBINTL).
15025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15026
15027 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15028
15029         assert-h: work around 'verify' incompatibility
15030         * lib/verify.h: Use @...@ directives, not ifdef.
15031         * modules/assert-h (assert.h): Implement the directives.
15032         (assert.h): Substitute the symbol-prefix more consistently.
15033
15034 2011-05-29  Jim Meyering  <meyering@redhat.com>
15035
15036         trim: remove three superfluous assignments
15037         * lib/trim.c (trim2): Remove three superfluous assignments
15038         and correct brace positioning.
15039
15040 2011-05-29  Bruno Haible  <bruno@clisp.org>
15041
15042         wctype-h: Avoid namespace pollution on Solaris 2.6.
15043         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15044         identifiers.
15045         * doc/posix-headers/wctype.texi: Mention the problem.
15046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15047
15048 2011-05-28  Jim Meyering  <meyering@redhat.com>
15049
15050         parse-datetime.y: accommodate -Wstrict-overflow
15051         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15052         placate -Wstrict-overflow.
15053
15054         trim: avoid a warning from -O2 -Wstrict-overflow
15055         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15056
15057 2011-05-29  Bruno Haible  <bruno@clisp.org>
15058
15059         gnulib-tool: Fix bug in yesterday's commit.
15060         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15061         twice.
15062
15063 2011-05-29  Bruno Haible  <bruno@clisp.org>
15064
15065         Allow multiple gnulib generated include files to be combined.
15066         * gnulib-tool (func_compute_include_guard_prefix): New function.
15067         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15068         ${gl_include_guard_prefix} references.
15069         (func_import, func_create_testdir): Invoke
15070         func_compute_include_guard_prefix.
15071         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15072         * lib/ctype.in.h: Likewise.
15073         * lib/dirent.in.h: Likewise.
15074         * lib/errno.in.h: Likewise.
15075         * lib/fcntl.in.h: Likewise.
15076         * lib/float.in.h: Likewise.
15077         * lib/getopt.in.h: Likewise.
15078         * lib/iconv.in.h: Likewise.
15079         * lib/langinfo.in.h: Likewise.
15080         * lib/locale.in.h: Likewise.
15081         * lib/math.in.h: Likewise.
15082         * lib/netdb.in.h: Likewise.
15083         * lib/netinet_in.in.h: Likewise.
15084         * lib/poll.in.h: Likewise.
15085         * lib/pthread.in.h: Likewise.
15086         * lib/pty.in.h: Likewise.
15087         * lib/sched.in.h: Likewise.
15088         * lib/se-selinux.in.h: Likewise.
15089         * lib/search.in.h: Likewise.
15090         * lib/signal.in.h: Likewise.
15091         * lib/spawn.in.h: Likewise.
15092         * lib/stdarg.in.h: Likewise.
15093         * lib/stddef.in.h: Likewise.
15094         * lib/stdint.in.h: Likewise.
15095         * lib/stdio.in.h: Likewise.
15096         * lib/stdlib.in.h: Likewise.
15097         * lib/string.in.h: Likewise.
15098         * lib/strings.in.h: Likewise.
15099         * lib/sys_file.in.h: Likewise.
15100         * lib/sys_ioctl.in.h: Likewise.
15101         * lib/sys_select.in.h: Likewise.
15102         * lib/sys_socket.in.h: Likewise.
15103         * lib/sys_stat.in.h: Likewise.
15104         * lib/sys_time.in.h: Likewise.
15105         * lib/sys_times.in.h: Likewise.
15106         * lib/sys_uio.in.h: Likewise.
15107         * lib/sys_utsname.in.h: Likewise.
15108         * lib/sys_wait.in.h: Likewise.
15109         * lib/sysexits.in.h: Likewise.
15110         * lib/termios.in.h: Likewise.
15111         * lib/time.in.h: Likewise.
15112         * lib/unistd.in.h: Likewise.
15113         * lib/wchar.in.h: Likewise.
15114         * lib/wctype.in.h: Likewise.
15115         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15116         * modules/ctype (Makefile.am): Likewise.
15117         * modules/dirent (Makefile.am): Likewise.
15118         * modules/errno (Makefile.am): Likewise.
15119         * modules/fcntl-h (Makefile.am): Likewise.
15120         * modules/float (Makefile.am): Likewise.
15121         * modules/getopt-posix (Makefile.am): Likewise.
15122         * modules/iconv-h (Makefile.am): Likewise.
15123         * modules/langinfo (Makefile.am): Likewise.
15124         * modules/locale (Makefile.am): Likewise.
15125         * modules/math (Makefile.am): Likewise.
15126         * modules/netdb (Makefile.am): Likewise.
15127         * modules/netinet_in (Makefile.am): Likewise.
15128         * modules/poll-h (Makefile.am): Likewise.
15129         * modules/pthread (Makefile.am): Likewise.
15130         * modules/pty (Makefile.am): Likewise.
15131         * modules/sched (Makefile.am): Likewise.
15132         * modules/search (Makefile.am): Likewise.
15133         * modules/selinux-h (Makefile.am): Likewise.
15134         * modules/signal (Makefile.am): Likewise.
15135         * modules/spawn (Makefile.am): Likewise.
15136         * modules/stdarg (Makefile.am): Likewise.
15137         * modules/stddef (Makefile.am): Likewise.
15138         * modules/stdint (Makefile.am): Likewise.
15139         * modules/stdio (Makefile.am): Likewise.
15140         * modules/stdlib (Makefile.am): Likewise.
15141         * modules/string (Makefile.am): Likewise.
15142         * modules/strings (Makefile.am): Likewise.
15143         * modules/sys_file (Makefile.am): Likewise.
15144         * modules/sys_ioctl (Makefile.am): Likewise.
15145         * modules/sys_select (Makefile.am): Likewise.
15146         * modules/sys_socket (Makefile.am): Likewise.
15147         * modules/sys_stat (Makefile.am): Likewise.
15148         * modules/sys_time (Makefile.am): Likewise.
15149         * modules/sys_times (Makefile.am): Likewise.
15150         * modules/sys_uio (Makefile.am): Likewise.
15151         * modules/sys_utsname (Makefile.am): Likewise.
15152         * modules/sys_wait (Makefile.am): Likewise.
15153         * modules/sysexits (Makefile.am): Likewise.
15154         * modules/termios (Makefile.am): Likewise.
15155         * modules/time (Makefile.am): Likewise.
15156         * modules/unistd (Makefile.am): Likewise.
15157         * modules/wchar (Makefile.am): Likewise.
15158         * modules/wctype-h (Makefile.am): Likewise.
15159         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15160
15161 2011-05-29  Bruno Haible  <bruno@clisp.org>
15162
15163         assert-h: Allow multiple gnulib generated replacements to coexist.
15164         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15165
15166 2011-05-29  Bruno Haible  <bruno@clisp.org>
15167
15168         argp: Allow coexistence with strerror_r-posix module.
15169         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15170         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15171         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15172         not the glibc signature.
15173
15174 2011-05-28  Bruno Haible  <bruno@clisp.org>
15175
15176         gnulib-tool: Alternative structure of testdirs, similar to --import.
15177         * gnulib-tool: New option --single-configure.
15178         (func_usage): Document it.
15179         (single_configure): New variable.
15180         (func_modules_transitive_closure_separately,
15181         func_modules_transitive_closure_separately,
15182         func_determine_use_libtests, func_modules_add_dummy_separately,
15183         func_modules_to_filelist_separately): New functions, extracted from
15184         func_import.
15185         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15186         (func_import): Use the new functions.
15187         (func_create_testdir): Set final_modules. Handle $single_configure =
15188         true case.
15189
15190 2011-05-28  Bruno Haible  <bruno@clisp.org>
15191
15192         getloadavg: Remove an unreliable safety check.
15193         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15194         getloadavg.c is in place.
15195         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15196         Reported by Sam Steingold <sds@gnu.org>.
15197
15198 2011-05-28  Bruno Haible  <bruno@clisp.org>
15199
15200         doc: Cleanup yet another file produced by texinfo.tex.
15201         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15202
15203 2011-05-28  Bruno Haible  <bruno@clisp.org>
15204
15205         Finish the conditional dependencies mechanism.
15206         * gnulib-tool: New option --no-conditional-dependencies.
15207         (func_usage): Document it. Don't mark --conditional-dependencies as
15208         experimental.
15209         (cond_dependencies): The possible values can now be true, false, empty.
15210         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15211         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15212         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15213
15214 2011-05-28  Bruno Haible  <bruno@clisp.org>
15215
15216         doc: Use a recent texinfo.tex.
15217         * doc/Makefile (tex_opts): New variable.
15218         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15219
15220 2011-05-28  Jim Meyering  <meyering@redhat.com>
15221
15222         intprops.h: adjust comment to match code change
15223         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15224         only once, it *may* have side effects.  Also fix an unrelated typo.
15225         (_GL_INT_SIGNED): Likewise.
15226
15227 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15228
15229         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15230
15231 2011-05-26  Bruno Haible  <bruno@clisp.org>
15232
15233         mbsrchr: Avoid collision with system function on Interix.
15234         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15235         Reported by Markus Duft <mduft@gentoo.org>.
15236
15237 2011-05-15  James Youngman  <jay@gnu.org>
15238
15239         getopt: for ambiguous options, enumerate the possibilities.
15240         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15241         the ambiguous options when an ambiguous prefix is given. This was
15242         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15243         glibc change was
15244         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15245
15246 2011-05-25  Eric Blake  <eblake@redhat.com>
15247
15248         getcwd: work around mingw bug
15249         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15250         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15251         Reported by Matthias Bolte.
15252
15253 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15254
15255         test-intprops: disable -Wtype-limits diagnostics
15256         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15257         diagnostics.  Otherwise, the integer overflow macros generate many
15258         diagnostics.  Reported by Jim Meyering in
15259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15260
15261         intprops: shorten, to pacify gcc -Woverlength-strings
15262         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15263         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15264         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15265         likely to run afoul of C compiler limits for string constant lengths.
15266         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15267
15268 2011-05-24  Eric Blake  <eblake@redhat.com>
15269
15270         docs: document recently fixed glibc printf bug
15271         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15272         * doc/posix-functions/printf.texi (printf): Likewise.
15273         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15274         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15275
15276         closein-tests: convert to init.sh
15277         * modules/closein-tests (Files): Add init.sh
15278         * tests/test-closein.sh Use it.
15279
15280         yesno-tests: convert to init.sh
15281         * modules/yesno-tests (Files): Add init.sh.
15282         * tests/test-yesno.sh: Use it.
15283
15284         atexit-tests: ensure reliable exit status
15285         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15286         Reported by Bruno Haible.
15287
15288 2011-05-24  Bruno Haible  <bruno@clisp.org>
15289
15290         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15292         gl_PREREQ_STRERROR_R invocations from here...
15293         * modules/strerror_r-posix (configure.ac): ... to here.
15294
15295 2011-05-24  Eric Blake  <eblake@redhat.com>
15296
15297         strerror_r: fix missing header
15298         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15299
15300         strerror_r: fix AIX test failures
15301         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15302         ERANGE failure.
15303
15304         strerror_r: fix Solaris test failures
15305         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15306         failures.
15307         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15308
15309         strerror_r: enforce POSIX recommendations
15310         * lib/strerror_r.c (safe_copy): New helper method.
15311         (strerror_r): Guarantee a non-empty string.
15312         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15313         recent POSIX rulings and to match our strerror guarantees.
15314         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15315
15316 2011-05-24  Jim Meyering  <meyering@redhat.com>
15317
15318         test-perror2.c: avoid warning about unused variable
15319         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15320
15321 2011-05-24  Eric Blake  <eblake@redhat.com>
15322
15323         perror: avoid spurious test failure on HP-UX
15324         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15325
15326         tests: fix logic bug in init.sh
15327         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15328         shell.
15329
15330 2011-05-24  Jim Meyering  <meyering@redhat.com>
15331
15332         utimensat: do not reference an out-of-scope buffer
15333         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15334         declared in an inner scope, yet "times" would be dereferenced outside
15335         the scope in which "ts" was valid.
15336         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15337         of ts[2] "out/up", so that the use of aliased "times" (via
15338         "times = ts;") does not end up referencing an out-of-scope "ts"
15339
15340         opendir-safer.c: don't clobber errno; don't close negative FD
15341         * lib/opendir-safer.c (opendir_safer):
15342         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15343         file descriptor, and more importantly, don't clobber the
15344         offending errno value with EINVAL.  Before, upon failure
15345         of dup_safer, we would pass the negative file descriptor to
15346         fdopendir, which would clobber errno.
15347
15348 2011-05-23  Bruno Haible  <bruno@clisp.org>
15349
15350         idcache: Fix module description.
15351         * modules/idcache (Include): Set to "idcache.h".
15352
15353 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15354
15355         gnulib-tool: fix portability problem with MacOS sed
15356         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15357         before the "}".  Problem reported by Leo in
15358         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15359         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15360         sed_extract_condition1, sed_extract_condition2.
15361
15362 2011-05-23  Bruno Haible  <bruno@clisp.org>
15363
15364         hash: Simplify autoconf macro.
15365         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15366
15367 2011-05-23  Bruno Haible  <bruno@clisp.org>
15368
15369         getugroups: Fix module description.
15370         * modules/getugroups (Include): Set to "getugroups.h".
15371
15372 2011-05-23  Bruno Haible  <bruno@clisp.org>
15373
15374         linkat: Simplify autoconf macro.
15375         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15376
15377 2011-05-23  Bruno Haible  <bruno@clisp.org>
15378             Eric Blake  <eblake@redhat.com>
15379
15380         linkat, renameat: Update dependencies.
15381         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15382         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15383         symlinkat.
15384
15385 2011-05-23  Jim Meyering  <meyering@redhat.com>
15386
15387         maint.mk: more tight_scope improvements
15388         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15389         (_gl_TS_headers): Define only in if-0'd block.
15390         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15391         sometimes we must *not* use it.  Adjust uses accordingly.
15392         (sc_tight_scope): Use much simpler grep-based test to determine
15393         whether we skip this rule.
15394
15395         maint.mk: generalize/improve the tight-scope rule
15396         * top/maint.mk: Emit a warning when the test is skipped.
15397         (_gl_TS_dir): Add $(srcdir)/ prefix.
15398         (_gl_TS_function_match): Simplify, rather than trying
15399         to enumerate common types.  Otherwise, it would fail to match an
15400         "extern unsigned char const *" declaration in idutils.
15401         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15402         a way to support use of that type of macro.
15403         (_gl_TS_var_match): Simplify regexp.
15404         (_gl_TS_obj_files): New configurable variable.
15405         (_gl_TS_headers): Likewise.
15406
15407 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15408
15409         verify: fix bug when gnulib <assert.h> is also included
15410         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15411         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15412         Perhaps there's a better way, but this fixes the immediate problem.
15413         Problem reported by Bruno Haible in
15414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15415
15416 2011-05-22  Bruno Haible  <bruno@clisp.org>
15417
15418         xgetcwd: Simplify autoconf macro.
15419         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15420
15421 2011-05-22  Bruno Haible  <bruno@clisp.org>
15422
15423         New module 'mktime-internal'.
15424         * modules/mktime-internal: New file.
15425         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15426         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15427         mktime_internal as a C macro if libc has __mktime_internal.
15428         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15429         conditions.
15430         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15431
15432 2011-05-22  Bruno Haible  <bruno@clisp.org>
15433
15434         timegm: Correct mktime replacement statements.
15435         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15436         defining mktime as a C macro. This completes a 2009-07-28 commit.
15437
15438 2011-05-22  Bruno Haible  <bruno@clisp.org>
15439
15440         timegm: Simplify autoconf macro.
15441         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15442
15443 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15444
15445         clock-time: change to LGPLv2+.
15446         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15447         BSD-like but we have no mark for that; this is good enough for now.
15448
15449 2011-05-21  Bruno Haible  <bruno@clisp.org>
15450
15451         strerror_r: Fix comments.
15452         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15453
15454 2011-05-21  Bruno Haible  <bruno@clisp.org>
15455
15456         relocatable-prog-wrapper: Fix possible link error.
15457         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15458         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15459         (gl_FUNC_SETENV): ... to here.
15460         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15461         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15462
15463 2011-05-21  Bruno Haible  <bruno@clisp.org>
15464
15465         relocatable-prog-wrapper: Assume strerror() exists.
15466         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15467         m4/strerror.m4.
15468         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15469         * lib/relocwrapper.c: Remove mention of strerror module.
15470         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15471         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15472         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15473         C macro.
15474
15475 2011-05-21  Bruno Haible  <bruno@clisp.org>
15476
15477         select: Simplify replacement idiom.
15478         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15479         Win32 platforms.
15480         * lib/sys_select.in.h (select): Simplify accordingly.
15481         * modules/select (Depends-on): Likewise.
15482
15483 2011-05-21  Bruno Haible  <bruno@clisp.org>
15484
15485         mkdir-p: Simplify autoconf macro.
15486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15487         gl_FUNC_LCHOWN.
15488
15489 2011-05-21  Eric Blake  <eblake@redhat.com>
15490
15491         strerror_r: avoid clobbering strerror on cygwin
15492         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15493         fall back instead to sys_errlist.
15494         * modules/strerror (configure.ac): Add witness.
15495         * tests/test-strerror_r.c (main): Enhance test.
15496         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15497         * tests/test-perror2.c (main): Free memory before exit.
15498
15499 2011-05-21  Bruno Haible  <bruno@clisp.org>
15500
15501         mkdtemp: Use gnulib naming conventions.
15502         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15503         * modules/mkdtemp (configure.ac): Update.
15504
15505 2011-05-20  Eric Blake  <eblake@redhat.com>
15506
15507         strerror_r: avoid corrupting errno on Solaris
15508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15509         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15510
15511         strerror_r: avoid compiler warning
15512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15513
15514         strerror_r: simplify AIX code
15515         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15516
15517         test-perror: avoid spurious failure on FreeBSD
15518         * modules/perror-tests (Depends-on): Add strerror, now that
15519         strerror_r no longer pulls it in.
15520
15521 2011-05-20  Bruno Haible  <bruno@clisp.org>
15522
15523         strerror_r-posix: Remove unused dependencies.
15524         * modules/strerror_r-posix (Depends-on): Remove strerror.
15525         Reported by Eric Blake.
15526
15527 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15528
15529         intprops: remove assumption about A|B representation
15530         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15531         is a valid integer if both A and B are.  Although this is true for
15532         all known practical hosts, the C standard doesn't guarantee it,
15533         and the code need not assume it.  Also, this change may work around
15534         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15536
15537 2011-05-20  Eric Blake  <eblake@redhat.com>
15538
15539         perror: work around FreeBSD bug
15540         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15541         is broken.  Move AC_LIBOBJ...
15542         * modules/perror (configure.ac): Here.
15543         * doc/posix-functions/perror.texi (perror): Document this.
15544         * tests/test-perror2.c (main): Enhance test.
15545
15546         test-perror: check for strerror interactions
15547         * tests/macros.h (STREQ): Add macro.
15548         * modules/perror-tests (Files): Add second test.
15549         * tests/test-perror2.c (main): New file.
15550         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15551
15552         test-perror: rewrite to use init script
15553         * modules/perror-tests (Files): Add init.sh.
15554         * tests/test-perror.sh: Use temporary directory.
15555
15556 2011-05-20  Jim Meyering  <meyering@redhat.com>
15557
15558         maint: replace misused "a" with "an"
15559         * doc/intprops.texi: "a integer"
15560         * doc/regex.texi: "a explanation"
15561         * lib/alignof.h: "a object"
15562         * lib/argmatch.h: "a explanation"
15563         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15564         * lib/stdint.in.h: "a integer"
15565         * lib/userspec.c: "a owner"
15566         * doc/gnulib.texi: Fix "a idea", and reword.
15567
15568 2011-05-19  Jim Meyering  <meyering@redhat.com>
15569
15570         maint: correct misuse of "a" and "an"
15571         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15572         * lib/argp-help.c: "an docum...": s/an/a/
15573         * lib/argp-parse.c: "An vector": s/An/A/
15574         * lib/execute.c: "an native": s/an/a/
15575         * lib/spawn-pipe.c: Likewise.
15576         * lib/gc.h: "an Gc_rc": s/an/a/
15577         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15578         * lib/fts.c: "an stat.st_dev": s/an/a/
15579
15580 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15581
15582         intprops-tests: work around HP-UX 11.23 cc bug with constants
15583         * tests/test-intprops.c (VERIFY): New macro.
15584         (main): Use it, instead of verify, to work around the compiler bug; see
15585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15586
15587         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15588         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15589         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15590         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15591         (_GL_REMAINDER_OVERFLOW): Use it.
15592
15593         intprops-tests: revert unsigned part of previous change
15594         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15595         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15596         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15598
15599 2011-05-19  Bruno Haible  <bruno@clisp.org>
15600
15601         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15602         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15603         strerror_r() returned without filling the buffer.
15604         Reported by Eric Blake.
15605
15606 2011-05-19  Eric Blake  <eblake@redhat.com>
15607
15608         strerror_r: guarantee unchanged errno
15609         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15610         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15611         failure.
15612         * tests/test-strerror_r.c (main): Enhance test.
15613
15614 2011-05-19  Bruno Haible  <bruno@clisp.org>
15615
15616         strerror_r: Reorder #if blocks.
15617         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15618         for consistency with the previous commit.
15619
15620 2011-05-19  Bruno Haible  <bruno@clisp.org>
15621
15622         perror: Avoid clobbering the strerror buffer when possible.
15623         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15624         * lib/strerror.c: Include it.
15625         * modules/strerror (Files): Add lib/strerror-impl.h.
15626         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15627         (my_strerror): New function, defined through lib/strerror-impl.h.
15628         (perror): Use it instead of strerror.
15629         * modules/perror (Files): Add lib/strerror-impl.h.
15630         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15631
15632 2011-05-19  Eric Blake  <eblake@redhat.com>
15633
15634         strerror_r: fix on newer cygwin
15635         * lib/strerror_r.c (strerror_r): Cygwin now has
15636         __xpg_strerror_r, use it.
15637
15638 2011-05-19  Bruno Haible  <bruno@clisp.org>
15639
15640         strerror_r: Avoid clobbering the strerror buffer when possible.
15641         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15642         (sys_nerr, sys_errlist): New declarations.
15643         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15644         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15645         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15646
15647 2011-05-19  Bruno Haible  <bruno@clisp.org>
15648
15649         strerror_r: Fix test failure on mingw.
15650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15651         EXTEND_STRERROR_R.
15652         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15653         macros from errno.in.h instead.
15654
15655 2011-05-19  Eric Blake  <eblake@redhat.com>
15656
15657         strerror: relax test for Solaris
15658         * tests/test-strerror.c (main): Permit Solaris behavior.
15659         * tests/test-strerror_r.c (main): Likewise.
15660
15661         strerror: enforce POSIX ruling on strerror(0)
15662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15664         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15665         * doc/posix-functions/strerror.texi (strerror): Document it.
15666         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15667         * tests/test-strerror.c (main): Strengthen test.
15668         * tests/test-strerror_r.c (main): Likewise.
15669
15670 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15671
15672         intprop-tests: port to older and more-pedantic compilers
15673         * modules/intprops-tests (Files): Add tests/macros.h.
15674         * tests/test-intprops.c: Include macros.h.
15675         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15676         it's no longer documented to expand to an integer constant expression.
15677         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15678         argument is floating point, as it's no longer documented to expand
15679         to an integer constant expression in that case.
15680         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15681         compiler bugs reported by Bruno Haible.  See
15682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15683         (U0, U1): New constants, to work around the same bugs.  Also,
15684         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15685
15686         intprops: work around C compiler bugs
15687         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15688         bug in Sun C 5.11 2010/08/13 and other compilers; see
15689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15690
15691         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15692         * doc/intprops.texi (Integer Type Determination): Fix
15693         documentation for TYPE_IS_INTEGER: it returns an constant
15694         expression, not an integer constant expression.  Fix doc for
15695         TYPE_SIGNED: it returns an integer constant expression only if its
15696         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15697         hardly worth documented that way....)
15698
15699 2011-05-18  Bruno Haible  <bruno@clisp.org>
15700
15701         strerror_r: Avoid clobbering the strerror buffer when possible.
15702         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15703         Handle gnulib defined errno values here. When strerror() returns NULL
15704         or an empty string, return EINVAL.
15705         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15706         gnulib defined errno values here.
15707         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15708
15709 2011-05-18  Eric Blake  <eblake@redhat.com>
15710
15711         fnmatch: avoid compiler warning
15712         * lib/fnmatch_loop.c (FCT): Use correct type.
15713         Reported by Matthias Bolte.
15714
15715 2011-05-13  Jim Meyering  <meyering@redhat.com>
15716
15717         maint.mk: three new prohibit_<HDR>_without_use rules
15718         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15719         (sc_prohibit_stdio-safer_without_use): Likewise.
15720         (sc_prohibit_xfreopen_without_use): Likewise.
15721
15722 2011-05-17  Jim Meyering  <meyering@redhat.com>
15723
15724         announce-gen: fail if the NEWS delta is empty
15725         If there's nothing noteworthy in NEWS, then either you forgot
15726         or you shouldn't be releasing.
15727         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15728
15729 2011-05-17  Pádraig Brady <P@draigBrady.com>
15730
15731         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15732         reserved symbols starting with double underscore from the check.
15733
15734 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15735
15736         intprops: add doc
15737         * doc/intprops.texi: New file, documenting intprops.
15738         * doc/gnulib.texi (Particular Modules): Include it.
15739
15740         verify: add doc to gnulib manual and fix example
15741         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15742         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15743         (Compile-time Assertions): Fix example so it can't overflow.
15744
15745 2011-05-17  Jim Meyering  <meyering@redhat.com>
15746
15747         warnings.m4: don't usurp save_CPPFLAGS variable name
15748         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15749
15750         doc: fix typo
15751         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15752
15753 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15754             Bruno Haible  <bruno@clisp.org>
15755
15756         doc: Tweak recent change.
15757         * README (Portability guidelines): Tweak new text.
15758         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15759         Interix 6.1.
15760
15761 2011-05-16  Eric Blake  <eblake@redhat.com>
15762
15763         inttypes: avoid autoconf warning
15764         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15765         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15766
15767 2011-05-16  Sam Steingold <sds@gnu.org>
15768         and Eric Blake  <eblake@redhat.com>
15769
15770         vc-list-files: accept multiple directory operands
15771         * build-aux/vc-list-files: Iterate over all remaining operands.
15772
15773 2011-05-16  Bruno Haible  <bruno@clisp.org>
15774
15775         Fix confusion regarding deprecated modules.
15776         * modules/calloc (Status, Notice): Mark module as deprecated, not
15777         obsolete.
15778         * modules/fnmatch-posix (Status, Notice): Likewise.
15779         * modules/getdate (Status, Notice): Likewise.
15780         * modules/getopt (Status, Notice): Likewise.
15781         * modules/malloc (Status, Notice): Likewise.
15782         * modules/pipe (Status, Notice): Likewise.
15783         * modules/realloc (Status, Notice): Likewise.
15784         * modules/rename-dest-slash (Status, Notice): Likewise.
15785         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15786         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15787         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15788         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15789         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15790
15791 2011-05-16  Bruno Haible  <bruno@clisp.org>
15792
15793         doc: List the target platforms.
15794         * doc/gnulib-intro.texi (Target Platforms): New section.
15795         * doc/gnulib.texi (Introduction): Update menu.
15796         * README (Portability guidelines): Refer to the new section. Update
15797         statement about oldest supported environment. Remove rationale why
15798         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15799         unportable C89 function.
15800         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15801         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15802
15803 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15804
15805         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15806
15807 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15808
15809         intprops-tests: new module
15810         * modules/intprops-tests, tests/test-intprops.c: New files.
15811
15812         intprops: add safe, portable integer overflow checking
15813         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15814         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15815         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15816         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15817         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15818         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15819         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15820         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15821         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15822         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15823         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15824
15825 2011-05-12  James Youngman  <jay@gnu.org>
15826
15827         Add a test for glibc's Bugzilla bug #12378.
15828         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15829         doesn't allow the literal matching of a lone "[" (which is
15830         required by POSIX).
15831         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15832
15833 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15834
15835         Sync glibc change fixing Bugzilla bug #12378.
15836         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15837         beginning and fall back to matching as normal character if the
15838         string ends before the matching ']' is found.  This is what POSIX
15839         requires.
15840
15841 2011-05-13  Eric Blake  <eblake@redhat.com>
15842
15843         getcwd-lgpl: relax test for FreeBSD
15844         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15845         issue.
15846         * tests/test-getcwd-lgpl.c (main): Relax test.
15847         Reported by Matthias Bolte.
15848
15849 2011-05-11  Eric Blake  <eblake@redhat.com>
15850
15851         test-fflush: silence compiler warning
15852         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15853
15854 2011-05-11  Bruno Haible  <bruno@clisp.org>
15855
15856         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15857         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15858         * modules/canonicalize (Depends-on): Add 'nocrash'.
15859         * modules/canonicalize-lgpl (Depends-on): Likewise.
15860         * doc/posix-functions/realpath.texi: Update platforms list.
15861         Reported by Ryan Schmidt <ryandesign@macports.org>.
15862
15863 2011-05-11  Bruno Haible  <bruno@clisp.org>
15864
15865         group-member: Declare function in <unistd.h>.
15866         * lib/unistd.in.h (group_member): New declaration.
15867         * lib/group-member.h: Remove file.
15868         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15869         * tests/test-unistd-c++.cc: Check signature of group_member.
15870         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15871         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15872         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15873         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15874         HAVE_GROUP_MEMBER.
15875         * modules/group-member (Files): Remove lib/group-member.h.
15876         (Depends-on): Add unistd. Specify conditions.
15877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15878         (Include): Change to <unistd.h>.
15879         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15880         HAVE_GROUP_MEMBER.
15881         * NEWS: Mention the change.
15882         * lib/euidaccess.c: Don't include group-member.h.
15883
15884 2011-05-11  Bruno Haible  <bruno@clisp.org>
15885
15886         group-member: Document module.
15887         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15888         module.
15889
15890 2011-05-11  Bruno Haible  <bruno@clisp.org>
15891
15892         fclose: Fix mistake earlier today.
15893         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15894
15895 2011-05-11  Eric Blake  <eblake@redhat.com>
15896
15897         fclose: preserve fflush errors
15898         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15899         Reported by Jim Meyering.
15900
15901         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15902         * build-aux/bootstrap (check_versions): When no specific version
15903         is required, merely check that the app produces an exit status
15904         that indicates its existence.
15905
15906         maint.mk: drop redundant check
15907         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15908         the same but better.
15909
15910 2011-05-11  Bruno Haible  <bruno@clisp.org>
15911
15912         fclose: Fix possible link error.
15913         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15914         unregister_shadow_fd. Improve comments.
15915         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15916         Eric Blake.
15917
15918 2011-05-11  Jim Meyering  <meyering@redhat.com>
15919
15920         maint.mk: improve "can not" detection and generalize rule name
15921         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15922         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15923         Use the same technique as in sc_prohibit_doubled_word, so that
15924         we recognize "can not" also when the words are separated by a newline.
15925         Suggested by Eric Blake.
15926         (perl_filename_lineno_text_): Define.  Factored out of...
15927         (prohibit_doubled_word_): ...here.  Use the new definition.
15928         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15929         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15930         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15931
15932 2011-05-10  Eric Blake  <eblake@redhat.com>
15933
15934         fclose: avoid double close race when possible
15935         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15936         all but WINDOWS_SOCKETS.
15937
15938 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15939
15940         openat: correct new comment
15941         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15942
15943 2011-05-10  Jim Meyering  <meyering@redhat.com>
15944
15945         openat: add comments
15946         * lib/openat-proc.c (openat_proc_name): Add comments,
15947         mostly from Eric Blake.
15948
15949 2011-05-09  Eric Blake  <eblake@redhat.com>
15950
15951         openat: reduce syscalls in first probe of /proc
15952         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15953         be a directory.  Simplify the probe for .. bugs.
15954         * modules/openat (Depends-on): Drop same-inode.
15955         Reported by Bastien ROUCARIES.
15956
15957 2011-05-09  Jim Meyering  <meyering@redhat.com>
15958
15959         maint.mk: change semantics/name of tight_scope variables
15960         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15961         Rename variables to align with semantics that make them more useful.
15962
15963         maint.mk: tweak new rule's name not to impinge
15964         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15965         (sc_tight_scope): Use new rule name rather than $@-0.
15966
15967         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15968         * top/maint.mk (sc_tight_scope): New rule.
15969         (sc_tight_scope-0): New rule, ifdef'd out.
15970         (_gl_TS_dir): Default.
15971         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15972         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15973
15974 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15975
15976         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15977         Haible <bruno@clisp.org>.
15978
15979 2011-05-08  Bruno Haible  <bruno@clisp.org>
15980
15981         Comments.
15982         * m4/isnanf.m4: Add comment.
15983         * m4/isnanl.m4: Likewise.
15984
15985 2011-05-08  Bruno Haible  <bruno@clisp.org>
15986
15987         glob: Remove obsolete macro.
15988         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15989
15990 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15991
15992         intprops: Sun C 5.11 supports __typeof__
15993         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15994         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15995         which is new.
15996         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15997
15998         intprops: switch to usual gnulib indenting and naming
15999         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16000         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16001
16002         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16003
16004 2011-05-08  Jim Meyering  <meyering@redhat.com>
16005
16006         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16007         * top/maint.mk (release-prep): Use make's --no-print-directory
16008         option when generating the announcement.  This eliminates the
16009         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16010         generated announcement template.
16011
16012 2011-05-08  Bruno Haible  <bruno@clisp.org>
16013
16014         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16015         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16016         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16017
16018 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16019
16020         ignore-value, verify: Omit include files from lib_SOURCES.
16021         * modules/ignore-value, modules/verify (Makefile.am):
16022         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16023         that leads Automake to duplicate use of am__objects_... variables
16024         in Makefile.in.  See
16025         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16026
16027 2011-05-07  Bruno Haible  <bruno@clisp.org>
16028
16029         fclose: Simplify autoconf macro.
16030         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16031         defined.
16032
16033 2011-05-07  Bruno Haible  <bruno@clisp.org>
16034
16035         canonicalize-lgpl: Fix autoconf macro ordering bug.
16036         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16037         gl_STDLIB_H_DEFAULTS.
16038
16039 2011-05-06  Eric Blake  <eblake@redhat.com>
16040
16041         maintainer-makefile: make sc_po_check easier to tune
16042         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16043         to probe for strings, such as an alternate location for gnulib.
16044
16045         fclose: guarantee behavior on seekable stdin
16046         * modules/fclose (Depends-on): Add fflush.
16047         * doc/posix-functions/fclose.texi (fclose): Document this.
16048         * tests/test-fclose.c (main): Make test for this unconditional.
16049
16050 2011-05-06  Bruno Haible  <bruno@clisp.org>
16051
16052         fflush, fpurge: Relicense under LGPLv2+.
16053         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16054         * modules/fpurge (License): Likewise.
16055         With permission from Eric Blake and Jim Meyering.
16056         Suggested by Eric Blake.
16057
16058 2011-05-06  Karl Berry  <karl@gnu.org>
16059
16060         * MODULES.html.sh (func_all_modules): remove exit.
16061
16062 2011-05-06  Jim Meyering  <meyering@redhat.com>
16063
16064         maint.mk: use info-gnu@ as the default only for a stable release
16065         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16066         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16067         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16068         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16069
16070 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16071
16072         assert-h: new module, which supports C1X-style static_assert
16073         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16074         * lib/verify.h: Revamp so that this can be copied into assert.h,
16075         while retaining the ability to use it standalone as before.
16076         Rename private identifiers so as not to encroach on the
16077         standard C namespace, since this is now used by assert.h.
16078         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16079         the old verify_true.
16080         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16081         the old verify_true.  Use _GL_VERIFY_TYPE.
16082         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16083         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16084         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16085         defined when this file is copied into the replacement assert.h.
16086         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16087         and _Static_assert is not built in.
16088         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16089         defined, and use the new macros mentioned above.
16090         * doc/posix-headers/assert.texi: Document this.
16091
16092 2011-05-05  Bruno Haible  <bruno@clisp.org>
16093
16094         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16095         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16096         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16097         gl_REPLACE_FCLOSE here.
16098         * modules/fflush (Depends-on): Remove fclose.
16099         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16100         combination with module 'fclose'.
16101
16102 2011-05-05  Bruno Haible  <bruno@clisp.org>
16103
16104         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16105         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16106         gl_FUNC_FFLUSH.
16107         (gl_FUNC_FFLUSH): Use it.
16108         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16110         gl_REPLACE_FSEEKO here.
16111
16112 2011-05-05  Bruno Haible  <bruno@clisp.org>
16113
16114         tzset: Relicense under LGPL.
16115         * modules/tzset (License): Change to LGPL.
16116         No agreement needed; it's a no-op.
16117
16118         strtoimax, strtoumax: Relicense under LGPL.
16119         * modules/strtoimax (License): Change to LGPL.
16120         * modules/strtoumax (License): Likewise.
16121         With permission from Jim Meyering, Paul Eggert:
16122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16124
16125         getgroups: Relicense under LGPL.
16126         * modules/getgroups (License): Change to LGPL.
16127         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16131
16132         nanosleep: Relicense under LGPL.
16133         * modules/nanosleep (License): Change to LGPL.
16134         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16135         Haible:
16136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16140
16141         futimens: Relicense under LGPL.
16142         * modules/futimens (License): Change to LGPL.
16143         With permission from Eric Blake:
16144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16145
16146         fflush: Relicense under LGPL.
16147         * modules/fflush (License): Change to LGPL.
16148         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16152
16153         tmpfile: Relicense under LGPL.
16154         * modules/tmpfile (License): Change to LGPL.
16155         With permission from Ben Pfaff:
16156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16157
16158         isfinite: Relicense under LGPL.
16159         * modules/isfinite (License): Change to LGPL.
16160         With permission from Ben Pfaff, Bruno Haible:
16161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16163
16164         acosl..tanl: Relicense under LGPL.
16165         * modules/acosl (License): Change to LGPL.
16166         * modules/asinl (License): Likewise.
16167         * modules/atanl (License): Likewise.
16168         * modules/cosl (License): Likewise.
16169         * modules/expl (License): Likewise.
16170         * modules/logl (License): Likewise.
16171         * modules/sinl (License): Likewise.
16172         * modules/sqrtl (License): Likewise.
16173         * modules/tanl (License): Likewise.
16174         Source code originally from glibc and Paolo Bonzini. Agreements:
16175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16177
16178 2011-05-05  Bruno Haible  <bruno@clisp.org>
16179
16180         signal: Define sighandler_t.
16181         * lib/signal.in.h (sighandler_t): New type.
16182         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16183         whether sighandler_t is defined.
16184         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16185         * modules/signal (Depends-on): Add extensions.
16186         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16187         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16188         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16189
16190 2011-05-05  Eric Blake  <eblake@redhat.com>
16191
16192         maint: remove useless REPLACE_*_H macros
16193         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16194         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16195         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16196         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16197         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16198         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16199         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16200         * m4/btowc.m4: Update callers.
16201         * m4/dirfd.m4: Likewise.
16202         * m4/duplocale.m4: Likewise.
16203         * m4/fchdir.m4: Likewise.
16204         * m4/fdopendir.m4: Likewise.
16205         * m4/inet_ntop.m4: Likewise.
16206         * m4/inet_pton.m4: Likewise.
16207         * m4/ioctl.m4: Likewise.
16208         * m4/mbrlen.m4: Likewise.
16209         * m4/mbrtowc.m4: Likewise.
16210         * m4/mbsinit.m4: Likewise.
16211         * m4/mbsnrtowcs.m4: Likewise.
16212         * m4/mbsrtowcs.m4: Likewise.
16213         * m4/poll.m4: Likewise.
16214         * m4/setlocale.m4: Likewise.
16215         * m4/wcrtomb.m4: Likewise.
16216         * m4/wcsnrtombs.m4: Likewise.
16217         * m4/wcsrtombs.m4: Likewise.
16218         * m4/wctob.m4: Likewise.
16219         * m4/wcwidth.m4: Likewise.
16220         * modules/posix_spawn: Likewise.
16221         * modules/posix_spawn_file_actions_addclose: Likewise.
16222         * modules/posix_spawn_file_actions_adddup2: Likewise.
16223         * modules/posix_spawn_file_actions_addopen: Likewise.
16224         * modules/posix_spawn_file_actions_destroy: Likewise.
16225         * modules/posix_spawn_file_actions_init: Likewise.
16226         * modules/posix_spawnattr_destroy: Likewise.
16227         * modules/posix_spawnattr_getflags: Likewise.
16228         * modules/posix_spawnattr_getpgroup: Likewise.
16229         * modules/posix_spawnattr_getschedparam: Likewise.
16230         * modules/posix_spawnattr_getschedpolicy: Likewise.
16231         * modules/posix_spawnattr_getsigdefault: Likewise.
16232         * modules/posix_spawnattr_getsigmask: Likewise.
16233         * modules/posix_spawnattr_init: Likewise.
16234         * modules/posix_spawnattr_setflags: Likewise.
16235         * modules/posix_spawnattr_setpgroup: Likewise.
16236         * modules/posix_spawnattr_setschedparam: Likewise.
16237         * modules/posix_spawnattr_setschedpolicy: Likewise.
16238         * modules/posix_spawnattr_setsigdefault: Likewise.
16239         * modules/posix_spawnattr_setsigmask: Likewise.
16240         * modules/posix_spawnp: Likewise.
16241
16242 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16243
16244         Add option to do-release-commit-and-tag to specify branch.
16245         * build-aux/do-release-commit-and-tag: Add --branch.
16246
16247 2011-05-03  Bruno Haible  <bruno@clisp.org>
16248
16249         Avoid unnecessary compilation units, through conditional dependencies.
16250         * modules/accept (Depends-on): Add conditions to the dependencies.
16251         * modules/acosl (Depends-on): Likewise.
16252         * modules/argz (Depends-on): Likewise.
16253         * modules/asinl (Depends-on): Likewise.
16254         * modules/atanl (Depends-on): Likewise.
16255         * modules/atoll (Depends-on): Likewise.
16256         * modules/bind (Depends-on): Likewise.
16257         * modules/btowc (Depends-on): Likewise.
16258         * modules/canonicalize-lgpl (Depends-on): Likewise.
16259         * modules/ceil (Depends-on): Likewise.
16260         * modules/ceilf (Depends-on): Likewise.
16261         * modules/ceill (Depends-on): Likewise.
16262         * modules/chdir-long (Depends-on): Likewise.
16263         * modules/chown (Depends-on): Likewise.
16264         * modules/close (Depends-on): Likewise.
16265         * modules/connect (Depends-on): Likewise.
16266         * modules/cosl (Depends-on): Likewise.
16267         * modules/dirfd (Depends-on): Likewise.
16268         * modules/dprintf (Depends-on): Likewise.
16269         * modules/dprintf-posix (Depends-on): Likewise.
16270         * modules/error (Depends-on): Likewise.
16271         * modules/euidaccess (Depends-on): Likewise.
16272         * modules/expl (Depends-on): Likewise.
16273         * modules/faccessat (Depends-on): Likewise.
16274         * modules/fchdir (Depends-on): Likewise.
16275         * modules/fclose (Depends-on): Likewise.
16276         * modules/fcntl (Depends-on): Likewise.
16277         * modules/fdopendir (Depends-on): Likewise.
16278         * modules/fflush (Depends-on): Likewise.
16279         * modules/floor (Depends-on): Likewise.
16280         * modules/floorf (Depends-on): Likewise.
16281         * modules/floorl (Depends-on): Likewise.
16282         * modules/fnmatch (Depends-on): Likewise.
16283         * modules/fopen (Depends-on): Likewise.
16284         * modules/fprintf-posix (Depends-on): Likewise.
16285         * modules/frexp (Depends-on): Likewise.
16286         * modules/frexp-nolibm (Depends-on): Likewise.
16287         * modules/frexpl (Depends-on): Likewise.
16288         * modules/frexpl-nolibm (Depends-on): Likewise.
16289         * modules/fseek (Depends-on): Likewise.
16290         * modules/fsusage (Depends-on): Likewise.
16291         * modules/ftell (Depends-on): Likewise.
16292         * modules/ftello (Depends-on): Likewise.
16293         * modules/futimens (Depends-on): Likewise.
16294         * modules/getcwd (Depends-on): Likewise.
16295         * modules/getcwd-lgpl (Depends-on): Likewise.
16296         * modules/getdelim (Depends-on): Likewise.
16297         * modules/getdomainname (Depends-on): Likewise.
16298         * modules/getgroups (Depends-on): Likewise.
16299         * modules/gethostname (Depends-on): Likewise.
16300         * modules/getline (Depends-on): Likewise.
16301         * modules/getlogin_r (Depends-on): Likewise.
16302         * modules/getopt-posix (Depends-on): Likewise.
16303         * modules/getpeername (Depends-on): Likewise.
16304         * modules/getsockname (Depends-on): Likewise.
16305         * modules/getsockopt (Depends-on): Likewise.
16306         * modules/getsubopt (Depends-on): Likewise.
16307         * modules/getusershell (Depends-on): Likewise.
16308         * modules/glob (Depends-on): Likewise.
16309         * modules/grantpt (Depends-on): Likewise.
16310         * modules/iconv_open (Depends-on): Likewise.
16311         * modules/iconv_open-utf (Depends-on): Likewise.
16312         * modules/inet_ntop (Depends-on): Likewise.
16313         * modules/inet_pton (Depends-on): Likewise.
16314         * modules/ioctl (Depends-on): Likewise.
16315         * modules/isapipe (Depends-on): Likewise.
16316         * modules/isfinite (Depends-on): Likewise.
16317         * modules/isinf (Depends-on): Likewise.
16318         * modules/lchown (Depends-on): Likewise.
16319         * modules/ldexpl (Depends-on): Likewise.
16320         * modules/link (Depends-on): Likewise.
16321         * modules/linkat (Depends-on): Likewise.
16322         * modules/listen (Depends-on): Likewise.
16323         * modules/logl (Depends-on): Likewise.
16324         * modules/lstat (Depends-on): Likewise.
16325         * modules/mbrlen (Depends-on): Likewise.
16326         * modules/mbrtowc (Depends-on): Likewise.
16327         * modules/mbsinit (Depends-on): Likewise.
16328         * modules/mbsnrtowcs (Depends-on): Likewise.
16329         * modules/mbsrtowcs (Depends-on): Likewise.
16330         * modules/mbtowc (Depends-on): Likewise.
16331         * modules/memcmp (Depends-on): Likewise.
16332         * modules/mkdir (Depends-on): Likewise.
16333         * modules/mkdtemp (Depends-on): Likewise.
16334         * modules/mkfifo (Depends-on): Likewise.
16335         * modules/mkfifoat (Depends-on): Likewise.
16336         * modules/mknod (Depends-on): Likewise.
16337         * modules/mkostemp (Depends-on): Likewise.
16338         * modules/mkostemps (Depends-on): Likewise.
16339         * modules/mkstemp (Depends-on): Likewise.
16340         * modules/mkstemps (Depends-on): Likewise.
16341         * modules/mktime (Depends-on): Likewise.
16342         * modules/nanosleep (Depends-on): Likewise.
16343         * modules/open (Depends-on): Likewise.
16344         * modules/openat (Depends-on): Likewise.
16345         * modules/perror (Depends-on): Likewise.
16346         * modules/poll (Depends-on): Likewise.
16347         * modules/popen (Depends-on): Likewise.
16348         * modules/posix_spawn (Depends-on): Likewise.
16349         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16350         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16351         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16352         * modules/posix_spawnp (Depends-on): Likewise.
16353         * modules/pread (Depends-on): Likewise.
16354         * modules/printf-posix (Depends-on): Likewise.
16355         * modules/ptsname (Depends-on): Likewise.
16356         * modules/putenv (Depends-on): Likewise.
16357         * modules/pwrite (Depends-on): Likewise.
16358         * modules/readline (Depends-on): Likewise.
16359         * modules/readlink (Depends-on): Likewise.
16360         * modules/readlinkat (Depends-on): Likewise.
16361         * modules/recv (Depends-on): Likewise.
16362         * modules/recvfrom (Depends-on): Likewise.
16363         * modules/regex (Depends-on): Likewise.
16364         * modules/remove (Depends-on): Likewise.
16365         * modules/rename (Depends-on): Likewise.
16366         * modules/renameat (Depends-on): Likewise.
16367         * modules/rmdir (Depends-on): Likewise.
16368         * modules/round (Depends-on): Likewise.
16369         * modules/roundf (Depends-on): Likewise.
16370         * modules/roundl (Depends-on): Likewise.
16371         * modules/rpmatch (Depends-on): Likewise.
16372         * modules/select (Depends-on): Likewise.
16373         * modules/send (Depends-on): Likewise.
16374         * modules/sendto (Depends-on): Likewise.
16375         * modules/setenv (Depends-on): Likewise.
16376         * modules/setlocale (Depends-on): Likewise.
16377         * modules/setsockopt (Depends-on): Likewise.
16378         * modules/shutdown (Depends-on): Likewise.
16379         * modules/sigaction (Depends-on): Likewise.
16380         * modules/signbit (Depends-on): Likewise.
16381         * modules/sigprocmask (Depends-on): Likewise.
16382         * modules/sinl (Depends-on): Likewise.
16383         * modules/sleep (Depends-on): Likewise.
16384         * modules/snprintf (Depends-on): Likewise.
16385         * modules/snprintf-posix (Depends-on): Likewise.
16386         * modules/socket (Depends-on): Likewise.
16387         * modules/sprintf-posix (Depends-on): Likewise.
16388         * modules/sqrtl (Depends-on): Likewise.
16389         * modules/stat (Depends-on): Likewise.
16390         * modules/strchrnul (Depends-on): Likewise.
16391         * modules/strdup-posix (Depends-on): Likewise.
16392         * modules/strerror (Depends-on): Likewise.
16393         * modules/strerror_r-posix (Depends-on): Likewise.
16394         * modules/strndup (Depends-on): Likewise.
16395         * modules/strnlen (Depends-on): Likewise.
16396         * modules/strptime (Depends-on): Likewise.
16397         * modules/strsep (Depends-on): Likewise.
16398         * modules/strsignal (Depends-on): Likewise.
16399         * modules/strstr-simple (Depends-on): Likewise.
16400         * modules/strtod (Depends-on): Likewise.
16401         * modules/strtoimax (Depends-on): Likewise.
16402         * modules/strtok_r (Depends-on): Likewise.
16403         * modules/strtoumax (Depends-on): Likewise.
16404         * modules/symlink (Depends-on): Likewise.
16405         * modules/symlinkat (Depends-on): Likewise.
16406         * modules/tanl (Depends-on): Likewise.
16407         * modules/tcgetsid (Depends-on): Likewise.
16408         * modules/tmpfile (Depends-on): Likewise.
16409         * modules/trunc (Depends-on): Likewise.
16410         * modules/truncf (Depends-on): Likewise.
16411         * modules/truncl (Depends-on): Likewise.
16412         * modules/uname (Depends-on): Likewise.
16413         * modules/unlink (Depends-on): Likewise.
16414         * modules/unlockpt (Depends-on): Likewise.
16415         * modules/unsetenv (Depends-on): Likewise.
16416         * modules/usleep (Depends-on): Likewise.
16417         * modules/utimensat (Depends-on): Likewise.
16418         * modules/vasprintf (Depends-on): Likewise.
16419         * modules/vdprintf (Depends-on): Likewise.
16420         * modules/vdprintf-posix (Depends-on): Likewise.
16421         * modules/vfprintf-posix (Depends-on): Likewise.
16422         * modules/vprintf-posix (Depends-on): Likewise.
16423         * modules/vsnprintf (Depends-on): Likewise.
16424         * modules/vsnprintf-posix (Depends-on): Likewise.
16425         * modules/vsprintf-posix (Depends-on): Likewise.
16426         * modules/wcrtomb (Depends-on): Likewise.
16427         * modules/wcscasecmp (Depends-on): Likewise.
16428         * modules/wcscspn (Depends-on): Likewise.
16429         * modules/wcsdup (Depends-on): Likewise.
16430         * modules/wcsncasecmp (Depends-on): Likewise.
16431         * modules/wcsnrtombs (Depends-on): Likewise.
16432         * modules/wcspbrk (Depends-on): Likewise.
16433         * modules/wcsrtombs (Depends-on): Likewise.
16434         * modules/wcsspn (Depends-on): Likewise.
16435         * modules/wcsstr (Depends-on): Likewise.
16436         * modules/wcstok (Depends-on): Likewise.
16437         * modules/wcswidth (Depends-on): Likewise.
16438         * modules/wctob (Depends-on): Likewise.
16439         * modules/wctomb (Depends-on): Likewise.
16440         * modules/wctype (Depends-on): Likewise.
16441         * modules/wcwidth (Depends-on): Likewise.
16442         * modules/write (Depends-on): Likewise.
16443
16444 2011-05-03  Bruno Haible  <bruno@clisp.org>
16445
16446         Support for conditional dependencies.
16447         * doc/gnulib.texi (Module description): Document the syntax of
16448         conditional dependencies.
16449         * gnulib-tool: New option --conditional-dependencies.
16450         (func_usage): Document it.
16451         (cond_dependencies): New variable.
16452         (func_get_automake_snippet_conditional,
16453         func_get_automake_snippet_unconditional): New functions, extracted from
16454         func_get_automake_snippet.
16455         (func_get_automake_snippet): Use them.
16456         (sed_first_32_chars): New variable.
16457         (func_module_shellfunc_name): New function.
16458         (func_module_shellvar_name): New function.
16459         (func_module_conditional_name): New function.
16460         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16461         func_cond_module_condition): New functions.
16462         (func_modules_transitive_closure): Add support for conditional
16463         dependencies.
16464         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16465         conditional automake snippet in an automake conditional.
16466         (func_emit_autoconf_snippets): Emit shell functions that contain the
16467         code for conditional modules.
16468         (func_import, func_create_testdir): Update specification.
16469
16470 2011-05-03  Eric Blake  <eblake@redhat.com>
16471
16472         test-getaddrinfo: report error information
16473         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16474
16475 2011-05-03  Jim Meyering  <meyering@redhat.com>
16476
16477         bootstrap: avoid build failure when $GZIP is set
16478         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16479         program name.  If defined at all, it is supposed to list gzip options.
16480         Reported by Alan Curry in http://debbugs.gnu.org/8609
16481
16482 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16483
16484         readme-release: new module with release instructions
16485         * modules/readme-release: New module.
16486         * top/README-release: New file, from coreutils, grep, diffutils.
16487         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16488
16489 2011-05-02  Eric Blake  <eblake@redhat.com>
16490
16491         fflush: also replace fclose when fixing fflush
16492         * modules/fflush (Depends-on): Add fclose.
16493         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16494         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16495         memstreams with no backing fd.
16496         * doc/posix-functions/fclose.texi (fclose): Document the use of
16497         fflush module to fix the bug.
16498         * tests/test-fclose.c (main): Relax test when fclose is used in
16499         isolation.
16500
16501         fclose: add some tests
16502         * modules/fclose-tests: New test module.
16503         * tests/test-fclose.c: New file.
16504         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16505
16506         fclose: reduced dependencies
16507         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16508         simpler lseek.
16509         * lib/fclose.c (rpl_fclose): Likewise.
16510         Reported by Simon Josefsson.
16511
16512         exit: drop remaining clients
16513         * modules/argmatch (Depends-on): Replace exit with stdlib.
16514         * modules/copy-file (Depends-on): Likewise.
16515         * modules/execute (Depends-on): Likewise.
16516         * modules/exitfail (Depends-on): Likewise.
16517         * modules/obstack (Depends-on): Likewise.
16518         * modules/pagealign_alloc (Depends-on): Likewise.
16519         * modules/pipe-filter-gi (Depends-on): Likewise.
16520         * modules/pipe-filter-ii (Depends-on): Likewise.
16521         * modules/savewd (Depends-on): Likewise.
16522         * modules/spawn-pipe (Depends-on): Likewise.
16523         * modules/wait-process (Depends-on): Likewise.
16524         * modules/xsetenv (Depends-on): Likewise.
16525         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16526         * modules/git-merge-changelog (Depends-on): Likewise.
16527         * modules/long-options (Depends-on): Likewise.
16528         * modules/pt_chown (Depends-on): Likewise.
16529         * modules/sysexits (Depends-on): Likewise.
16530
16531         freading: relax license from LGPLv3+ to LGPLv2+
16532         * modules/freading (License): Relax LGPL version.
16533
16534 2011-05-02  Bruno Haible  <bruno@clisp.org>
16535
16536         fchdir: Remove unused dependencies.
16537         * modules/fchdir (Depends-on): Remove include_next.
16538
16539 2011-05-02  Bruno Haible  <bruno@clisp.org>
16540
16541         gnulib-tool: Refactor.
16542         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16543         from func_emit_autoconf_snippets.
16544         (func_emit_autoconf_snippets): Use it.
16545
16546 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16547
16548         * NEWS: Document removal of 'exit'.
16549         * modules/exit: Remove file.
16550
16551 2011-05-01  Bruno Haible  <bruno@clisp.org>
16552
16553         Update DEPENDENCIES.
16554         * DEPENDENCIES (gettext): Recommend the newest release.
16555         Reported by Simon Josefsson.
16556
16557 2011-05-01  Bruno Haible  <bruno@clisp.org>
16558
16559         gnulib-tool: Reduce code duplication.
16560         * gnulib-tool (func_emit_autoconf_snippets): New function.
16561         (func_import, func_create_testdir): Use it.
16562
16563 2011-04-30  Eric Blake  <eblake@redhat.com>
16564
16565         fclose: don't fail on non-seekable input stream
16566         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16567         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16568         since fflush is allowed to fail in that case.
16569
16570 2011-04-30  Bruno Haible  <bruno@clisp.org>
16571
16572         dup3: cleanup
16573         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16574
16575 2011-04-30  Bruno Haible  <bruno@clisp.org>
16576
16577         netdb: Make it work in C++ mode.
16578         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16579         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16580         module.
16581         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16582         gl_MODULE_INDICATOR_FOR_TESTS.
16583         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16584         * modules/netdb-c++-tests: New file.
16585         * tests/test-netdb-c++.cc: New file.
16586
16587 2011-04-30  Bruno Haible  <bruno@clisp.org>
16588
16589         New modules 'vfscanf', 'vscanf'.
16590         * modules/vfscanf: New file.
16591         * modules/vscanf: New file.
16592         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16593         here.
16594         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16595         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16596
16597 2011-04-30  Bruno Haible  <bruno@clisp.org>
16598
16599         passfd: Add comments.
16600         * lib/passfd.c: Add comments about platforms.
16601
16602 2011-04-30  Bruno Haible  <bruno@clisp.org>
16603
16604         sys_uio: Make <sys/uio.h> self-contained.
16605         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16606         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16607
16608 2011-04-30  Bruno Haible  <bruno@clisp.org>
16609
16610         sys_socket: Ensure 'struct iovec' definition.
16611         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16612         <sys/socket.h>.
16613         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16614
16615 2011-04-30  Bruno Haible  <bruno@clisp.org>
16616
16617         sys_uio: Protect definition of 'struct iovec'.
16618         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16619         it as a C struct.
16620
16621 2011-04-30  Bruno Haible  <bruno@clisp.org>
16622
16623         manywarnings: fix indentation
16624         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16625
16626 2011-04-30  Pádraig Brady <P@draigBrady.com>
16627
16628         manywarnings: add -Wno-missing-field-initializers if needed.
16629         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16630         option if it's needed to allow initialization with { 0, }
16631
16632 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16633
16634         announce-gen: cosmetic improvement
16635         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16636
16637 2011-04-29  Jim Meyering  <meyering@redhat.com>
16638
16639         vc-list-files: indent with spaces, not TABs
16640         * build-aux/vc-list-files: Convert leading TABs to spaces,
16641         to match the style of most other files in gnulib.
16642
16643         announce-gen: indent with spaces, not TABs
16644         * build-aux/announce-gen: Convert all TABs to spaces, to match
16645         the style of most other files in gnulib.
16646
16647 2011-04-29  Eric Blake  <eblake@redhat.com>
16648
16649         quotearg: avoid uninitialized variable use
16650         * lib/quotearg.c (quoting_options_from_style): Initialize
16651         remaining fields, and ensure that custom styles are only used via
16652         quoting_options rather than quoting_style.
16653
16654 2011-04-29  Jim Meyering  <meyering@redhat.com>
16655
16656         maint.mk: remove unused VC-tag variable
16657         * top/maint.mk (VC-tag): Remove unused variable.
16658
16659 2011-04-29  Bruno Haible  <bruno@clisp.org>
16660
16661         netdb: fix gai_strerror replacements
16662         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16663         * modules/netdb: Substitute it.
16664
16665 2011-04-29  Jim Meyering  <meyering@redhat.com>
16666
16667         test-getcwd.c: avoid new set-but-not-used warning
16668         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16669         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16670         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16671         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16672
16673         test-hash.c: avoid a new shadowing warning
16674         * tests/test-hash.c (main): Don't shadow "dup".
16675
16676 2011-04-28  Eric Blake  <eblake@redhat.com>
16677
16678         getaddrinfo: fix gai_strerror signature
16679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16680         and work around mingw with UNICODE defined.
16681         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16682         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16683         * modules/netdb (Makefile.am): Substitute it.
16684         * lib/netdb.in.h (gai_strerror): Declare replacement.
16685         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16686         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16687         the fix.
16688
16689         getsockopt: avoid compiler warning
16690         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16691         Reported by Matthias Bolte.
16692
16693         tests: drop unused link dependency
16694         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16695         * modules/dirent-safer-tests (Makefile.am): Likewise.
16696         * modules/fdopendir-tests (Makefile.am): Likewise.
16697         * modules/mkfifoat-tests (Makefile.am): Likewise.
16698         * modules/openat-safer-tests (Makefile.am): Likewise.
16699         * modules/openat-tests (Makefile.am): Likewise.
16700         * modules/readlinkat-tests (Makefile.am): Likewise.
16701         * modules/symlinkat-tests (Makefile.am): Likewise.
16702         * modules/linkat-tests (Makefile.am): Likewise.
16703         (Depends-on): Switch to filenamecat-lgpl.
16704         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16705         LIBINTL.
16706         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16707         * tests/test-linkat.c (main): Don't require xalloc.
16708
16709         hash, mgetgroups: drop xalloc dependency
16710         * lib/hash.c (includes): Adjust includes.
16711         * lib/mgetgroups.c (includes): Likewise.
16712         (xgetgroups): Move...
16713         * lib/xgetgroups.c: ...to new file.
16714         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16715         * modules/xgetgroups: New file, split from...
16716         * modules/mgetgroups: ...here.
16717         (Depends-on): Add xalloc-oversized.
16718         * modules/hash (Depends-on): Likewise.
16719         * modules/hash-tests (Depends-on): Drop xalloc.
16720         (test_hash_LDADD): Drop unused library.
16721         * tests/test-hash.c (main): Break xalloc dependency.
16722         (includes): Drop unused include.
16723
16724         xalloc-oversized: new module
16725         * modules/xalloc-oversized: New module.
16726         * modules/xalloc (Depends-on): Add it.
16727         * lib/xalloc.h (xalloc_oversized): Move...
16728         * lib/xalloc-oversized.h: ...into new file.
16729
16730         utimecmp: drop dependency on xmalloc
16731         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16732         due to memory pressure.
16733         * modules/utimecmp (Depends-on): Drop xalloc.
16734
16735 2011-04-27  Eric Blake  <eblake@redhat.com>
16736
16737         getcwd: fix mingw bugs
16738         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16739         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16740         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16741
16742 2011-04-27  Bruno Haible  <bruno@clisp.org>
16743
16744         mkstemps: Ensure declaration on MacOS X 10.5.
16745         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16746         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16747         MacOS X.
16748
16749 2011-04-27  Bruno Haible  <bruno@clisp.org>
16750
16751         mkstemp: More documentation.
16752         * doc/posix-functions/mkstemp.texi: Document header file problem on
16753         MacOS X.
16754
16755 2011-04-27  Bruno Haible  <bruno@clisp.org>
16756
16757         mkstemp: Tweak configure message when cross-compiling.
16758         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16759         result as a guess.
16760
16761 2011-04-27  Bruno Haible  <bruno@clisp.org>
16762
16763         clean-temp: Clarify what it does.
16764         * lib/clean-temp.h: Add more comments.
16765         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16766         module.
16767         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16768         * doc/glibc-functions/mkstemps.texi: Likewise.
16769         * doc/glibc-functions/mkostemps.texi: Likewise.
16770
16771 2011-04-27  Eric Blake  <eblake@redhat.com>
16772
16773         fchdir: avoid extra chdir and fix test
16774         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16775         getcwd-lgpl.
16776         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16777         have to be canonical.
16778         (canonicalize_file_name): Drop unused macro.
16779         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16780
16781         filenamecat-lgpl: fix licence
16782         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16783         when it was first created.
16784
16785         linkat, renameat: add missing dependency
16786         * modules/linkat (Depends-on): Require getcwd-lgpl.
16787         * modules/renameat (Depends-on): Likewise.
16788
16789         tests: reduce dependencies
16790         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16791         * tests/test-renameat.c (main): Likewise.
16792         * modules/linkat-tests (Depends-on): Relax dependency.
16793         * modules/renameat-tests (Depends-on): Likewise.
16794         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16795         dependency explicit.
16796
16797         save-cwd: reduce default dependency
16798         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16799         * lib/save-cwd.c: Update comments.
16800         * NEWS: Document the semantic change.
16801
16802         getcwd: enhance tests
16803         * tests/test-getcwd-lgpl.c: New file, taken from...
16804         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16805         repeat long path stress tests from m4 probe.
16806         * modules/getcwd-lgpl-tests: New module.
16807         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16808         * m4/getcwd-abort-bug.m4: Update comment.
16809         * m4/getcwd-path-max.m4: Likewise.
16810
16811         getcwd-lgpl: new module
16812         * modules/getcwd-lgpl: New module.
16813         * lib/getcwd-lgpl.c: New file.
16814         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16815         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16816         * modules/getcwd (configure.ac): Set C witness.
16817         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16818
16819         getcwd: tweak comments
16820         * m4/getcwd-abort-bug.m4: Fix comments.
16821         * m4/getcwd-path-max.m4: Likewise.
16822         * m4/getcwd.m4: Likewise.
16823
16824 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16825         and Eric Blake  <eblake@redhat.com>
16826
16827         mkstemp: replace if system version uses wrong permissions
16828         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16829         read/write mode bits set in file created by mkstemp.
16830         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16831
16832 2011-04-27  Eric Blake  <eblake@redhat.com>
16833
16834         passfd: avoid compiler warning
16835         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16836         Reported by Laine Stump.
16837
16838 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16839
16840         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16841         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16842
16843 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16844         and Eric Blake  <eblake@redhat.com>
16845
16846         mkstemp: mention clean-temp module
16847         * lib/mkstemp.c: Add comment.
16848         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16849
16850 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16851
16852         inttypes: also provide default values for 32-bit tests
16853         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16854         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16855
16856 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16857
16858         strtoumax: remove dependency on strtoimax
16859         This is like the strtoull change of yesterday.
16860         * modules/strtoumax (Files): Add lib/strtoimax.c.
16861         (Depends-on): Remove strtoimax and add verify.
16862
16863         inttypes-incomplete: new module
16864         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16865         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16866         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16867         of gl_INTTYPES_H.
16868         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16869         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16870         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16871         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16872         * modules/strtoumax, modules/xstrtol (Depends-on):
16873         Depend on inttypes-incomplete, not inttypes.
16874         * modules/inttypes-incomplete: New module, containing the contents
16875         of the old modules/inttypes module, except that the Files: section
16876         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16877         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16878         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16879         (Depends-on): Depend only on inttypes-incomplete.
16880         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16881
16882         inttypes: omit now-redundant strtoimax and strtoumax work
16883         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16884         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16885
16886         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16887         This supports apps that need pointers to strtoimax and strtoumax,
16888         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16889         nonexistent functions.  See
16890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16891         et seq.
16892         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16893         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16894         a macro.
16895         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16896
16897 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16898
16899         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16900
16901 2011-04-25  Bruno Haible  <bruno@clisp.org>
16902
16903         strtol, strtoul: Mark modules as obsolete.
16904         * modules/strtol (Status, Notice): New sections.
16905         * modules/strtoul (Status, Notice): New sections.
16906
16907 2011-04-25  Bruno Haible  <bruno@clisp.org>
16908
16909         strtod: Remove check for strtod, unless supporting old platforms.
16910         * modules/strtod-obsolete: New file.
16911         * m4/strtod-obsolete.m4: New file.
16912         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16913         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16914         * modules/strtod (Depends-on): Add strtod-obsolete.
16915         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16916
16917 2011-04-25  Bruno Haible  <bruno@clisp.org>
16918
16919         strcase: Make module obsolete.
16920         * modules/strcase (Status, Notice): New sections.
16921
16922 2011-04-25  Bruno Haible  <bruno@clisp.org>
16923
16924         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16925         * modules/dup2-obsolete: New file.
16926         * m4/dup2-obsolete.m4: New file.
16927         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16928         gl_FUNC_DUP2_OBSOLETE is not also defined.
16929         * modules/dup2 (Depends-on): Add dup2-obsolete.
16930         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16931
16932 2011-04-25  Bruno Haible  <bruno@clisp.org>
16933
16934         strnlen: Avoid memchr related link error on old obsolete platforms.
16935         * modules/memchr-obsolete: New file.
16936         * m4/memchr-obsolete.m4: New file.
16937         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16938         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16939         * modules/memchr (Depends-on): Add memchr-obsolete.
16940         * modules/strnlen (Depends-on): Likewise.
16941         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16942
16943 2011-04-25  Jim Meyering  <meyering@redhat.com>
16944
16945         maint.mk: makefile_at_at_check extend and clean up
16946         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16947         in addition to */Makefile.am.
16948         Exempt legitimate uses of @VAR@ notation, e.g.,
16949         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16950         Remove obsolete coreutils-specific comment.
16951         Prompted by discussion here:
16952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16953
16954 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16955
16956         strtoul: remove dependency on strtol
16957         This is so that 'configure' need not check for strtol merely because
16958         the application needs strtoul.
16959         * modules/strtoul (Files): Add lib/strtol.c.
16960         (Depends-on): Remove strtol.
16961
16962         strtoull: remove dependency on strtoul
16963         This is like the strtoll change.
16964         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16965         (Depends-on): Remove strtoul.
16966
16967         strtoll: remove dependency on strtol
16968         This is so that 'configure' need not check for strtol merely because
16969         the application needs strtoll.
16970         * modules/strtoll (Files): Add lib/strtol.c.
16971         (Depends-on): Remove strtol.
16972
16973 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16974
16975         inttypes: Move some configure check to module 'imaxdiv'.
16976         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16977         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16978         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16979
16980 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16981
16982         inttypes: Move some configure check to module 'imaxabs'.
16983         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16984         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16985         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16986
16987 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16988
16989         inttypes: Remove configure tests that are not needed since 2009-12-31.
16990         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16991         gl_cv_header_working_inttypes_h.
16992
16993 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16994
16995         * modules/strnlen (Depends-on): Remove memchr.
16996         The strnlen implementation doesn't need the memchr module's fixes; see
16997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16998
16999         strtol: remove dependency on wchar
17000         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17001         * modules/strtol (Depends-on): Remove wchar.
17002
17003 2011-04-21  Eric Blake  <eblake@redhat.com>
17004
17005         passfd: fix test regression on Linux
17006         * modules/passfd-tests (configure.ac): Correct socketpair check.
17007
17008         passfd: speed up configure and drop unused code
17009         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17010         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17011         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17012         Instead of probing at configure for unix_scm_rights_bsd44_way,
17013         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17014         check to a struct member probe.
17015         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17016         (sendfd, recvfd): Update preprocessor checks.
17017         * modules/passfd (Files): Reflect rename, and drop unused file.
17018         (Depends-on): Drop unused dependency.
17019
17020         passfd: allow compilation on mingw
17021         * modules/sys_socket (Depends-on): Add sys_uio.
17022         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17023         iovec and a minimal struct msghdr.
17024         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17025         * tests/test-sys_socket.c (main): Enhance test.
17026         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17027         guaranteed to provide what we need.
17028         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17029         * modules/passfd-tests (Depends-on): Add sys_wait.
17030         * tests/test-passfd.c (main): Skip test on mingw, for now.
17031         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17032         partial 'struct msghdr' implementation.
17033
17034         sys_uio: new module
17035         * modules/sys_uio: New module.
17036         * modules/sys_uio-tests: Likewise.
17037         * lib/sys_uio.in.h: New file.
17038         * m4/sys_uio_h.m4: Likewise.
17039         * tests/test-sys_uio.c: Likewise.
17040         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17041         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17042
17043 2011-04-20  Jim Meyering  <meyering@redhat.com>
17044
17045         useless-if-before-free: avoid false-positive
17046         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17047         disjunct so that it too requires a terminating ";".  Without that,
17048         this script would identify as useless one statement from gcc that
17049         was not:
17050           if (aligned_ptr)
17051             free (((void **) aligned_ptr) [-1]);
17052
17053 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17054
17055         doc: update users.txt.
17056         * users.txt: Add barcode.
17057
17058 2011-04-19  Bruno Haible  <bruno@clisp.org>
17059
17060         ioctl: Remove link dependency on native Windows.
17061         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17062         (gl_close_fn, gl_ioctl_fn): New types.
17063         (struct fd_hook): Renamed from struct close_hook. Change type of
17064         private_close_fn field. Add private_ioctl_fn field.
17065         (close_hook_fn): Add parameter for primary close method.
17066         (execute_close_hooks, execute_all_close_hooks): Likewise.
17067         (ioctl_hook_fn): New type.
17068         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17069         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17070         argument.
17071         (unregister_fd_hook): Renamed from unregister_close_hook.
17072         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17073         Don't include <unistd.h>.
17074         (close): Remove undef.
17075         (anchor): Update.
17076         (execute_close_hooks): Add argument for primary close method.
17077         (execute_all_close_hooks): Likewise.
17078         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17079         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17080         argument. Allow each argument to be NULL.
17081         (unregister_fd_hook): Renamed from unregister_close_hook.
17082         * lib/close.c (rpl_close): Pass 'close' function pointer to
17083         execute_all_close_hooks.
17084         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17085         (primary_ioctl): New function.
17086         (ioctl): Don't call ioctlsocket here. Instead, call
17087         execute_all_ioctl_hooks.
17088         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17089         close method.
17090         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17091         (fd_sockets_hook): Renamed from close_sockets_hook.
17092         (gl_sockets_startup, gl_sockets_cleanup): Update.
17093         * modules/fd-hook: Renamed from modules/close-hook. Update.
17094         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17095         * modules/sockets (Depends-on): Likewise.
17096         * modules/ioctl (Depends-on): Add fd-hook.
17097         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17098         GNULIB_SOCKET.
17099
17100 2011-04-19  Bruno Haible  <bruno@clisp.org>
17101
17102         Move the support of O_NONBLOCK in open() to the 'open' module.
17103         * modules/nonblocking (Depends-on): Remove 'open'.
17104         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17105         gl_cv_have_open_O_NONBLOCK.
17106         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17107         O_NONBLOCK support.
17108         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17109
17110 2011-04-17  Bruno Haible  <bruno@clisp.org>
17111
17112         pipe2: Simplify code.
17113         * lib/pipe2.c (pipe2): Reduce code duplication.
17114
17115 2011-04-17  Bruno Haible  <bruno@clisp.org>
17116
17117         nonblocking: Add comment.
17118         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17119
17120 2011-04-17  Bruno Haible  <bruno@clisp.org>
17121
17122         nonblocking: Add tests for sockets.
17123         * tests/test-nonblocking-socket.sh: New file.
17124         * tests/test-nonblocking-socket-main.c: New file.
17125         * tests/test-nonblocking-socket-child.c: New file.
17126         * tests/test-nonblocking-socket.h: New file.
17127         * tests/socket-server.h: New file.
17128         * tests/socket-client.h: New file.
17129         * modules/nonblocking-socket-tests: New file.
17130         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17131
17132 2011-04-17  Bruno Haible  <bruno@clisp.org>
17133
17134         nonblocking: Add tests for pipes.
17135         * tests/test-nonblocking-pipe.sh: New file.
17136         * tests/test-nonblocking-pipe-main.c: New file.
17137         * tests/test-nonblocking-pipe-child.c: New file.
17138         * tests/test-nonblocking-pipe.h: New file.
17139         * tests/test-nonblocking-writer.h: New file.
17140         * tests/test-nonblocking-reader.h: New file.
17141         * tests/test-nonblocking-misc.h: New file.
17142         * modules/nonblocking-pipe-tests: New file.
17143         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17144
17145 2011-04-16  Bruno Haible  <bruno@clisp.org>
17146
17147         gettext: Clarify the needed programmer actions.
17148         * modules/gettext (Notice): New field.
17149         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17150
17151 2011-04-16  Bruno Haible  <bruno@clisp.org>
17152
17153         strchrnul: Tweak last commit.
17154         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17155         bug.
17156         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17157         as in _GL_FUNCDECL_SYS.
17158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17159         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17160
17161 2011-04-15  Eric Blake  <eblake@redhat.com>
17162
17163         strchrnul: work around cygwin bug
17164         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17165         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17167         * modules/string (Makefile.am): Substitute it.
17168         * lib/string.in.h (strchrnul): Use it.
17169
17170 2011-04-15  Bruno Haible  <bruno@clisp.org>
17171
17172         Don't require lib/stdio-write.c when only module 'stdio' is used.
17173         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17174         invocation.
17175         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17176
17177 2011-04-14  Bruno Haible  <bruno@clisp.org>
17178
17179         Support non-blocking pipe I/O in read() on native Windows.
17180         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17181         (read): New declaration.
17182         * lib/read.c: New file.
17183         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17184         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17185         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17186         vscanf): New declarations.
17187         * lib/stdio-read.c: New file.
17188         * m4/read.m4: New file.
17189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17190         REPLACE_READ.
17191         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17192         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17193         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17194         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17195         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17196         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17197         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17198         * modules/read: New file.
17199         * modules/nonblocking (Files): Add lib/stdio-read.c.
17200         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17201         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17202         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17203         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17204         * modules/pread (Depends-on): Add read.
17205         * modules/safe-read (Depends-on): Likewise.
17206         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17207         gets, scanf, vfscanf, vscanf): Verify signatures.
17208         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17209         problem with non-blocking pipes.
17210         * doc/posix-functions/fgetc.texi: Likewise.
17211         * doc/posix-functions/fgets.texi: Likewise.
17212         * doc/posix-functions/fread.texi: Likewise.
17213         * doc/posix-functions/fscanf.texi: Likewise.
17214         * doc/posix-functions/getc.texi: Likewise.
17215         * doc/posix-functions/getchar.texi: Likewise.
17216         * doc/posix-functions/gets.texi: Likewise.
17217         * doc/posix-functions/scanf.texi: Likewise.
17218         * doc/posix-functions/vfscanf.texi: Likewise.
17219         * doc/posix-functions/vscanf.texi: Likewise.
17220
17221 2011-04-14  Bruno Haible  <bruno@clisp.org>
17222
17223         Support non-blocking pipe I/O in write() on native Windows.
17224         * lib/write.c (rpl_write): Split a write request that failed merely
17225         because the byte count was larger than the pipe buffer's size.
17226         * doc/posix-functions/write.texi: Mention the problem with large byte
17227         counts.
17228
17229 2011-04-14  Bruno Haible  <bruno@clisp.org>
17230
17231         wchar: Ensure that wchar_t gets defined on uClibc.
17232         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17233         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17234
17235 2011-04-13  Bruno Haible  <bruno@clisp.org>
17236
17237         safe-write, full-read: Avoid unnecessary compilation units.
17238         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17239         (Depends-on): Remove safe-read. Add ssize_t.
17240         * modules/full-read (Files): Add lib/full-write.c.
17241         (Depends-on): Add full-write.
17242
17243 2011-04-13  Bruno Haible  <bruno@clisp.org>
17244
17245         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17246         * modules/pwrite (Depends-on): Add 'write'.
17247
17248 2011-04-13  Bruno Haible  <bruno@clisp.org>
17249
17250         Support non-blocking pipe I/O in write() on native Windows.
17251         * lib/unistd.in.h (write): Enable replacement also if
17252         GNULIB_UNISTD_H_NONBLOCKING is 1.
17253         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17254         (rpl_write): When failing to write on a non-blocking pipe, change
17255         errno from ENOSPC to EAGAIN.
17256         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17257         putchar, puts, vfprintf, vprintf): Enable replacement also if
17258         GNULIB_STDIO_H_NONBLOCKING is 1.
17259         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17260         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17261         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17262         CALL_WITH_SIGPIPE_EMULATION.
17263         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17264         * m4/nonblocking.m4: New file.
17265         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17266         for non-blocking I/O support.
17267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17268         GNULIB_UNISTD_H_NONBLOCKING.
17269         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17270         required for non-blocking I/O support.
17271         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17272         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17273         lib/stdio-write.c, m4/asm-underscore.m4.
17274         (Depends-on): Add stdio, unistd.
17275         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17276         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17277         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17278         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17279         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17280         problem with non-blocking pipes.
17281         * doc/posix-functions/fputc.texi: Likewise.
17282         * doc/posix-functions/fputs.texi: Likewise.
17283         * doc/posix-functions/fwrite.texi: Likewise.
17284         * doc/posix-functions/printf.texi: Likewise.
17285         * doc/posix-functions/putc.texi: Likewise.
17286         * doc/posix-functions/putchar.texi: Likewise.
17287         * doc/posix-functions/puts.texi: Likewise.
17288         * doc/posix-functions/vfprintf.texi: Likewise.
17289         * doc/posix-functions/vprintf.texi: Likewise.
17290         * doc/posix-functions/write.texi: Likewise.
17291
17292 2011-04-10  Jim Meyering  <meyering@redhat.com>
17293
17294         maint.mk: prohibit doubled words
17295         Detect them also when they're separated by a newline.
17296         There are 3 ways to customize it:
17297           - disable the test on a per file basis, as usual with rules using
17298             $(VC_LIST_EXCEPT)
17299           - replace the default doubled-word-selecting regexp (affects all files)
17300           - ignore a particular file-vs-doubled-word match
17301         I nearly used that last one to ignore the "is is" match in
17302         coreutils' NEWS file, since the text was "ls -is is ..."
17303         To do that, I would have added this line to cfg.mk:
17304           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17305         but it would have ignored any "is is" match in NEWS.
17306         Low probability, but still...
17307         Instead, I changed the text, slightly:
17308           -  ls -is is now consistent with ls -lis in ignoring values returned
17309           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17310         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17311         (prohibit_doubled_word_): Define.
17312         (sc_prohibit_doubled_word): New rule.
17313         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17314
17315 2011-04-10  Jim Meyering  <meyering@redhat.com>
17316
17317         maint: fix doubled-word typo in comment
17318         * m4/gethostname.m4: s/is is/it is/
17319         * m4/getdomainname.m4: Likewise.
17320
17321 2011-04-10  Jim Meyering  <meyering@redhat.com>
17322
17323         maint: remove doubled word: s/it it/it/
17324         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17325
17326 2011-04-10  Jim Meyering  <meyering@redhat.com>
17327
17328         maint.mk: remove useless semicolon and backslash
17329         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17330         semicolon and backslash.
17331
17332 2011-04-10  Bruno Haible  <bruno@clisp.org>
17333
17334         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17335         * modules/stdint-tests (Depends-on): Add wchar.
17336
17337 2011-04-10  Jim Meyering  <meyering@redhat.com>
17338
17339         maint: remove doubled words in comments, e.g., s/a a/a/
17340         * lib/strptime.c (day_of_the_week): s/the the/the/
17341         * tests/test-chown.h (test_chown): s/a a/a/
17342
17343         test-chown.h: correct a cast
17344         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17345         when the destination is a stat.st_gid.
17346
17347 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17348
17349         getaddrinfo: Fix test for sa_len member.
17350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17351         include <sys/types.h> before <sys/socket.h>.
17352
17353 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17354
17355         maint: change "can not" to "cannot"
17356         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17357         boundaries.
17358
17359 2011-04-09  Jim Meyering  <meyering@redhat.com>
17360
17361         maint: change "a a" to "a"
17362         * tests/test-lchown.h (test_lchown): s/a a/a/
17363
17364         maint.mk: prohibit \<the the\>
17365         * top/maint.mk (sc_prohibit_the_the): New rule.
17366
17367         maint: fix "the the" in comment
17368         * lib/count-one-bits.h: s/the the/the/
17369
17370         maint: change "can not" to "cannot"
17371         But do not change the occurrences in maintain.texi or in
17372         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17373         * doc/gnulib-tool.texi: s/can not/cannot/
17374         * doc/posix-functions/accept.texi (accept): Likewise.
17375         * doc/posix-functions/socket.texi (socket): Likewise.
17376         * lib/mbrtowc.c: Likewise.
17377
17378         maint.mk: prohibit use of "can not"
17379         * top/maint.mk (sc_prohibit_can_not): New rule.
17380         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17381
17382 2011-04-09  Bruno Haible  <bruno@clisp.org>
17383
17384         careadlinkat: Guard against misuse of careadlinkatcwd.
17385         * lib/careadlinkat.c: Include <stdlib.h>.
17386         (careadlinkatcwd): Check that the fd argument is as expected.
17387
17388 2011-04-09  Bruno Haible  <bruno@clisp.org>
17389
17390         careadlinkat: Use common coding style.
17391         * lib/careadlinkat.c: Move gnulib includes after system includes.
17392
17393 2011-04-09  Bruno Haible  <bruno@clisp.org>
17394
17395         careadlinkat: Clarify specification.
17396         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17397         (careadlinkatcwd): Add comment.
17398         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17399
17400 2011-04-09  Bruno Haible  <bruno@clisp.org>
17401
17402         areadlinkat: Avoid link error on many platforms.
17403         * modules/areadlinkat (Depends-on): Add areadlink.
17404
17405 2011-04-09  Bruno Haible  <bruno@clisp.org>
17406
17407         allocator, careadlinkat: Fix double-inclusion guard.
17408         * lib/allocator.h: Fix double-inclusion guard.
17409         * lib/careadlinkat.h: Likewise.
17410
17411 2011-04-09  Bruno Haible  <bruno@clisp.org>
17412
17413         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17414         * lib/relocwrapper.c: Update dependencies hierarchy.
17415         * build-aux/install-reloc: Update list of files to be compiled.
17416         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17417         lib/allocator.[hc].
17418
17419 2011-04-08  Eric Blake  <eblake@redhat.com>
17420
17421         strftime: silence gnulib-tool warning
17422         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17423
17424 2011-04-08  Bruno Haible  <bruno@clisp.org>
17425
17426         verify: Fix syntax error with GCC 4.6 in C++ mode.
17427         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17428         (HAVE_STATIC_ASSERT): New macro.
17429         (verify_true, verify): Use 'static_assert' if it is supported and
17430         '_Static_assert' is not supported.
17431
17432 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17433
17434         allocator: New module.
17435         * modules/allocator, lib/allocator.c: New files.
17436         * lib/allocator.h (stdlib_allocator): New decl.
17437         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17438         Remove.  Do not include <stdlib.h>.
17439         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17440         * modules/careadlinkat (Files): Remove lib/allocator.h.
17441         (Depends-on): Add allocator.
17442
17443         stdlib: let modules use system malloc, realloc
17444         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17445         if !_GL_USE_STDLIB_ALLOC.
17446         (malloc, realloc): Limit this change to a smaller scope.
17447
17448         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17449         (malloc, realloc): Don't #undef; no longer needed.
17450         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17451         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17452         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17453         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17454         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17455         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17456         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17457         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17458
17459         careadlinkat: rename members to avoid problem
17460         * lib/allocator.h (struct allocator): Rename members from
17461         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17462         and realloc are #define'd.  Reported by Eric Blake in
17463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17464         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17465
17466 2011-04-08  Eric Blake  <eblake@redhat.com>
17467
17468         nonblocking: reduce dependency
17469         * tests/test-nonblocking.c: Only test sockets when in use.
17470         * modules/nonblocking-tests (Depends-on): Drop socket.
17471         (Makefile.am): Link even if sockets are not present.
17472         * modules/pipe2-tests (Makefile.am): Likewise.
17473         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17474
17475         pipe2: fix O_NONBLOCK support on mingw
17476         * modules/pipe2 (Depends-on): Add nonblocking.
17477         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17478         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17479         * tests/test-nonblocking.c (main): Likewise.
17480         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17481
17482         fcntl-h: fix O_ACCMODE on cygwin
17483         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17484         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17485
17486         pipe-filter: drop O_NONBLOCK workarounds
17487         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17488         * modules/pipe-filter-ii (Depends-on): Likewise.
17489         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17490
17491         nonblocking: provide O_NONBLOCK for mingw
17492         * modules/nonblocking (Depends-on): Add open.
17493         (configure.ac): Set new witness macro.
17494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17495         * modules/fcntl-h (Makefile.am): Substitute it.
17496         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17497         nonblocking module is in use.
17498         * lib/nonblocking.c: Adjust portability test.
17499         * lib/open.c (open): Don't let native open see gnulib flag.
17500         * tests/test-fcntl-h.c (main): Enhance test.
17501         * tests/test-open.h (test_open): Likewise.
17502         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17503
17504         careadlinkat: fix compilation error on mingw
17505         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17506         within struct allocator.
17507
17508 2011-04-06  Eric Blake  <eblake@redhat.com>
17509
17510         binary-io: relicense under LGPLv2+
17511         * modules/binary-io (License): Relax to LGPLv2+.
17512         Requested for libvirt, and required by pipe2.
17513
17514 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17515
17516         verify: use _Static_assert if available
17517         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17518         (verify_true, verify): Use it if available.  This generates better
17519         diagnostics with GCC 4.6.0 and later.
17520
17521 2011-04-05  Bruno Haible  <bruno@clisp.org>
17522
17523         Remove leftover generated .h files after config.status changed.
17524
17525         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17526         GL_GENERATE_ALLOCA_H.
17527         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17528         GL_GENERATE_ALLOCA_H evaluates to false.
17529
17530         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17531         GL_GENERATE_ARGZ_H.
17532         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17533         evaluates to false.
17534
17535         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17536         GL_GENERATE_BYTESWAP_H.
17537         * modules/byteswap (Makefile.am): Remove byteswap.h if
17538         GL_GENERATE_BYTESWAP_H evaluates to false.
17539
17540         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17541         GL_GENERATE_ERRNO_H.
17542         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17543         evaluates to false.
17544
17545         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17546         GL_GENERATE_FLOAT_H.
17547         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17548         evaluates to false.
17549
17550         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17551         GL_GENERATE_FNMATCH_H.
17552         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17553         GL_GENERATE_FNMATCH_H evaluates to false.
17554
17555         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17556         GL_GENERATE_GLOB_H.
17557         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17558         evaluates to false.
17559
17560         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17561         automake conditional GL_GENERATE_ICONV_H.
17562         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17563         evaluates to false.
17564
17565         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17566         GL_GENERATE_NETINET_IN_H.
17567         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17568         GL_GENERATE_NETINET_IN_H evaluates to false.
17569
17570         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17571         conditional GL_GENERATE_PTHREAD_H.
17572         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17573         * modules/pthread (Makefile.am): Remove pthread.h if
17574         GL_GENERATE_PTHREAD_H evaluates to false.
17575
17576         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17577         GL_GENERATE_SCHED_H.
17578         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17579         evaluates to false.
17580
17581         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17582         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17583         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17584         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17585
17586         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17587         GL_GENERATE_STDARG_H.
17588         * modules/stdarg (Makefile.am): Remove stdarg.h if
17589         GL_GENERATE_STDARG_H evaluates to false.
17590
17591         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17592         GL_GENERATE_STDBOOL_H.
17593         * modules/stdbool (Makefile.am): Remove stdbool.h if
17594         GL_GENERATE_STDBOOL_H evaluates to false.
17595
17596         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17597         conditional GL_GENERATE_STDDEF_H.
17598         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17599         * modules/stddef (Makefile.am): Remove stddef.h if
17600         GL_GENERATE_STDDEF_H evaluates to false.
17601
17602         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17603         GL_GENERATE_STDINT_H.
17604         * modules/stdint (Makefile.am): Remove stdint.h if
17605         GL_GENERATE_STDINT_H evaluates to false.
17606
17607         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17608         GL_GENERATE_SYSEXITS_H.
17609         * modules/sysexits (Makefile.am): Remove sysexits.h if
17610         GL_GENERATE_SYSEXITS_H evaluates to false.
17611
17612         Reported by Karl Berry and Ralf Wildenhues.
17613
17614 2011-04-05  Bruno Haible  <bruno@clisp.org>
17615
17616         Ensure to rebuild generated .h files when config.status has changed.
17617         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17618         config.status.
17619         * modules/ctype (Makefile.am): Likewise.
17620         * modules/dirent (Makefile.am): Likewise.
17621         * modules/errno (Makefile.am): Likewise.
17622         * modules/fcntl-h (Makefile.am): Likewise.
17623         * modules/float (Makefile.am): Likewise.
17624         * modules/getopt-posix (Makefile.am): Likewise.
17625         * modules/glob (Makefile.am): Likewise.
17626         * modules/iconv-h (Makefile.am): Likewise.
17627         * modules/inttypes (Makefile.am): Likewise.
17628         * modules/langinfo (Makefile.am): Likewise.
17629         * modules/locale (Makefile.am): Likewise.
17630         * modules/math (Makefile.am): Likewise.
17631         * modules/netdb (Makefile.am): Likewise.
17632         * modules/netinet_in (Makefile.am): Likewise.
17633         * modules/poll-h (Makefile.am): Likewise.
17634         * modules/pthread (Makefile.am): Likewise.
17635         * modules/pty (Makefile.am): Likewise.
17636         * modules/sched (Makefile.am): Likewise.
17637         * modules/search (Makefile.am): Likewise.
17638         * modules/selinux-h (Makefile.am): Likewise.
17639         * modules/signal (Makefile.am): Likewise.
17640         * modules/spawn (Makefile.am): Likewise.
17641         * modules/stdarg (Makefile.am): Likewise.
17642         * modules/stdbool (Makefile.am): Likewise.
17643         * modules/stddef (Makefile.am): Likewise.
17644         * modules/stdint (Makefile.am): Likewise.
17645         * modules/stdio (Makefile.am): Likewise.
17646         * modules/stdlib (Makefile.am): Likewise.
17647         * modules/string (Makefile.am): Likewise.
17648         * modules/strings (Makefile.am): Likewise.
17649         * modules/sys_file (Makefile.am): Likewise.
17650         * modules/sys_ioctl (Makefile.am): Likewise.
17651         * modules/sys_select (Makefile.am): Likewise.
17652         * modules/sys_socket (Makefile.am): Likewise.
17653         * modules/sys_stat (Makefile.am): Likewise.
17654         * modules/sys_time (Makefile.am): Likewise.
17655         * modules/sys_times (Makefile.am): Likewise.
17656         * modules/sys_utsname (Makefile.am): Likewise.
17657         * modules/sys_wait (Makefile.am): Likewise.
17658         * modules/sysexits (Makefile.am): Likewise.
17659         * modules/termios (Makefile.am): Likewise.
17660         * modules/time (Makefile.am): Likewise.
17661         * modules/unistd (Makefile.am): Likewise.
17662         * modules/wchar (Makefile.am): Likewise.
17663         * modules/wctype-h (Makefile.am): Likewise.
17664         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17665
17666 2011-04-05  Bruno Haible  <bruno@clisp.org>
17667
17668         pipe2: Relicense under LGPLv2+.
17669         * modules/pipe2 (License): Change to LGPLv2+.
17670         Requested by Eric Blake, for libvirt.
17671
17672 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17673
17674         bootstrap: compute gnulib_extra_files after updating build_aux
17675         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17676         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17677
17678 2011-04-05  Eric Blake  <eblake@redhat.com>
17679
17680         bootstrap: preserve git whitelist item sorting
17681         * build-aux/bootstrap (sort_patterns): New function.
17682         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17683
17684 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17685
17686         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17687         sc_space_tab check.
17688
17689 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17690
17691         areadlink, areadlinkat: rewrite in terms of careadlinkat
17692         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17693         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17694         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17695         (malloc, realloc): Remove #undefs.
17696         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17697         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17698         readlink, ssize_t, stdint, unistd.
17699         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17700         areadlink, stdint.
17701
17702         careadlinkat: new module
17703         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17704         * modules/careadlinkat: New files, written by me with
17705         a review and feedback from Ben Pfaff in
17706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17707
17708 2011-04-01  Bruno Haible  <bruno@clisp.org>
17709
17710         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17711         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17712         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17713         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17714         Reported by Bruce Korb <bruce.korb@gmail.com>.
17715
17716 2011-04-01  Bruno Haible  <bruno@clisp.org>
17717
17718         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17719         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17720         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17721         * modules/wcpcpy (Depends-on): Add extensions.
17722         * modules/wcpncpy (Depends-on): Likewise.
17723         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17724         systems.
17725         * doc/posix-functions/wcpncpy.texi: Likewise.
17726         * doc/posix-functions/wcwidth.texi: Likewise.
17727
17728 2011-03-31  Eric Blake  <eblake@redhat.com>
17729
17730         nonblocking: fix mingw test failures
17731         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17732         non-blocking flag on regular file.
17733         (get_nonblocking_flag): Set errno on invalid fd.
17734         * tests/test-nonblocking.c (main): Avoid test failure on
17735         directories if fchdir is not active.
17736         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17737
17738 2011-03-31  Bruno Haible  <bruno@clisp.org>
17739
17740         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17741         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17742         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17743         Reported by Simon Josefsson <simon@josefsson.org>.
17744
17745 2011-03-31  Bruno Haible  <bruno@clisp.org>
17746         and Eric Blake  <eblake@redhat.com>
17747
17748         nonblocking: new module
17749         * modules/nonblocking: New module.
17750         * modules/nonblocking-tests: Likewise.
17751         * lib/nonblocking.h: New file.
17752         * lib/nonblocking.c: Likewise.
17753         * tests/test-nonblocking.c: New test.
17754         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17755
17756 2011-03-30  Bruno Haible  <bruno@clisp.org>
17757
17758         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17759         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17760         instead of 'printf' format for GCC >= 4.4.
17761         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17762         (fprintf, printf, vfprintf, vprintf): Declare with
17763         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17764         the system's vfprintf() function.
17765         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17766
17767 2011-03-30  Eric Blake  <eblake@redhat.com>
17768
17769         passfd: fix scoping bug
17770         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17771         before sendmsg/recvmsg.
17772
17773         passfd: standardize coding conventions
17774         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17775         can be learned at compile time.
17776         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17777         ifdefs.
17778         (sendfd, recvfd): Follow gnulib code conventions.
17779
17780         passfd: fix incorrect sendmsg arguments
17781         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17782         incorrect msg_controllen value.
17783         * modules/passfd-tests (Depends-on): Check for alarm.
17784         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17785         Reported by Bastien ROUCARIES.
17786
17787 2011-03-30  Bruno Haible  <bruno@clisp.org>
17788
17789         c-strcasestr: Relicense under LGPLv2+.
17790         * modules/c-strcasestr (License): Change to LGPLv2+.
17791         Requested by Eric Blake, for libvirt.
17792
17793 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17794
17795         * users.txt: Add libidn2.  Fix libtasn1 link.
17796
17797 2011-03-30  Jim Meyering  <meyering@redhat.com>
17798
17799         tests: readlink* ("",... fails with EINVAL on newer kernels
17800         readlink and readlinkat have typically failed with ENOENT for
17801         the invalid, empty file name,  "".  However, with the advent
17802         of linux-2.6.39, they fail with EINVAL.
17803         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17804         when operating on the empty file name.
17805         * tests/test-readlink.h (test_readlink): Likewise.
17806
17807 2011-03-29  Bruno Haible  <bruno@clisp.org>
17808
17809         Relicense some modules under LGPLv2+, for libidn2.
17810         * modules/array-mergesort (License): Change to LGPLv2+.
17811         * modules/c-strcaseeq (License): Likewise.
17812         * modules/striconveh (License): Likewise.
17813         * modules/striconveha (License): Likewise.
17814         * modules/uniconv/base (License): Likewise.
17815         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17816         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17817         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17818         * modules/unictype/base (License): Likewise.
17819         * modules/unictype/bidiclass-of (License): Likewise.
17820         * modules/unictype/category-M (License): Likewise.
17821         * modules/unictype/category-none (License): Likewise.
17822         * modules/unictype/category-of (License): Likewise.
17823         * modules/unictype/category-test (License): Likewise.
17824         * modules/unictype/category-test-withtable (License): Likewise.
17825         * modules/unictype/combining-class (License): Likewise.
17826         * modules/unictype/joiningtype-of (License): Likewise.
17827         * modules/unictype/scripts (License): Likewise.
17828         * modules/uninorm/base (License): Likewise.
17829         * modules/uninorm/canonical-decomposition (License): Likewise.
17830         * modules/uninorm/composition (License): Likewise.
17831         * modules/uninorm/decompose-internal (License): Likewise.
17832         * modules/uninorm/decomposition-table (License): Likewise.
17833         * modules/uninorm/nfc (License): Likewise.
17834         * modules/uninorm/nfd (License): Likewise.
17835         * modules/uninorm/u32-normalize (License): Likewise.
17836         * modules/unistr/base (License): Likewise.
17837         * modules/unistr/u32-cpy (License): Likewise.
17838         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17839         * modules/unistr/u32-to-u8 (License): Likewise.
17840         * modules/unistr/u32-uctomb (License): Likewise.
17841         * modules/unistr/u8-check (License): Likewise.
17842         * modules/unistr/u8-mblen (License): Likewise.
17843         * modules/unistr/u8-mbtouc (License): Likewise.
17844         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17845         * modules/unistr/u8-mbtoucr (License): Likewise.
17846         * modules/unistr/u8-prev (License): Likewise.
17847         * modules/unistr/u8-strlen (License): Likewise.
17848         * modules/unistr/u8-to-u32 (License): Likewise.
17849         * modules/unistr/u8-uctomb (License): Likewise.
17850         * modules/unitypes (License): Likewise.
17851         Requested by Simon Josefsson.
17852
17853 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17854
17855         lib-symbol-visibility: Add a notice.
17856         * modules/lib-symbol-visibility (Notice): New field.
17857
17858 2011-03-29  Bruno Haible  <bruno@clisp.org>
17859
17860         getaddrinfo: Doc fix.
17861         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17862         section "fixed in Gnulib".
17863
17864 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17865
17866         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17867         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17868
17869 2011-03-26  Bruno Haible  <bruno@clisp.org>
17870
17871         unictype/property-byname: Reduce the number of load-time relocations.
17872         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17873         (UC_PROPERTY_INDEX_*): New enumeration values.
17874         (uc_property_byname): Convert an index from the lookup table to an
17875         uc_property_t.
17876         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17877         values.
17878
17879 2011-03-26  Bruno Haible  <bruno@clisp.org>
17880
17881         unictype/property-byname: Allow omitted word separators and aliases.
17882         * lib/unictype/pr_byname.gperf: Add property names without word
17883         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17884         for 'space'.
17885
17886 2011-03-26  Bruno Haible  <bruno@clisp.org>
17887
17888         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17889         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17890         also hyphens to space.
17891         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17892         without spaces.
17893         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17894
17895 2011-03-26  Bruno Haible  <bruno@clisp.org>
17896
17897         unictype/joiningtype-byname: Recognize long names as well.
17898         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17899         a long name.
17900         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17901         unictype/joiningtype_byname.h.
17902         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17903         * lib/unictype/joiningtype_byname.gperf: New file.
17904         * modules/unictype/joiningtype-byname (Files): Add
17905         lib/unictype/joiningtype_byname.gperf.
17906         (Depends-on): Add gperf.
17907         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17908         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17909         long names.
17910
17911         Tests for module 'unictype/joiningtype-longname'.
17912         * modules/unictype/joiningtype-longname-tests: New file.
17913         * tests/unictype/test-joiningtype_longname.c: New file.
17914
17915         New module 'unictype/joiningtype-longname'.
17916         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17917         * lib/unictype/joiningtype_longname.c: New file.
17918         * modules/unictype/joiningtype-longname: New file.
17919         * modules/unictype/joiningtype-all (Depends-on): Add
17920         unictype/joiningtype-longname.
17921
17922 2011-03-26  Bruno Haible  <bruno@clisp.org>
17923
17924         unictype/bidiclass-byname: Recognize long names as well.
17925         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17926         name.
17927         * lib/unictype/bidi_byname.c: Include <string.h>,
17928         unictype/bidi_byname.h.
17929         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17930         * lib/unictype/bidi_byname.gperf: New file.
17931         * modules/unictype/bidiclass-byname (Files): Add
17932         lib/unictype/bidi_byname.gperf.
17933         (Depends-on): Add gperf.
17934         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17935         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17936         long names.
17937
17938         Tests for module 'unictype/bidiclass-longname'.
17939         * modules/unictype/bidiclass-longname-tests: New file.
17940         * tests/unictype/test-bidi_longname.c: New file.
17941
17942         New module 'unictype/bidiclass-longname'.
17943         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17944         * lib/unictype/bidi_longname.c: New file.
17945         * modules/unictype/bidiclass-longname: New file.
17946         * modules/unictype/bidiclass-all (Depends-on): Add
17947         unictype/bidiclass-longname.
17948
17949 2011-03-26  Bruno Haible  <bruno@clisp.org>
17950
17951         unictype/bidi*: Rename modules.
17952         * modules/unictype/bidiclass-all: Renamed from
17953         modules/unictype/bidicategory-all.
17954         * modules/unictype/bidiclass-name: Renamed from
17955         modules/unictype/bidiclass-name.
17956         (Description): Update.
17957         * modules/unictype/bidiclass-name-tests: Renamed from
17958         modules/unictype/bidicategory-name-tests.
17959         * modules/unictype/bidiclass-byname: Renamed from
17960         modules/unictype/bidicategory-byname.
17961         (Description): Update.
17962         * modules/unictype/bidiclass-byname-tests: Renamed from
17963         modules/unictype/bidicategory-byname-tests.
17964         * modules/unictype/bidiclass-of: Renamed from
17965         modules/unictype/bidicategory-of.
17966         (Description): Update.
17967         * modules/unictype/bidiclass-of-tests: Renamed from
17968         modules/unictype/bidicategory-of-tests.
17969         * modules/unictype/bidiclass-test: Renamed from
17970         modules/unictype/bidicategory-test.
17971         (Description): Update.
17972         * modules/unictype/bidiclass-test-tests: Renamed from
17973         modules/unictype/bidicategory-test-tests.
17974         * modules/unictype/bidicategory-all: New file, a simple redirection.
17975         * modules/unictype/bidicategory-name: Likewise.
17976         * modules/unictype/bidicategory-byname: Likewise.
17977         * modules/unictype/bidicategory-of: Likewise.
17978         * modules/unictype/bidicategory-test: Likewise.
17979         * modules/unictype/property-bidi-* (Dependencies): Update.
17980         * lib/unictype/bidi_*.c: Update comment.
17981
17982 2011-03-26  Bruno Haible  <bruno@clisp.org>
17983
17984         unictype/bidi*: Rename functions, part 2.
17985         * modules/unictype/bidicategory-name (configure.ac): Update required
17986         libunistring version.
17987         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17988
17989 2011-03-25  Bruno Haible  <bruno@clisp.org>
17990
17991         New module 'unictype/combining-class-all'.
17992         * modules/unictype/combining-class-all: New file.
17993
17994         Tests for module 'unictype/combining-class-byname'.
17995         * modules/unictype/combining-class-byname-tests: New file.
17996         * tests/unictype/test-combiningclass_byname.c: New file.
17997
17998         New module 'unictype/combining-class-byname'.
17999         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18000         * lib/unictype/combiningclass_byname.c: New file.
18001         * lib/unictype/combiningclass_byname.gperf: New file.
18002         * modules/unictype/combining-class-byname: New file.
18003
18004         Tests for module 'unictype/combining-class-longname'.
18005         * modules/unictype/combining-class-longname-tests: New file.
18006         * tests/unictype/test-combiningclass_longname.c: New file.
18007
18008         New module 'unictype/combining-class-longname'.
18009         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18010         * lib/unictype/combiningclass_longname.c: New file.
18011         * modules/unictype/combining-class-longname: New file.
18012
18013         Tests for module 'unictype/combining-class-name'.
18014         * modules/unictype/combining-class-name-tests: New file.
18015         * tests/unictype/test-combiningclass_name.c: New file.
18016
18017         New module 'unictype/combining-class-name'.
18018         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18019         * lib/unictype/combiningclass_name.c: New file.
18020         * modules/unictype/combining-class-name: New file.
18021
18022 2011-03-25  Bruno Haible  <bruno@clisp.org>
18023
18024         unictype/combining-class: Rename source files.
18025         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18026         of unictype/combining.h.
18027         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18028         Update.
18029         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18030         * modules/unictype/combining-class (Description): Fix.
18031         (Files, Makefile.am): Update.
18032         * tests/unictype/test-combiningclass.c: Renamed from
18033         tests/unictype/test-combining.c.
18034         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18035
18036 2011-03-25  Bruno Haible  <bruno@clisp.org>
18037
18038         unictype: Update list of canonical combining classes.
18039         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18040
18041 2011-03-25  Bruno Haible  <bruno@clisp.org>
18042
18043         unictype/category-byname: Recognize long names as well.
18044         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18045         a long name.
18046         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18047         unictype/categ_byname.h.
18048         (UC_CATEGORY_INDEX_*): New enumeration values.
18049         (uc_general_category_byname): Use uc_general_category_lookup and
18050         convert from index to value.
18051         * lib/unictype/categ_byname.gperf: New file.
18052         * modules/unictype/category-byname (Files): Add
18053         lib/unictype/categ_byname.gperf.
18054         (Depends-on): Add gperf.
18055         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18056         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18057         long names.
18058
18059         Tests for module 'unictype/category-longname'.
18060         * modules/unictype/category-longname-tests: New file.
18061         * tests/unictype/test-categ_longname.c: New file.
18062
18063         New module 'unictype/category-longname'.
18064         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18065         * lib/unictype/categ_longname.c: New file.
18066         * modules/unictype/category-longname: New file.
18067         * modules/unictype/category-all (Depends-on): Add it.
18068
18069 2011-03-25  Bruno Haible  <bruno@clisp.org>
18070
18071         Tests for module 'unictype/category-LC'.
18072         * modules/unictype/category-LC-tests: New file.
18073         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18074
18075         New module 'unictype/category-LC'.
18076         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18077         (UC_CATEGORY_LC): New declaration.
18078         (UC_CASED_LETTER): New macro.
18079         * lib/gen-uni-tables.c (is_category_LC): New function.
18080         (output_categories): Also handle category LC.
18081         (UC_CATEGORY_MASK_LC): New enumeration value.
18082         (general_category_byname): Also handle category LC.
18083         * lib/unictype/categ_LC.c: New file.
18084         * lib/unictype/categ_LC.h: New file, automatically generated.
18085         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18086         category LC.
18087         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18088         * modules/unictype/category-LC: New file.
18089         * modules/unictype/category-byname (Depends-on): Add
18090         unictype/category-LC.
18091         * modules/unictype/category-all (Depends-on): Likewise.
18092
18093 2011-03-25  Eric Blake  <eblake@redhat.com>
18094
18095         xmalloc: revert yesterday's regression
18096         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18097         realloc's underlying behavior (allowing allocation of zero-size
18098         objects, especially if malloc-gnu is also in use).
18099
18100 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18101
18102         maint.mk: add missing version to VC-tag
18103         * top/maint.mk: git tag was missing actual tag name; add it.
18104
18105         valgrind: do leak checking, and exit with code 1 on error (not 0)
18106         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18107         to VALGRIND.
18108
18109 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18110
18111         posix-modules: say what it does.
18112         * posix-modules: Add a line to the --help output saying what it does.
18113
18114 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         xmalloc: Do not leak if underlying realloc is C99 compatible.
18117         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18118         This avoids a leak on C99-based systems.  See
18119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18120
18121 2011-03-24  Eric Blake  <eblake@redhat.com>
18122
18123         realloc: document portability problem
18124         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18125         passing 0 size to realloc.
18126
18127 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18128
18129         doc: update users.txt
18130         * users.txt: Add cvsps, tmpwatch
18131
18132 2011-03-23  Matt Rice  <ratmice@gmail.com>
18133
18134         doc: update users.txt
18135         * users.txt: Add gdb.
18136
18137 2011-03-23  Jim Meyering  <meyering@redhat.com>
18138
18139         doc: update users.txt
18140         Looking through matches up to the following URL (there are still
18141         several more pages), I found several projects that use gnulib:
18142         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18143         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18144         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18145
18146 2011-03-22  Bruno Haible  <bruno@clisp.org>
18147
18148         unictype/bidi*: Rename functions.
18149         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18150         uc_bidi_class, uc_is_bidi_class): New declarations.
18151         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18152         uc_bidi_category_byname.
18153         (uc_bidi_category_byname): New function.
18154         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18155         u_bidi_category_name.
18156         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18157         (uc_bidi_category_name): New function.
18158         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18159         uc_bidi_category.
18160         (uc_bidi_category): New function.
18161         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18162         uc_is_bidi_category. Invoke uc_bidi_class.
18163         (uc_is_bidi_category): New function.
18164         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18165         instead of uc_bidi_category_byname.
18166         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18167         instead of uc_bidi_category_name.
18168         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18169         uc_bidi_category.
18170         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18171         instead of uc_is_bidi_category.
18172
18173 2011-03-21  Bruno Haible  <bruno@clisp.org>
18174
18175         New module 'unictype/joininggroup-all'.
18176         * modules/unictype/joininggroup-all: New file.
18177
18178         Tests for module 'unictype/joininggroup-of'.
18179         * modules/unictype/joininggroup-of-tests: New file.
18180         * tests/unictype/test-joininggroup_of.c: New file.
18181         * tests/unictype/test-joininggroup_of.h: New file, automatically
18182         generated by gen-uni-tables.
18183
18184         New module 'unictype/joininggroup-of'.
18185         * modules/unictype/joininggroup-of: New file.
18186         * lib/unictype/joininggroup_of.c: New file.
18187         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18188         gen-uni-tables.
18189
18190         Tests for module 'unictype/joininggroup-byname'.
18191         * modules/unictype/joininggroup-byname-tests: New file.
18192         * tests/unictype/test-joininggroup_byname.c: New file.
18193
18194         New module 'unictype/joininggroup-byname'.
18195         * modules/unictype/joininggroup-byname: New file.
18196         * lib/unictype/joininggroup_byname.c: New file.
18197         * lib/unictype/joininggroup_byname.gperf: New file.
18198
18199         Tests for module 'unictype/joininggroup-name'.
18200         * modules/unictype/joininggroup-name-tests: New file.
18201         * tests/unictype/test-joininggroup_name.c: New file.
18202
18203         New module 'unictype/joininggroup-name'.
18204         * modules/unictype/joininggroup-name: New file.
18205         * lib/unictype/joininggroup_name.c: New file.
18206         * lib/unictype/joininggroup_name.h: New file.
18207
18208         New module 'unictype/joiningtype-all'.
18209         * modules/unictype/joiningtype-all: New file.
18210
18211         Tests for module 'unictype/joiningtype-of'.
18212         * modules/unictype/joiningtype-of-tests: New file.
18213         * tests/unictype/test-joiningtype_of.c: New file.
18214         * tests/unictype/test-joiningtype_of.h: New file, automatically
18215         generated by gen-uni-tables.
18216
18217         New module 'unictype/joiningtype-of'.
18218         * modules/unictype/joiningtype-of: New file.
18219         * lib/unictype/joiningtype_of.c: New file.
18220         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18221         gen-uni-tables.
18222
18223         Tests for module 'unictype/joiningtype-byname'.
18224         * modules/unictype/joiningtype-byname-tests: New file.
18225         * tests/unictype/test-joiningtype_byname.c: New file.
18226
18227         New module 'unictype/joiningtype-byname'.
18228         * modules/unictype/joiningtype-byname: New file.
18229         * lib/unictype/joiningtype_byname.c: New file.
18230
18231         Tests for module 'unictype/joiningtype-name'.
18232         * modules/unictype/joiningtype-name-tests: New file.
18233         * tests/unictype/test-joiningtype_name.c: New file.
18234
18235         New module 'unictype/joiningtype-name'.
18236         * modules/unictype/joiningtype-name: New file.
18237         * lib/unictype/joiningtype_name.c: New file.
18238
18239         unictype: Add support for Arabic shaping properties.
18240         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18241         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18242         declarations.
18243         (UC_JOINING_GROUP_*): New enumeration values.
18244         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18245         declarations.
18246         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18247         (unicode_joining_type): New variable.
18248         (UC_JOINING_GROUP_*): New enumeration values.
18249         (unicode_joining_group): New variable.
18250         (fill_arabicshaping, joining_type_as_c_identifier,
18251         output_joining_type_test, output_joining_type,
18252         joining_group_as_c_identifier, output_joining_group_test,
18253         output_joining_group): New functions.
18254         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18255         fill_arabicshaping and output_joining_type_test, output_joining_type,
18256         output_joining_group_test, output_joining_group.
18257         Reported by Simon Josefsson.
18258
18259 2011-03-21  Jim Meyering  <meyering@redhat.com>
18260
18261         strftime: fix a bug in yesterday's change
18262         * lib/strftime.c (add): Accommodate width's initial value of -1.
18263         Otherwise, nstrftime would copy uninitialized data into
18264         the result buffer.
18265
18266 2011-03-21  Jim Meyering  <meyering@redhat.com>
18267
18268         tests: add strftime-tests module
18269         * tests/test-strftime.c: New file.
18270         * modules/strftime-tests: New module.
18271
18272 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18273
18274         strftime: don't assume a byte count fits in 'int'
18275         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18276         found this problem by static analysis, using gcc -Wstrict-overflow
18277         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18278         on an integer overflow having undefined behavior, but it turns out
18279         that the argument is a size, which might not fit in 'int' anyway,
18280
18281 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18282
18283         stdio: don't require ignore_value around fwrite
18284
18285         This patch works around libc bug 11959
18286         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18287         Without this patch, applications must often write
18288         ignore_value (fwrite (...)) even though the ignore_value is
18289         not helpful here.  It's common to write many objects, using
18290         fwrite/printf/etc., and then use ferror to detect output error.
18291
18292         I considered making this patch optional, but decided against it,
18293         because libc is obviously being inconsistent here: there is no
18294         reason libc should insist that user code must inspect fwrite
18295         return's value without also insisting that it inspect printf's,
18296         putchar's, etc.  If user code wants to have a strict style where
18297         all these functions' values are checked (so that ferror need not
18298         be checked), we could add support for that style in a new gnulib
18299         module, but in the meantime it's better to be consistent and to
18300         support common usage.
18301
18302         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18303         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18304         that we are compiling in checking mode, and if not C++, and
18305         if not already wrapping fwrite for some other reason.
18306         (fwrite): #define to rpl_fwrite if the latter is defined.
18307
18308 2011-03-20  Bruno Haible  <bruno@clisp.org>
18309
18310         verror: Fix compilation error introduced on 2011-02-13.
18311         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18312         instead of __attribute__.
18313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18314
18315 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18316             Bruno Haible  <bruno@clisp.org>
18317
18318         socklen: do not depend on sys_socket
18319         While trying to modify Emacs to use gnulib's socklen module,
18320         I discovered a circular dependency: socklen depends on sys_socket
18321         and vice versa.  Emacs can use socklen, but it does not need
18322         sys_socket because it has its own substitute for sys/socket.h.
18323         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18324         gl_TYPE_SOCKLEN_T.
18325         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18326         gl_PREREQ_SYS_H_SOCKET.
18327         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18328         gl_PREREQ_SYS_H_SOCKET.
18329         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18330         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18331         * modules/socklen (Depends-on): Do not depend on sys_socket.
18332         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18333
18334 2011-03-20  Jim Meyering  <meyering@redhat.com>
18335
18336         maint.mk: sort file names *after* new transformation
18337         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18338         prefix would have led to an unwarranted failure in GNU parted.
18339         Sort after that transformation.
18340
18341 2011-03-19  Jim Meyering  <meyering@redhat.com>
18342
18343         maint.mk: fix po-file syntax-check rule
18344         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18345         Patch by Bruno Haible.
18346
18347 2011-03-19  Bruno Haible  <bruno@clisp.org>
18348
18349         socklen: Update comment.
18350         * m4/socklen.m4: Update comment about platforms.
18351
18352 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18353             Bruno Haible  <bruno@clisp.org>
18354
18355         inet_ntop, inet_pton: Simplify.
18356         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18357         documented to provide socklen_t and we already depend on sys_socket.
18358         * modules/inet_pton (Depends-on): Likewise.
18359         * lib/arpa_inet.in.h: Adjust comment.
18360
18361 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18362             Bruno Haible  <bruno@clisp.org>
18363
18364         netdb: Simplify.
18365         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18366         documented to provide socklen_t and we already depend on sys_socket.
18367         * lib/netdb.in.h: Adjust comment.
18368
18369 2011-03-19  Bruno Haible  <bruno@clisp.org>
18370
18371         sys_socket, netdb: Document problem with socklen_t.
18372         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18373         platforms.
18374         * doc/posix-headers/netdb.texi: Likewise.
18375
18376 2011-03-18  Eric Blake  <eblake@redhat.com>
18377
18378         maint.mk: let po check work in VPATH build
18379         * top/maint.mk (po_file): Allow cfg.mk override.
18380         (sc_po_check): Allow VPATH use.
18381         Reported by Jiri Denemark.
18382
18383 2011-03-16  Jim Meyering  <meyering@redhat.com>
18384
18385         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18386         Before, you would have had to create one .x-sc_ file per rule in order
18387         to exempt offending files.  Now, you may instead use a Make variable --
18388         usually defined in cfg.mk -- whose name identifies the affected rule.
18389         * top/maint.mk (_sc_excl): Define.
18390         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18391         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18392
18393 2011-03-13  Bruno Haible  <bruno@clisp.org>
18394
18395         ignore-value tests: Avoid warnings.
18396         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18397         empty for gcc < 3.4.
18398
18399 2011-03-13  Bruno Haible  <bruno@clisp.org>
18400
18401         passfd: Fix link error on Solaris.
18402         * modules/passfd (Description): Correct.
18403         (Depends-on): Add socketlib.
18404         (Link): New section.
18405         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18406
18407 2011-03-13  Bruno Haible  <bruno@clisp.org>
18408
18409         passfd: Fix link error on AIX 5.2.
18410         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18411
18412 2011-03-13  Bruno Haible  <bruno@clisp.org>
18413
18414         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18415         * lib/sys_socket.in.h: Include <stddef.h>.
18416         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18417         CMSG_FIRSTHDR. Remove unused variable.
18418
18419 2011-03-13  Bruno Haible  <bruno@clisp.org>
18420
18421         passfd: Fix compilation error on OpenBSD.
18422         * lib/passfd.c: Include <sys/uio.h>.
18423
18424 2011-03-13  Bruno Haible  <bruno@clisp.org>
18425
18426         passfd test: Fix warnings.
18427         * tests/test-passfd.c: Include <sys/wait.h>.
18428         (main): Fix typo.
18429
18430 2011-03-13  Bruno Haible  <bruno@clisp.org>
18431
18432         passfd module, part 4, tweaks.
18433         * tests/test-passfd.c: Reorder includes.
18434         (main): Fix perror and printf calls.
18435
18436 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18437
18438         passfd module, part 4.
18439         * modules/passfd-tests: New file.
18440         * tests/test-passfd.c: New file.
18441
18442 2011-03-13  Jim Meyering  <meyering@redhat.com>
18443
18444         Makefile: rely on GNU make; derive syntax-check rule names
18445         Rather than requiring that each sc_ rule be listed as a dependent
18446         of "check", use features of GNU make to derive the list.
18447         * Makefile (syntax-check-rules): Define.
18448         (check): Depend on the new variable, not the hard-coded list.
18449
18450 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18451             Bruno Haible  <bruno@clisp.org>
18452
18453         passfd module, part 3.
18454         * lib/passfd.h (recvfd): Add a flags argument.
18455         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18456         (recvfd): Add a flags argument.
18457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18458         exists.
18459         * modules/passfd (Depends-on): Add cloexec.
18460         Suggested by Eric Blake.
18461
18462 2011-03-13  Bruno Haible  <bruno@clisp.org>
18463
18464         passfd module, part 2, tweaks.
18465         * modules/passfd (Files): Reorder.
18466         (Depends-on): Remove errno.
18467         (Include): Remove <sys/socket.h>, <sys/un.h>.
18468         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18469         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18470         specification header. Include <sys/socket.h> always. Don't include
18471         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18472         (sendfd): Clarify that it sets errno when it fails.
18473         (recvfd): Fix specification.
18474
18475 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18476
18477         passfd module, part 2.
18478         * modules/passfd: New file.
18479         * lib/passfd.h: New file.
18480         * lib/passfd.c: New file.
18481
18482 2011-03-12  Bruno Haible  <bruno@clisp.org>
18483
18484         wcswidth, mbswidth: Avoid integer overflow.
18485         * lib/wcswidth.c: Include <limits.h>.
18486         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18487         * lib/mbswidth.c: Include <limits.h>.
18488         (mbsnwidth): Avoid 'int' overflow.
18489         Reported by Jim Meyering.
18490
18491 2011-03-12  Bruno Haible  <bruno@clisp.org>
18492
18493         futimens, utimensat: Avoid endless recursion on Solaris 10.
18494         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18495         Solaris.
18496         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18497         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18498
18499 2011-03-11  Jim Meyering  <meyering@redhat.com>
18500
18501         maint.mk: relax a regexp to accommodate other formatting styles
18502         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18503         between "ngettext" and the following "(".
18504
18505 2011-03-11  Pádraig Brady <P@draigBrady.com>
18506
18507         maint.mk: suppress a false positive warning
18508         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18509         diagnostics are marked with ngettext.
18510
18511 2011-03-10  Eric Blake  <eblake@redhat.com>
18512
18513         wchar: add explicit dependencies, for Tru64
18514         * modules/mbmemcasecoll (Depends-on): Add wchar.
18515         * modules/mbtowc (Depends-on): Likewise.
18516         * modules/vasnprintf (Depends-on): Likewise.
18517         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18518         * modules/wctomb (Depends-on): Likewise.
18519         Reported by Peter O'Gorman.
18520
18521 2011-03-08  Bruno Haible  <bruno@clisp.org>
18522
18523         passfd module, part 1, tweaks.
18524         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18525         Improve indentation. Improve AC_MSG_CHECKING messages.
18526         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18527         gl_SOCKET_FAMILIES.
18528
18529 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18530
18531         passfd module, part 1.
18532         * m4/afunix.m4: New file.
18533         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18534         sockets.
18535
18536 2011-03-08  Bruno Haible  <bruno@clisp.org>
18537
18538         regex-quote: New API.
18539         * lib/regex-quote.h: Include <stdbool.h>.
18540         (struct regex_quote_spec): New type.
18541         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18542         New declarations.
18543         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18544         'const struct regex_quote_spec *' argument.
18545         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18546         (pcre_special): New constant.
18547         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18548         New functions.
18549         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18550         'const struct regex_quote_spec *' argument.
18551         * modules/regex-quote (Depends-on): Add stdbool.
18552         * tests/test-regex-quote.c (check): Update for new API. Add test for
18553         anchored results.
18554         * NEWS: Mention the API change.
18555         Reported by Reuben Thomas and Eric Blake.
18556
18557 2011-03-06  Bruno Haible  <bruno@clisp.org>
18558
18559         regex-quote: Fix creation of POSIX extended regular expressions.
18560         * lib/regex-quote.c (ere_special): Add grouping and alternation
18561         operators.
18562
18563 2011-03-05  Bruno Haible  <bruno@clisp.org>
18564
18565         doc: Improve doc regarding autopoint vs. gnulib.
18566         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18567         disable autopoint while running autoreconf.
18568         Suggested by Ralf Wildenhues.
18569
18570 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18571
18572         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18573         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18574
18575 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18576
18577         parse-duration: remove xalloc.h dependency
18578         * lib/parse-duration.c (parse_period): handle NULL return from
18579         strdup instead of calling xstrdup().
18580         * modules/parse-duration: remove "xalloc" dependency
18581
18582 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18583
18584         bootstrap: honor m4_base when running aclocal
18585         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18586
18587 2011-03-02  Jim Meyering  <meyering@redhat.com>
18588
18589         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18590         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18591         on request from Matt Booth.
18592
18593 2011-03-01  Eric Blake  <eblake@redhat.com>
18594
18595         test-link: work on Hurd
18596         * tests/test-link.h (test_link): Hurd rejects linking directories
18597         with EISDIR instead of the POSIX-mandated EPERM.
18598
18599 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18600
18601         stdio: simplify by moving files to printf-posix, sigpipe
18602         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18603         since this symbol is needed only if printf is replaced.
18604         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18605         Require gl_ASM_SYMBOL_PREFIX.
18606         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18607         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18608         (Depends-on): Add 'raise'.
18609         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18610         * modules/stdio (Files): Remove lib/stdio-write.c,
18611         m4/asm-underscore.m4.
18612         (Depends-on): Remove 'raise'.
18613
18614         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18615         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18616         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18617         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18618
18619 2011-02-28  Bruno Haible  <bruno@clisp.org>
18620
18621         localcharset: Assume ANSI C behaviour of free().
18622         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18623         calling free().
18624         Suggested by Simon Josefsson <simon@josefsson.org>.
18625
18626 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18627             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18628             Bruno Haible  <bruno@clisp.org>  (tiny change)
18629
18630         On Cygwin, use /proc file system instead of win32 API.
18631         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18632         Win32 file names.
18633         (DllMain): Simplify by removing Cygwin specific code.
18634         (find_shared_library_fullname): Use Linux specific implementation also
18635         for Cygwin.
18636         (get_shared_library_fullname): Update accordingly.
18637         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18638         Win32 file names.
18639         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18640         Cygwin specific code.
18641
18642 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18643             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18644
18645         Fix OpenMP flag detection for various Fortran compilers.
18646         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18647         OpenMP-conditional compilation construct, to force compile
18648         failure with missing OpenMP flag.
18649         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18650
18651 2011-02-25  Eric Blake  <eblake@redhat.com>
18652
18653         strstr: expand test coverage
18654         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18655         compilation.
18656         * tests/test-memmem.c (main): Duplicate tests.
18657         * tests/test-strcasestr.c (main): Likewise.
18658         * tests/test-c-strcasestr.c (main): Likewise.
18659
18660 2011-02-25  Jim Meyering  <meyering@redhat.com>
18661
18662         maint.mk: detect missing-NL-at-EOF, too
18663         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18664         it also detects when a file lacks a newline at EOF.
18665         (require_exactly_one_NL_at_EOF_): Renamed from
18666         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18667         since people may well have .x-sc_... file names tied to the
18668         existing name.  Suggested by Eric Blake.
18669
18670 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18671
18672         dirname: move m4/dos.m4 functionality into lib/dosname.h
18673
18674         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18675         extracts symbols from it, puts them into config.h; but it's much
18676         easier to use the symbols directly.  filename.h already does this,
18677         but it disagrees with dos.m4 in some respects.  This patch
18678         introduces a different include file dosname.h that packages up
18679         dos.m4, and then later we can work on merging filename.h and
18680         dosname.h.  Applications that need only the easy-to-configure
18681         symbols should consider including dosname.h rather than dirname.h.
18682         * NEWS: Mention incompatible changes.
18683         * m4/dos.m4: Remove.
18684         * lib/dosname.h, modules/dosname: New files.
18685         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18686         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18687         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18688         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18689         Include dosname.h, not dirname.h.
18690         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18691         Include dosname.h, for definitions of symbols like ISSLASH
18692         that used to be in config.h.
18693         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18695         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18696         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18697         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18698         * modules/rmdir (Files): Likewise.
18699         * modules/stat (Files): Likewise.
18700         * modules/unlink (Files): Likewise.
18701         * modules/dirname-lgpl (Depends-on): Add dosname.
18702         * modules/lstat (Depends-on): Likewise.
18703         * modules/openat (Depends-on): Likewise.
18704         * modules/rmdir (Depends-on): Likewise.
18705         * modules/savewd (Depends-on): Likewise.
18706         * modules/stat (Depends-on): Likewise.
18707         * modules/unlink (Depends-on): Likewise.
18708         * modules/openat (Depends-on): Remove dirname-lgpl.
18709         * modules/savewd (Depends-on): Likewise.
18710         * tests/test-dirname.c: Do not use removed symbols like
18711         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18712         the remaining symbols, e.g., ISSLASH ('\\').
18713
18714 2011-02-25  Eric Blake  <eblake@redhat.com>
18715
18716         strstr: revert patches that introduced bug and pessimization
18717         * lib/str-two-way.h: Add another reference.
18718         (two_way_short_needle, two_way_long_needle): Revert changes from
18719         2011-02-24; they pessimize search speed.
18720         (critical_factorization): Partially revert changes from
18721         2010-06-22; they violate the requirement that the left half of the
18722         needle be smaller than the period of the needle.
18723
18724 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         filenamecat: remove unnecessary dependency on dirname-lgpl
18727         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18728         is no direct dependency, just an indirect one via filenamecat-lgpl.
18729
18730         remove: remove unnecessary use of m4/dos.m4
18731         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18732         * modules/remove (FILES): Remove m4/dos.m4.
18733
18734         * lib/openat-proc.c: Don't include dirname.h; not needed.
18735
18736         backupfile: remove unnecessary use of m4/dos.m4
18737         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18738         of its symbols are used by the backupfile code.  backupfile.c does
18739         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18740         for the rare case of programs that want all their backup file
18741         names to live within 8+3 limits, and dos.m4 doesn't address that.
18742         * modules/backupfile (Files): Remove m4/dos.m4.
18743
18744 2011-02-24  Jim Meyering  <meyering@redhat.com>
18745
18746         strstr: fix a bug whereby strstr would mistakenly return NULL
18747         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18748         in period calculation.
18749         (two_way_long_needle): Likewise.
18750         The original problem was reported by Mike Stump in
18751         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18752         Ralf Wildenhues provided the short needle and haystack.
18753         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18754         Add a more involved test to trigger the bug in two_way_long_needle.
18755
18756 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18757
18758         gnulib-tool: remove use of bold display in help screen
18759         * gnulib-tool (func_usage): Do not use bold display anymore in the
18760         help screen.  That was just meant to be a temporary emphasis for a
18761         backward-incompatible change.
18762
18763 2011-02-23  Bruno Haible  <bruno@clisp.org>
18764
18765         Fix misindentation of preprocessor directives.
18766         * lib/argp-namefrob.h: Reindent preprocessor directives.
18767         * lib/getopt_int.h (struct _getopt_data): Likewise.
18768         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18769         * lib/vasnprintf.c (decode_long_double): Likewise.
18770         * tests/test-argmatch.c: Insert blank lines, for clarity.
18771         * tests/test-exclude.c: Likewise.
18772
18773 2011-02-22  Bruno Haible  <bruno@clisp.org>
18774
18775         ioctl: Fix for MacOS X in 64-bit mode.
18776         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18777         value.
18778         Suggested by Eric Blake.
18779         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18780
18781 2011-02-22  Jim Meyering  <meyering@redhat.com>
18782
18783         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18784         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18785         in lib/.
18786
18787 2011-02-22  Eric Blake  <eblake@redhat.com>
18788
18789         maint: avoid any CDPATH issue
18790         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18791
18792         maint: adjust cpp indentation for my modules, as well
18793         * Makefile (sc_cpp_indent_check): Add my name.
18794         * lib/fbufmode.c: Filter through cppi.
18795         * lib/fpurge.c: Likewise.
18796         * lib/freadable.c: Likewise.
18797         * lib/freading.c: Likewise.
18798         * lib/fwritable.c: Likewise.
18799         * lib/fwriting.c: Likewise.
18800         * lib/sigaction.c: Likewise.
18801
18802 2011-02-22  Jim Meyering  <meyering@redhat.com>
18803
18804         maint: adjust cpp indentation to reflect nesting depth
18805         I.e., in a block of code that begins with an unnested "#if",
18806         put one space between the "#" in column 1 and following token.
18807         For example,
18808         -#include <sys/vfs.h>
18809         +# include <sys/vfs.h>
18810         Do this only in .c files that are part of a module I maintain.
18811         * lib/linkat.c: Filter through cppi.
18812         * lib/nanosleep.c: Likewise.
18813         * lib/openat.c: Likewise.
18814         * lib/openat-die.c: Likewise.
18815         * lib/dup3.c: Likewise.
18816         * lib/fchownat.c: Likewise.
18817         * lib/flock.c: Likewise.
18818         * lib/fsync.c: Likewise.
18819         * lib/fts.c: Likewise.
18820         * lib/getpass.c: Likewise.
18821         * lib/gettimeofday.c: Likewise.
18822         * lib/userspec.c: Likewise.
18823         * Makefile (sc_cpp_indent_check): New rule, to check this.
18824
18825 2011-02-22  Bruno Haible  <bruno@clisp.org>
18826
18827         New module 'wctomb'.
18828         * lib/stdlib.in.h (wctomb): New declaration.
18829         * lib/wctomb.c: New file.
18830         * lib/wctomb-impl.h: New file.
18831         * m4/wctomb.m4: New file.
18832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18833         REPLACE_WCTOMB.
18834         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18835         REPLACE_WCTOMB.
18836         * modules/wctomb: New file.
18837         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18838         * doc/posix-functions/wctomb.texi: Mention the new module.
18839         * modules/wctob (Depends-on): Add wctomb.
18840
18841 2011-02-22  Bruno Haible  <bruno@clisp.org>
18842
18843         New module 'mbtowc'.
18844         * lib/stdlib.in.h (mbtowc): New declaration.
18845         * lib/mbtowc.c: New file.
18846         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18847         * m4/mbtowc.m4: New file.
18848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18849         REPLACE_MBTOWC.
18850         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18851         REPLACE_MBTOWC.
18852         * modules/mbtowc: New file.
18853         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18854         * doc/posix-functions/mbtowc.texi: Mention the new module.
18855         * modules/btowc (Depends-on): Add mbtowc.
18856
18857 2011-02-22  Bruno Haible  <bruno@clisp.org>
18858
18859         wcrtomb: Add more tests for native Windows platforms.
18860         * tests/test-wcrtomb-w32-1.sh: New file.
18861         * tests/test-wcrtomb-w32-2.sh: New file.
18862         * tests/test-wcrtomb-w32-3.sh: New file.
18863         * tests/test-wcrtomb-w32-4.sh: New file.
18864         * tests/test-wcrtomb-w32-5.sh: New file.
18865         * tests/test-wcrtomb-w32.c: New file.
18866         * modules/wcrtomb-tests (Files): Add them.
18867         (Makefile.am): Arrange to run these tests.
18868         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18869         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18870
18871 2011-02-20  Bruno Haible  <bruno@clisp.org>
18872
18873         wcrtomb: Enhance test.
18874         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18875
18876 2011-02-20  Bruno Haible  <bruno@clisp.org>
18877
18878         mbrtowc: Tiny optimization.
18879         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18880
18881 2011-02-20  Jim Meyering  <meyering@redhat.com>
18882
18883         test-exclude.c: remove unmatched #endif
18884         * tests/test-exclude.c: Remove stray #endif, left over from
18885         the change of a week ago.
18886
18887 2011-02-19  Jim Meyering  <meyering@redhat.com>
18888
18889         git-version-gen: skip "-dirty" check when appropriate
18890         * build-aux/git-version-gen: Don't run any git commands when the
18891         version string comes from .tarball-version.  Prior to this, we
18892         would run git update-index --refresh even from a just-unpacked
18893         tarball directory, and that could affect a .git/ directory in a
18894         parent of the build directory.  Reported by Mike Frysinger.
18895
18896 2011-02-19  Bruno Haible  <bruno@clisp.org>
18897
18898         unictype/property-byname: Reduce the size of the 'data' segment.
18899         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18900
18901 2011-02-19  Bruno Haible  <bruno@clisp.org>
18902
18903         unictype/scripts: Reduce the size of the 'data' segment.
18904         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18905         '%pic'.
18906         * lib/unictype/scripts_byname.gperf: Regenerated.
18907
18908 2011-02-19  Bruno Haible  <bruno@clisp.org>
18909
18910         stdint: Update documentation.
18911         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18912
18913 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18914
18915         stdint: omit redundant check for wchar.h
18916         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18917         always tests whether wchar.h exists, so remove the now-redundant test.
18918
18919 2011-02-18  Bruno Haible  <bruno@clisp.org>
18920
18921         stdint: Cut dependency to module 'wchar'.
18922         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18923         include the necessary prerequisites.
18924         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18925         * modules/stdint (Depends-on): Remove wchar.
18926         (Makefile.am): Substitute HAVE_WCHAR_H.
18927         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18928
18929 2011-02-18  Eric Blake  <eblake@redhat.com>
18930
18931         longlong: skip, rather than fail, on cross-compilation
18932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18933         when cross-compiling; regression from 2011-02-16.
18934
18935 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18936
18937         * NEWS: Mention 2011-02-08 change to stdlib.
18938
18939 2011-02-17  Bruno Haible  <bruno@clisp.org>
18940
18941         getloadavg: Add comments about platforms.
18942         * m4/getloadavg.m4: Add comment.
18943         * lib/getloadavg.c: Likewise.
18944
18945 2011-02-17  Bruno Haible  <bruno@clisp.org>
18946
18947         getloadavg: Fix link error on Solaris 2.6.
18948         * modules/getloadavg (Link): New section.
18949         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18950         linking test-getloadavg.
18951         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18952         getloadavg.
18953
18954 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18955
18956         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18957         It was 'int', but this doesn't match the IRIX 6.5 manual.
18958         Suggested by Bruno Haible in
18959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18960
18961 2011-02-17  Bruno Haible  <bruno@clisp.org>
18962
18963         havelib: Fix comments.
18964         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18965         change.
18966
18967 2011-02-17  Bruno Haible  <bruno@clisp.org>
18968
18969         havelib: Update config.rpath.
18970         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18971
18972 2011-02-17  Bruno Haible  <bruno@clisp.org>
18973
18974         getloadavg test: Add some plausibility checks.
18975         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18976         is improbable.
18977
18978 2011-02-16  Eric Blake  <eblake@redhat.com>
18979
18980         maintainer-makefile: make syntax-check a no-op from tarballs
18981         * top/maint.mk (no-vc-detected): New rule.
18982         (local-checks-available): Use it to avoid hanging if someone tries
18983         'make syntax-check' from a tarball.  Also append to any non-syntax
18984         checks already defined in cfg.mk.
18985
18986 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18987
18988         longlong: tune, particularly for common case of c99
18989
18990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18991         or running anything if c99, or if unsigned long long int does not
18992         work.  In either case, we know the answer without further tests.
18993         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18994         it at most once, and use its results for both long long int and
18995         unsigned long long int.  This is more likely to be efficient in
18996         the common case where the program wants to check for both long
18997         long int and unsigned long long int.
18998         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18999         since the answer is already known.
19000
19001 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19002
19003         getloadavg: set errno
19004         * lib/getloadavg.c: Set errno when returning -1.  If no other
19005         error number looks appropriate, set it to ENOSYS if the getloadavg
19006         looks like it can't possibly ever work, ENOTSUP otherwise.
19007         Suggested by Bruno Haible in
19008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19009
19010         getloadavg: trim unused parts and speed up 'configure'
19011         * NEWS: Document this.
19012         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19013         always compiled if getloadavg is absent.
19014         Move test code to ...
19015         * tests/test-getloadavg.c: New file, containing previous
19016         contents of test from lib/getloadavg.c.  It also contains
19017         suggestions by Bruno Haible in
19018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19019         * modules/getloadavg-tests: New file.
19020         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19021         Do tests in the same order as they're needed for getloadavg.c.
19022         Omit setgid-related tests that generate symbols KMEM_GROUP,
19023         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19024         Do only the tests that are needed to see whether the system has
19025         getloadavg, moving the other tests into ...
19026         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19027         NLIST_NAME_UNION; nobody should be using it.  Do not define
19028         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19029         relevant, as the user of this module shouldn't care how getloadavg
19030         is implemented.
19031
19032         getloadavg: omit unused var
19033         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19034
19035 2011-02-15  Jim Meyering  <meyering@redhat.com>
19036
19037         doc: update users.txt
19038         * users.txt: Update iwhd's URL.
19039
19040 2011-02-13  Bruno Haible  <bruno@clisp.org>
19041
19042         Consistent macro naming for macros that use GCC __attribute__.
19043         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19044         _ATTRIBUTE_NONNULL_.
19045         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19046         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19047         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19048         ATTRIBUTE_DEPRECATED.
19049         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19050         ATTRIBUTE_NORETURN.
19051         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19052         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19053         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19054         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19055         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19056         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19057         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19058         ATTRIBUTE_SENTINEL.
19059         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19060         ATTRIBUTE_RETURN_CHECK.
19061         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19062         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19063         ATTRIBUTE_NORETURN.
19064         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19065         Reported by Paul Eggert.
19066
19067 2011-02-13  Bruno Haible  <bruno@clisp.org>
19068
19069         Don't interfere with a program's definition of __attribute__.
19070         * lib/argp.h (__attribute__): Remove definition.
19071         (_GL_ATTRIBUTE_FORMAT): New macro.
19072         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19073         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19074         (_GL_ATTRIBUTE_FORMAT): New macro.
19075         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19076         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19077         GCC 3 or newer.
19078         * lib/error.h (__attribute__): Remove definition.
19079         (_GL_ATTRIBUTE_FORMAT): New macro.
19080         (error, error_at_line): Use it.
19081         * lib/hash.h (__attribute__): Remove definition.
19082         (ATTRIBUTE_WUR): Update definition. Define always.
19083         * lib/openat.h (__attribute__): Remove definition.
19084         (ATTRIBUTE_NORETURN): Update definition. Define always.
19085         * lib/sigpipe-die.h (__attribute__): Remove definition.
19086         (ATTRIBUTE_NORETURN): Update definition. Define always.
19087         * lib/vasnprintf.h (__attribute__): Remove definition.
19088         (_GL_ATTRIBUTE_FORMAT): New macro.
19089         (asnprintf, vasnprintf): Use it.
19090         * lib/xalloc.h (__attribute__): Remove definition.
19091         (ATTRIBUTE_NORETURN): Update definition. Define always.
19092         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19093         * lib/xmemdup0.h (__attribute__): Remove definition.
19094         (ATTRIBUTE_NORETURN): Update definition. Define always.
19095         * lib/xprintf.h (__attribute__): Remove definition.
19096         (_GL_ATTRIBUTE_FORMAT): New macro.
19097         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19098         * lib/xstrtol.h (__attribute__): Remove definition.
19099         (ATTRIBUTE_NORETURN): Update definition. Define always.
19100         * lib/xvasprintf.h (__attribute__): Remove definition.
19101         (_GL_ATTRIBUTE_FORMAT): New macro.
19102         (xasprintf, xvasprintf): Use it.
19103         * tests/test-argmatch.c (__attribute__): Remove definition.
19104         (ATTRIBUTE_NORETURN): Update definition. Define always.
19105         * tests/test-exclude.c (__attribute__): Remove definition.
19106         (ATTRIBUTE_NORETURN): Update definition. Define always.
19107         Reported by Paul Eggert.
19108
19109 2011-02-13  Bruno Haible  <bruno@clisp.org>
19110
19111         mbrtowc: Add more tests for native Windows platforms.
19112         * tests/test-mbrtowc-w32-1.sh: New file.
19113         * tests/test-mbrtowc-w32-2.sh: New file.
19114         * tests/test-mbrtowc-w32-3.sh: New file.
19115         * tests/test-mbrtowc-w32-4.sh: New file.
19116         * tests/test-mbrtowc-w32-5.sh: New file.
19117         * tests/test-mbrtowc-w32.c: New file.
19118         * modules/mbrtowc-tests (Files): Add them.
19119         (Makefile.am): Arrange to run these tests.
19120         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19121         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19122
19123 2011-02-13  Bruno Haible  <bruno@clisp.org>
19124
19125         mbrtowc: Work around native Windows bug.
19126         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19127         guess when no suitable locale for testing was found.
19128         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19129
19130 2011-02-13  Bruno Haible  <bruno@clisp.org>
19131
19132         mbsinit: Work around mingw bug.
19133         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19134         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19135         Windows.
19136         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19137
19138 2011-02-13  Bruno Haible  <bruno@clisp.org>
19139
19140         mbsinit: Don't crash for a NULL argument.
19141         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19142         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19143
19144 2011-02-13  Bruno Haible  <bruno@clisp.org>
19145
19146         Don't interfere with a program's definition of __attribute__.
19147         * lib/stdio.in.h (__attribute__): Remove definition.
19148         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19149         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19150         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19151         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19152         * lib/string.in.h (__attribute__): Remove definition.
19153         Reported by Paul Eggert.
19154
19155 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19156
19157         stdlib: don't get in the way of non-GCC __attribute__
19158         See thread starting at
19159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19160         Revert previous stdlib change, installing the following instead:
19161         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19162         to get in the way of a non-GCC compiler that supports __attribute__.
19163         (_GL_ATTRIBUTE_RETURN): New macro.
19164         (_Exit): Use it instead of __attribute__.
19165
19166 2011-02-12  Bruno Haible  <bruno@clisp.org>
19167
19168         quotearg test: Avoid test failure on mingw.
19169         * tests/test-quotearg.sh: Convert the locale identifier from native
19170         Windows syntax to Unix syntax.
19171
19172 2011-02-12  Bruno Haible  <bruno@clisp.org>
19173
19174         setlocale: Prefer gnulib's override over libintl's override.
19175         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19176         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19177         GNULIB_defined_setlocale is set.
19178
19179 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19180
19181         stdlib: support non-GCC __attribute__
19182
19183         Fix a serious and tricky problem encountered when attempting to
19184         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19185         5.5, but it crashed due to memory corruption on Solaris 10 with
19186         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19187         bits that are otherwise zero.  This tagging is optional inside
19188         Emacs but is preferred and is used when __attribute__ ((__aligned
19189         (8))) works, as it does with both recent-enough GCC and with Sun C
19190         5.11.  However, Sun C 5.11 is not GCC and does not #define
19191         __GNUC__ and __GNUC_MINOR__.
19192
19193         When I added the getloadavg module to Emacs, it brought in
19194         stdlib.in.h, which contained this fragment:
19195
19196            #ifndef __attribute__
19197            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19198            #  define __attribute__(Spec)   /* empty */
19199            # endif
19200            #endif
19201
19202         When files that include <stdlib.h> were compiled with Sun C 5.11,
19203         the above code disabled __attribute__ ((__aligned (8))), which
19204         caused variables to not be properly aligned, which eventually led
19205         to the pointer corruption mentioned above.  (This was a bit hard
19206         to diagnose, unfortunately.)
19207
19208         Several "#define __attribute__(X) /* empty */" code snippets need
19209         to be eradicated from Gnulib to work with non-GCC compilers that
19210         support __attribute__.  The Autoconf way to do this is to test for
19211         each kind of attribute that we want support for, and selectively
19212         enable that in source code.
19213
19214         Fix this problem just for stdlib.h, by adding a test for the
19215         __noreturn__ attribute, and change stdlib.in.h to use that test
19216         when needed.  This technique can be easily generalized to the
19217         other *.in.h files and attributes, and a similar technique can be
19218         used for *.h and *.c files.  This patch is enough to solve the
19219         problem for Emacs + getloadavg, and I thought I'd publish it for
19220         feedback before undertaking further, similar fixes in other
19221         modules.
19222
19223         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19224         because it's not needed for stdlib.h.  It merely substitutes the
19225         value directly into stdlib.h.  We may well need to #define it, or
19226         similar symbols, for other modules, but it's nice to also have an
19227         option to not #define it for applications like Emacs that do not
19228         need it.
19229
19230         * lib/stdlib.in.h (__attribute__): Do not #define.
19231         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19232         be defined only if the _Exit module is also used.
19233         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19235         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19236         platforms.
19237         * modules/_Exit (Files): Add m4/attribute.m4.
19238         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19239         * m4/attribute.m4: New file.
19240
19241 2011-02-12  Bruno Haible  <bruno@clisp.org>
19242
19243         wcsrtombs: Work around bug on native Windows.
19244         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19245         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19246         instead of len.
19247         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19248
19249 2011-02-12  Bruno Haible  <bruno@clisp.org>
19250
19251         mbsrtowcs: Work around bug on native Windows.
19252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19253         against mingw bug.
19254         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19255
19256 2011-02-12  Bruno Haible  <bruno@clisp.org>
19257
19258         Avoid setlocale bugs in tests.
19259         * modules/btowc (Dependencies): Add setlocale.
19260         * modules/c-strcase (Dependencies): Likewise.
19261         * modules/mbmemcasecmp (Dependencies): Likewise.
19262         * modules/mbmemcasecoll (Dependencies): Likewise.
19263         * modules/mbrtowc (Dependencies): Likewise.
19264         * modules/mbscasecmp (Dependencies): Likewise.
19265         * modules/mbscasestr (Dependencies): Likewise.
19266         * modules/mbschr (Dependencies): Likewise.
19267         * modules/mbscspn (Dependencies): Likewise.
19268         * modules/mbsinit (Dependencies): Likewise.
19269         * modules/mbsncasecmp (Dependencies): Likewise.
19270         * modules/mbsnrtowcs (Dependencies): Likewise.
19271         * modules/mbspbrk (Dependencies): Likewise.
19272         * modules/mbspcasecmp (Dependencies): Likewise.
19273         * modules/mbsrchr (Dependencies): Likewise.
19274         * modules/mbsrtowcs (Dependencies): Likewise.
19275         * modules/mbsspn (Dependencies): Likewise.
19276         * modules/mbsstr (Dependencies): Likewise.
19277         * modules/nl_langinfo (Dependencies): Likewise.
19278         * modules/quotearg (Dependencies): Likewise.
19279         * modules/unicase/locale-language (Dependencies): Likewise.
19280         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19281         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19282         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19283         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19284         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19285         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19286         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19287         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19288         * modules/vasnprintf-posix (Dependencies): Likewise.
19289         * modules/wcrtomb (Dependencies): Likewise.
19290         * modules/wcsnrtombs (Dependencies): Likewise.
19291         * modules/wcsrtombs (Dependencies): Likewise.
19292
19293 2011-02-12  Bruno Haible  <bruno@clisp.org>
19294
19295         setlocale: Workaround native Windows bug.
19296         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19297         succeeds but sets LC_CTYPE to "C", report a failure.
19298         * tests/test-setlocale2.sh: New file.
19299         * tests/test-setlocale2.c: New file.
19300         * modules/setlocale-tests (Files): Add the new files.
19301         (Makefile.am): Enable test-setlocale2.sh test.
19302         * doc/posix-functions/setlocale.texi: Mention workaround.
19303
19304 2011-02-11  Bruno Haible  <bruno@clisp.org>
19305
19306         Tests for module 'setlocale'.
19307         * modules/setlocale-tests: New file.
19308         * tests/test-setlocale1.sh: New file.
19309         * tests/test-setlocale1.c: New file.
19310
19311         New module 'setlocale'.
19312         * lib/locale.in.h (setlocale): New declaration.
19313         * lib/setlocale.c: New file, based on
19314         gettext/gettext-runtime/intl/setlocale.c.
19315         * m4/setlocale.m4: New file.
19316         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19317         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19318         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19319         REPLACE_SETLOCALE.
19320         * modules/setlocale: New file.
19321         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19322         * doc/posix-functions/setlocale.texi: Mention the new module.
19323
19324 2011-02-11  Bruno Haible  <bruno@clisp.org>
19325
19326         Prepare for locale dependent tests on mingw.
19327         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19328         because it has the wrong locale encoding.
19329         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19330         French_France.1252 instead of "fr".
19331         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19332         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19333         because it has the wrong locale encoding.
19334         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19335         native Windows, try Turkish_Turkey.65001.
19336         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19337         Chinese_China.54936.
19338
19339         Prepare for locale dependent tests on mingw.
19340         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19341         differently.
19342         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19343         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19344         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19345         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19346
19347 2011-02-11  Eric Blake  <eblake@redhat.com>
19348
19349         strptime: avoid compiler warnings
19350         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19351         compiler warnings about dead code.
19352         Reported by Daniel P. Berrange.
19353
19354 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19355
19356         doc: update users.txt
19357         * users.txt: Add rcs.
19358
19359 2011-02-10  John W. Eaton  <jwe@gnu.org>
19360
19361         doc: update users.txt
19362         * users.txt: Add octave.
19363
19364 2011-02-10  Jim Meyering  <meyering@redhat.com>
19365
19366         doc: update users.txt
19367         * users.txt: Add iwhd.
19368
19369 2011-02-09  Bruno Haible  <bruno@clisp.org>
19370
19371         gnulib-tool: Make copyright notice adjustment more robust.
19372         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19373         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19374         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19375         License".
19376         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19377
19378 2011-02-06  Bruno Haible  <bruno@clisp.org>
19379
19380         New module 'towctrans'.
19381         * modules/towctrans: New file.
19382         * lib/wctype.in.h (towctrans): New declaration.
19383         * lib/towctrans.c: New file.
19384         * lib/towctrans-impl.h: New file.
19385         * m4/towctrans.m4: New file.
19386         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19387         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19388         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19389         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19390         * doc/posix-functions/towctrans.texi: Mention the new module.
19391
19392 2011-02-06  Bruno Haible  <bruno@clisp.org>
19393
19394         New module 'wctrans'.
19395         * modules/wctrans: New file.
19396         * lib/wctype.in.h (wctrans): New declaration.
19397         * lib/wctrans.c: New file.
19398         * lib/wctrans-impl.h: New file.
19399         * m4/wctrans.m4: New file.
19400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19401         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19402         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19403         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19404         * doc/posix-functions/wctrans.texi: Mention the new module.
19405
19406 2011-02-06  Bruno Haible  <bruno@clisp.org>
19407
19408         New module 'iswctype'.
19409         * modules/iswctype: New file.
19410         * lib/wctype.in.h (iswctype): New declaration.
19411         * lib/iswctype.c: New file.
19412         * lib/iswctype-impl.h: New file.
19413         * m4/iswctype.m4: New file.
19414         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19415         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19416         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19417         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19418         * doc/posix-functions/iswctype.texi: Mention the new module and the
19419         HP-UX 11.00 problem.
19420
19421 2011-02-06  Bruno Haible  <bruno@clisp.org>
19422
19423         New module 'wctype'.
19424         * modules/wctype: Change to represent the wctype() substitute.
19425         * lib/wctype.in.h (wctype): New declaration.
19426         * lib/wctype.c: New file.
19427         * lib/wctype-impl.h: New file.
19428         * m4/wctype.m4: New file.
19429         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19430         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19431         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19432         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19433         * doc/posix-functions/wctype.texi: Mention the new module and the
19434         HP-UX 11.00 problem.
19435
19436 2011-02-06  Bruno Haible  <bruno@clisp.org>
19437
19438         wctype-h: Ensure wctype_t and wctrans_t are defined.
19439         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19440         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19441         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19442         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19443         HAVE_WCTRANS_T.
19444         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19445
19446 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19447
19448         flock: fix license typo
19449
19450         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19451         omitted.
19452
19453 2011-02-08  Bruno Haible  <bruno@clisp.org>
19454
19455         Split large sed scripts, for HP-UX sed.
19456         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19457         to avoid HP-UX limit of 99 commands, in the near future.
19458         * modules/stdlib (Makefile.am): Likewise.
19459         * modules/unistd (Makefile.am): Likewise.
19460         * modules/wchar (Makefile.am): Likewise.
19461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19462         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19463         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19464
19465 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19466             Bruno Haible  <bruno@clisp.org>
19467
19468         stdlib: improve random_r modularization
19469         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19470         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19471         you also need the random_r module to get this material right.
19472         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19473         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19474         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19475
19476 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19477
19478         stdlib: don't depend on stdint
19479         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19480         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19481         be independent of whether stdint.h is needed.
19482         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19483         here, instead of ...
19484         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19485         struct random_data should be using the random_r module, not just
19486         the stdlib module (which wouldn't make sense: what package needs
19487         just struct random_data without also needing random_r?).
19488         * modules/stdlib (Depends-on): Remove stdint.
19489
19490         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19491         See the thread rooted at
19492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19493         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19494         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19495         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19496         __VMS)); previously it was always included (via fcntl--.h).
19497         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19498         hand; this is good enough for load averages.  Also, do not use
19499         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19500         flags directly if available and don't bother otherwise.  (Packages
19501         that need the extra reliability should use the modules that define
19502         these flags on older platforms that lack them.)
19503         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19504         fcntl-safer.
19505
19506 2011-02-08  Jim Meyering  <meyering@redhat.com>
19507
19508         di-set.h, ino-map.h: add multiple-inclusion guard
19509         Technically, the guard is required only for ino-map.h, due to its
19510         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19511         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19512         * lib/ino-map.h: Likewise.
19513
19514 2011-02-06  Bruno Haible  <bruno@clisp.org>
19515
19516         iswblank: Ensure declaration on glibc systems.
19517         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19518         * modules/iswblank (Dependencies): Add 'extensions'.
19519         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19520
19521 2011-02-06  Bruno Haible  <bruno@clisp.org>
19522
19523         New module 'iswblank'.
19524         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19525         * modules/iswblank: New file.
19526         * modules/wctype-h (Files): Remove lib/iswblank.c.
19527         (Makefile.am): Substitute GNULIB_ISWBLANK.
19528         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19529         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19530         (gl_WCTYPE_H_DEFAULTS): New macro.
19531         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19532         * modules/iswblank-tests: New file.
19533         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19534         * tests/test-wctype-h.c (main): Remove iswblank tests.
19535         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19536         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19537         of 'wctype-h'.
19538         * NEWS: Mention the change.
19539         * modules/mbchar (Depends-on): Add iswblank.
19540
19541 2011-02-08  Bruno Haible  <bruno@clisp.org>
19542
19543         di-set tests: Refactor.
19544         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19545         unnecessary includes.
19546         (ASSERT): Remove macro.
19547         (main): Make C90 compliant by avoiding variable declaration after
19548         statement.
19549         * modules/di-set-tests (Files): Add tests/macros.h.
19550
19551 2011-02-08  Bruno Haible  <bruno@clisp.org>
19552
19553         ino-map tests: Refactor.
19554         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19555         unnecessary includes.
19556         (ASSERT): Remove macro.
19557         (main): Make C90 compliant by avoiding variable declaration after
19558         statement.
19559         * modules/ino-map-tests (Files): Add tests/macros.h.
19560
19561 2011-02-08  Jim Meyering  <meyering@redhat.com>
19562
19563         di-set: add "const" to a cast
19564         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19565         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19566
19567 2011-02-06  Bruno Haible  <bruno@clisp.org>
19568
19569         Rename module 'wctype' to 'wctype-h'.
19570         * modules/wctype-h: Renamed from modules/wctype.
19571         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19572         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19573         (Files, Depends-on, Makefile.am): Update.
19574         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19575         (Files, Makefile.am): Update.
19576         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19577         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19578         * doc/posix-headers/wctype.texi: Update.
19579         * doc/posix-functions/iswalnum.texi: Update.
19580         * doc/posix-functions/iswalpha.texi: Update.
19581         * doc/posix-functions/iswblank.texi: Update.
19582         * doc/posix-functions/iswcntrl.texi: Update.
19583         * doc/posix-functions/iswdigit.texi: Update.
19584         * doc/posix-functions/iswgraph.texi: Update.
19585         * doc/posix-functions/iswlower.texi: Update.
19586         * doc/posix-functions/iswprint.texi: Update.
19587         * doc/posix-functions/iswpunct.texi: Update.
19588         * doc/posix-functions/iswspace.texi: Update.
19589         * doc/posix-functions/iswupper.texi: Update.
19590         * doc/posix-functions/iswxdigit.texi: Update.
19591         * doc/posix-functions/towlower.texi: Update.
19592         * doc/posix-functions/towupper.texi: Update.
19593         * NEWS: Mention the change.
19594         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19595         * modules/mbchar (Dependencies): Likewise.
19596         * modules/mbswidth (Dependencies): Likewise.
19597         * modules/quotearg (Dependencies): Likewise.
19598         * modules/regex (Dependencies): Likewise.
19599         * modules/wcscasecmp (Dependencies): Likewise.
19600         * modules/wcsncasecmp (Dependencies): Likewise.
19601         * modules/wcwidth (Dependencies): Likewise.
19602
19603 2011-02-06  Bruno Haible  <bruno@clisp.org>
19604
19605         New module 'wcswidth'.
19606         * modules/wcswidth: New file.
19607         * lib/wchar.in.h (wcswidth): New declaration.
19608         * lib/wcswidth.c: New file.
19609         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19610         * m4/wcswidth.m4: New file.
19611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19613         REPLACE_WCSWIDTH.
19614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19615         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19616         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19617         * doc/posix-functions/wcswidth.texi: Mention the new module.
19618
19619 2011-02-06  Bruno Haible  <bruno@clisp.org>
19620
19621         New module 'wcstok'.
19622         * modules/wcstok: New file.
19623         * lib/wchar.in.h (wcstok): New declaration.
19624         * lib/wcstok.c: New file.
19625         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19626         * m4/wcstok.m4: New file.
19627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19630         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19631         * doc/posix-functions/wcstok.texi: Mention the new module.
19632
19633 2011-02-06  Bruno Haible  <bruno@clisp.org>
19634
19635         New module 'wcsstr'.
19636         * modules/wcsstr: New file.
19637         * lib/wchar.in.h (wcsstr): New declaration.
19638         * lib/wcsstr.c: New file.
19639         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19640         * m4/wcsstr.m4: New file.
19641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19644         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19645         * doc/posix-functions/wcsstr.texi: Mention the new module.
19646
19647 2011-02-06  Bruno Haible  <bruno@clisp.org>
19648
19649         New module 'wcspbrk'.
19650         * modules/wcspbrk: New file.
19651         * lib/wchar.in.h (wcspbrk): New declaration.
19652         * lib/wcspbrk.c: New file.
19653         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19654         * m4/wcspbrk.m4: New file.
19655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19658         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19659         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19660
19661 2011-02-06  Bruno Haible  <bruno@clisp.org>
19662
19663         New module 'wcsspn'.
19664         * modules/wcsspn: New file.
19665         * lib/wchar.in.h (wcsspn): New declaration.
19666         * lib/wcsspn.c: New file.
19667         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19668         * m4/wcsspn.m4: New file.
19669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19672         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19673         * doc/posix-functions/wcsspn.texi: Mention the new module.
19674
19675 2011-02-06  Bruno Haible  <bruno@clisp.org>
19676
19677         New module 'wcscspn'.
19678         * modules/wcscspn: New file.
19679         * lib/wchar.in.h (wcscspn): New declaration.
19680         * lib/wcscspn.c: New file.
19681         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19682         * m4/wcscspn.m4: New file.
19683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19686         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19687         * doc/posix-functions/wcscspn.texi: Mention the new module.
19688
19689 2011-02-06  Bruno Haible  <bruno@clisp.org>
19690
19691         New module 'wcsrchr'.
19692         * modules/wcsrchr: New file.
19693         * lib/wchar.in.h (wcsrchr): New declaration.
19694         * lib/wcsrchr.c: New file.
19695         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19696         * m4/wcsrchr.m4: New file.
19697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19700         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19701         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19702
19703 2011-02-06  Bruno Haible  <bruno@clisp.org>
19704
19705         New module 'wcschr'.
19706         * modules/wcschr: New file.
19707         * lib/wchar.in.h (wcschr): New declaration.
19708         * lib/wcschr.c: New file.
19709         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19710         * m4/wcschr.m4: New file.
19711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19714         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19715         * doc/posix-functions/wcschr.texi: Mention the new module.
19716
19717 2011-02-06  Bruno Haible  <bruno@clisp.org>
19718
19719         New module 'wcsdup'.
19720         * modules/wcsdup: New file.
19721         * lib/wchar.in.h (wcsdup): New declaration.
19722         * lib/wcsdup.c: New file.
19723         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19724         * m4/wcsdup.m4: New file.
19725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19728         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19729         * doc/posix-functions/wcsdup.texi: Mention the new module.
19730
19731 2011-02-06  Bruno Haible  <bruno@clisp.org>
19732
19733         New module 'wcsxfrm'.
19734         * modules/wcsxfrm: New file.
19735         * lib/wchar.in.h (wcsxfrm): New declaration.
19736         * lib/wcsxfrm.c: New file.
19737         * lib/wcsxfrm-impl.h: New file.
19738         * m4/wcsxfrm.m4: New file.
19739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19742         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19743         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19744
19745 2011-02-06  Bruno Haible  <bruno@clisp.org>
19746
19747         New module 'wcscoll'.
19748         * modules/wcscoll: New file.
19749         * lib/wchar.in.h (wcscoll): New declaration.
19750         * lib/wcscoll.c: New file.
19751         * lib/wcscoll-impl.h: New file.
19752         * m4/wcscoll.m4: New file.
19753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19756         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19757         * doc/posix-functions/wcscoll.texi: Mention the new module.
19758
19759 2011-02-06  Bruno Haible  <bruno@clisp.org>
19760
19761         New module 'wcsncasecmp'.
19762         * modules/wcsncasecmp: New file.
19763         * lib/wchar.in.h (wcsncasecmp): New declaration.
19764         * lib/wcsncasecmp.c: New file.
19765         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19766         * m4/wcsncasecmp.m4: New file.
19767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19770         HAVE_WCSNCASECMP.
19771         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19772         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19773
19774 2011-02-06  Bruno Haible  <bruno@clisp.org>
19775
19776         New module 'wcscasecmp'.
19777         * modules/wcscasecmp: New file.
19778         * lib/wchar.in.h (wcscasecmp): New declaration.
19779         * lib/wcscasecmp.c: New file.
19780         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19781         * m4/wcscasecmp.m4: New file.
19782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19785         HAVE_WCSCASECMP.
19786         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19787         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19788
19789 2011-02-05  Bruno Haible  <bruno@clisp.org>
19790
19791         New module 'wcsncmp'.
19792         * modules/wcsncmp: New file.
19793         * lib/wchar.in.h (wcsncmp): New declaration.
19794         * lib/wcsncmp.c: New file.
19795         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19796         * m4/wcsncmp.m4: New file.
19797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19800         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19801         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19802
19803 2011-02-05  Bruno Haible  <bruno@clisp.org>
19804
19805         New module 'wcscmp'.
19806         * modules/wcscmp: New file.
19807         * lib/wchar.in.h (wcscmp): New declaration.
19808         * lib/wcscmp.c: New file.
19809         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19810         * m4/wcscmp.m4: New file.
19811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19814         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19815         * doc/posix-functions/wcscmp.texi: Mention the new module.
19816
19817 2011-02-05  Bruno Haible  <bruno@clisp.org>
19818
19819         New module 'wcsncat'.
19820         * modules/wcsncat: New file.
19821         * lib/wchar.in.h (wcsncat): New declaration.
19822         * lib/wcsncat.c: New file.
19823         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19824         * m4/wcsncat.m4: New file.
19825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19828         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19829         * doc/posix-functions/wcsncat.texi: Mention the new module.
19830
19831 2011-02-05  Bruno Haible  <bruno@clisp.org>
19832
19833         New module 'wcscat'.
19834         * modules/wcscat: New file.
19835         * lib/wchar.in.h (wcscat): New declaration.
19836         * lib/wcscat.c: New file.
19837         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19838         * m4/wcscat.m4: New file.
19839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19842         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19843         * doc/posix-functions/wcscat.texi: Mention the new module.
19844
19845 2011-02-05  Bruno Haible  <bruno@clisp.org>
19846
19847         New module 'wcpncpy'.
19848         * modules/wcpncpy: New file.
19849         * lib/wchar.in.h (wcpncpy): New declaration.
19850         * lib/wcpncpy.c: New file.
19851         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19852         * m4/wcpncpy.m4: New file.
19853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19855         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19856         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19857         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19858
19859 2011-02-05  Bruno Haible  <bruno@clisp.org>
19860
19861         New module 'wcsncpy'.
19862         * modules/wcsncpy: New file.
19863         * lib/wchar.in.h (wcsncpy): New declaration.
19864         * lib/wcsncpy.c: New file.
19865         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19866         * m4/wcsncpy.m4: New file.
19867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19870         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19871         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19872
19873 2011-02-05  Bruno Haible  <bruno@clisp.org>
19874
19875         New module 'wcpcpy'.
19876         * modules/wcpcpy: New file.
19877         * lib/wchar.in.h (wcpcpy): New declaration.
19878         * lib/wcpcpy.c: New file.
19879         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19880         * m4/wcpcpy.m4: New file.
19881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19883         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19884         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19885         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19886
19887 2011-02-05  Bruno Haible  <bruno@clisp.org>
19888
19889         New module 'wcscpy'.
19890         * modules/wcscpy: New file.
19891         * lib/wchar.in.h (wcscpy): New declaration.
19892         * lib/wcscpy.c: New file.
19893         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19894         * m4/wcscpy.m4: New file.
19895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19898         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19899         * doc/posix-functions/wcscpy.texi: Mention the new module.
19900
19901 2011-02-05  Bruno Haible  <bruno@clisp.org>
19902
19903         New module 'wcsnlen'.
19904         * modules/wcsnlen: New file.
19905         * lib/wchar.in.h (wcsnlen): New declaration.
19906         * lib/wcsnlen.c: New file.
19907         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19908         * m4/wcsnlen.m4: New file.
19909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19912         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19913         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19914
19915 2011-02-05  Bruno Haible  <bruno@clisp.org>
19916
19917         New module 'wcslen'.
19918         * modules/wcslen: New file.
19919         * lib/wchar.in.h (wcslen): New declaration.
19920         * lib/wcslen.c: New file.
19921         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19922         * m4/wcslen.m4: New file.
19923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19926         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19927         * doc/posix-functions/wcslen.texi: Mention the new module.
19928
19929 2011-02-05  Bruno Haible  <bruno@clisp.org>
19930
19931         New module 'wmemset'.
19932         * modules/wmemset: New file.
19933         * lib/wchar.in.h (wmemset): New declaration.
19934         * lib/wmemset.c: New file.
19935         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19936         * m4/wmemset.m4: New file.
19937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19939         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19940         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19941         * doc/posix-functions/wmemset.texi: Mention the new module.
19942
19943 2011-02-05  Bruno Haible  <bruno@clisp.org>
19944
19945         New module 'wmemmove'.
19946         * modules/wmemmove: New file.
19947         * lib/wchar.in.h (wmemmove): New declaration.
19948         * lib/wmemmove.c: New file.
19949         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19950         * m4/wmemmove.m4: New file.
19951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19953         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19954         HAVE_WMEMMOVE.
19955         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19956         * doc/posix-functions/wmemmove.texi: Mention the new module.
19957
19958 2011-02-05  Bruno Haible  <bruno@clisp.org>
19959
19960         New module 'wmemcpy'.
19961         * modules/wmemcpy: New file.
19962         * lib/wchar.in.h (wmemcpy): New declaration.
19963         * lib/wmemcpy.c: New file.
19964         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19965         * m4/wmemcpy.m4: New file.
19966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19968         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19969         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19970         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19971
19972 2011-02-05  Bruno Haible  <bruno@clisp.org>
19973
19974         New module 'wmemcmp'.
19975         * modules/wmemcmp: New file.
19976         * lib/wchar.in.h (wmemcmp): New declaration.
19977         * lib/wmemcmp.c: New file.
19978         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19979         * m4/wmemcmp.m4: New file.
19980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19982         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19983         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19984         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19985
19986 2011-02-07  Jim Meyering  <meyering@redhat.com>
19987
19988         di-set, ino-map: new modules, from coreutils
19989         * lib/di-set.c: New file.
19990         * lib/di-set.h: Likewise.
19991         * lib/ino-map.c: Likewise.
19992         * lib/ino-map.h: Likewise.
19993         * modules/di-set: Likewise.
19994         * modules/di-set-tests: Likewise.
19995         * modules/ino-map: Likewise.
19996         * modules/ino-map-tests: Likewise.
19997         * tests/test-di-set.c: Likewise.
19998         * tests/test-ino-map.c: Likewise.
19999
20000 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20001
20002         getloadavg: merge minor changes from Emacs
20003
20004         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20005         (getloadavg): Use memset, not bzero.
20006
20007         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20008         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20009         clash (bug#86).
20010
20011 2010-11-14  Bruno Haible  <bruno@clisp.org>
20012
20013         Allow multiple gnulib generated replacements to coexist.
20014         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20015         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20016         * lib/langinfo.in.h (nl_item): Likewise.
20017         * lib/math.in.h (_NaN, NAN): Likewise.
20018         * lib/netdb.in.h (struct addrinfo): Likewise.
20019         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20020         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20021         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20022         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20023         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20024         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20025         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20026         pthread_mutexattr_init, pthread_mutexattr_settype,
20027         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20028         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20029         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20030         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20031         * lib/sched.in.h (struct sched_param): Likewise.
20032         * lib/se-selinux.in.h (security_class_t, security_context_t,
20033         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20034         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20035         lsetfilecon, fsetfilecon, security_check_context,
20036         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20037         Likewise.
20038         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20039         Likewise.
20040         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20041         _gl_function_taking_int_returning_void_t, union sigval,
20042         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20043         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20044         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20045         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20046         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20047         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20048         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20049         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20050         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20051         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20052         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20053         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20054         socklen_t, rpl_fd_isset): Likewise.
20055         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20056         * lib/sys_time.in.h (struct timeval): Likewise.
20057         * lib/sys_times.in.h (struct tms): Likewise.
20058         * lib/sys_utsname.in.h (struct utsname):
20059         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20060         * lib/unistd.in.h (getpagesize): Likewise.
20061         * lib/wchar.in.h (mbstate_t): Likewise.
20062         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20063         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20064         towlower, towupper): Likewise.
20065         Reported by Sam Steingold <sds@gnu.org>.
20066
20067 2011-02-05  Eric Blake  <eblake@redhat.com>
20068
20069         unsetenv: work around Haiku issues
20070         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20071         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20072
20073 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20074
20075         libposix: avoid calling error() within libposix
20076         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20077         is defined.
20078
20079 2011-02-05  Eric Blake  <eblake@redhat.com>
20080
20081         strerror_r-posix: port to cygwin
20082         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20083         implementation.
20084         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20085         * tests/test-strerror_r.c (main): Fix test.
20086         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20087         issue.
20088
20089 2011-02-05  Bruno Haible  <bruno@clisp.org>
20090
20091         New module 'wmemchr'.
20092         * modules/wmemchr: New file.
20093         * lib/wchar.in.h (wmemchr): New declaration.
20094         * lib/wmemchr.c: New file.
20095         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20096         * m4/wmemchr.m4: New file.
20097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20099         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20100         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20101         * doc/posix-functions/wmemchr.texi: Mention the new module.
20102
20103 2011-02-04  Eric Blake  <eblake@redhat.com>
20104
20105         fdopendir: detect FreeBSD bug
20106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20107         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20108
20109 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20110
20111         stdbool: do not define HAVE_STDBOOL_H
20112         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20113         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20114         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20115         imported from the latest Autoconf git.  It was motivated by Emacs,
20116         which uses gnulib but does not need HAVE_STDBOOL_H.
20117
20118 2011-02-04  Bruno Haible  <bruno@clisp.org>
20119
20120         wcsnrtombs: Prepare for new module wwcsnrtombs.
20121         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20122         * lib/wcsnrtombs.c: Include it.
20123         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20124
20125         wcsrtombs: Prepare for new module wwcsrtombs.
20126         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20127         * lib/wcsrtombs.c: Include it.
20128         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20129
20130         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20131         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20132         * lib/mbsnrtowcs.c: Include it.
20133         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20134
20135         mbsrtowcs: Prepare for new module mbsrtowwcs.
20136         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20137         * lib/mbsrtowcs.c: Include it.
20138         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20139
20140 2011-02-04  Bruno Haible  <bruno@clisp.org>
20141
20142         vasnprintf: Reduce use of malloc for small format strings.
20143         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20144         (arguments): Add room for the first 7 arguments.
20145         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20146         (char_directives, u8_directives, u16_directives, u32_directives): Add
20147         room for the first 7 directives.
20148         * lib/printf-parse.c: Include <string.h>.
20149         (PRINTF_PARSE): Change memory handling code so that it uses the first
20150         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20151         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20152         Reported by Pádraig Brady <P@draigbrady.com>.
20153
20154 2011-01-31  Eric Blake  <eblake@redhat.com>
20155
20156         dup2: work around Haiku bug
20157         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20158         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20159         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20160         * tests/test-dup2.c (main): Enhance test.
20161
20162 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20163
20164         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20165         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20166         declared by eglibc 2.11.2.
20167         * lib/stdio.in.h: Likewise.
20168
20169 2011-01-31  Eric Blake  <eblake@redhat.com>
20170
20171         ignore-value: add missing test dependency
20172         * tests/test-ignore-value.c: Revert previous change; stdio.h
20173         provides off_t.
20174         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20175
20176 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20177
20178         mktime: clarify long_int width checking
20179         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20180         the top level, to make it clearer that the assumption about
20181         long_int width is being checked.  See
20182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20183
20184 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20185
20186         ignore-value: Fix self-test.
20187         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20188
20189 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20190
20191         TYPE_MAXIMUM: avoid theoretically undefined behavior
20192         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20193         negative number, which the C Standard says has undefined behavior.
20194         In practice this is not a problem, but might as well do it by the book.
20195         Reported by Rich Felker and Eric Blake; see
20196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20197         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20198         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20200         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20201         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20202         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20203
20204         mktime: #undef mktime before #defining it
20205         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20206
20207         mktime: systematically normalize tm_isdst comparisons
20208         * lib/mktime.c (isdst_differ): New function.
20209         (__mktime_internal): Use it systematically for all isdst comparisons.
20210         This completes the fix for libc BZ #6723, and removes the need for
20211         normalizing tm_isdst.  See
20212         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20213         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20214
20215         mktime: fix some integer overflow issues and sidestep the rest
20216
20217         This was prompted by a bug report by Benjamin Lindner for MinGW
20218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20219         His bug is due to signed integer overflow (0 - INT_MIN), and I
20220         I scanned through mktime.c looking for other integer overflow
20221         problems, fixing all the bugs I found.
20222
20223         Although the C Standard says the resulting code is still not safe
20224         in the presence of integer overflow, in practice it should be good
20225         enough for all real-world two's-complement implementations, except
20226         for debugging environments that deliberately trap on integer
20227         overflow (e.g., gcc -ftrapv).
20228
20229         * lib/mktime.c (WRAPV): New macro.
20230         (SHR): Also check that long_int and time_t shift right in the
20231         usual way, before using the fast-but-unportable method.
20232         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20233         used.  The code already assumed two's complement, so there's
20234         no need to test for alternatives.  All uses removed.
20235         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20236         the C standard.  Problem reported by Rich Felker in
20237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20238         (twos_complement_arithmetic): Also check long_int and time_t.
20239         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20240         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20241         (__mktime_internal): Avoid integer overflow with unary subtraction
20242         in two instances where -1 - X is an adequate replacement for -X,
20243         since the calculations are approximate.
20244
20245 2011-01-29  Eric Blake  <eblake@redhat.com>
20246
20247         mktime: avoid infinite loop
20248         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20249         type; behavior is still undefined but portable to all known targets.
20250         Reported by Rich Felker.
20251
20252 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20253
20254         rename, unlink, same-inode: Relicense.
20255         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20256         * modules/unlink (License): Likewise.
20257         * modules/same-inode (License): Likewise.
20258
20259 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20260
20261         mktime: avoid problems on NetBSD 5 / i386
20262         * lib/mktime.c (long_int): New type.  This works around a problem
20263         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20264         but time_t is 64 bits, and where I expect the existing code is
20265         wrong in some cases.
20266         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20267         (ydhms_diff): Bring back the compile-time check for wide-enough
20268         year and yday.
20269
20270         mktime: fix misspelling in comment
20271         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20272         This merges all recent glibc changes of importance.
20273
20274 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20275
20276         move-if-change: cope with concurrent mv of identical file.
20277         * build-aux/move-if-change (CMPPROG): Accept environment
20278         variable as an override for `cmp'.
20279         (usage): Document CMPPROG.
20280         Adjust comparison to drop stdout.  Cope with failure of mv if
20281         the target file exists and is identical to the source, for
20282         parallel builds.
20283         Report from H.J. Lu against binutils in PR binutils/12283.
20284
20285 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20286
20287         * users.txt: Mention sharutils.
20288
20289 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20290
20291         * users.txt: Mention OATH Toolkit.
20292
20293 2011-01-27  Bruno Haible  <bruno@clisp.org>
20294
20295         Prepare for supporting FreeBSD 10.
20296         * build-aux/config.libpath: Remove handling of freebsd1*.
20297
20298 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20299
20300         Prepare for supporting FreeBSD 10.
20301         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20302         match FreeBSD 10.0.
20303
20304 2011-01-27  Bruno Haible  <bruno@clisp.org>
20305
20306         vma-iter, get-rusage-as: Add OpenBSD support.
20307         * modules/vma-iter (configure.ac): Test for mquery.
20308         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20309         * lib/vma-iter.c: Include <sys/mman.h>.
20310         (vma_iterate): Add an implementation based on mquery().
20311         * lib/resource-ext.h (get_rusage_as): Update comments.
20312         * lib/get-rusage-as.c: Likewise.
20313         * lib/get-rusage-data.c: Likewise.
20314
20315 2011-01-26  Karl Berry  <karl@gnu.org>
20316
20317         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20318         variables to make it easier to override the makeinfo program used.
20319
20320 2011-01-26  Eric Blake  <eblake@redhat.com>
20321
20322         fcntl: work around Haiku F_DUPFD bugs
20323         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20324         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20325         cloexec bit on duplication.
20326         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20327
20328 2011-01-26  Bruno Haible  <bruno@clisp.org>
20329
20330         Enable memory leak tests on AIX.
20331         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20332         * tests/test-fprintf-posix3.c (main): Likewise.
20333
20334 2011-01-26  Bruno Haible  <bruno@clisp.org>
20335
20336         Tests for module 'get-rusage-data'.
20337         * modules/get-rusage-data-tests: New file.
20338         * tests/test-get-rusage-data.c: New file.
20339
20340         New module 'get-rusage-data'.
20341         * lib/resource-ext.h (get_rusage_data): New declaration.
20342         * lib/get-rusage-data.c: New file.
20343         * modules/get-rusage-data: New file.
20344
20345 2011-01-25  Bruno Haible  <bruno@clisp.org>
20346
20347         get-rusage-as: Allow for easier testing.
20348         * lib/resource-ext.h (get_rusage_as): Add comment.
20349         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20350         (main): New function for interactive testing.
20351
20352 2011-01-25  Bruno Haible  <bruno@clisp.org>
20353
20354         vma-iter: Treat Haiku like BeOS.
20355         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20356         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20357
20358 2011-01-25  Eric Blake  <eblake@redhat.com>
20359
20360         c-stack: fix regression on cygwin when libsigsegv is present
20361         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20362
20363 2011-01-24  Bruno Haible  <bruno@clisp.org>
20364
20365         vma-iter: Avoid empty intervals.
20366         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20367         on an empty interval.
20368
20369 2011-01-24  Jim Meyering  <meyering@redhat.com>
20370
20371         u64: remove unnecessary #include
20372         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20373
20374 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20375
20376         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20377         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20378
20379 2011-01-23  Bruno Haible  <bruno@clisp.org>
20380
20381         New module 'vma-iter'.
20382         * lib/vma-iter.h: New file.
20383         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20384         * modules/vma-iter: New file.
20385         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20386         for get_rusage_as_via_iterator.
20387         (vma_iterate_callback): New function.
20388         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20389         * modules/get-rusage-as (Depends-on): Add vma-iter.
20390
20391 2011-01-23  Bruno Haible  <bruno@clisp.org>
20392
20393         uninorm: Tweak includes.
20394         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20395         Reported by Jim Meyering.
20396
20397 2011-01-23  Bruno Haible  <bruno@clisp.org>
20398
20399         get-rusage-as: Improve on NetBSD.
20400         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20401         /proc, like on FreeBSD.
20402
20403 2011-01-23  Jim Meyering  <meyering@redhat.com>
20404
20405         xreadlink.h: remove unnecessary #include
20406         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20407
20408         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20409         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20410
20411 2011-01-23  Bruno Haible  <bruno@clisp.org>
20412
20413         get-rusage-as: Fix bug.
20414         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20415         original limit when aborting the first loop.
20416
20417 2011-01-23  Bruno Haible  <bruno@clisp.org>
20418
20419         wctype: Ensure valid C syntax.
20420         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20421         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20422
20423 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20424
20425         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20427         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20428         as they are needed only for configure's test case.
20429         This removes two unnecessary symbols from config.h.
20430
20431         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20432         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20434         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20435         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20436         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20438         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20439         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20440         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20445         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20446         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20447         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20448         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20449
20450 2011-01-21  Eric Blake  <eblake@redhat.com>
20451
20452         maintainer-makefile: work with older git for submodule check
20453         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20454         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20455         Reported by Matthias Bolte.
20456
20457         bootstrap: minor portability fixes
20458         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20459         (usage): Omit leading capital and trailing . on help phrases, per
20460         GNU Coding Standards.
20461         (check_versions, top level): Prefix messages with script name.
20462
20463 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20464
20465         bootstrap: support --no-git option
20466         * build-aux/bootstrap: Add --no-git option, to be used when
20467         --gnulib-srcdir points to the exact desired checkout.
20468
20469 2011-01-21  Eric Blake  <eblake@redhat.com>
20470
20471         strerror_r-posix: work with glibc 2.13
20472         * lib/strerror_r.c (strerror_r): Fix return type.
20473
20474 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20475             Bruno Haible  <bruno@clisp.org>
20476
20477         uN_strstr: New unit tests.
20478         * modules/unistr/u8-strstr-tests: New file.
20479         * modules/unistr/u16-strstr-tests: New file.
20480         * modules/unistr/u32-strstr-tests: New file.
20481         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20482         * tests/unistr/test-u8-strstr.c: New file.
20483         * tests/unistr/test-u16-strstr.c: New file.
20484         * tests/unistr/test-u32-strstr.c: New file.
20485
20486 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20487             Bruno Haible  <bruno@clisp.org>
20488
20489         Make uN_strstr functions O(n) worst-case.
20490         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20491         16-bit and 32-bit unit cases, use the unibyte algorithm from
20492         lib/mbsstr.c.
20493         * lib/unistr/u8-strstr.c: Include <string.h>.
20494         (UNIT_IS_UINT8_T): New macro.
20495         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20496         (U_STRLEN, U_STRNLEN): New macros.
20497         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20498         (U_STRLEN, U_STRNLEN): New macros.
20499         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20500         (configure.ac): Update required libunistring version.
20501         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20502         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20503         malloca.
20504         (configure.ac): Update required libunistring version.
20505         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20506         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20507         malloca.
20508         (configure.ac): Update required libunistring version.
20509
20510 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20511             Bruno Haible  <bruno@clisp.org>
20512
20513         Prepare for faster uN_strstr functions.
20514         * lib/str-kmp.h: Support definable UNITs.
20515         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20516         needle_len argument.
20517         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20518         * lib/mbscasestr.c (mbscasestr): Likewise.
20519
20520 2011-01-21  Pádraig Brady <P@draigBrady.com>
20521
20522         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20523         * tests/test-malloca.c (main): Unset the environment variable
20524         to greatly speed up the test.
20525         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20526         * modules/malloca-tests: Depend on unsetenv.
20527
20528 2011-01-21  Pádraig Brady <P@draigBrady.com>
20529
20530         ignore-value: remove stdint dependency
20531         * lib/ignore-value.h: Remove <stdint.h>
20532         * modules/ignore-value: Remove stdint dependency.
20533
20534 2011-01-21  Jim Meyering  <meyering@redhat.com>
20535
20536         maint.mk: adjust variable name to be consistent with other gl_ vars
20537         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20538         to be lower case.
20539
20540 2011-01-20  Jim Meyering  <meyering@redhat.com>
20541
20542         maint.mk: make "check" depend on public-submodule-commit by default
20543         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20544
20545 2011-01-20  Bruno Haible  <bruno@clisp.org>
20546
20547         mbfile, mbiter: Complete change from 2008-12-21.
20548         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20549         * m4/mbiter.m4 (gl_MBITER): Likewise.
20550
20551 2011-01-20  Jim Meyering  <meyering@redhat.com>
20552
20553         init.sh: insert space between each function name and "()"
20554         * tests/init.sh: Make it a little easier to see that a function's
20555         name is "warn_", and not "warn" when looking at the first part of
20556         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20557
20558 2011-01-20  Jim Meyering  <meyering@redhat.com>
20559
20560         mountlist: clean up code formatting
20561         * lib/mountlist.c (read_file_system_list): Split a long line,
20562         correct bracing style, use NULL in place of "(struct statfs *)0",
20563         don't parenthesize return value, add spaces around "=" and after
20564         ";-in-for-stmt".
20565
20566 2011-01-14  Markus Duft <mduft@gentoo.org>
20567
20568         mountlist: add support for Interix
20569         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20570         Apply statvfs to all entries of /dev/fs.
20571         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20572         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20573
20574 2011-01-20  Jim Meyering  <meyering@redhat.com>
20575
20576         maint.mk: improve the public-submodule-commit rule
20577         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20578         to suppress printing of its commands... unless V=1.
20579         Add git submodule's --quiet option to suppress printing of e.g.,
20580         "Entering gnulib" output.
20581         "cd" into $(srcdir) before running git submodule.
20582
20583 2011-01-20  Bruno Haible  <bruno@clisp.org>
20584
20585         include_next: Fix bug introduced on 2011-01-18.
20586         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20587         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20588         ac_cv_header_... variable if the second argument is not 'check'.
20589         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20590         gl_NEXT_HEADERS_INTERNAL.
20591
20592 2011-01-20  Bruno Haible  <bruno@clisp.org>
20593
20594         Allow the user to avoid the GNULIB_TEST_* macros.
20595         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20596         Suggested by Paul Eggert.
20597
20598 2011-01-14  Jim Meyering  <meyering@redhat.com>
20599
20600         bootstrap: avoid failure when there is no .gitmodules file
20601         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20602         has been assigned to, even when its value is the empty string.
20603         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20604         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20605         Reported by John W. Eaton <jwe@gnu.org>.
20606
20607 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20608
20609         assume <ctype.h>, ..., <time.h> exist
20610         For years gnulib has been assuming the existence of the headers
20611         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20612         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20613         them, since they don't appear to be needed.
20614         * README (Portability guidelines): Document this.
20615         * lib/flock.c: Assume <fcntl.h> exists.
20616         * lib/regex_internal.h: Assume <locale.h> exists.
20617         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20619         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20620         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20621         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20622         * m4/regex.m4 (gl_REGEX): Likewise.
20623         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20624         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20625         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20626         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20627         * tests/test-argp.c: Likewise.
20628         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20629
20630         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20631         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20632         AA_APPLE_UNIVERSAL_BUILD.  See
20633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20634         * NEWS: Document this.
20635
20636 2011-01-19  Eric Blake  <eblake@redhat.com>
20637
20638         c-stack: assume stack overflow if SA_SIGINFO unsupported
20639         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20640         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20641         sigaction will work.
20642         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20643         behavior match Linux.
20644         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20645
20646         stdbool-tests: accomodate Haiku
20647         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20648
20649         binary-io: fix O_TEXT on Haiku
20650         * modules/binary-io (Depends-on): Add fcntl-h.
20651         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20652         than blindly undefining O_TEXT.
20653         Reported by Scott McCreary.
20654
20655 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20656
20657         include_next: do not check for standard headers like stddef.h
20658
20659         I found this problem when modifying Emacs to use gnulib.
20660         I noticed that it added HAVE_STDDEF_H to config.h, even though
20661         gnulib always assumes <stddef.h> exists as per README and this
20662         symbol is unnecessary.
20663         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20664         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20665         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20666         faster for headers like stddef.h that are known to exist.
20667         (gl_CHECK_NEXT_HEADERS): Use it.
20668         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20669         rather than gl_CHECK_NEXT_HEADERS.
20670         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20671         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20672
20673 2011-01-18  Eric Blake  <eblake@redhat.com>
20674
20675         ansi-c++-opt: skip C++ dependency style if C++ is unused
20676         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20677         tests when we know C++ compilation is not desired.
20678         Reported by Scott McCreary.
20679
20680 2011-01-18  Bruno Haible  <bruno@clisp.org>
20681
20682         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20683         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20684         (main): Perform test also when getrlimit and setrlimit don't exist or
20685         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20686         limiting the address space size using setrlimit, compare the address
20687         space size before and after the the test.
20688         * tests/test-dprintf-posix2.c: Likewise.
20689         * tests/test-fprintf-posix3.sh: Update skip messages.
20690         * tests/test-dprintf-posix2.sh: Likewise.
20691         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20692         * modules/dprintf-posix-tests (Depends-on): Likewise.
20693         Reported by Bruce Korb <bkorb@gnu.org> and
20694         Gary V. Vaughan <gary@gnu.org>.
20695
20696 2011-01-18  Bruno Haible  <bruno@clisp.org>
20697
20698         get-rusage-as: Improvement for Cygwin.
20699         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20700         areas that are merely reserved.
20701
20702 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20703
20704         strftime: remove dependencies on multibyte modules
20705
20706         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20707         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20708         only if __osf__ is defined, and I suspect OSF doesn't need these
20709         other modules.  If my guess is wrong, we'll need to come up with a
20710         variant of strftime that doesn't need the multibyte modules.
20711
20712         I discovered this problem when attempting modify Emacs to use the
20713         strftime module.  With the previous gnulib, this caused Emacs to
20714         need 31 new files, ranging from lib/config.charset to
20715         m4/wint_t.m4.  This was overkill and I expect would be offputting
20716         to the Emacs maintainers.  After this change, only 6 new files are
20717         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20718         stdbool.m4, and tm_gmtoff.m4.
20719
20720         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20721         Suggested by Bruno Haible in
20722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20723         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20724         and do not check for wchar.h.
20725         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20726         (Depends-on): Remove mbrlen, mbsinit, wchar.
20727
20728 2011-01-18  Bruno Haible  <bruno@clisp.org>
20729
20730         Tests for module 'get-rusage-as'.
20731         * modules/get-rusage-as-tests: New file.
20732         * tests/test-get-rusage-as.c: New file.
20733
20734         New module 'get-rusage-as'.
20735         * modules/get-rusage-as: New file.
20736         * lib/resource-ext.h: New file.
20737         * lib/get-rusage-as.c: New file.
20738
20739 2011-01-17  Eric Blake  <eblake@redhat.com>
20740
20741         sigaction: relax license from LGPLv3+ to LGPLv2+
20742         * modules/sigaction (License): Relax to LGPLv2+.
20743
20744 2011-01-14  Bruno Haible  <bruno@clisp.org>
20745
20746         filemode: Make function declarations usable in C++ mode.
20747         * lib/filemode.h: Enclose function declarations in extern "C" block.
20748         Reported by John W. Eaton <jwe@gnu.org>.
20749
20750 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20751
20752         save-cwd: no longer include "xgetcwd.h"
20753         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20754         This avoids a compilation failure in projects that use save-cwd
20755         without also using the xgetcwd module.
20756
20757 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20758
20759         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20760         This is so that a program like Emacs, which needs only dtoastr,
20761         does not have to bother with distributing and compiling ftoastr
20762         and ldtoastr.
20763         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20764         * modules/dtoastr, modules/ldtoastr: New files.
20765         * modules/ftoastr: Now works just for 'float'.
20766         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20767         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20768         dtoastr.c, ldtoastr.c.
20769
20770 2011-01-11  Jim Meyering  <meyering@redhat.com>
20771
20772         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20773         There is no need to work around the lack of the fchdir function,
20774         since gnulib can now provide a replacement when required.
20775         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20776         * modules/save-cwd (Depends-on): Add fchdir.
20777
20778 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20779
20780         openat, save-cwd: avoid xmalloc
20781
20782         This removes a direct (but undocumented) dependency of openat on
20783         xalloc, along with an indirect dependency via save-cwd.  It also
20784         removes a dependency of save-cwd on xgetcwd, and thereby
20785         indirectly on xalloc.  This change causes the openat substitute
20786         to fall back on save_cwd when memory is tight, and for save_cwd to
20787         fail instead of dying when memory is tight, but that's good enough.
20788         Problem and initial idea for fix reported by Bastien Roucaries in
20789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20790
20791         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20792         xalloc.h (for xmalloc).
20793         (openat_proc_name): Use malloc, not xmalloc.
20794         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20795         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20796
20797         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20798         This avoids heap allocation for file names whose lengths are in
20799         the range 512..1023, with the upper bound increasing to at most
20800         4031 depending on the platform's PATH_MAX.  (We do not want
20801         pathmax.h here as it might supply a non-constant PATH_MAX.)
20802         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20803         Perhaps they should be moved to malloca.h?
20804         (OPENAT_BUFFER_SIZE): Use them.
20805
20806 2011-01-10  Bruno Haible  <bruno@clisp.org>
20807
20808         doc: Update users.txt.
20809         * users.txt: Add recutils.
20810
20811 2011-01-09  Karl Berry  <karl@gnu.org>
20812
20813         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20814
20815         * doc/configmake.texi: New file.
20816         * doc/gnulib.texi: Include it.
20817         * modules/configmake: Move documentation from here.
20818
20819 2011-01-09  Bruno Haible  <bruno@clisp.org>
20820
20821         Update to Unicode 6.0.0.
20822         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20823         (get_lbp): Update for Unicode 6.0.0.
20824         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20825         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20826         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20827         U+11001, U+11038..U+11046. Remove U+06DE.
20828         (uc_width): Fix bounds of planes.
20829         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20830         lib/uniwidth/width.c.
20831         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20832         trailing whitespace removed.
20833         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20834         without comments, but with the original copyright notice.
20835         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20836         * lib/unicase/ignorable.h: Likewise.
20837         * lib/unicase/tocasefold.h: Likewise.
20838         * lib/unicase/tolower.h: Likewise.
20839         * lib/unicase/totitle.h: Likewise.
20840         * lib/unicase/toupper.h: Likewise.
20841         * lib/unictype/bidi_of.h: Likewise.
20842         * lib/unictype/blocks.h: Likewise.
20843         * lib/unictype/categ_C.h: Likewise.
20844         * lib/unictype/categ_Cn.h: Likewise.
20845         * lib/unictype/categ_L.h: Likewise.
20846         * lib/unictype/categ_Ll.h: Likewise.
20847         * lib/unictype/categ_Lm.h: Likewise.
20848         * lib/unictype/categ_Lo.h: Likewise.
20849         * lib/unictype/categ_Lu.h: Likewise.
20850         * lib/unictype/categ_M.h: Likewise.
20851         * lib/unictype/categ_Mc.h: Likewise.
20852         * lib/unictype/categ_Me.h: Likewise.
20853         * lib/unictype/categ_Mn.h: Likewise.
20854         * lib/unictype/categ_N.h: Likewise.
20855         * lib/unictype/categ_Nd.h: Likewise.
20856         * lib/unictype/categ_No.h: Likewise.
20857         * lib/unictype/categ_P.h: Likewise.
20858         * lib/unictype/categ_Po.h: Likewise.
20859         * lib/unictype/categ_S.h: Likewise.
20860         * lib/unictype/categ_Sc.h: Likewise.
20861         * lib/unictype/categ_Sk.h: Likewise.
20862         * lib/unictype/categ_Sm.h: Likewise.
20863         * lib/unictype/categ_So.h: Likewise.
20864         * lib/unictype/categ_of.h: Likewise.
20865         * lib/unictype/combining.h: Likewise.
20866         * lib/unictype/ctype_alnum.h: Likewise.
20867         * lib/unictype/ctype_alpha.h: Likewise.
20868         * lib/unictype/ctype_graph.h: Likewise.
20869         * lib/unictype/ctype_lower.h: Likewise.
20870         * lib/unictype/ctype_print.h: Likewise.
20871         * lib/unictype/ctype_punct.h: Likewise.
20872         * lib/unictype/ctype_upper.h: Likewise.
20873         * lib/unictype/decdigit.h: Likewise.
20874         * lib/unictype/digit.h: Likewise.
20875         * lib/unictype/numeric.h: Likewise.
20876         * lib/unictype/pr_alphabetic.h: Likewise.
20877         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20878         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20879         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20880         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20881         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20882         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20883         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20884         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20885         * lib/unictype/pr_case_ignorable.h: Likewise.
20886         * lib/unictype/pr_cased.h: Likewise.
20887         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20888         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20889         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20890         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20891         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20892         * lib/unictype/pr_combining.h: Likewise.
20893         * lib/unictype/pr_composite.h: Likewise.
20894         * lib/unictype/pr_currency_symbol.h: Likewise.
20895         * lib/unictype/pr_decimal_digit.h: Likewise.
20896         * lib/unictype/pr_deprecated.h: Likewise.
20897         * lib/unictype/pr_format_control.h: Likewise.
20898         * lib/unictype/pr_grapheme_base.h: Likewise.
20899         * lib/unictype/pr_grapheme_extend.h: Likewise.
20900         * lib/unictype/pr_grapheme_link.h: Likewise.
20901         * lib/unictype/pr_id_continue.h: Likewise.
20902         * lib/unictype/pr_id_start.h: Likewise.
20903         * lib/unictype/pr_ideographic.h: Likewise.
20904         * lib/unictype/pr_lowercase.h: Likewise.
20905         * lib/unictype/pr_math.h: Likewise.
20906         * lib/unictype/pr_numeric.h: Likewise.
20907         * lib/unictype/pr_other_alphabetic.h: Likewise.
20908         * lib/unictype/pr_other_id_continue.h: Likewise.
20909         * lib/unictype/pr_other_math.h: Likewise.
20910         * lib/unictype/pr_punctuation.h: Likewise.
20911         * lib/unictype/pr_sentence_terminal.h: Likewise.
20912         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20913         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20914         * lib/unictype/pr_unified_ideograph.h: Likewise.
20915         * lib/unictype/pr_uppercase.h: Likewise.
20916         * lib/unictype/pr_xid_continue.h: Likewise.
20917         * lib/unictype/pr_xid_start.h: Likewise.
20918         * lib/unictype/scripts.h: Likewise.
20919         * lib/unictype/scripts_byname.gperf: Likewise.
20920         * lib/unictype/sy_java_ident.h: Likewise.
20921         * lib/unigbrk/gbrkprop.h: Likewise.
20922         * lib/unilbrk/lbrkprop1.h: Likewise.
20923         * lib/unilbrk/lbrkprop2.h: Likewise.
20924         * lib/uninorm/decomposition-table2.h: Likewise.
20925         * lib/uniwbrk/wbrkprop.h: Likewise.
20926         * tests/unicase/test-cased.c: Likewise.
20927         * tests/unicase/test-ignorable.c: Likewise.
20928         * tests/unicase/test-uc_tolower.c: Likewise.
20929         * tests/unicase/test-uc_totitle.c: Likewise.
20930         * tests/unicase/test-uc_toupper.c: Likewise.
20931         * tests/unictype/test-categ_C.c: Likewise.
20932         * tests/unictype/test-categ_Cn.c: Likewise.
20933         * tests/unictype/test-categ_L.c: Likewise.
20934         * tests/unictype/test-categ_Ll.c: Likewise.
20935         * tests/unictype/test-categ_Lm.c: Likewise.
20936         * tests/unictype/test-categ_Lo.c: Likewise.
20937         * tests/unictype/test-categ_Lu.c: Likewise.
20938         * tests/unictype/test-categ_M.c: Likewise.
20939         * tests/unictype/test-categ_Mc.c: Likewise.
20940         * tests/unictype/test-categ_Me.c: Likewise.
20941         * tests/unictype/test-categ_Mn.c: Likewise.
20942         * tests/unictype/test-categ_N.c: Likewise.
20943         * tests/unictype/test-categ_Nd.c: Likewise.
20944         * tests/unictype/test-categ_No.c: Likewise.
20945         * tests/unictype/test-categ_P.c: Likewise.
20946         * tests/unictype/test-categ_Po.c: Likewise.
20947         * tests/unictype/test-categ_S.c: Likewise.
20948         * tests/unictype/test-categ_Sc.c: Likewise.
20949         * tests/unictype/test-categ_Sk.c: Likewise.
20950         * tests/unictype/test-categ_Sm.c: Likewise.
20951         * tests/unictype/test-categ_So.c: Likewise.
20952         * tests/unictype/test-ctype_alnum.c: Likewise.
20953         * tests/unictype/test-ctype_alpha.c: Likewise.
20954         * tests/unictype/test-ctype_graph.c: Likewise.
20955         * tests/unictype/test-ctype_lower.c: Likewise.
20956         * tests/unictype/test-ctype_print.c: Likewise.
20957         * tests/unictype/test-ctype_punct.c: Likewise.
20958         * tests/unictype/test-ctype_upper.c: Likewise.
20959         * tests/unictype/test-decdigit.h: Likewise.
20960         * tests/unictype/test-digit.h: Likewise.
20961         * tests/unictype/test-numeric.h: Likewise.
20962         * tests/unictype/test-pr_alphabetic.c: Likewise.
20963         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20964         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20965         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20966         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20967         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20968         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20969         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20970         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20971         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20972         * tests/unictype/test-pr_cased.c: Likewise.
20973         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20974         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20975         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20976         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20977         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20978         * tests/unictype/test-pr_combining.c: Likewise.
20979         * tests/unictype/test-pr_composite.c: Likewise.
20980         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20981         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20982         * tests/unictype/test-pr_deprecated.c: Likewise.
20983         * tests/unictype/test-pr_format_control.c: Likewise.
20984         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20985         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20986         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20987         * tests/unictype/test-pr_id_continue.c: Likewise.
20988         * tests/unictype/test-pr_id_start.c: Likewise.
20989         * tests/unictype/test-pr_ideographic.c: Likewise.
20990         * tests/unictype/test-pr_lowercase.c: Likewise.
20991         * tests/unictype/test-pr_math.c: Likewise.
20992         * tests/unictype/test-pr_numeric.c: Likewise.
20993         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20994         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20995         * tests/unictype/test-pr_other_math.c: Likewise.
20996         * tests/unictype/test-pr_punctuation.c: Likewise.
20997         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20998         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20999         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21000         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21001         * tests/unictype/test-pr_uppercase.c: Likewise.
21002         * tests/unictype/test-pr_xid_continue.c: Likewise.
21003         * tests/unictype/test-pr_xid_start.c: Likewise.
21004         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21005         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21006         changes.
21007         * lib/unictype/categ_Cc.h: Likewise.
21008         * lib/unictype/categ_Cf.h: Likewise.
21009         * lib/unictype/categ_Co.h: Likewise.
21010         * lib/unictype/categ_Cs.h: Likewise.
21011         * lib/unictype/categ_Lt.h: Likewise.
21012         * lib/unictype/categ_Nl.h: Likewise.
21013         * lib/unictype/categ_Pc.h: Likewise.
21014         * lib/unictype/categ_Pd.h: Likewise.
21015         * lib/unictype/categ_Pe.h: Likewise.
21016         * lib/unictype/categ_Pf.h: Likewise.
21017         * lib/unictype/categ_Pi.h: Likewise.
21018         * lib/unictype/categ_Ps.h: Likewise.
21019         * lib/unictype/categ_Z.h: Likewise.
21020         * lib/unictype/categ_Zl.h: Likewise.
21021         * lib/unictype/categ_Zp.h: Likewise.
21022         * lib/unictype/categ_Zs.h: Likewise.
21023         * lib/unictype/ctype_blank.h: Likewise.
21024         * lib/unictype/ctype_cntrl.h: Likewise.
21025         * lib/unictype/ctype_digit.h: Likewise.
21026         * lib/unictype/ctype_space.h: Likewise.
21027         * lib/unictype/ctype_xdigit.h: Likewise.
21028         * lib/unictype/mirror.h: Likewise.
21029         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21030         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21031         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21032         * lib/unictype/pr_bidi_control.h: Likewise.
21033         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21034         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21035         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21036         * lib/unictype/pr_bidi_pdf.h: Likewise.
21037         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21038         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21039         * lib/unictype/pr_dash.h: Likewise.
21040         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21041         * lib/unictype/pr_diacritic.h: Likewise.
21042         * lib/unictype/pr_extender.h: Likewise.
21043         * lib/unictype/pr_hex_digit.h: Likewise.
21044         * lib/unictype/pr_hyphen.h: Likewise.
21045         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21046         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21047         * lib/unictype/pr_ignorable_control.h: Likewise.
21048         * lib/unictype/pr_iso_control.h: Likewise.
21049         * lib/unictype/pr_join_control.h: Likewise.
21050         * lib/unictype/pr_left_of_pair.h: Likewise.
21051         * lib/unictype/pr_line_separator.h: Likewise.
21052         * lib/unictype/pr_logical_order_exception.h: Likewise.
21053         * lib/unictype/pr_non_break.h: Likewise.
21054         * lib/unictype/pr_not_a_character.h: Likewise.
21055         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21056         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21057         * lib/unictype/pr_other_id_start.h: Likewise.
21058         * lib/unictype/pr_other_lowercase.h: Likewise.
21059         * lib/unictype/pr_other_uppercase.h: Likewise.
21060         * lib/unictype/pr_paired_punctuation.h: Likewise.
21061         * lib/unictype/pr_paragraph_separator.h: Likewise.
21062         * lib/unictype/pr_pattern_syntax.h: Likewise.
21063         * lib/unictype/pr_pattern_white_space.h: Likewise.
21064         * lib/unictype/pr_private_use.h: Likewise.
21065         * lib/unictype/pr_quotation_mark.h: Likewise.
21066         * lib/unictype/pr_radical.h: Likewise.
21067         * lib/unictype/pr_soft_dotted.h: Likewise.
21068         * lib/unictype/pr_space.h: Likewise.
21069         * lib/unictype/pr_titlecase.h: Likewise.
21070         * lib/unictype/pr_variation_selector.h: Likewise.
21071         * lib/unictype/pr_white_space.h: Likewise.
21072         * lib/unictype/pr_zero_width.h: Likewise.
21073         * lib/unictype/sy_c_ident.h: Likewise.
21074         * lib/unictype/sy_c_whitespace.h: Likewise.
21075         * lib/unictype/sy_java_whitespace.h: Likewise.
21076         * lib/uninorm/composition-table.gperf: Likewise.
21077         * lib/uninorm/decomposition-table1.h: Likewise.
21078         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21079         LB8.
21080         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21081         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21082         * modules/unictype/*: Bump version number of expected libunistring
21083         version.
21084
21085 2011-01-09  Bruno Haible  <bruno@clisp.org>
21086
21087         Update to Unicode 5.2.0.
21088         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21089         trailing whitespace removed.
21090
21091 2011-01-09  Bruno Haible  <bruno@clisp.org>
21092
21093         New Unicode character properties, from Unicode 5.2.0.
21094         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21095         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21096         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21097         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21098         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21099         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21100         uc_is_property_cased, uc_is_property_case_ignorable,
21101         uc_is_property_changes_when_lowercased,
21102         uc_is_property_changes_when_uppercased,
21103         uc_is_property_changes_when_titlecased,
21104         uc_is_property_changes_when_casefolded,
21105         uc_is_property_changes_when_casemapped): New declarations.
21106         * lib/unictype/pr_byname.gperf: Add the new properties.
21107         * modules/unictype/property-byname (Depends-on): Depend on the new
21108         properties modules.
21109         * modules/unictype/property-all (Depends-on): Likewise.
21110         * MODULES.html.sh (Unicode string functions): Add
21111         unictype/property-case-ignorable, unictype/property-cased,
21112         unictype/property-changes-when-casefolded,
21113         unictype/property-changes-when-casemapped,
21114         unictype/property-changes-when-lowercased,
21115         unictype/property-changes-when-titlecased,
21116         unictype/property-changes-when-uppercased.
21117
21118         New module 'unictype/property-changes-when-casemapped'.
21119         * modules/unictype/property-changes-when-casemapped: New file.
21120         * lib/unictype/pr_changes_when_casemapped.c: New file.
21121         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21122         generated by gen-uni-tables.
21123         * modules/unictype/property-changes-when-casemapped-tests: New file.
21124         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21125         automatically generated by gen-uni-tables.
21126
21127         New module 'unictype/property-changes-when-casefolded'.
21128         * modules/unictype/property-changes-when-casefolded: New file.
21129         * lib/unictype/pr_changes_when_casefolded.c: New file.
21130         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21131         generated by gen-uni-tables.
21132         * modules/unictype/property-changes-when-casefolded-tests: New file.
21133         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21134         automatically generated by gen-uni-tables.
21135
21136         New module 'unictype/property-changes-when-titlecased'.
21137         * modules/unictype/property-changes-when-titlecased: New file.
21138         * lib/unictype/pr_changes_when_titlecased.c: New file.
21139         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21140         generated by gen-uni-tables.
21141         * modules/unictype/property-changes-when-titlecased-tests: New file.
21142         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21143         automatically generated by gen-uni-tables.
21144
21145         New module 'unictype/property-changes-when-uppercased'.
21146         * modules/unictype/property-changes-when-uppercased: New file.
21147         * lib/unictype/pr_changes_when_uppercased.c: New file.
21148         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21149         generated by gen-uni-tables.
21150         * modules/unictype/property-changes-when-uppercased-tests: New file.
21151         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21152         automatically generated by gen-uni-tables.
21153
21154         New module 'unictype/property-changes-when-lowercased'.
21155         * modules/unictype/property-changes-when-lowercased: New file.
21156         * lib/unictype/pr_changes_when_lowercased.c: New file.
21157         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21158         generated by gen-uni-tables.
21159         * modules/unictype/property-changes-when-lowercased-tests: New file.
21160         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21161         automatically generated by gen-uni-tables.
21162
21163         New module 'unictype/property-case-ignorable'.
21164         * modules/unictype/property-case-ignorable: New file.
21165         * lib/unictype/pr_case_ignorable.c: New file.
21166         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21167         by gen-uni-tables.
21168         * modules/unictype/property-case-ignorable-tests: New file.
21169         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21170         generated by gen-uni-tables.
21171
21172         New module 'unictype/property-cased'.
21173         * modules/unictype/property-cased: New file.
21174         * lib/unictype/pr_cased.c: New file.
21175         * lib/unictype/pr_cased.h: New file, automatically generated by
21176         gen-uni-tables.
21177         * modules/unictype/property-cased-tests: New file.
21178         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21179         gen-uni-tables.
21180
21181 2011-01-09  Bruno Haible  <bruno@clisp.org>
21182
21183         Update to Unicode 5.2.0.
21184         * lib/gen-uni-tables.c (output_predicate, output_category,
21185         output_combclass, output_bidi_category, output_decimal_digit_test,
21186         output_decimal_digit, output_digit_test, output_digit,
21187         output_numeric_test, output_numeric, output_mirror, output_scripts,
21188         output_scripts_byname, output_blocks, output_ident_category): Fix
21189         comment header.
21190         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21191         get_wbp.
21192         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21193         items.
21194         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21195         Changes_When_Lowercased, Changes_When_Uppercased,
21196         Changes_When_Titlecased, Changes_When_Casefolded,
21197         Changes_When_Casemapped.
21198         (is_property_alphabetic, is_property_default_ignorable_code_point):
21199         Update for Unicode 5.2.0.
21200         (is_property_cased, is_property_case_ignorable,
21201         is_property_changes_when_lowercased,
21202         is_property_changes_when_uppercased,
21203         is_property_changes_when_titlecased,
21204         is_property_changes_when_casefolded,
21205         is_property_changes_when_casemapped): New functions.
21206         (output_properties): Output also the properties cased, case_ignorable,
21207         changes_when_lowercased, changes_when_uppercased,
21208         changes_when_titlecased, changes_when_casefolded,
21209         changes_when_casemapped.
21210         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21211         Unicode TR#11 revision 17 -> 19.
21212         (LBP_CP): New enumeration value.
21213         (LBP_*): Adjust values accordingly.
21214         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21215         TR#14 revision 22 -> 24.
21216         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21217         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21218         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21219         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21220         is_WBP_MIDLETTER.
21221         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21222         the code1 and code2 of each composition rule.
21223         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21224         * lib/unicase/ignorable.h: Likewise.
21225         * lib/unicase/tocasefold.h: Likewise.
21226         * lib/unicase/tolower.h: Likewise.
21227         * lib/unicase/totitle.h: Likewise.
21228         * lib/unicase/toupper.h: Likewise.
21229         * lib/unictype/bidi_of.h: Likewise.
21230         * lib/unictype/blocks.h: Likewise.
21231         * lib/unictype/categ_C.h: Likewise.
21232         * lib/unictype/categ_Cf.h: Likewise.
21233         * lib/unictype/categ_Cn.h: Likewise.
21234         * lib/unictype/categ_L.h: Likewise.
21235         * lib/unictype/categ_Ll.h: Likewise.
21236         * lib/unictype/categ_Lm.h: Likewise.
21237         * lib/unictype/categ_Lo.h: Likewise.
21238         * lib/unictype/categ_Lu.h: Likewise.
21239         * lib/unictype/categ_M.h: Likewise.
21240         * lib/unictype/categ_Mc.h: Likewise.
21241         * lib/unictype/categ_Mn.h: Likewise.
21242         * lib/unictype/categ_N.h: Likewise.
21243         * lib/unictype/categ_Nd.h: Likewise.
21244         * lib/unictype/categ_Nl.h: Likewise.
21245         * lib/unictype/categ_No.h: Likewise.
21246         * lib/unictype/categ_P.h: Likewise.
21247         * lib/unictype/categ_Pd.h: Likewise.
21248         * lib/unictype/categ_Po.h: Likewise.
21249         * lib/unictype/categ_S.h: Likewise.
21250         * lib/unictype/categ_Sc.h: Likewise.
21251         * lib/unictype/categ_So.h: Likewise.
21252         * lib/unictype/categ_of.h: Likewise.
21253         * lib/unictype/combining.h: Likewise.
21254         * lib/unictype/ctype_alnum.h: Likewise.
21255         * lib/unictype/ctype_alpha.h: Likewise.
21256         * lib/unictype/ctype_graph.h: Likewise.
21257         * lib/unictype/ctype_lower.h: Likewise.
21258         * lib/unictype/ctype_print.h: Likewise.
21259         * lib/unictype/ctype_punct.h: Likewise.
21260         * lib/unictype/ctype_upper.h: Likewise.
21261         * lib/unictype/decdigit.h: Likewise.
21262         * lib/unictype/digit.h: Likewise.
21263         * lib/unictype/numeric.h: Likewise.
21264         * lib/unictype/pr_alphabetic.h: Likewise.
21265         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21266         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21267         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21268         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21269         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21270         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21271         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21272         * lib/unictype/pr_combining.h: Likewise.
21273         * lib/unictype/pr_composite.h: Likewise.
21274         * lib/unictype/pr_currency_symbol.h: Likewise.
21275         * lib/unictype/pr_dash.h: Likewise.
21276         * lib/unictype/pr_decimal_digit.h: Likewise.
21277         * lib/unictype/pr_deprecated.h: Likewise.
21278         * lib/unictype/pr_diacritic.h: Likewise.
21279         * lib/unictype/pr_extender.h: Likewise.
21280         * lib/unictype/pr_grapheme_base.h: Likewise.
21281         * lib/unictype/pr_grapheme_extend.h: Likewise.
21282         * lib/unictype/pr_grapheme_link.h: Likewise.
21283         * lib/unictype/pr_id_continue.h: Likewise.
21284         * lib/unictype/pr_id_start.h: Likewise.
21285         * lib/unictype/pr_ideographic.h: Likewise.
21286         * lib/unictype/pr_ignorable_control.h: Likewise.
21287         * lib/unictype/pr_logical_order_exception.h: Likewise.
21288         * lib/unictype/pr_lowercase.h: Likewise.
21289         * lib/unictype/pr_numeric.h: Likewise.
21290         * lib/unictype/pr_other_alphabetic.h: Likewise.
21291         * lib/unictype/pr_punctuation.h: Likewise.
21292         * lib/unictype/pr_sentence_terminal.h: Likewise.
21293         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21294         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21295         * lib/unictype/pr_unified_ideograph.h: Likewise.
21296         * lib/unictype/pr_uppercase.h: Likewise.
21297         * lib/unictype/pr_xid_continue.h: Likewise.
21298         * lib/unictype/pr_xid_start.h: Likewise.
21299         * lib/unictype/pr_zero_width.h: Likewise.
21300         * lib/unictype/scripts.h: Likewise.
21301         * lib/unictype/scripts_byname.gperf: Likewise.
21302         * lib/unictype/sy_java_ident.h: Likewise.
21303         * lib/unigbrk/gbrkprop.h: Likewise.
21304         * lib/unilbrk/lbrkprop1.h: Likewise.
21305         * lib/unilbrk/lbrkprop2.h: Likewise.
21306         * lib/unilbrk/lbrktables.h: Likewise.
21307         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21308         LBP_CP. Implement rule LB30.
21309         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21310         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21311         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21312         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21313         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21314         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21315         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21316         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21317         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21318         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21319         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21320         bits instead of 16 bits in the code1 and code2 of each composition
21321         rule.
21322         (uc_composition): Update for Unicode 5.2.0.
21323         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21324         * lib/uninorm/decomposition-table2.h: Likewise.
21325         * lib/uniwbrk/wbrkprop.h: Likewise.
21326         * tests/unicase/test-cased.c: Likewise.
21327         * tests/unicase/test-ignorable.c: Likewise.
21328         * tests/unicase/test-uc_tolower.c: Likewise.
21329         * tests/unicase/test-uc_totitle.c: Likewise.
21330         * tests/unicase/test-uc_toupper.c: Likewise.
21331         * tests/unictype/test-categ_C.c: Likewise.
21332         * tests/unictype/test-categ_Cf.c: Likewise.
21333         * tests/unictype/test-categ_Cn.c: Likewise.
21334         * tests/unictype/test-categ_L.c: Likewise.
21335         * tests/unictype/test-categ_Ll.c: Likewise.
21336         * tests/unictype/test-categ_Lm.c: Likewise.
21337         * tests/unictype/test-categ_Lo.c: Likewise.
21338         * tests/unictype/test-categ_Lu.c: Likewise.
21339         * tests/unictype/test-categ_M.c: Likewise.
21340         * tests/unictype/test-categ_Mc.c: Likewise.
21341         * tests/unictype/test-categ_Mn.c: Likewise.
21342         * tests/unictype/test-categ_N.c: Likewise.
21343         * tests/unictype/test-categ_Nd.c: Likewise.
21344         * tests/unictype/test-categ_Nl.c: Likewise.
21345         * tests/unictype/test-categ_No.c: Likewise.
21346         * tests/unictype/test-categ_P.c: Likewise.
21347         * tests/unictype/test-categ_Pd.c: Likewise.
21348         * tests/unictype/test-categ_Po.c: Likewise.
21349         * tests/unictype/test-categ_S.c: Likewise.
21350         * tests/unictype/test-categ_Sc.c: Likewise.
21351         * tests/unictype/test-categ_So.c: Likewise.
21352         * tests/unictype/test-ctype_alnum.c: Likewise.
21353         * tests/unictype/test-ctype_alpha.c: Likewise.
21354         * tests/unictype/test-ctype_graph.c: Likewise.
21355         * tests/unictype/test-ctype_lower.c: Likewise.
21356         * tests/unictype/test-ctype_print.c: Likewise.
21357         * tests/unictype/test-ctype_punct.c: Likewise.
21358         * tests/unictype/test-ctype_upper.c: Likewise.
21359         * tests/unictype/test-decdigit.h: Likewise.
21360         * tests/unictype/test-digit.h: Likewise.
21361         * tests/unictype/test-numeric.h: Likewise.
21362         * tests/unictype/test-pr_alphabetic.c: Likewise.
21363         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21364         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21365         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21366         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21367         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21368         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21369         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21370         * tests/unictype/test-pr_combining.c: Likewise.
21371         * tests/unictype/test-pr_composite.c: Likewise.
21372         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21373         * tests/unictype/test-pr_dash.c: Likewise.
21374         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21375         * tests/unictype/test-pr_deprecated.c: Likewise.
21376         * tests/unictype/test-pr_diacritic.c: Likewise.
21377         * tests/unictype/test-pr_extender.c: Likewise.
21378         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21379         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21380         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21381         * tests/unictype/test-pr_id_continue.c: Likewise.
21382         * tests/unictype/test-pr_id_start.c: Likewise.
21383         * tests/unictype/test-pr_ideographic.c: Likewise.
21384         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21385         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21386         * tests/unictype/test-pr_lowercase.c: Likewise.
21387         * tests/unictype/test-pr_numeric.c: Likewise.
21388         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21389         * tests/unictype/test-pr_punctuation.c: Likewise.
21390         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21391         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21392         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21393         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21394         * tests/unictype/test-pr_uppercase.c: Likewise.
21395         * tests/unictype/test-pr_xid_continue.c: Likewise.
21396         * tests/unictype/test-pr_xid_start.c: Likewise.
21397         * tests/unictype/test-pr_zero_width.c: Likewise.
21398         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21399         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21400         changed behaviour: line breaking is now disallowed between a letter
21401         or '=' and '('.
21402         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21403         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21404         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21405         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21406         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21407         lib/uniwidth/width.c.
21408         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21409         without comments, but with the original copyright notice.
21410         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21411         changes.
21412         * lib/unictype/categ_Cc.h: Likewise.
21413         * lib/unictype/categ_Co.h: Likewise.
21414         * lib/unictype/categ_Cs.h: Likewise.
21415         * lib/unictype/categ_Lt.h: Likewise.
21416         * lib/unictype/categ_Me.h: Likewise.
21417         * lib/unictype/categ_Pc.h: Likewise.
21418         * lib/unictype/categ_Pe.h: Likewise.
21419         * lib/unictype/categ_Pf.h: Likewise.
21420         * lib/unictype/categ_Pi.h: Likewise.
21421         * lib/unictype/categ_Ps.h: Likewise.
21422         * lib/unictype/categ_Sk.h: Likewise.
21423         * lib/unictype/categ_Sm.h: Likewise.
21424         * lib/unictype/categ_Z.h: Likewise.
21425         * lib/unictype/categ_Zl.h: Likewise.
21426         * lib/unictype/categ_Zp.h: Likewise.
21427         * lib/unictype/categ_Zs.h: Likewise.
21428         * lib/unictype/ctype_blank.h: Likewise.
21429         * lib/unictype/ctype_cntrl.h: Likewise.
21430         * lib/unictype/ctype_digit.h: Likewise.
21431         * lib/unictype/ctype_space.h: Likewise.
21432         * lib/unictype/ctype_xdigit.h: Likewise.
21433         * lib/unictype/mirror.h: Likewise.
21434         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21435         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21436         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21437         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21438         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21439         * lib/unictype/pr_bidi_control.h: Likewise.
21440         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21441         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21442         * lib/unictype/pr_bidi_pdf.h: Likewise.
21443         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21444         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21445         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21446         * lib/unictype/pr_format_control.h: Likewise.
21447         * lib/unictype/pr_hex_digit.h: Likewise.
21448         * lib/unictype/pr_hyphen.h: Likewise.
21449         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21450         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21451         * lib/unictype/pr_iso_control.h: Likewise.
21452         * lib/unictype/pr_join_control.h: Likewise.
21453         * lib/unictype/pr_left_of_pair.h: Likewise.
21454         * lib/unictype/pr_line_separator.h: Likewise.
21455         * lib/unictype/pr_math.h: Likewise.
21456         * lib/unictype/pr_non_break.h: Likewise.
21457         * lib/unictype/pr_not_a_character.h: Likewise.
21458         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21459         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21460         * lib/unictype/pr_other_id_continue.h: Likewise.
21461         * lib/unictype/pr_other_id_start.h: Likewise.
21462         * lib/unictype/pr_other_lowercase.h: Likewise.
21463         * lib/unictype/pr_other_math.h: Likewise.
21464         * lib/unictype/pr_other_uppercase.h: Likewise.
21465         * lib/unictype/pr_paired_punctuation.h: Likewise.
21466         * lib/unictype/pr_paragraph_separator.h: Likewise.
21467         * lib/unictype/pr_pattern_syntax.h: Likewise.
21468         * lib/unictype/pr_pattern_white_space.h: Likewise.
21469         * lib/unictype/pr_private_use.h: Likewise.
21470         * lib/unictype/pr_quotation_mark.h: Likewise.
21471         * lib/unictype/pr_radical.h: Likewise.
21472         * lib/unictype/pr_soft_dotted.h: Likewise.
21473         * lib/unictype/pr_space.h: Likewise.
21474         * lib/unictype/pr_titlecase.h: Likewise.
21475         * lib/unictype/pr_variation_selector.h: Likewise.
21476         * lib/unictype/pr_white_space.h: Likewise.
21477         * lib/unictype/sy_c_ident.h: Likewise.
21478         * lib/unictype/sy_c_whitespace.h: Likewise.
21479         * lib/unictype/sy_java_whitespace.h: Likewise.
21480         * modules/uni*/*: Bump version number of expected libunistring version.
21481         Reported by Simon Josefsson.
21482
21483 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21484
21485         useless-if-before-free: fix typo in --help and make the internal,
21486         automatic version date update process work once again.
21487         --help output contained a NUL character instead of the
21488         backslash-zero that was intended.  Also, the "must lie within
21489         the first 8 lines" line is on line 9, and hence not getting
21490         automatically updated.
21491         * build-aux/useless-if-before-free: Fix the former by adding a
21492         backslash, and the latter by condensing the three lines of what-it-does
21493         to a single line, leaving one line of slack for the future.
21494
21495 2011-01-09  Bruno Haible  <bruno@clisp.org>
21496
21497         uniwidth/width: Fix width of U+1D173..U+1D17A.
21498         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21499         symbolic_width, output_width_property_test): New functions.
21500         (main): Invoke output_nonspacing_property, output_width_property_test.
21501         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21502         U+1D173..U+1D17A.
21503         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21504         1.
21505         * modules/uniwidth/*: Bump version number of expected libunistring
21506         version.
21507         * modules/unilbrk/*: Likewise.
21508
21509 2011-01-08  Bruno Haible  <bruno@clisp.org>
21510
21511         uninorm tests: Preserve copyright of Unicode data file.
21512         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21513         Mention modifications.
21514
21515 2011-01-08  Bruno Haible  <bruno@clisp.org>
21516
21517         gen-uni-tables: Prepare for Unicode 5.2.0.
21518         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21519         (debug_output_lbp, output_lbp): Update.
21520
21521 2011-01-08  Bruno Haible  <bruno@clisp.org>
21522
21523         unilbrk: Clarify gen-uni-tables.c code.
21524         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21525         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21526         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21527
21528 2011-01-07  Bruno Haible  <bruno@clisp.org>
21529
21530         strtod: Restore errno when successfully parsing Infinity or NaN.
21531         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21532         restore the original errno.
21533
21534 2011-01-07  Bruno Haible  <bruno@clisp.org>
21535
21536         remove test: Avoid failure on HP-UX 11.
21537         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21538
21539 2011-01-07  Bruno Haible  <bruno@clisp.org>
21540
21541         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21542         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21543         error code.
21544
21545 2011-01-07  Pádraig Brady <P@draigBrady.com>
21546
21547         ignore-value: fixup comments, and add Eric Blake
21548         as an author since he rewrote the macros.
21549         * lib/ignore-value.h (ignore_value):  State that
21550         we now support aggregates.  Also specify exactly
21551         when the GCC warn_unused_result feature was added.
21552
21553 2011-01-06  Eric Blake  <eblake@redhat.com>
21554
21555         ignore-value: support aggregate types
21556         * lib/ignore-value.h (ignore_value): Provide separate gcc
21557         definition.
21558         * modules/ignore-value-tests: New test module.
21559         * tests/test-ignore-value.c: New test.
21560
21561         maint.mk: improve sc_prohibit_strcmp regex
21562         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21563         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21564         definition of STRNEQ.
21565
21566         signal: work around Haiku issue with SIGBUS
21567         * lib/siglist.h: Add comment.
21568         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21569         strsignal's favoring of SIGSEGV.
21570         * tests/test-signal.c (main): Avoid test failure.
21571         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21572         Reported by Scott McCreary.
21573
21574         maint.mk: add pre-release check to ensure submodule commits are public
21575         * top/maint.mk (public-submodule-commit): New rule.
21576         (submodule-checks): New variable.
21577         (alpha beta stable): Depend on the variable.
21578
21579 2011-01-05  Pádraig Brady <P@draigBrady.com>
21580         and Jim Meyering  <meyering@redhat.com>
21581
21582         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21583         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21584         (ATTRIBUTE_DEPRECATED): Define.
21585         (_ignore_case): New function.
21586         (ignore_value): New macro, to replace the old function.
21587         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21588         * modules/ignore-value (Depends-on): Add stdint.
21589
21590 2011-01-04  Eric Blake  <eblake@redhat.com>
21591
21592         doc: regenerate INSTALL
21593         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21594         @firstparagraphindent support, now that autoconf dropped it.
21595         (INSTALL_PRELUDE): Reinstate old macro.
21596         * doc/install.texi: Resync from autoconf.
21597         * doc/INSTALL: Reflect recent autoconf update.
21598         * doc/INSTALL.ISO: Likewise.
21599         * doc/INSTALL.UTF-8: Likewise.
21600         Reported by Karl Berry.
21601
21602 2011-01-04  Bruce Korb  <address@hidden>
21603
21604         git-version-gen: avoid a sub-shell
21605         * build-aux/git-version-gen: Redirect stderr in `...` via
21606         "exec 2>...", rather than via an added sub-shell.
21607
21608 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21609
21610         git-version-gen: use (...) rather than sh -c '...'
21611         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21612         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21613
21614 2011-01-03  Jim Meyering  <meyering@redhat.com>
21615
21616         git-version-gen: convert leading TABs to spaces
21617         * build-aux/git-version-gen: Expand leading TABs.
21618
21619         git-version-gen: handle failed "git rev-list"
21620         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21621         from git and proceeding as if it had succeeded but printed no SHA1
21622         checksums, suppress the diagnostic and handle the failure.
21623         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21624
21625         git-version-gen: include command name in one more diagnostic
21626         * build-aux/git-version-gen: When the required .tarball-version file
21627         was missing or unreadable, you might see the diagnostic from "cat",
21628         but no trace of the name of the invoking script.  Now, you still see
21629         the diagnostic from cat, but also get one from "git-version-gen: ".
21630         Inspired by a patch from Bruce Korb.
21631
21632         update-copyright: adjust test to match changed code
21633         * tests/test-update-copyright.sh: Change test's expected output
21634         to match new actual output.
21635
21636 2011-01-02  Bruno Haible  <bruno@clisp.org>
21637
21638         getlogin_r: Avoid test failure on HP-UX 11.
21639         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21640         ERANGE when the second argument is zero.
21641         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21642         portability problem.
21643
21644 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21645
21646         * build-aux/update-copyright: doc Simon's changes
21647
21648 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21649
21650         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21651         environment variable.
21652
21653 2011-01-02  Bruno Haible  <bruno@clisp.org>
21654
21655         unigbrk: Avoid gcc warnings.
21656         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21657         unused variable.
21658         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21659         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21660         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21661         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21662         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21663         Change type of first argument to 'const char *'.
21664         (main): Remove unused variable.
21665         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21666         type of first argument to 'const char *'.
21667         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21668         Likewise.
21669         (main): Change type of variable 's'.
21670         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21671         to 'int'.
21672
21673 2011-01-02  Bruno Haible  <bruno@clisp.org>
21674
21675         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21676         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21677         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21678         bug.
21679         * lib/pwrite.c: Undo 2010-12-31 patch.
21680         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21681
21682 2011-01-02  Bruno Haible  <bruno@clisp.org>
21683
21684         pread: Fix test whether it works.
21685         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21686
21687 2011-01-02  Bruno Haible  <bruno@clisp.org>
21688
21689         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21690         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21691         ends in "6". Don't require a specific month name. Try also the locale
21692         names found on HP-UX 11 and Solaris 7.
21693
21694 2011-01-02  Bruno Haible  <bruno@clisp.org>
21695
21696         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21697         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21698         C linkage.
21699         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21700
21701 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21702
21703         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21704         for consistency, since the "cluster" term is not used elsewhere.
21705         * lib/unigbrk.in.h: Update name.
21706         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21707         * lib/unigbrk/u16-grapheme-next.c: Update name.
21708         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21709         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21710         * lib/unigbrk/u32-grapheme-next.c: Update name.
21711         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21712         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21713         * lib/unigbrk/u8-grapheme-next.c: Update name.
21714         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21715         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21716         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21717         Suggested by Bruno Haible.
21718
21719 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21720
21721         Remove module 'u8-grapheme-len' as too redundant with
21722         'u8-grapheme-next'.
21723         * modules/unigbrk/u8-grapheme-len: Delete file.
21724         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21725         * lib/unigbrk.in.h: Remove prototype for deleted function.
21726         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21727         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21728
21729         Remove module 'u16-grapheme-len' as too redundant with
21730         'u16-grapheme-next'.
21731         * modules/unigbrk/u16-grapheme-len: Delete file.
21732         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21733         * lib/unigbrk.in.h: Remove prototype for deleted function.
21734         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21735         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21736
21737         Remove module 'u32-grapheme-len' as too redundant with
21738         'u32-grapheme-next'.
21739         * modules/unigbrk/u32-grapheme-len: Delete file.
21740         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21741         * lib/unigbrk.in.h: Remove prototype for deleted function.
21742         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21743         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21744
21745         Suggested by Bruno Haible.
21746
21747 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21748
21749         * unigbrk.in.h: Fix typo: "ben" => "been".
21750         Reported by Bruno Haible.
21751
21752 2011-01-01  Jim Meyering  <meyering@redhat.com>
21753
21754         maint: update almost all copyright ranges to include 2011
21755         Run the new "make update-copyright" rule.
21756
21757 2011-01-01  Jim Meyering  <meyering@redhat.com>
21758
21759         maint: update-copyright: exempt doc/INSTALL*
21760         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21761         since they are generated.  Suggested by Bruno Haible.
21762
21763 2011-01-01  Jim Meyering  <meyering@redhat.com>
21764
21765         maint: refine the update-copyright rule
21766         * Makefile (update-copyright): Also exclude any file that includes
21767         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21768         code that merely generates the comment.
21769
21770 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21771
21772         New module 'u8-grapheme-len'.
21773         * modules/unigbrk/u8-grapheme-len: New file.
21774         * modules/unigbrk/u8-grapheme-len-tests: New file.
21775         * lib/unigbrk.in.h: Add prototype for new function.
21776         * lib/unigbrk/u8-grapheme-len.c: New file.
21777         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21778
21779         New module 'u16-grapheme-len'.
21780         * modules/unigbrk/u16-grapheme-len: New file.
21781         * modules/unigbrk/u16-grapheme-len-tests: New file.
21782         * lib/unigbrk.in.h: Add prototype for new function.
21783         * lib/unigbrk/u16-grapheme-len.c: New file.
21784         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21785
21786         New module 'u32-grapheme-len'.
21787         * modules/unigbrk/u32-grapheme-len: New file.
21788         * modules/unigbrk/u32-grapheme-len-tests: New file.
21789         * lib/unigbrk.in.h: Add prototype for new function.
21790         * lib/unigbrk/u32-grapheme-len.c: New file.
21791         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21792
21793         New module 'u8-grapheme-next'.
21794         * modules/unigbrk/u8-grapheme-next: New file.
21795         * modules/unigbrk/u8-grapheme-next-tests: New file.
21796         * lib/unigbrk.in.h: Add prototype for new function.
21797         * lib/unigbrk/u8-grapheme-next.c: New file.
21798         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21799
21800         New module 'u16-grapheme-next'.
21801         * modules/unigbrk/u16-grapheme-next: New file.
21802         * modules/unigbrk/u16-grapheme-next-tests: New file.
21803         * lib/unigbrk.in.h: Add prototype for new function.
21804         * lib/unigbrk/u16-grapheme-next.c: New file.
21805         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21806
21807         New module 'u32-grapheme-next'.
21808         * modules/unigbrk/u32-grapheme-next: New file.
21809         * modules/unigbrk/u32-grapheme-next-tests: New file.
21810         * lib/unigbrk.in.h: Add prototype for new function.
21811         * lib/unigbrk/u32-grapheme-next.c: New file.
21812         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21813
21814         New module 'u8-grapheme-prev'.
21815         * modules/unigbrk/u8-grapheme-prev: New file.
21816         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21817         * lib/unigbrk.in.h: Add prototype for new function.
21818         * lib/unigbrk/u8-grapheme-prev.c: New file.
21819         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21820
21821         New module 'u16-grapheme-prev'.
21822         * modules/unigbrk/u16-grapheme-prev: New file.
21823         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21824         * lib/unigbrk.in.h: Add prototype for new function.
21825         * lib/unigbrk/u16-grapheme-prev.c: New file.
21826         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21827
21828         New module 'u32-grapheme-prev'.
21829         * modules/unigbrk/u32-grapheme-prev: New file.
21830         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21831         * lib/unigbrk.in.h: Add prototype for new function.
21832         * lib/unigbrk/u32-grapheme-prev.c: New file.
21833         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21834
21835         New module 'u8-grapheme-breaks'.
21836         * modules/unigbrk/u8-grapheme-breaks: New file.
21837         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21838         * lib/unigbrk.in.h: Add prototype for new function.
21839         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21840         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21841
21842         New module 'u16-grapheme-breaks'.
21843         * modules/unigbrk/u16-grapheme-breaks: New file.
21844         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21845         * lib/unigbrk.in.h: Add prototype for new function.
21846         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21847         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21848
21849         New module 'u32-grapheme-breaks'.
21850         * modules/unigbrk/u32-grapheme-breaks: New file.
21851         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21852         * lib/unigbrk.in.h: Add prototype for new function.
21853         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21854         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21855
21856         New module 'ulc-grapheme-breaks'.
21857         * modules/unigbrk/ulc-grapheme-breaks: New file.
21858         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21859         * m4/locale-ar.m4: New file.
21860         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21861         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21862         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21863
21864 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21865
21866         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21867         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21868         modified how this file was generated before I initially submitted
21869         the module, but failed to regenerate it.  This meant that several
21870         of the level2 entries were wrong.
21871         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21872         Remove the division-by-2 that is folded into the table now that
21873         gbrkprop.h has been regenerated properly.  Now -1 entries are
21874         handled correctly.
21875
21876         New module 'unigbrk/uc-gbrk-prop-tests'.
21877         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21878         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21879         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21880         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21881
21882 2011-01-01  Bruno Haible  <bruno@clisp.org>
21883
21884         Avoid use of hexadecimal escapes.
21885         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21886         instead of hexadecimal escapes.
21887
21888 2011-01-01  Jim Meyering  <meyering@redhat.com>
21889
21890         maint: new rule to update copyright year ranges
21891         * Makefile (update-copyright): New rule.
21892
21893         maint: indent with TABs in Makefile
21894         * Makefile: Expand leading sequences of spaces to TABs
21895
21896         version-etc: update the copyright year it reports
21897         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21898
21899 2010-12-31  Bruno Haible  <bruno@clisp.org>
21900
21901         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21902         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21903         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21904         zero.
21905
21906 2010-12-31  Bruno Haible  <bruno@clisp.org>
21907
21908         pwrite: Work around HP-UX 11.11 bug.
21909         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21910         works and set REPLACE_PWRITE if not.
21911         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21912         function.
21913         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21914
21915 2010-12-31  Bruno Haible  <bruno@clisp.org>
21916
21917         pread: Work around HP-UX 11 bugs.
21918         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21919         and set REPLACE_PREAD if not.
21920         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21921
21922 2010-12-31  Eric Blake  <eblake@redhat.com>
21923
21924         nl_langinfo: fix YESEXPR on Irix 6.5
21925         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21926         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21927         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21928         it.
21929
21930 2010-12-31  Bruno Haible  <bruno@clisp.org>
21931
21932         iconv: Document HP-UX 11 bug.
21933         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21934
21935 2010-12-31  Bruno Haible  <bruno@clisp.org>
21936
21937         ldexpl: Fix link error on HP-UX 11.
21938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21939         LDEXPL_LIBM, using $ISNANL_LIBM.
21940
21941 2010-12-31  Eric Blake  <eblake@redhat.com>
21942
21943         ftello: avoid compilation failure with SunStudio c89
21944         * lib/ftello.c (ftello): Use lseek, not llseek.
21945
21946         tests: avoid failing coreutils tests on cygwin
21947         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21948         (create_exe_shims_): Return 0 when skipping.
21949
21950 2010-12-31  Bruno Haible  <bruno@clisp.org>
21951
21952         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21953         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21954
21955 2010-12-31  Bruno Haible  <bruno@clisp.org>
21956
21957         waitpid: Fix link error in C++ mode.
21958         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21959
21960 2010-12-31  Bruno Haible  <bruno@clisp.org>
21961
21962         isnan: Use GCC built-ins when possible.
21963         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21964         __builtin_isnan.
21965         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21966         (isnan): Define using GCC built-ins for GCC >= 4.0.
21967
21968 2010-12-31  Bruno Haible  <bruno@clisp.org>
21969
21970         isnand: Fix mistake.
21971         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21972         __builtin_isnand.
21973
21974 2010-12-31  Bruno Haible  <bruno@clisp.org>
21975
21976         open: Avoid C++ error on HP-UX 11.
21977         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21978
21979 2010-12-31  Bruno Haible  <bruno@clisp.org>
21980
21981         time_r: Add missing declarations on HP-UX 11.
21982         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21983         instead of HAVE_LOCALTIME_R.
21984         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21985         HAVE_LOCALTIME_R always.
21986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21987         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21988         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21989         HAVE_LOCALTIME_R.
21990         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21991         * doc/posix-functions/localtime_r.texi: Likewise.
21992
21993 2010-12-29  Eric Blake  <eblake@redhat.com>
21994
21995         mountlist: tweak previous commit
21996         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21997         Reported by Paul Eggert.
21998
21999         mountlist: fix local drive detection on cygwin
22000         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22001         that works for cygwin.
22002
22003 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         ftoastr, snprintf: ftoastr + snprintf module
22006         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22007         since the snprintf module now should be good enough here.
22008         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22009         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22010         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22011         GNULIB_SNPRINTF only for the test directory, and the latter
22012         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22013         seems to suffice by itself.
22014
22015 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22016
22017         alloca: one step towards thread-safety
22018         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22019         need for a static variable.  All callers changed.  This does not
22020         make the alloca replacement thread-safe, but it's one step.
22021
22022         tests: minor indenting change
22023         * tests/init.sh: Sync from coreutils housekeeping patch
22024         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22025         to keep lines within 80 columns.
22026
22027 2010-12-28  Jim Meyering  <meyering@redhat.com>
22028
22029         regex: don't infloop on persistent failing calloc
22030         * lib/regexec.c (build_trtable): Return failure indication upon
22031         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22032         In glibc, this was fixed for version 2.13:
22033         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22034
22035 2010-12-28  Bruno Haible  <bruno@clisp.org>
22036             Paul Eggert <eggert@cs.ucla.edu>
22037
22038         linkat: Make implementation robust against system behaviour variations.
22039         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22040         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22041         way, and to -2 if it needs a generic runtime test.
22042         * lib/linkat.c (solaris_optimized_link_immediate,
22043         solaris_optimized_link_follow): New functions.
22044         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22045         (check_same_link): Use it.
22046
22047 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22048
22049         New module 'unigbrk/base'.
22050         * modules/unigbrk/base: New file.
22051         * lib/unigbrk.in.h: New file.
22052
22053         New module 'unigbrk/uc-gbrk-prop'.
22054         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22055         * modules/unigbrk/uc-gbrk-prop: New file.
22056         * lib/unigbrk/gbrkprop.h: New file.
22057         * lib/unigbrk/uc-gbrk-prop.c: New file.
22058
22059         New module 'unigbrk/uc-is-grapheme-break'.
22060         * modules/unigbrk/uc-is-grapheme-break: New file.
22061         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22062         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22063         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22064         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22065         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22066
22067         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22068
22069 2010-12-27  Bruno Haible  <bruno@clisp.org>
22070
22071         linkat test: Avoid failure on Solaris 11 2010-11.
22072         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22073
22074 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22075
22076         utimens: work around glibc rounding bug on more platforms
22077         * lib/utimens.c (fdutimens): Work around rounding bug even if
22078         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22079         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22080
22081 2010-12-27  Bruno Haible  <bruno@clisp.org>
22082
22083         select tests: Improve comments.
22084         * tests/test-select.c (do_select): Add comments.
22085
22086 2010-12-27  Bruno Haible  <bruno@clisp.org>
22087
22088         select tests: Safer way of handling timeout.
22089         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22090         at every invocation.
22091
22092 2010-12-27  Bruno Haible  <bruno@clisp.org>
22093
22094         select tests: Use 'bool' where appropriate.
22095         * tests/test-select.c (connect_to_socket): Change argument type to
22096         'bool'.
22097
22098 2010-12-27  Bruno Haible  <bruno@clisp.org>
22099
22100         select tests: Use existing modules.
22101         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22102         (configure.ac): Don't test for unistd.h.
22103         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22104         declared in <unistd.h>.
22105
22106 2010-12-27  Bruno Haible  <bruno@clisp.org>
22107
22108         mbrtowc: Work around a Solaris 7 bug.
22109         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22110         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22111         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22112         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22113         MBRTOWC_NULL_ARG1_BUG.
22114         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22115         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22116         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22117         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22118
22119 2010-12-27  Jim Meyering  <meyering@redhat.com>
22120
22121         read-file.c: tweak syntax
22122         * lib/read-file.c (fread_file): Remove space after "*" in function
22123         definitions.
22124
22125 2010-12-27  Bruno Haible  <bruno@clisp.org>
22126
22127         times test: Avoid gcc warnings on OSF/1.
22128         * tests/test-times.c (main): Cast printf arguments from clock_t to
22129         'long int'.
22130
22131 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22132
22133         utimens: work around glibc rounding bug on older Linux kernels
22134         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22135         on Linux with a glibc whose utimes might not work, then work
22136         around a longstanding glibc bug involving rounding rather than
22137         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22138         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22139
22140 2010-12-26  Bruno Haible  <bruno@clisp.org>
22141
22142         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22143         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22144         _GL_CXXALIAS_SYS.
22145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22146
22147 2010-12-26  Bruno Haible  <bruno@clisp.org>
22148
22149         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22150         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22151         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22152         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22153         looking for the declaration.
22154         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22155         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22156         problem.
22157         * doc/posix-functions/inet_pton.texi: Likewise.
22158
22159 2010-12-26  Bruno Haible  <bruno@clisp.org>
22160
22161         arpa_inet: Use the common idioms with C++ support.
22162         * lib/arpa_inet.in.h: Include c++defs.h.
22163         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22164         support.
22165         * modules/arpa_inet (Depends-on): Add c++defs.
22166         (Makefile.am): Substitute the contents of c++defs.h.
22167         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22168         * modules/arpa_inet-c++-tests: New file.
22169         * tests/test-arpa_inet-c++.cc: New file.
22170
22171 2010-12-25  Bruno Haible  <bruno@clisp.org>
22172
22173         Fix more C++ link errors on Solaris 8.
22174         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22175         $(LIB_EACCESS).
22176         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22177         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22178         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22179         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22180         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22181
22182 2010-12-25  Bruno Haible  <bruno@clisp.org>
22183
22184         printf-posix: Fix link error when a non-GCC compiler is used.
22185         * lib/stdio.in.h (printf): When not using GCC, override printf
22186         correctly.
22187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22188
22189 2010-12-25  Bruno Haible  <bruno@clisp.org>
22190
22191         strerror_r-posix: Update doc.
22192         * doc/posix-functions/strerror_r.texi: Update doc about the return
22193         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22194
22195 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22196
22197         utimens: simplify the logic of the previous change
22198         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22199         This should not affect whether the test succeeds or fails.
22200
22201         utimens: configure better on hosts with NFS clock skew
22202         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22203         uses the clock of the local host.  It might use the clock of the
22204         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22206
22207 2010-12-25  Bruno Haible  <bruno@clisp.org>
22208
22209         ptsname test: Avoid failure on Solaris.
22210         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22211         open a pseudo-terminal; don't use BSD-style ptys.
22212         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22213
22214 2010-12-25  Bruno Haible  <bruno@clisp.org>
22215
22216         ptsname: Avoid ERANGE failure on some systems.
22217         * lib/ptsname.c (buffer): Increase size.
22218
22219 2010-12-25  Bruno Haible  <bruno@clisp.org>
22220
22221         rename, renameat: Avoid test failures at NFS mounted locations.
22222         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22223         so that subsequent mkdir calls succeed.
22224
22225 2010-12-25  Bruno Haible  <bruno@clisp.org>
22226
22227         iswblank: Fix C++ link error on Solaris 8.
22228         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22229         _GL_FUNCDECL_SYS.
22230
22231 2010-12-25  Bruno Haible  <bruno@clisp.org>
22232
22233         unistd: Fix C++ link error on Solaris 8.
22234         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22235
22236 2010-12-25  Bruno Haible  <bruno@clisp.org>
22237
22238         readlink doc: Mention an old glibc bug.
22239         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22240
22241 2010-12-25  Bruno Haible  <bruno@clisp.org>
22242
22243         fcntl-h: Fix for use of C++ on glibc systems.
22244         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22245         also on glibc systems in C++ mode.
22246         Reported by Gary V. Vaughan <gary@gnu.org>.
22247
22248 2010-12-25  Bruno Haible  <bruno@clisp.org>
22249
22250         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22251         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22252
22253 2010-12-25  Bruno Haible  <bruno@clisp.org>
22254
22255         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22256         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22257         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22258         test whether truncl works according to ISO C 99 with IEC 60559.
22259         * m4/truncl-ieee.m4: New file.
22260         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22261         m4/signbit.m4.
22262         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22263
22264 2010-12-25  Bruno Haible  <bruno@clisp.org>
22265
22266         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22267         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22268         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22269         test whether ceill works according to ISO C 99 with IEC 60559.
22270         * m4/ceill-ieee.m4: New file.
22271         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22272         m4/signbit.m4.
22273         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22274
22275 2010-12-25  Bruno Haible  <bruno@clisp.org>
22276
22277         Ensure all prerequisites of <wchar.h> are included.
22278         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22279         before <wchar.h>.
22280         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22281         gl_MBRLEN_NUL_RETVAL): Likewise.
22282         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22283         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22284         AC_FUNC_MBRTOWC): Likewise.
22285         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22286         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22288         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22289         Likewise.
22290         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22291         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22292         (gl_WCHAR_H): Improve comments.
22293         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22294
22295 2010-12-25  Bruno Haible  <bruno@clisp.org>
22296
22297         strtok_r: Fix C syntax error in autoconf macro.
22298         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22299         characters in test program.
22300
22301 2010-12-24  Bruno Haible  <bruno@clisp.org>
22302
22303         ceil, trunc, round: Fix gcc warnings.
22304         * lib/ceil.c (MIN): Undefine before redefining.
22305         * lib/trunc.c (MIN): Likewise.
22306         * lib/round.c (MIN): Likewise.
22307         Include <math.h> first.
22308
22309 2010-12-24  Bruno Haible  <bruno@clisp.org>
22310
22311         select tests: Avoid failures on OSF/1 5.1.
22312         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22313         failure of closing the last socket; it may fail with ECONNRESET.
22314
22315 2010-12-24  Eric Blake  <eblake@redhat.com>
22316
22317         stdint: avoid HP-UX 10.20 preprocessor bug
22318         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22319         than #if.
22320         * tests/test-floor2.c (main): Likewise.
22321         Reported by Peter O'Gorman.
22322
22323         pipe: make obsoletion transition easier
22324         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22325         * modules/pipe (Files): Include revived file.
22326         (Include): Drop reference, to mirror getdate's behavior.
22327
22328 2010-12-24  Bruno Haible  <bruno@clisp.org>
22329
22330         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22331         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22332         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22333         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22334
22335 2010-12-24  Bruno Haible  <bruno@clisp.org>
22336
22337         gethostname: Ensure declaration on NonStop Kernel.
22338         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22339         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22340
22341 2010-12-24  Bruno Haible  <bruno@clisp.org>
22342
22343         sys_select: Ensure all necessary types on NonStop Kernel.
22344         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22345         include <sys/time.h>.
22346         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22347         NonStop Kernel.
22348         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22349
22350 2010-12-24  Bruno Haible  <bruno@clisp.org>
22351
22352         sys_select: Remove unneeded include.
22353         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22354         have <sys/select.h>.
22355
22356 2010-12-24  Bruno Haible  <bruno@clisp.org>
22357
22358         gethostname: Provide a fallback for HOST_NAME_MAX.
22359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22360         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22361         instead.
22362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22363
22364 2010-12-24  Bruno Haible  <bruno@clisp.org>
22365
22366         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22367         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22368         (SA_RESTART): Likewise.
22369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22370
22371 2010-12-24  Bruno Haible  <bruno@clisp.org>
22372
22373         signal: Define NSIG.
22374         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22375         * tests/test-signal.c (nsig): New variable.
22376         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22377
22378 2010-12-24  Bruno Haible  <bruno@clisp.org>
22379
22380         rename, renameat: Avoid test failures on OSF/1 5.1.
22381         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22382         alternative error codes.
22383         * tests/test-renameat.c (main): Likewise.
22384
22385 2010-12-24  Bruno Haible  <bruno@clisp.org>
22386
22387         *printf: Detect large precisions bug on Solaris 10/SPARC.
22388         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22389         by Paul Eggert.
22390         * tests/test-snprintf-posix.h (test_function): Add this test code here
22391         too.
22392         * tests/test-sprintf-posix.h (test_function): Likewise.
22393         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22394         * tests/test-vasprintf-posix.c (test_function): Likewise.
22395         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22396         around by gnulib.
22397         * doc/posix-functions/printf.texi: Likewise.
22398         * doc/posix-functions/snprintf.texi: Likewise.
22399         * doc/posix-functions/sprintf.texi: Likewise.
22400         * doc/posix-functions/vfprintf.texi: Likewise.
22401         * doc/posix-functions/vprintf.texi: Likewise.
22402         * doc/posix-functions/vsnprintf.texi: Likewise.
22403         * doc/posix-functions/vsprintf.texi: Likewise.
22404         * doc/posix-functions/dprintf.texi: Undo last commit.
22405         * doc/posix-functions/vdprintf.texi: Likewise.
22406
22407 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22408
22409         tests: port test-fdutimensat.c to Solaris 8
22410         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22411         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22412         On Solaris 8, it fails with errno == ENOSYS, because there is no
22413         futimens (so it can't use the fd), and there is no lutimens (so it
22414         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22415
22416         vsnprintf: make more consistent with snprintf; doc fixes
22417
22418         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22419         the byte count return problem was promoted from the snprintf-posix
22420         to the snprintf module.
22421         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22423         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22424         * tests/test-snprintf.c (main): Check the byte count returned.
22425         * tests/test-vsnprintf.c (main): Likewise.
22426
22427 2010-12-23  Eric Blake  <eblake@redhat.com>
22428
22429         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22430         * modules/sigpipe (License): Relax license.
22431
22432 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22433
22434         doc: document Solaris printf bug with large float precisions
22435         * doc/posix-functions/dprintf.texi (dprintf):
22436         * doc/posix-functions/fprintf.texi (fprintf):
22437         * doc/posix-functions/printf.texi (printf):
22438         * doc/posix-functions/snprintf.texi (snprintf):
22439         * doc/posix-functions/sprintf.texi (sprintf):
22440         * doc/posix-functions/vdprintf.texi (vdprintf):
22441         * doc/posix-functions/vfprintf.texi (vfprintf):
22442         * doc/posix-functions/vprintf.texi (vprintf):
22443         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22444         * doc/posix-functions/vsprintf.texi (vsprintf):
22445         Mention that these functions mishandle large floating point
22446         precisions on Solaris 10.  The same bug is also present in Solaris
22447         8, and I assume earlier.  This causes "cd gnulib-tests; make
22448         check" to fail on Solaris 8 (and I assume, later) when building
22449         the latest coreutils, in test-vasprintf-posix's call to
22450         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22451         the wide flavors (e.g., wprintf) so this patch just updates the
22452         documentation for the narrow ones.
22453
22454         test-posixtm.c: add two tests
22455         * tests/test-posixtm.c: Add two tests, to highlight the
22456         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22457         around this bug; this is merely to document it.
22458
22459 2010-12-22  Bruno Haible  <bruno@clisp.org>
22460
22461         getlogin_r: Work around portability problem on OSF/1.
22462         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22463         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22464         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22465         test for a truncated result.
22466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22467         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22468         * modules/getlogin_r (Depends-on): Add memchr.
22469         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22470
22471 2010-12-22  Bruno Haible  <bruno@clisp.org>
22472
22473         ptsname: Avoid test failure on OSF/1 5.1.
22474         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22475         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22476         (same_slave): New function.
22477         (main): Use it to compare ptsname's result with the expected file name.
22478
22479 2010-12-22  Bruno Haible  <bruno@clisp.org>
22480
22481         Port extended stdio modules to HP NonStop Kernel.
22482         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22483         macros.
22484         * lib/fbufmode.c: Update comments.
22485         * lib/fflush.c: Likewise.
22486         * lib/fpurge.c: Likewise.
22487         * lib/freadable.c: Likewise.
22488         * lib/freadahead.c: Likewise.
22489         * lib/freading.c: Likewise.
22490         * lib/freadptr.c: Likewise.
22491         * lib/freadseek.c: Likewise.
22492         * lib/fseeko.c: Likewise.
22493         * lib/fseterr.c: Likewise.
22494         * lib/fwritable.c: Likewise.
22495         * lib/fwriting.c: Likewise.
22496         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22497
22498 2010-12-22  Bruno Haible  <bruno@clisp.org>
22499
22500         ttyname_r: Work around bug on OSF/1 5.1.
22501         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22502         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22503         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22504         present.
22505         * lib/ttyname_r.c (ttyname_r): Update comments.
22506
22507 2010-12-22  Bruno Haible  <bruno@clisp.org>
22508
22509         round: Implement result sign according to IEEE 754.
22510         * lib/round.c (MIN, MINUS_ZERO): New macros.
22511         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22512         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22513         * tests/test-round-ieee.c (main): Likewise.
22514         * tests/test-roundl-ieee.c (main): Likewise.
22515
22516         trunc: Implement result sign according to IEEE 754.
22517         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22518         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22519         * tests/test-trunc2.c: Include minus-zero.h.
22520         (MINUS_ZERO): New macro.
22521         (trunc_reference): Keep in sync with lib/trunc.c.
22522         * tests/test-truncf2.c: Include minus-zero.h.
22523         (MINUS_ZERO): New macro.
22524         (truncf_reference): Keep in sync with lib/trunc.c.
22525         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22526         * tests/test-trunc-ieee.c (main): Likewise.
22527         * tests/test-truncl-ieee.c (main): Likewise.
22528
22529         ceil: Implement result sign according to IEEE 754.
22530         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22531         (FUNC): Return -0.0 for -1 < x < 0.
22532         * tests/test-ceil2.c: Include minus-zero.h.
22533         (MINUS_ZERO): New macro.
22534         (ceil_reference): Keep in sync with lib/ceil.c.
22535         * tests/test-ceilf2.c: Include minus-zero.h.
22536         (MINUS_ZERO): New macro.
22537         (ceilf_reference): Keep in sync with lib/ceil.c.
22538         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22539         * tests/test-ceil-ieee.c (main): Likewise.
22540         * tests/test-ceill-ieee.c (main): Likewise.
22541
22542         floor: Implement result sign according to IEEE 754.
22543         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22544         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22545         * tests/test-floorf2.c (floorf_reference): Likewise.
22546         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22547         * tests/test-floor-ieee.c (main): Likewise.
22548         * tests/test-floorl-ieee.c (main): Likewise.
22549
22550 2010-12-22  Bruno Haible  <bruno@clisp.org>
22551
22552         getaddrinfo: Update doc.
22553         * doc/posix-functions/gai_strerror.texi: Return type is also different
22554         on AIX and HP-UX.
22555
22556 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22557
22558         getaddrinfo, inet_ntop: Update doc for Solaris.
22559         * doc/posix-functions/gai_strerror.texi: Return type is also an
22560         issue on Solaris 9 and earlier.
22561         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22562         on Solaris 10 and earlier.
22563
22564 2010-12-21  Bruno Haible  <bruno@clisp.org>
22565
22566         New module 'roundl-ieee'.
22567         * modules/roundl-ieee: New file.
22568         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22569         test whether roundl works according to ISO C 99 with IEC 60559.
22570         * m4/roundl-ieee.m4: New file.
22571         * modules/roundl-ieee-tests: New file.
22572         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22573         * tests/test-roundl.c (main): Remove signbit tests.
22574         * modules/roundl-tests (Depends-on): Remove signbit.
22575         * doc/posix-functions/roundl.texi: Mention the new module.
22576
22577 2010-12-21  Bruno Haible  <bruno@clisp.org>
22578
22579         New module 'truncl-ieee'.
22580         * modules/truncl-ieee: New file.
22581         * modules/truncl-ieee-tests: New file.
22582         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22583         * tests/test-truncl.c (main): Remove signbit tests.
22584         * modules/truncl-tests (Depends-on): Remove signbit.
22585         * doc/posix-functions/truncl.texi: Mention the new module.
22586
22587 2010-12-21  Bruno Haible  <bruno@clisp.org>
22588
22589         New module 'ceill-ieee'.
22590         * modules/ceill-ieee: New file.
22591         * modules/ceill-ieee-tests: New file.
22592         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22593         * tests/test-ceill.c (main): Remove signbit tests.
22594         * modules/ceill-tests (Depends-on): Remove signbit.
22595         * doc/posix-functions/ceill.texi: Mention the new module.
22596
22597 2010-12-21  Bruno Haible  <bruno@clisp.org>
22598
22599         New module 'floorl-ieee'.
22600         * modules/floorl-ieee: New file.
22601         * modules/floorl-ieee-tests: New file.
22602         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22603         * tests/test-floorl.c (main): Remove signbit tests.
22604         * modules/floorl-tests (Depends-on): Remove signbit.
22605         * doc/posix-functions/floorl.texi: Mention the new module.
22606
22607 2010-12-21  Bruno Haible  <bruno@clisp.org>
22608
22609         New module 'round-ieee'.
22610         * modules/round-ieee: New file.
22611         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22612         whether round works according to ISO C 99 with IEC 60559.
22613         * m4/round-ieee.m4: New file.
22614         * modules/round-ieee-tests: New file.
22615         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22616         * tests/test-round1.c (main): Remove signbit tests.
22617         * modules/round-tests (Depends-on): Remove 'signbit'.
22618         * doc/posix-functions/round.texi: Mention the new module.
22619
22620 2010-12-21  Bruno Haible  <bruno@clisp.org>
22621
22622         New module 'trunc-ieee'.
22623         * modules/trunc-ieee: New file.
22624         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22625         whether trunc works according to ISO C 99 with IEC 60559.
22626         * m4/trunc-ieee.m4: New file.
22627         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22629         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22630         * modules/trunc-ieee-tests: New file.
22631         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22632         * tests/test-trunc1.c (main): Remove signbit tests.
22633         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22634         * doc/posix-functions/trunc.texi: Mention the new module.
22635
22636 2010-12-21  Bruno Haible  <bruno@clisp.org>
22637
22638         New module 'ceil-ieee'.
22639         * modules/ceil-ieee: New file.
22640         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22641         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22642         ISO C 99 with IEC 60559.
22643         * m4/ceil-ieee.m4: New file.
22644         * modules/ceil (Files): Add lib/ceil.c.
22645         (Depends-on): Add 'float'.
22646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22647         * lib/math.in.h (ceil): New declaration.
22648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22649         REPLACE_CEIL.
22650         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22651         * modules/ceil-ieee-tests: New file.
22652         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22653         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22654         * doc/posix-functions/ceil.texi: Mention the new module.
22655
22656 2010-12-21  Bruno Haible  <bruno@clisp.org>
22657
22658         New module 'floor-ieee'.
22659         * modules/floor-ieee: New file.
22660         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22661         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22662         ISO C 99 with IEC 60559.
22663         * m4/floor-ieee.m4: New file.
22664         * modules/floor (Files): Add lib/floor.c.
22665         (Depends-on): Add 'float'.
22666         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22667         * lib/math.in.h (floor): New declaration.
22668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22669         REPLACE_FLOOR.
22670         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22671         * modules/floor-ieee-tests: New file.
22672         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22673         * tests/test-math-c++.cc: Check the signature of 'floor'.
22674         * doc/posix-functions/floor.texi: Mention the new module.
22675
22676 2010-12-21  Bruno Haible  <bruno@clisp.org>
22677
22678         New module 'roundf-ieee'.
22679         * modules/roundf-ieee: New file.
22680         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22681         test whether roundf works according to ISO C 99 with IEC 60559.
22682         * m4/roundf-ieee.m4: New file.
22683         * modules/roundf-ieee-tests: New file.
22684         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22685         * tests/test-roundf1.c (main): Remove signbit tests.
22686         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22687         * doc/posix-functions/roundf.texi: Mention the new module.
22688
22689 2010-12-21  Bruno Haible  <bruno@clisp.org>
22690
22691         New module 'truncf-ieee'.
22692         * modules/truncf-ieee: New file.
22693         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22694         test whether truncf works according to ISO C 99 with IEC 60559.
22695         * m4/truncf-ieee.m4: New file.
22696         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22698         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22699         * modules/truncf-ieee-tests: New file.
22700         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22701         * tests/test-truncf1.c (main): Remove signbit tests.
22702         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22703         * doc/posix-functions/truncf.texi: Mention the new module.
22704
22705 2010-12-21  Bruno Haible  <bruno@clisp.org>
22706
22707         New module 'ceilf-ieee'.
22708         * modules/ceilf-ieee: New file.
22709         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22710         test whether ceilf works according to ISO C 99 with IEC 60559.
22711         * m4/ceilf-ieee.m4: New file.
22712         * modules/ceilf-ieee-tests: New file.
22713         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22714         * tests/test-ceilf1.c (main): Remove signbit tests.
22715         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22716         * doc/posix-functions/ceilf.texi: Mention the new module.
22717
22718 2010-12-21  Bruno Haible  <bruno@clisp.org>
22719
22720         New module 'floorf-ieee'.
22721         * modules/floorf-ieee: New file.
22722         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22723         test whether floorf works according to ISO C 99 with IEC 60559.
22724         * m4/floorf-ieee.m4: New file.
22725         * modules/floorf-ieee-tests: New file.
22726         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22727         * tests/test-floorf1.c (main): Remove signbit tests.
22728         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22729         * doc/posix-functions/floorf.texi: Mention the new module.
22730
22731 2010-12-21  Bruno Haible  <bruno@clisp.org>
22732
22733         Support for minus zero in autoconf macros.
22734         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22735         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22736         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22737         * tests/minus-zero.h: Update comments.
22738
22739 2010-12-21  Bruno Haible  <bruno@clisp.org>
22740
22741         Tests for module 'ceil'.
22742         * modules/ceil-tests: New file.
22743         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22744         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22745
22746 2010-12-21  Bruno Haible  <bruno@clisp.org>
22747
22748         Tests for module 'floor'.
22749         * modules/floor-tests: New file.
22750         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22751         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22752
22753 2010-12-21  Bruno Haible  <bruno@clisp.org>
22754
22755         math: Fix indentation.
22756         * lib/math.in.h (floorf): Fix indentation.
22757
22758 2010-12-21  Bruno Haible  <bruno@clisp.org>
22759
22760         Fix cross-compilation guesses on Solaris.
22761         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22762         not match "solaris2.10".
22763         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22764         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22765         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22766
22767 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22768
22769         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22770         This fixes a problem observed with the latest coreutils snapshot
22771         that caused a test to fail on Solaris 8.  src/csplit.c's call
22772         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22773         earlier, instead of returning the number of bytes that would have
22774         been generated; this causes csplit to incorrectly report memory
22775         exhaustion.
22776         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22777         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22778         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22779         comments to match.
22780         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22781         Fix typo in matching older versions of Solaris: "solaris2.10"
22782         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22783         only for guessing while cross-compiling.
22784         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22785
22786 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22787
22788         ftoastr: fix comment again
22789         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22790         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22791         Also, simplify example a bit by using flags = 0.
22792
22793 2010-12-20  Bruno Haible  <bruno@clisp.org>
22794
22795         round*, trunc*: Update documentation regarding glibc.
22796         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22797         * doc/posix-functions/round.texi: Likewise.
22798         * doc/posix-functions/roundl.texi: Likewise.
22799         * doc/posix-functions/truncf.texi: Likewise.
22800         * doc/posix-functions/trunc.texi: Likewise.
22801         * doc/posix-functions/truncl.texi: Likewise.
22802
22803 2010-12-20  Bruno Haible  <bruno@clisp.org>
22804
22805         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22806         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22807         * doc/posix-functions/round.texi: Likewise.
22808         * doc/posix-functions/roundl.texi: Likewise.
22809
22810 2010-12-20  Bruno Haible  <bruno@clisp.org>
22811
22812         ttyname_r: Add missing declaration on HP-UX 11.
22813         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22814         HAVE_TTYNAME_R.
22815         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22816         declared. Set HAVE_TTYNAME_R always.
22817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22818         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22820         HAVE_TTYNAME_R.
22821         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22822
22823 2010-12-20  Bruno Haible  <bruno@clisp.org>
22824
22825         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22826         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22827         * doc/posix-functions/getlogin_r.texi: Likewise.
22828         * tests/test-getlogin.c: Include <errno.h>.
22829         (main): Avoid test failure on HP-UX 11.11.
22830         * tests/test-getlogin_r.c (main): Likewise.
22831
22832 2010-12-20  Bruno Haible  <bruno@clisp.org>
22833
22834         getlogin_r: Add missing declaration on HP-UX 11.
22835         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22836         declared also when it exists as a function.
22837         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22838
22839 2010-12-20  Bruno Haible  <bruno@clisp.org>
22840
22841         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22842         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22843         through wcrtomb.
22844
22845 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22846
22847         ftoastr: fix comment
22848         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22850
22851 2010-12-19  Bruno Haible  <bruno@clisp.org>
22852
22853         isnan: Ensure it is a macro.
22854         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22855         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22856         Solaris.
22857
22858 2010-12-19  Bruno Haible  <bruno@clisp.org>
22859
22860         ldexpl test: Fix link error on OSF/1 5.1.
22861         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22862
22863 2010-12-19  Bruno Haible  <bruno@clisp.org>
22864
22865         wctype: Make it work in C++ mode on OSF/1 5.1.
22866         * lib/wctype.in.h (iswblank): Declare but not define here.
22867         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22868         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22869         * modules/wctype (Files): Add lib/iswblank.c.
22870
22871 2010-12-19  Bruno Haible  <bruno@clisp.org>
22872
22873         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22874         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22875         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22876
22877 2010-12-19  Bruno Haible  <bruno@clisp.org>
22878
22879         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22881         _POSIX_PII_SOCKET.
22882         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22883         * doc/posix-functions/recvfrom.texi: Likewise.
22884         * doc/posix-functions/send.texi: Likewise.
22885         * doc/posix-functions/sendto.texi: Likewise.
22886
22887 2010-12-19  Bruno Haible  <bruno@clisp.org>
22888
22889         tcgetsid: Add missing declaration on OSF/1 5.1.
22890         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22891         HAVE_TCGETSID.
22892         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22893         Don't set HAVE_TCGETSID.
22894         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22895         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22896         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22897         HAVE_TCGETSID.
22898         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22899
22900 2010-12-19  Bruno Haible  <bruno@clisp.org>
22901
22902         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22903         * lib/stdio.in.h: During the include_next statement, let recursive
22904         includes of this file include only the system header file.
22905
22906 2010-12-19  Bruno Haible  <bruno@clisp.org>
22907
22908         iconv_open: Fix regression from 2010-12-04.
22909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22910         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22911
22912 2010-12-19  Bruno Haible  <bruno@clisp.org>
22913
22914         stdbool test: Avoid a gcc warning.
22915         * tests/test-stdbool.c (main): Fail if e1 is false.
22916         Reported by Jim Meyering.
22917
22918 2010-12-19  Jim Meyering  <meyering@redhat.com>
22919
22920         setenv: restore to working order
22921         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22922         mistakenly removed.
22923         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22924         HAVE_SETENV.
22925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22926         HAVE_SETENV.
22927
22928 2010-12-19  Bruno Haible  <bruno@clisp.org>
22929
22930         Document some different function declarations on OSF/1 5.1.
22931         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22932         * doc/posix-functions/inet_ntop.texi: Likewise.
22933         * doc/posix-functions/gethostname.texi: Likewise.
22934         * lib/unistd.in.h (gethostname): Update comment.
22935
22936 2010-12-19  Bruno Haible  <bruno@clisp.org>
22937
22938         doc: Mention vasprintf-posix module.
22939         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22940         the 'vasprintf-posix' module.
22941         * doc/glibc-functions/vasprintf.texi: Likewise.
22942
22943 2010-12-19  Bruno Haible  <bruno@clisp.org>
22944
22945         unsetenv: Add missing declaration on OSF/1 5.1.
22946         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22948         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22950         not HAVE_UNSETENV.
22951         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22952         HAVE_UNSETENV.
22953         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22954
22955 2010-12-19  Bruno Haible  <bruno@clisp.org>
22956
22957         setenv: Add missing declaration on OSF/1 5.1.
22958         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22960         declared. Don't set HAVE_SETENV.
22961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22962         not HAVE_SETENV.
22963         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22964         HAVE_SETENV.
22965         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22966
22967 2010-12-19  Bruno Haible  <bruno@clisp.org>
22968
22969         nl_langinfo tests: Avoid gcc warning.
22970         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22971
22972 2010-12-19  Bruno Haible  <bruno@clisp.org>
22973
22974         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22975         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22976         _GL_CXXALIAS_SYS.
22977
22978 2010-12-19  Bruno Haible  <bruno@clisp.org>
22979
22980         stdbool: Relax test.
22981         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22982         address to 'bool' work in static initializer, for compilers other than
22983         GCC.
22984
22985 2010-12-19  Bruno Haible  <bruno@clisp.org>
22986
22987         ftello: Add missing declaration on OSF/1 5.1.
22988         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22989         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22991         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22992         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22993
22994 2010-12-19  Bruno Haible  <bruno@clisp.org>
22995
22996         fseeko: Add missing declaration on OSF/1 5.1.
22997         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22998         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23000         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23001         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23002
23003 2010-12-19  Bruno Haible  <bruno@clisp.org>
23004
23005         fchdir: Add missing declaration on OSF/1 5.1.
23006         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23009         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23010         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23011
23012 2010-12-19  Bruno Haible  <bruno@clisp.org>
23013
23014         relocatable-prog-wrapper: Separate from relocatable-prog.
23015         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23016         uninstall-relocwrapper rule here.
23017         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23018         Reported by Ian Beckwith <ianb@erislabs.net>.
23019
23020 2010-12-19  Bruno Haible  <bruno@clisp.org>
23021
23022         unistr/u8-mbsnlen: Add missing dependency.
23023         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23024         Reported by Ian Beckwith <ianb@erislabs.net>.
23025
23026 2010-12-19  Bruno Haible  <bruno@clisp.org>
23027
23028         iconv: Make it possible again to use this module without 'iconv-h'.
23029         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23030         if it is not defined.
23031         Reported by Ian Beckwith <ianb@erislabs.net>.
23032
23033 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23034
23035         acl: port to Solaris 8 when copying from tmpfs to ufs
23036         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23037         error number.  Problem observed on Solaris 8 with latest
23038         coreutils, with "mv A B", where A is on a tmpfs file system and B
23039         is on a ufs file system.  This caused coreutils' mv/part-symlink
23040         test to fail.
23041
23042         tests: set fail=0 at start
23043         * tests/init.sh (setup_): Move fail=0 initialization here ...
23044         (mktempd_): ... from here, so that tests can rely on fail being
23045         set to 0 initially.  This fixes a problem in coreutils; see:
23046         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23047
23048 2010-12-18  Bruno Haible  <bruno@clisp.org>
23049
23050         memmem-simple: Stylistic changes.
23051         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23052         Fix preprocessor directive indentation.
23053
23054 2010-12-15  Pádraig Brady <P@draigBrady.com>
23055
23056         memmem, memmem-simple: reorganize and expand empty needle check
23057         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23058         functional checks to memmem-simple so that one has a fully functional
23059         memmem by using just this module.
23060         Restrict the performance only check to the memmem module.
23061         Also expand the empty needle check to ensure the correct
23062         pointer is returned, not just a non NULL pointer.
23063         * doc/glibc-functions/memmem.texi: Rearrange the portability
23064         documentation to correlate with the rearranged checks.
23065         Clarify exactly how the memmem and memmem-simple modules
23066         relate to each other.
23067
23068 2010-12-15  Pádraig Brady <P@draigBrady.com>
23069             Bruno Haible  <bruno@clisp.org>
23070
23071         Improve cross-compilation guesses for uClibc.
23072         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23073         that uClibc does not have the glibc bug.
23074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23075         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23076
23077 2010-12-14  Eric Blake  <eblake@redhat.com>
23078
23079         configmake: provide fallbacks for oldest supported autotools
23080         * m4/configmake.m4: New file.
23081         * modules/configmake (Files): Ship it.
23082         (configure.ac): Use it to guarantee fallbacks.
23083
23084 2010-12-13  Pádraig Brady <P@draigBrady.com>
23085
23086         read-file: Improve handling of large files
23087         * lib/read-file.c (fread_file): Minimize realloc()s
23088         for regular files, and better manage sizes around SIZE_MAX.
23089
23090 2010-12-13  Eric Blake  <eblake@redhat.com>
23091
23092         cloexec, fcntl: relax license
23093         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23094         consent from all contributors.
23095         * modules/fcntl (License): Likewise.
23096
23097 2010-12-10  Bruno Haible  <bruno@clisp.org>
23098
23099         Tests for module 'pipe-posix'.
23100         * modules/pipe-posix-tests: New file.
23101         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23102
23103 2010-12-10  Bruno Haible  <bruno@clisp.org>
23104
23105         pipe-posix: Make it work in C++ mode.
23106         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23107         (pipe): Use common idiom, not a macro definition.
23108         * lib/pipe.c: New file.
23109         * m4/pipe.m4: New file.
23110         * modules/pipe-posix (Description): Enhance.
23111         (Files): Add lib/pipe.c, m4/pipe.m4.
23112         (configure.ac): Invoke gl_FUNC_PIPE.
23113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23114         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23115         * tests/test-unistd-c++.cc: Check the signature of pipe.
23116
23117 2010-12-10  Bruno Haible  <bruno@clisp.org>
23118
23119         Rename module 'pipe' to 'spawn-pipe'.
23120         * modules/spawn-pipe: New file, renamed from modules/pipe.
23121         (Files, configure.ac, Makefile.am): Update.
23122         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23123         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23124         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23125         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23126         "spawn-pipe.h" instead of "pipe.h".
23127         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23128         to gl_SPAWN_PIPE.
23129         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23130         (Files, Makefile.am): Update.
23131         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23132         Update.
23133         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23134         Include "spawn-pipe.h" instead of "pipe.h".
23135         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23136         * lib/javacomp.c: Likewise.
23137         * lib/javaversion.c: Likewise.
23138         * lib/pipe-filter-gi.c: Likewise.
23139         * lib/pipe-filter-ii.c: Likewise.
23140         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23141         * modules/javacomp (Depends-on): Likewise.
23142         * modules/javaversion (Depends-on): Likewise.
23143         * modules/pipe-filter-gi (Depends-on): Likewise.
23144         * modules/pipe-filter-ii (Depends-on): Likewise.
23145         * MODULES.html.sh (Executing programs): Update.
23146         * NEWS: Mention the change.
23147
23148 2010-12-10  Eric Blake  <eblake@redhat.com>
23149
23150         pipe-posix: new module
23151         * modules/pipe-posix: New file.
23152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23153         (gl_UNISTD_H): Check for declaration.
23154         * modules/unistd (Makefile.am): Substitute it.
23155         * lib/unistd.in.h (pipe): Provide it for mingw.
23156         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23157         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23158
23159 2010-12-07  Bruno Haible  <bruno@clisp.org>
23160
23161         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23162         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23163         u8_strcmp_gnu.
23164         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23165
23166 2010-12-06  Bruno Haible  <bruno@clisp.org>
23167
23168         Update internal documentation.
23169         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23170
23171 2010-12-04  Bruno Haible  <bruno@clisp.org>
23172
23173         Put more information about failed tests into the test return codes.
23174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23175         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23176         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23178         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23181         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23182         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23185         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23186         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23187         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23188         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23189         returns a bit mask.
23190         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23191         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23192         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23193         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23198         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23200         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23201         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23204         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23205         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23206         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23207         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23208         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23209         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23211         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23213         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23214         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23215         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23216         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23217         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23218         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23219         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23220         gl_PRINTF_PRECISION): Likewise.
23221         * m4/regex.m4 (gl_REGEX): Likewise.
23222         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23223         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23225         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23229         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23230         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23231         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23232         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23235         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23236         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23237         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23238         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23241         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23242         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23243         enumerated value.
23244         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23245
23246 2010-12-04  Bruno Haible  <bruno@clisp.org>
23247
23248         Update for Solaris 11 2010-11.
23249         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23250         Express, released in November 2010.
23251
23252 2010-12-04  Bruno Haible  <bruno@clisp.org>
23253
23254         nproc: Relax license.
23255         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23256         and Paul Eggert.
23257         Requested by Ludovic Courtès <ludo@gnu.org>.
23258
23259 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23260
23261         utimecmp: fine-grained src to nearby coarse-grained dest
23262
23263         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23264         and the source is on a file system with higher-resolution time
23265         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23266         not work, and the time stamps are close together, the algorithm to
23267         determine the exact resolution from the read-back mtime was buggy:
23268         it had a "!=" where it should have had an "==".  This bug has been
23269         in the code ever since it was introduced to gnulib.
23270         Problem reported by Dan Jacobson in
23271         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23272
23273 2010-11-30  Bruno Haible  <bruno@clisp.org>
23274
23275         strerror_r-posix: Fix autoconf test.
23276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23277
23278 2010-11-28  Bruno Haible  <bruno@clisp.org>
23279             Paul Eggert  <eggert@cs.ucla.edu>
23280
23281         Tests for module 'getdomainname'.
23282         * modules/getdomainname-tests: New file.
23283         * tests/test-getdomainname.c: New file, based on
23284         tests/test-gethostname.c.
23285
23286 2010-11-28  Bruno Haible  <bruno@clisp.org>
23287             Paul Eggert  <eggert@cs.ucla.edu>
23288
23289         getdomainname: Use the system function when possible.
23290         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23291         (getdomainname): Replace if needed. Provide the declaration if it is
23292         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23293         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23294         (getdomainname): When the system has getdomainname, call the system
23295         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23296         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23297         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23298         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23299         the function if its second argument is of type 'int' or if it is found
23300         in libnsl.
23301         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23302         <sys/systeminfo.h> and sysinfo().
23303         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23305         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23306         HAVE_GETDOMAINNAME.
23307         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23308         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23309         * doc/glibc-functions/getdomainname.texi: Document the problems with
23310         the getdomainname declaration.
23311
23312 2010-11-28  Bruno Haible  <bruno@clisp.org>
23313
23314         sys_socket: Ensure ss_family field on AIX.
23315         * lib/sys_socket.in.h (ss_family): New macro definition.
23316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23317         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23318         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23319         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23320         * modules/sys_socket (Makefile.am): Substitute
23321         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23322         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23323
23324 2010-11-27  Bruno Haible  <bruno@clisp.org>
23325
23326         readline: Improve configure output.
23327         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23328         "checking for readline..." result understandable.
23329
23330 2010-11-27  Bruno Haible  <bruno@clisp.org>
23331
23332         *printf-posix: Detect a bug on Solaris 10/x86.
23333         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23334         for floating-point output.
23335         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23336         directive.
23337         * tests/test-snprintf-posix.h (test_function): Likewise.
23338         * tests/test-sprintf-posix.h (test_function): Likewise.
23339         * tests/test-vasprintf-posix.c (test_function): Likewise.
23340         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23341         * doc/posix-functions/printf.texi: Likewise.
23342         * doc/posix-functions/snprintf.texi: Likewise.
23343         * doc/posix-functions/sprintf.texi: Likewise.
23344         * doc/posix-functions/vfprintf.texi: Likewise.
23345         * doc/posix-functions/vprintf.texi: Likewise.
23346         * doc/posix-functions/vsnprintf.texi: Likewise.
23347         * doc/posix-functions/vsprintf.texi: Likewise.
23348         * doc/glibc-functions/obstack_printf.texi: Likewise.
23349         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23350
23351 2010-11-27  Bruno Haible  <bruno@clisp.org>
23352
23353         Fix link error when module libunistring-optional is in use.
23354         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23355         * modules/striconveha-tests (Makefile.am): Likewise.
23356
23357 2010-11-27  Bruno Haible  <bruno@clisp.org>
23358
23359         regex: Mention link dependencies.
23360         * modules/regex (Link): New section.
23361         * modules/rpmatch (Link): Likewise.
23362         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23363
23364 2010-11-27  Bruno Haible  <bruno@clisp.org>
23365
23366         ftoastr: Fix compilation error on Solaris.
23367         * lib/ftoastr.c: Include <config.h>.
23368
23369 2010-11-27  Bruno Haible  <bruno@clisp.org>
23370
23371         getloadavg: Update documentation.
23372         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23373
23374 2010-11-27  Bruno Haible  <bruno@clisp.org>
23375
23376         sys_socket: Fix test whether the functions are declared.
23377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23378         not <sys/select.h>.
23379
23380 2010-11-27  Bruno Haible  <bruno@clisp.org>
23381
23382         getpass: Make sure to get system declaration on some platforms.
23383         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23384         gl_USE_SYSTEM_EXTENSIONS.
23385         * modules/getpass (Depends-on): Add extensions.
23386
23387 2010-11-26  Bruno Haible  <bruno@clisp.org>
23388
23389         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23390         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23391         'iconv' module is present.
23392         (ICONV_CONST): New macro.
23393         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23394         ICONV_CONST.
23395         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23396         set ICONV_CONST.
23397         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23398         here.
23399         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23400         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23401         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23402         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23403         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23404         present.
23405
23406 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23407
23408         ftoastr: comment fix
23409         * lib/ftoastr.c: "little" -> "little or no" in comment
23410
23411 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23412
23413         stdint: port to GCC 4.3 + OSX + Octave
23414         On this platform, stdint.h is buggy and defines int64_t to long
23415         long int.  The replacement defined it to long int, causing
23416         problems with C++ style name mangling.  Instead, trust the system
23417         definition if INT64_MAX is defined, and likewise for the unsigned
23418         variant.   Problem reported by Jarno Rajahalme in
23419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23420         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23421         and don't mess with int64_t and INT64_MAX in this case.
23422         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23423
23424 2010-11-24  Bruno Haible  <bruno@clisp.org>
23425
23426         doc: Corrections regarding MacOS X 10.4 and 10.5.
23427         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23428         MacOS X.
23429         Reported by Simon Josefsson.
23430
23431 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23432
23433         Uninstall ".bin" files installed by relocwrapper.
23434         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23435         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23436         unless it is already there.
23437
23438 2010-11-21  Bruno Haible  <bruno@clisp.org>
23439
23440         Update for NetBSD 5.0.
23441         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23442         NetBSD; the test fails on NetBSD 5.0.
23443         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23444         about NetBSD.
23445
23446 2010-11-21  Bruno Haible  <bruno@clisp.org>
23447
23448         Update for HP-UX 11.23 and HP-UX 11.31.
23449         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23450         HP-UX.
23451
23452 2010-11-21  Bruno Haible  <bruno@clisp.org>
23453
23454         Update for MacOS X 10.5.
23455         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23456         MacOS X; the test fails on MacOS X 10.5.8.
23457         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23458         about MacOS X.
23459
23460 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23461
23462         bootstrap: add bootstrap_sync option.
23463         See discussion at
23464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23465         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23466         * build-aux/bootstrap: Accept --bootstrap-sync to update
23467         bootstrap if it is not identical to the local gnulib's
23468         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23469         enable this by default.  Accept --no-bootstrap-sync to disable
23470         it.
23471
23472 2010-11-20  Bruno Haible  <bruno@clisp.org>
23473
23474         Ensure that <features.h> is included before __GLIBC__ is tested.
23475         * lib/printf-parse.h: Include <features.h>.
23476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23477         Reported by Mike Frysinger <vapier@gentoo.org>.
23478
23479         Ensure that <features.h> is included before __GLIBC__ is tested.
23480         * lib/wchar.in.h: Include <features.h>.
23481         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23482         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23483         Reported by Mike Frysinger <vapier@gentoo.org>.
23484
23485         Ensure that <features.h> is included before __GLIBC__ is tested.
23486         * lib/arpa_inet.in.h: Include <features.h>.
23487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23488         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23489         Reported by Mike Frysinger <vapier@gentoo.org>.
23490
23491         Ensure that <features.h> is included before __GLIBC__ is tested.
23492         * build-aux/link-warning.h: Include <features.h>.
23493         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23494         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23495         Reported by Mike Frysinger <vapier@gentoo.org>.
23496
23497         Ensure that <features.h> is included before __GLIBC__ is tested.
23498         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23499         Reported by Mike Frysinger <vapier@gentoo.org>.
23500
23501 2010-11-20  Bruno Haible  <bruno@clisp.org>
23502
23503         memmem: Fix autoconf test.
23504         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23505
23506 2010-11-20  Bruno Haible  <bruno@clisp.org>
23507
23508         Port to uClibc.
23509         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23510         * lib/fcntl.in.h: Likewise.
23511         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23512         * lib/mbrtowc.c (mbrtowc): Likewise.
23513         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23514         * lib/strerror_r.c: Likewise.
23515         * lib/unistr/u8-strnlen.c: Likewise.
23516         * lib/vasnprintf.c (decimal_point_char): Likewise.
23517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23518         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23520         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23521         * tests/test-sigaction.c (handler, main): Likewise.
23522         * lib/freading.h: Treat uClibc like a non-glibc platform.
23523         * lib/freading.c: Likewise.
23524         * lib/gettext.h: Likewise.
23525         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23526         Likewise.
23527         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23528         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23529         * lib/propername.c (proper_name_utf8): Likewise.
23530         * lib/spawn.in.h: Likewise.
23531         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23532         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23533         mem_cd_iconveh_internal): Likewise.
23534         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23535         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23536         strstr, strcasestr): Likewise.
23537         * lib/unicodeio.c (unicode_to_mb): Likewise.
23538         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23539         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23540         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23541         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23542         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23543         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23544         * lib/unistr/u8-stpncpy.c: Likewise.
23545         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23546         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23547         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23548         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23549         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23551         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23554         Likewise.
23555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23556         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23560         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23562         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23563         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23564         * tests/test-striconveha.c (main): Likewise.
23565         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23566         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23567         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23568         * doc/posix-functions/getline.texi: Likewise.
23569         Reported by Mike Frysinger <vapier@gentoo.org>.
23570
23571 2010-11-20  Bruno Haible  <bruno@clisp.org>
23572
23573         nproc: Fix condition.
23574         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23575         HAVE_PTHREAD_AFFINITY_NP.
23576
23577 2010-11-20  Bruno Haible  <bruno@clisp.org>
23578
23579         Fix a comment.
23580         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23581
23582 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23583
23584         ftoastr: don't assume snprintf
23585         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23586         Implement a subset of snprintf here, by using sprintf safely.
23587         * modules/ftoastr (Depends-on): Remove snprintf.
23588
23589 2010-11-19  Jim Meyering  <meyering@redhat.com>
23590
23591         test-rename.h: fix compilation failure
23592         * tests/test-rename.h (test_rename): Add omitted "}".
23593
23594 2010-11-17  Jim Meyering  <meyering@redhat.com>
23595
23596         maint.mk: add a URL discussing the no-@acronym policy
23597         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23598
23599 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23600
23601         ftoastr: depend on snprintf, improve comments
23602         * lib/ftoastr.c: Also mention Loitsch's draft.
23603         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23604         needed in the current implementation, but it might simplify
23605         speeding up the code later.
23606         * modules/ftoastr: Depend on snprintf; this improves portability.
23607         Suggested by Bruno Haible in the same email.
23608
23609         ftoastr: port to hosts lacking strtof and strtold
23610         Problem reported by Bruno Haible in
23611         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23612         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23613         environment and strtold (and presumably strtof) are not available.
23614         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23615         (configure.ac): Require gl_C99_STRTOLD.
23616
23617 2010-11-18  Bruno Haible  <bruno@clisp.org>
23618
23619         c-strtold: Avoid link error on AIX 7.
23620         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23621         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23622         (gl_C_STRTOLD): Test whether strtold_l exists.
23623         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23624
23625 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23626
23627         intprops: new macro INT_BITS_STRLEN_BOUND
23628         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23629         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23630         not exposed.  Also, it uses a slightly tighter bound than before;
23631         though this makes no practical difference, we might as well be as
23632         tight as we easily can.
23633
23634         ftoastr: new module, for lossless conversion of floats to short strings
23635         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23636         * modules/ftoastr: New files.
23637
23638 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23639
23640         bootstrap: port to Solaris sed
23641         * build-aux/bootstrap (get_version): Port to Solaris sed.
23642         See Ralf Wildenhues's note in
23643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23644
23645 2010-11-14  Jim Meyering  <meyering@redhat.com>
23646
23647         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23648         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23649         and move definition closer to sole use.
23650
23651 2010-11-13  Jim Meyering  <meyering@redhat.com>
23652
23653         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23654         Now we require at least autoconf-2.59, which means the work-around
23655         is no longer needed.
23656         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23658         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23659         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23660         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23661
23662 2010-11-13  Bruno Haible  <bruno@clisp.org>
23663
23664         rename, renameat: Avoid test failures at NFS mounted locations.
23665         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23666         functions.
23667         (test_rename): Use assert_nonexistent.
23668         * tests/test-rename.c: Include <dirent.h>.
23669         * tests/test-renameat.c: Likewise.
23670         Reported by Gary V. Vaughan <gary@gnu.org>.
23671
23672         rename, renameat: Document Linux bug with NFS
23673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23674         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23675         * doc/posix-functions/renameat.texi: Likewise.
23676         Suggested by Eric Blake.
23677
23678 2010-11-13  Bruno Haible  <bruno@clisp.org>
23679
23680         rename test: Add comments.
23681         * tests/test-rename.h (test_rename): Add structure and comments.
23682
23683 2010-11-13  Eric Blake  <eblake@redhat.com>
23684
23685         maintainer-makefile: cover a few more files
23686         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23687         scripts generated within C files, for libvirt.
23688
23689 2010-11-13  Bruno Haible  <bruno@clisp.org>
23690
23691         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23692         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23693         character, return the number of bytes that belong together, not always
23694         1.
23695         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23696         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23697         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23698         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23699         number of bytes of an invalid character.
23700         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23701         (main): Invoke it.
23702         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23703         results.
23704         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23705         malformed byte sequences.
23706         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23707         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23708         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23709         Reported by Ben Pfaff and Paolo Bonzini.
23710
23711 2010-11-13  Bruno Haible  <bruno@clisp.org>
23712
23713         openat: Work around glibc bug with fchownat() and empty file names.
23714         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23715         (gl_FUNC_FCHOWNAT): Invoke it.
23716         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23717         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23718         Reported by Gary V. Vaughan <gary@gnu.org>.
23719
23720 2010-11-13  Bruno Haible  <bruno@clisp.org>
23721
23722         openat: Ensure autoconf macro ordering.
23723         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23724         gl_USE_SYSTEM_EXTENSIONS.
23725         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23726
23727 2010-11-13  Bruno Haible  <bruno@clisp.org>
23728
23729         Update comments.
23730         * lib/unistr/u8-check.c: Update file name in comments.
23731         * lib/unistr/u8-mblen.c: Likewise.
23732         * lib/unistr/u8-prev.c: Likewise.
23733         * lib/unistr/u8-strmblen.c: Likewise.
23734         * lib/unistr/u8-strmbtouc.c: Likewise.
23735
23736 2010-11-13  Jim Meyering  <meyering@redhat.com>
23737
23738         tests: avoid test failure on Solaris 10 due to lack of PATH export
23739         * tests/test-update-copyright.sh: Don't forget to export PATH.
23740
23741         init.sh: ensure that IFS is defined, just in case...
23742         * tests/init.sh (setup_): Ensure that IFS is defined,
23743         so that saving and restoring it works as expected.  This
23744         appears to be useful at least for an old version of dash
23745         from a long time ago (RH 6).  See here for details:
23746         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23747
23748         maint.mk: tighten "test a == b" check
23749         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23750         test to files that contain something like #!/bin/sh.
23751         Without this, coreutils would get two false positives in
23752         the comments of C source files.
23753
23754 2010-11-12  Eric Blake  <eblake@redhat.com>
23755
23756         bootstrap: fix typo in previous attempt
23757         * build-aux/bootstrap (buildreq): Correct the grouping.
23758         Reported by Paul Eggert.
23759
23760         maintainer-makefile: prohibit test x == x
23761         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23762         Based on a report by Matthias Bolte.
23763
23764         bootstrap: allow FreeBSD gzip
23765         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23766         which has no '.' and goes to stderr.
23767         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23768         Reported by Matthias Bolte.
23769
23770         maintainer-makefile: check for i18n setup
23771         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23772         will likely work.
23773
23774 2010-11-12  Bruno Haible  <bruno@clisp.org>
23775
23776         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23777         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23778         * lib/nanosleep.c (nanosleep): Likewise.
23779
23780 2010-11-11  Bruno Haible  <bruno@clisp.org>
23781
23782         fcntl-h: Fix for use of C++ on glibc systems.
23783         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23784         also on glibc systems in C++ mode.
23785         Reported by Gary V. Vaughan <gary@gnu.org>.
23786
23787 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23788
23789         mknod: avoid false failure with dash
23790         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23791
23792 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23793
23794         unlink: Fix "is it should" typo in diagnostic.
23795         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23796         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23797
23798 2010-11-11  Bruno Haible  <bruno@clisp.org>
23799
23800         Tests for module 'strerror_r-posix'.
23801         * modules/strerror_r-posix-tests: New file.
23802         * tests/test-strerror_r.c: New file.
23803         * tests/test-string-c++.cc: Check the signature of strerror_r.
23804
23805         New module 'strerror_r-posix'.
23806         * lib/string.in.h (strerror_r): New declaration.
23807         * lib/strerror_r.c: New file.
23808         * m4/strerror_r.m4: New file.
23809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23810         of strerror_r.
23811         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23812         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23813         * modules/strerror_r-posix: New file.
23814         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23815         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23816         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23817         portability problems.
23818
23819 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23820
23821         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23822         line is also considered for output. Quoted function name in shell
23823         command, so temporary files for functions like MyClass::operator()
23824         are removed correctly without errors.
23825
23826 2010-11-09  Bruno Haible  <bruno@clisp.org>
23827
23828         * doc/posix-functions/strerror.texi: List more failing platforms.
23829
23830         * doc/posix-functions/strerror.texi: Add a comment.
23831
23832 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23833
23834         fdopendir: fix bug on MacOS X when low on file descriptors
23835
23836         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23837         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23838         All callers changed.
23839         (fdopendir): Invoke save_cwd at the top level, not after using
23840         multiple dup() calls to use up file descriptors.  Then retry
23841         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23842         less than the maximum number of open file descriptors, because
23843         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23844         on Mac OS X 10.6.4 for tar 1.24
23845         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23846         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23847         and for tar 1.25
23848         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23849
23850 2010-11-07  Bruno Haible  <bruno@clisp.org>
23851
23852         vasnprintf: Support I flag on glibc systems.
23853         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23854         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23855         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23856         snprintf function.
23857         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23858         glibc systems.
23859         * tests/test-vasnprintf-posix3.c: New file.
23860         * modules/vasnprintf-posix-tests (Files): Add it.
23861         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23862
23863 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23864
23865         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23866         * MODULES.html.sh: For compiler warnings, use name
23867         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23868
23869 2010-11-05  Eric Blake  <eblake@redhat.com>
23870
23871         ceil, floor: avoid spurious failure with icc
23872         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23873         [denormals-as-zero] when optimizing without -mieee-fp option.
23874         * tests/test-floorf2.c (floorf_reference): Likewise.
23875         * tests/test-ceilf1.c (dummy): New function.
23876         (main): Use it to outsmart icc's optimization.
23877         * tests/test-floorf1.c (dummy, main): Likewise.
23878
23879         tests: require working signbit
23880         * modules/ceilf-tests (Depends-on): Add signbit.
23881         * modules/ceill-tests (Depends-on): Likewise.
23882         * modules/floorf-tests (Depends-on): Likewise.
23883         * modules/floorl-tests (Depends-on): Likewise.
23884         * modules/round-tests (Depends-on): Likewise.
23885         * modules/roundf-tests (Depends-on): Likewise.
23886         * modules/roundl-tests (Depends-on): Likewise.
23887         * modules/trunc-tests (Depends-on): Likewise.
23888         * modules/truncf-tests (Depends-on): Likewise.
23889         * modules/truncl-tests (Depends-on): Likewise.
23890
23891         strtod: work around icc bug
23892         * lib/strtod.c (minus_zero): Define to working value.
23893         (strtod): Use it to avoid icc bug.
23894
23895         copysign: enhance tests
23896         * modules/copysign-tests (Files): Add minus-zero.h.
23897         * tests/test-copysign.c (main): Also test zeros.
23898
23899 2010-11-04  Eric Blake  <eblake@redhat.com>
23900
23901         ceil, floor, round, trunc: enhance tests of -0
23902         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23903         * tests/test-ceill.c (main): Likewise.
23904         * tests/test-floorf1.c (main): Likewise.
23905         * tests/test-floorl.c (main): Likewise.
23906         * tests/test-round1.c (main): Likewise.
23907         * tests/test-roundf1.c (main): Likewise.
23908         * tests/test-roundl.c (main): Likewise.
23909         * tests/test-trunc1.c (main): Likewise.
23910         * tests/test-truncf1.c (main): Likewise.
23911         * tests/test-truncl.c (main): Likewise.
23912
23913 2010-11-04  Eric Blake  <eblake@redhat.com>
23914
23915         frexp, tests: work around ICC bug with -zero
23916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23917         works with more compilers.
23918         * tests/minus-zero.h: New file.
23919         * modules/ceilf-tests (Files): Include it.
23920         * modules/ceill-tests (Files): Likewise.
23921         * modules/floorf-tests (Files): Likewise.
23922         * modules/floorl-tests (Files): Likewise.
23923         * modules/frexp-nolibm-tests (Files): Likewise.
23924         * modules/frexp-tests (Files): Likewise.
23925         * modules/frexpl-nolibm-tests (Files): Likewise.
23926         * modules/frexpl-tests (Files): Likewise.
23927         * modules/isnan-tests (Files): Likewise.
23928         * modules/isnand-nolibm-tests (Files): Likewise.
23929         * modules/isnand-tests (Files): Likewise.
23930         * modules/isnanf-nolibm-tests (Files): Likewise.
23931         * modules/isnanf-tests (Files): Likewise.
23932         * modules/isnanl-nolibm-tests (Files): Likewise.
23933         * modules/isnanl-tests (Files): Likewise.
23934         * modules/round-tests (Files): Likewise.
23935         * modules/roundf-tests (Files): Likewise.
23936         * modules/roundl-tests (Files): Likewise.
23937         * modules/ldexpl-tests (Files): Likewise.
23938         * modules/signbit-tests (Files): Likewise.
23939         * modules/snprintf-posix-tests (Files): Likewise.
23940         * modules/sprintf-posix-tests (Files): Likewise.
23941         * modules/strtod-tests (Files): Likewise.
23942         * modules/trunc-tests (Files): Likewise.
23943         * modules/truncf-tests (Files): Likewise.
23944         * modules/truncl-tests (Files): Likewise.
23945         * modules/vsnprintf-posix-tests (Files): Likewise.
23946         * modules/vsprintf-posix-tests (Files): Likewise.
23947         * modules/vasnprintf-posix-tests (Files): Likewise.
23948         * modules/vasprintf-posix-tests (Files): Likewise.
23949         * tests/test-ceilf1.c (main): Use it.
23950         * tests/test-ceill.c (main): Likewise.
23951         * tests/test-floorf1.c (main): Likewise.
23952         * tests/test-floorl.c (main): Likewise.
23953         * tests/test-frexp.c (main): Likewise.
23954         * tests/test-frexpl.c (main): Likewise.
23955         * tests/test-isnan.c (main): Likewise.
23956         * tests/test-isnand.h (main): Likewise.
23957         * tests/test-isnanf.h (main): Likewise.
23958         * tests/test-isnanl.h (main): Likewise.
23959         * tests/test-ldexpl.c (main): Likewise.
23960         * tests/test-round.c (main): Likewise.
23961         * tests/test-roundf.c (main): Likewise.
23962         * tests/test-roundl.c (main): Likewise.
23963         * tests/test-signbit.c (test_signbitf, test_signbitd)
23964         (test_signbitl): Likewise.
23965         * tests/test-snprintf-posix.h (test_function): Likewise.
23966         * tests/test-sprintf-posix.h (test_function): Likewise.
23967         * tests/test-strtod.c (main): Likewise.
23968         * tests/test-trunc1.c (main): Likewise.
23969         * tests/test-truncf1.c (main): Likewise.
23970         * tests/test-truncl.c (main): Likewise.
23971
23972         isnanl: work around icc bug
23973         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23974
23975 2010-11-03  Eric Blake  <eblake@redhat.com>
23976
23977         tests: fix compiler warnings
23978         * tests/test-getopt.h (test_getopt): Fix condition.
23979         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23980         * tests/test-pipe2.c (main): Likewise.
23981         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23982
23983         utimens: fix broken m4 test
23984         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23985
23986 2010-10-28  Bruno Haible  <bruno@clisp.org>
23987
23988         posix_spawn*, getdtablesize: Relax license.
23989         * modules/posix_spawn (License): Change to LGPLv2+.
23990         * modules/posix_spawnp (License): Likewise.
23991         * modules/posix_spawn-internal (License): Likewise.
23992         * modules/posix_spawnattr_init (License): Likewise.
23993         * modules/posix_spawnattr_getflags (License): Likewise.
23994         * modules/posix_spawnattr_setflags (License): Likewise.
23995         * modules/posix_spawnattr_getpgroup (License): Likewise.
23996         * modules/posix_spawnattr_setpgroup (License): Likewise.
23997         * modules/posix_spawnattr_getschedparam (License): Likewise.
23998         * modules/posix_spawnattr_setschedparam (License): Likewise.
23999         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24000         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24001         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24002         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24003         * modules/posix_spawnattr_getsigmask (License): Likewise.
24004         * modules/posix_spawnattr_setsigmask (License): Likewise.
24005         * modules/posix_spawnattr_destroy (License): Likewise.
24006         * modules/posix_spawn_file_actions_init (License): Likewise.
24007         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24008         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24009         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24010         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24011         * modules/getdtablesize (License): Likewise.
24012         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24013
24014 2010-10-26  Bruno Haible  <bruno@clisp.org>
24015
24016         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24017         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24018         Cygwin and mingw.
24019         Suggested by Eric Blake.
24020
24021 2010-10-26  Bruno Haible  <bruno@clisp.org>
24022
24023         stdio: Work around compilation error due to renameat() on Solaris 10.
24024         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24025         * lib/renameat.c: Don't include <unistd.h> here.
24026         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24027         Reported by Paul Eggert and Eric Blake.
24028
24029 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24030
24031         renameat: port to Solaris 10, which declares renameat in unistd.h
24032
24033         * lib/renameat.c: Include unistd.h before stdio.h, because
24034         Solaris 10 declares renameat in unistd.h.  Problem encountered
24035         when building GNU tar 1.24 on Solaris 10.
24036
24037 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24038
24039         fdopendir: fix C89 compilation
24040         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24041         compilers.
24042
24043 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24044
24045         inttostr: simplify by removing unnecessary redundancy
24046         * lib/anytostr.c: Don't include verify.h.
24047         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24048         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24049         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24050         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24051         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24052         Likewise.
24053         * modules/inttostr (Depends-on): Remove 'verify'.
24054
24055 2010-10-23  Bruno Haible  <bruno@clisp.org>
24056
24057         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24058         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24059         Reported by Eric Blake.
24060
24061 2010-10-23  Bruno Haible  <bruno@clisp.org>
24062
24063         Tests: Fix LOCALE_JA on MirBSD 10.
24064         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24065         to an UTF-8 locale.
24066         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24067         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24068         Reported by Eric Blake.
24069
24070 2010-10-21  Bruno Haible  <bruno@clisp.org>
24071
24072         nl_langinfo test: Avoid test failure on NetBSD 5.
24073         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24074         Reported by Eric Blake.
24075
24076 2010-10-21  Eric Blake  <eblake@redhat.com>
24077
24078         c-stack: work around libsigsegv 2.8 bug
24079         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24080         overflow on at least PowerPC64.
24081
24082 2010-10-17  Bruno Haible  <bruno@clisp.org>
24083
24084         userspec: Drop redundant file.
24085         * modules/userspec (Files): Remove lib/inttostr.h.
24086
24087 2010-10-17  Bruno Haible  <bruno@clisp.org>
24088
24089         nl_langinfo tests: Silence some warnings.
24090         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24091         Reported by Jim Meyering.
24092
24093 2010-10-17  Bruno Haible  <bruno@clisp.org>
24094
24095         Make use of GCC's attribute __alloc_size__.
24096         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24097         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24098         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24099         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24100         __alloc_size__.
24101         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24102         Suggested by Jim Meyering.
24103
24104 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24105
24106         bootstrap: anchor .gitignore entries.
24107         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24108         with...
24109         (insert_vc_ignore): ... this new function, which prepends `/' to
24110         all .gitignore entries before passing them to
24111         insert_sorted_if_absent.
24112
24113 2010-10-16  Bruno Haible  <bruno@clisp.org>
24114
24115         nextafter: Fix configure check.
24116         * modules/nextafter (configure.ac): Correct expected prototype.
24117
24118 2010-10-16  Bruno Haible  <bruno@clisp.org>
24119
24120         termios: Update documentation.
24121         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24122
24123 2010-10-16  Bruno Haible  <bruno@clisp.org>
24124
24125         tests: Make them compile with TinyCC.
24126         * tests/test-strstr.c (main): Remove parentheses around array
24127         initializer.
24128
24129 2010-10-15  Eric Blake  <eblake@redhat.com>
24130
24131         ignore-value: make header idempotent
24132         * lib/ignore-value.h: Add double-inclusion guards.
24133         Reported by Stefan Berger.
24134
24135 2010-10-15  Jim Meyering  <meyering@redhat.com>
24136
24137         GNUmakefile: handle "stable" target, not "major"
24138         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24139         lists in maint.mk and announce-gen.  Without this, "make stable"
24140         would fail to ensure that $(VERSION) is up to date.
24141
24142 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24143
24144         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24145         & co.
24146
24147 2010-10-14  Bruno Haible  <bruno@clisp.org>
24148
24149         vasnprintf: Don't set errno to 0.
24150         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24151         block that sets it to 0.
24152         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24153
24154 2010-10-14  Bruno Haible  <bruno@clisp.org>
24155
24156         socketlib: Fix.
24157         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24158         gl_PREREQ_SYS_H_WINSOCK2.
24159         Reported by Ian Beckwith <ianb@erislabs.net>.
24160
24161 2010-10-13  Jim Meyering  <meyering@redhat.com>
24162
24163         test-select-stdin.c: avoid warn_unused_result warnings
24164         * tests/test-select-stdin.c: Include "macros.h".
24165         ASSERT that read and fflush succeed.
24166
24167 2010-10-13  Jim Meyering  <meyering@redhat.com>
24168
24169         git-version-gen: do require git-VC'd files in cwd
24170         * build-aux/git-version-gen: Reject a git version string
24171         if there are no commits associated with the current directory.
24172         This avoids an unlikely false-positive (unrelated dir whose parent
24173         repository also contains a tag matching v*), as pointed out
24174         by Giuseppe Scrivano in
24175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24176
24177 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24178
24179         argv-iter: omit nonconforming declaration
24180         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24181         enum arg_iter_err declaration, which doesn't conform to C99.
24182         Solaris 10 cc warns about this.
24183
24184 2010-10-13  Eric Blake  <eblake@redhat.com>
24185
24186         termios: fix compilation on mingw
24187         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24188         (gl_TERMIOS_H): Adjust it on mingw.
24189         * modules/termios (Makefile.am): Substitute new key.
24190         * lib/termios.in.h (includes): Make include_next conditional.
24191         * doc/posix-headers/termios.texi (termios.h): Update
24192         documentation.
24193         Reported by Daniel P. Berrange.
24194
24195 2010-10-13  Jim Meyering  <meyering@redhat.com>
24196
24197         git-version-gen: don't require that .git/ be in the current dir
24198         * build-aux/git-version-gen: Adjust this script so that it works
24199         when run from any working directory beneath the top-level .git/-
24200         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24202
24203         test-select: avoid warn_unused_result warnings
24204         * tests/test-select.c: Include "macros.h".
24205         ASSERT that each call to read, write, and pipe succeeds.
24206         While not technically required, also check each "close".
24207         * modules/select-tests (Files): Add tests/macros.h.
24208
24209         test-symlinkat: remove declaration of unused local
24210         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24211
24212         test-inttostr: avoid shadowing warnings
24213         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24214         and use malloc rather than the stack for the same reason as
24215         mentioned in the comment justifying the other allocation.
24216
24217 2010-10-11  Bruno Haible  <bruno@clisp.org>
24218
24219         stdlib: Allow multiple gnulib generated replacements to coexist.
24220         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24221         Reported by Sam Steingold <sds@gnu.org>.
24222
24223 2010-10-11  Jim Meyering  <meyering@redhat.com>
24224
24225         fix a documentation typo
24226         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24227
24228 2010-10-11  Eric Blake  <eblake@redhat.com>
24229
24230         futimens: work around Solaris 11 bug
24231         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24232         * tests/test-futimens.h (test_futimens): Enhance, rather than
24233         weaken test.
24234         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24235
24236 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24237
24238         Indentation.
24239         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24240         higher-level operators more to the left.
24241
24242 2010-10-11  Jim Meyering  <meyering@redhat.com>
24243
24244         test-futimens: avoid unwarranted test failure on Solaris 5.11
24245         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24246         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24247         because it tries to dereference the NULL name argument.
24248
24249 2010-10-11  Bruno Haible  <bruno@clisp.org>
24250
24251         Indentation.
24252         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24253         indentation.
24254
24255 2010-10-11  Jim Meyering  <meyering@redhat.com>
24256
24257         spawn.in.h: make indentation consistent with parentheses
24258         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24259         Make indentation consistent with parentheses.
24260
24261 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24262
24263         Fix mismatched parens in previous commit
24264         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24265         parens.
24266
24267 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24268
24269         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24270
24271         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24272         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24273         * lib/malloca.c: Include "verify.h".
24274         (verify1): Remove, replacing with a verify call.
24275         * lib/relocwrapper.c (verify1): Likewise.
24276         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24277         Likewise.
24278         * modules/malloca (Depends-on): Add 'verify'.
24279         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24280         * modules/vasnprintf (Depends-on): Add 'verify'.
24281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24283         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24287         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24288
24289         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24290
24291         Formerly the style was sometimes 2*X - 1, because the C standard
24292         was wrongly thought to disallow ?: in integral constant expressions.
24293         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24294         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24295         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24296         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24297         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24298         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24299         verify that time_t cannot be floating.
24300
24301 2010-10-08  Eric Blake  <eblake@redhat.com>
24302
24303         time: enforce recent POSIX ruling that time_t is integral
24304         * lib/time.in.h (__time_t_must_be_integral): Detect any
24305         problematic systems, allowing the rest of gnulib to assume POSIX.
24306
24307 2010-10-08  Jim Meyering  <meyering@redhat.com>
24308
24309         fdopendir: fix a bug on systems lacking openat and /proc support
24310         OpenBSD 4.7 is one such system.  The most noticeable effect was
24311         failure of any application making nontrivial use of fts: rm, du,
24312         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24313           ./rm: traversal failed: `a': Bad file descriptor
24314         Debugging that, you see that even though FD 6 was closed just
24315         prior to the opendir call in fd_clone_opendir, its resulting
24316         dir->dd_fd was 8, rather than the expected value of 6:
24317
24318         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24319         93                close (fd);
24320         (gdb) n
24321         94                dir = fd_clone_opendir (dupfd);
24322         (gdb) n
24323         95                saved_errno = errno;
24324         (gdb) p dir->dd_fd
24325         $11 = 8
24326
24327         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24328         The problem is that on OpenBSD, fd_clone_opendir has to resort
24329         to using the old-style save/restore CWD mechanism, due to its
24330         lack of openat/proc support, and *that* would steal the FD (6)
24331         that opendir was supposed to use.
24332
24333         The fix is to squirrel away the desired FD so that save_cwd uses a
24334         different one, and then free the dest FD right before calling opendir.
24335         That guarantees opendir will use the required file descriptor.
24336
24337         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24338
24339 2010-10-08  Bruno Haible  <bruno@clisp.org>
24340
24341         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24342         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24343
24344 2010-10-08  Bruno Haible  <bruno@clisp.org>
24345
24346         nanosleep: Make replacement POSIX compliant.
24347         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24348         is out of range.
24349         Reported by Jim Meyering.
24350
24351 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24352
24353         bootstrap: add hook for altering gnulib.mk, for Bison
24354         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24355         the Bison bootstrapping process can rewrite file names and variables
24356         in this file before later parts of 'bootstrap' use the file.
24357         Bison wants to include lib/gnulib.mk from the top-level makefile,
24358         so it needs the file names in this file to be relative to the top
24359         level, not relative to lib; plus it needs variable names to be
24360         rewritten.
24361         (slurp): Use the new function.
24362
24363         bootstrap: reformat for readability
24364         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24365
24366 2010-10-08  Eric Blake  <eblake@redhat.com>
24367
24368         docs: update cygwin progress
24369         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24370         1.7.7.
24371         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24372         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24373         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24374         * doc/posix-functions/carg.texi (carg): Likewise.
24375         * doc/posix-functions/cargf.texi (cargf): Likewise.
24376         * doc/posix-functions/casin.texi (casin): Likewise.
24377         * doc/posix-functions/casinf.texi (casinf): Likewise.
24378         * doc/posix-functions/casinh.texi (casinh): Likewise.
24379         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24380         * doc/posix-functions/catan.texi (catan): Likewise.
24381         * doc/posix-functions/catanf.texi (catanf): Likewise.
24382         * doc/posix-functions/catanh.texi (catanh): Likewise.
24383         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24384         * doc/posix-functions/ccos.texi (ccos): Likewise.
24385         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24386         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24387         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24388         * doc/posix-functions/cexp.texi (cexp): Likewise.
24389         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24390         * doc/posix-functions/cimag.texi (cimag): Likewise.
24391         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24392         * doc/posix-functions/clog.texi (clog): Likewise.
24393         * doc/posix-functions/clogf.texi (clogf): Likewise.
24394         * doc/posix-functions/conj.texi (conj): Likewise.
24395         * doc/posix-functions/conjf.texi (conjf): Likewise.
24396         * doc/posix-functions/cpow.texi (cpow): Likewise.
24397         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24398         * doc/posix-functions/cproj.texi (cproj): Likewise.
24399         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24400         * doc/posix-functions/creal.texi (creal): Likewise.
24401         * doc/posix-functions/crealf.texi (crealf): Likewise.
24402         * doc/posix-functions/csin.texi (csin): Likewise.
24403         * doc/posix-functions/csinf.texi (csinf): Likewise.
24404         * doc/posix-functions/csinh.texi (csinh): Likewise.
24405         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24406         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24407         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24408         * doc/posix-functions/ctan.texi (ctan): Likewise.
24409         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24410         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24411         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24412         * doc/posix-headers/complex.texi (complex.h): Likewise.
24413
24414 2010-10-07  Jim Meyering  <meyering@redhat.com>
24415
24416         parse-datetime: avoid compilation failure on OpenBSD 4.7
24417         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24418         This works around a compilation failure on OpenBSD 4.7:
24419         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24420
24421 2010-10-07  Eric Blake  <eblake@redhat.com>
24422
24423         docs: update cygwin progress
24424         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24425         1.7.6.
24426         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24427         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24428         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24429         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24430         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24431         Likewise.
24432         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24433         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24434         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24435         Likewise.
24436         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24437         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24438         Likewise.
24439         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24440         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24441         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24442         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24443         Likewise.
24444         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24445         Likewise.
24446         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24447
24448         docs: update parse-datetime history
24449         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24450         documentation of this function's history and alternatives.
24451
24452         cygwin: use more robust version check
24453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24454         exclude an eventual cygwin 1.9.1.
24455         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24457         (gl_FUNC_STRCASESTR): Likewise.
24458         Reported by Bruno Haible.
24459
24460 2010-10-06  Bruno Haible  <bruno@clisp.org>
24461
24462         string, sys_select: Avoid #including large headers unless necessary.
24463         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24464         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24465         OSF/1, BeOS, Haiku.
24466         Reported by Jim Meyering.
24467
24468 2010-10-05  Eric Blake  <eblake@redhat.com>
24469
24470         memmem, strstr, strcasestr: fix bug with long periodic needle
24471         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24472         periodic needle having false positive.
24473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24474         and cygwin 1.7.7.
24475         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24477         (gl_FUNC_STRCASESTR): Likewise.
24478         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24479         * tests/test-memmem.c (main): Expose the bug.
24480         * tests/test-strcasestr.c (main): Likewise.
24481         * tests/test-strstr.c (main): Likewise.
24482         * tests/test-c-strcasestr.c (main): Likewise.
24483         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24484         * doc/posix-functions/strstr.texi (strstr): Likewise.
24485         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24486         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24487
24488 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24489
24490         parse-datetime: do some more renaming
24491         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24492         parse_datetime, not get_date.  Mention the renaming.
24493         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24494         in comments.
24495         * m4/bison.m4: Likewise.
24496
24497 2010-10-05  Eric Blake  <eblake@redhat.com>
24498
24499         parse-datetime: better name than get_date
24500         * NEWS: Reword the deprecation notice.
24501         * modules/get_date: Rename to modules/parse-datetime.
24502         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24503         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24504         * lib/get_date.y: Rename to lib/parse-datetime.y.
24505         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24506         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24507         * doc/getdate.texi: Provide fallback wrapper.
24508         * lib/getdate.h: Move guts, and wrap...
24509         * lib/parse-datetime.h: ...new file.
24510         * lib/parse-datetime.y (get_date): Rename...
24511         (parse_datetime): ...to this.
24512         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24513         (gl_PARSE_DATETIME): ...to this.
24514         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24515         documentation.
24516         * modules/getdate (Files): Provide fallback docs and header.
24517         (Notice, Depends-on): Update references.
24518         * tests/test-parse-datetime.c: Likewise.
24519         * DEPENDENCIES: Likewise.
24520         * MODULES.html.sh (Date and time <time.h>): Likewise.
24521         * doc/parse-datetime.texi (Date input formats)
24522         (Authors of parse_datetime): Likewise.
24523         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24524         (Include): Likewise.
24525         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24526         * gnulib-tool: Likewise.
24527         * m4/bison.m4 (gl_BISON): Likewise.
24528         Suggested by Bruno Haible.
24529
24530 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24531
24532         more ports to Solaris tr, which needs [] around ranges
24533         * gnulib-tool: Solaris tr needs [] around ranges.
24534         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24535         * tests/test-pipe-filter-gi1.c (main): Likewise.
24536         * tests/test-pipe-filter-ii1.c (main): Likewise.
24537
24538 2010-10-05  Eric Blake  <eblake@redhat.com>
24539
24540         bootstrap: fix Solaris regression
24541         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24542         around ranges.
24543         Reported by Pádraig Brady.
24544
24545         bootstrap: work with pkg-config
24546         * build-aux/bootstrap (check_versions): Also transliterate - in
24547         prerequisite name.
24548         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24549         prerequisites that were already found, to avoid confusion.
24550         Reported by Justin Clift.
24551
24552         faccessat: remove unused wrappers
24553         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24554         presence of these wrappers dragged in -lgen on Solaris.
24555         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24556
24557 2010-10-05  Jim Meyering  <meyering@redhat.com>
24558
24559         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24560         * Makefile (sc_pragma_columns): New syntax-check rule.
24561
24562 2010-10-04  Bruno Haible  <bruno@clisp.org>
24563
24564         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24565         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24566         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24567         Reported by Bruce Korb and Eric Blake.
24568
24569 2010-10-04  Bruno Haible  <bruno@clisp.org>
24570
24571         threadlib: Make option --with-libpth-prefix work.
24572         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24573         use $LIBPTH, not just -lpth.
24574
24575 2010-10-04  Bruno Haible  <bruno@clisp.org>
24576
24577         Avoid line length limitation from HP NonStop system header files.
24578         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24579         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24580         * lib/ctype.in.h: Likewise.
24581         * lib/dirent.in.h: Likewise.
24582         * lib/errno.in.h: Likewise.
24583         * lib/fcntl.in.h: Likewise.
24584         * lib/float.in.h: Likewise.
24585         * lib/getopt.in.h: Likewise.
24586         * lib/iconv.in.h: Likewise.
24587         * lib/inttypes.in.h: Likewise.
24588         * lib/langinfo.in.h: Likewise.
24589         * lib/locale.in.h: Likewise.
24590         * lib/math.in.h: Likewise.
24591         * lib/netdb.in.h: Likewise.
24592         * lib/netinet_in.in.h: Likewise.
24593         * lib/poll.in.h: Likewise.
24594         * lib/pthread.in.h: Likewise.
24595         * lib/pty.in.h: Likewise.
24596         * lib/sched.in.h: Likewise.
24597         * lib/se-selinux.in.h: Likewise.
24598         * lib/search.in.h: Likewise.
24599         * lib/signal.in.h: Likewise.
24600         * lib/spawn.in.h: Likewise.
24601         * lib/stdarg.in.h: Likewise.
24602         * lib/stddef.in.h: Likewise.
24603         * lib/stdint.in.h: Likewise.
24604         * lib/stdio.in.h: Likewise.
24605         * lib/stdlib.in.h: Likewise.
24606         * lib/string.in.h: Likewise.
24607         * lib/strings.in.h: Likewise.
24608         * lib/sys_file.in.h: Likewise.
24609         * lib/sys_ioctl.in.h: Likewise.
24610         * lib/sys_select.in.h: Likewise.
24611         * lib/sys_socket.in.h: Likewise.
24612         * lib/sys_stat.in.h: Likewise.
24613         * lib/sys_time.in.h: Likewise.
24614         * lib/sys_times.in.h: Likewise.
24615         * lib/sys_utsname.in.h: Likewise.
24616         * lib/sys_wait.in.h: Likewise.
24617         * lib/sysexits.in.h: Likewise.
24618         * lib/termios.in.h: Likewise.
24619         * lib/time.in.h: Likewise.
24620         * lib/unistd.in.h: Likewise.
24621         * lib/wchar.in.h: Likewise.
24622         * lib/wctype.in.h: Likewise.
24623         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24624         * modules/ctype (Makefile.am): Likewise.
24625         * modules/dirent (Makefile.am): Likewise.
24626         * modules/errno (Makefile.am): Likewise.
24627         * modules/fcntl-h (Makefile.am): Likewise.
24628         * modules/float (Makefile.am): Likewise.
24629         * modules/getopt-posix (Makefile.am): Likewise.
24630         * modules/iconv-h (Makefile.am): Likewise.
24631         * modules/inttypes (Makefile.am): Likewise.
24632         * modules/langinfo (Makefile.am): Likewise.
24633         * modules/locale (Makefile.am): Likewise.
24634         * modules/math (Makefile.am): Likewise.
24635         * modules/netdb (Makefile.am): Likewise.
24636         * modules/netinet_in (Makefile.am): Likewise.
24637         * modules/poll-h (Makefile.am): Likewise.
24638         * modules/pthread (Makefile.am): Likewise.
24639         * modules/pty (Makefile.am): Likewise.
24640         * modules/sched (Makefile.am): Likewise.
24641         * modules/search (Makefile.am): Likewise.
24642         * modules/selinux-h (Makefile.am): Likewise.
24643         * modules/signal (Makefile.am): Likewise.
24644         * modules/spawn (Makefile.am): Likewise.
24645         * modules/stdarg (Makefile.am): Likewise.
24646         * modules/stddef (Makefile.am): Likewise.
24647         * modules/stdint (Makefile.am): Likewise.
24648         * modules/stdio (Makefile.am): Likewise.
24649         * modules/stdlib (Makefile.am): Likewise.
24650         * modules/string (Makefile.am): Likewise.
24651         * modules/strings (Makefile.am): Likewise.
24652         * modules/sys_file (Makefile.am): Likewise.
24653         * modules/sys_ioctl (Makefile.am): Likewise.
24654         * modules/sys_select (Makefile.am): Likewise.
24655         * modules/sys_socket (Makefile.am): Likewise.
24656         * modules/sys_stat (Makefile.am): Likewise.
24657         * modules/sys_time (Makefile.am): Likewise.
24658         * modules/sys_times (Makefile.am): Likewise.
24659         * modules/sys_utsname (Makefile.am): Likewise.
24660         * modules/sys_wait (Makefile.am): Likewise.
24661         * modules/sysexits (Makefile.am): Likewise.
24662         * modules/termios (Makefile.am): Likewise.
24663         * modules/time (Makefile.am): Likewise.
24664         * modules/unistd (Makefile.am): Likewise.
24665         * modules/wchar (Makefile.am): Likewise.
24666         * modules/wctype (Makefile.am): Likewise.
24667
24668 2010-10-04  Bruno Haible  <bruno@clisp.org>
24669
24670         read-file tests: Avoid a test failure on NonStop Kernel.
24671         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24672         a regular file.
24673         Reported by Joachim Schmitz <schmitz@hp.com>.
24674
24675 2010-10-03  Bruno Haible  <bruno@clisp.org>
24676
24677         gnulib-tool: Fixes for --create-testdir with --libtool.
24678         * gnulib-tool (func_get_automake_snippet): Don't augment
24679         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24680         an executable.
24681         (func_create_testdir): Handle module 'alloca' like func_import.
24682         Reported by Bruce Korb <bruce.korb@gmail.com>.
24683
24684 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24685
24686         Avoid some lines longer than 80 characters.
24687         * lib/stdint.in.h: Break long comment lines.
24688         * lib/math.in.h: Likewise.
24689         (_GL_NUM_UINT_WORDS): New macro, for readability.
24690         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24691         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24692         * lib/stdlib.in.h: Likewise.
24693         * lib/spawn.in.h: Likewise.
24694         * lib/sys_socket.in.h: Update an URL.
24695         * lib/sys_stat.in.h: Break long line.
24696
24697 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24698
24699         Improve pmccabe2html.
24700         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24701         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24702         when the sources change. Remove the line in the HTML about "Used
24703         ranges" (which implied that there might be other unused ranges),
24704         rename "Resume" to "Summary" (easier to understand for more users).
24705         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24706         styles, and some unnecessary blank lines.
24707
24708 2010-10-03  Bruno Haible  <bruno@clisp.org>
24709             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24710
24711         acl: Add support for ACLs on NonStop Kernel.
24712         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24713         Check whether the function aclsort() exists.
24714         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24715         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24716         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24717         (acl_nontrivial [HAVE_ACLSORT]: New function.
24718         (file_has_acl): Implement for NonStop Kernel.
24719         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24720         (qset_acl): Implement for NonStop Kernel.
24721         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24722         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24723         (main): Implement for NonStop Kernel.
24724         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24725         Kernel. Handle this flavor.
24726         * tests/test-set-mode-acl.sh: Likewise.
24727         * tests/test-copy-acl.sh: Likewise.
24728         * tests/test-copy-file.sh: Likewise.
24729
24730 2010-10-03  Bruno Haible  <bruno@clisp.org>
24731
24732         Info about ACLs on NonStop Kernel.
24733         * doc/acl-resources.txt: Add info about NonStop Kernel.
24734         References by Joachim Schmitz <schmitz@hp.com>.
24735
24736 2010-10-02  Bruno Haible  <bruno@clisp.org>
24737
24738         Define missing EDQUOT on NonStop Kernel.
24739         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24740         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24742         missing.
24743         * doc/posix-headers/errno.texi: Mention the NSK bug.
24744         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24745         Reported by Joachim Schmitz <schmitz@hp.com>.
24746
24747 2010-10-02  Bruno Haible  <bruno@clisp.org>
24748
24749         Update doc for POSIX:2008.
24750         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24751         Update URL of POSIX specification.
24752
24753 2010-10-02  Bruno Haible  <bruno@clisp.org>
24754
24755         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24756         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24757         from gnulib, not from Automake.
24758
24759 2010-10-02  Bruno Haible  <bruno@clisp.org>
24760
24761         New module 'system-posix'.
24762         * modules/system-posix: New file.
24763         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24764         module is present.
24765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24766         GNULIB_SYSTEM_POSIX.
24767         * modules/stdlib (Depends-on): Remove sys_wait.
24768         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24769         * doc/posix-functions/system.texi: Mention the new module.
24770         * doc/posix-headers/stdlib.texi: Likewise.
24771         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24772         define test_sys_wait_macros to a no-op.
24773         Reported by Sam Steingold <sds@gnu.org>.
24774
24775 2010-09-30  Bruno Haible  <bruno@clisp.org>
24776
24777         More renaming from 'getdate' to 'get_date'.
24778         * doc/get_date.texi: Renamed from doc/getdate.texi.
24779         * modules/get_date (Files): Update.
24780         * MODULES.html.sh (Date and time <time.h>): Update.
24781         * DEPENDENCIES: Update.
24782         * gnulib-tool: Update comment.
24783         * m4/bison.m4 (gl_BISON): Likewise.
24784         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24785
24786 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24787
24788         bootstrap: support ACLOCAL_FLAGS during aclocal
24789         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24790         can add additional -I dir for third-party .m4 files.
24791
24792 2010-09-30  Eric Blake  <eblake@redhat.com>
24793
24794         bootstrap: use glibtoolize on MacOS
24795         * build-aux/bootstrap (check_versions): Convert libtool into
24796         libtoolize.
24797         (tool search): Move libtool check earlier, and look for
24798         glibtoolize for MacOS.
24799         (gnulib_tool_options): Auto-add --libtool when appropriate.
24800         Reported by Justin Clift.
24801
24802         poll: fix typo that broke test on MacOS
24803         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24804         Reported by Justin Clift.
24805
24806         getdate: rename to get_date
24807         Note: getdate.h is not renamed, to minimize client impact.
24808         * modules/getdate: Mark obsolete.  Move old contents...
24809         * modules/get_date: ...to new module name.
24810         * modules/getdate-tests: Move...
24811         * modules/get_date-tests: ...here.
24812         * m4/getdate.m4: Move...
24813         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24814         * lib/getdate.y: Move...
24815         * lib/get_date.y: ...here.
24816         * tests/test-getdate.c: Move...
24817         * tests/test-get_date.c: ...here.
24818         * doc/posix-functions/getdate.texi (getdate): Update name.
24819         * NEWS: Mention the change.
24820
24821 2010-09-29  Bruno Haible  <bruno@clisp.org>
24822
24823         Separate the module 'waitpid' from the module 'sys_wait'.
24824         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24825         present.
24826         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24827         gl_MODULE_INDICATOR_FOR_TESTS.
24828         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24829         * modules/sys_wait (Depends-on): Remove waitpid.
24830         (Makefile.am): Substitute GNULIB_WAITPID.
24831         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24832         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24833         signature only if the 'waitpid' module is present.
24834         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24835         * NEWS: Mention the change.
24836         * modules/grantpt (Depends-on): Add waitpid.
24837         * modules/wait-process (Depends-on): Likewise.
24838
24839 2010-09-29  Bruno Haible  <bruno@clisp.org>
24840
24841         More tests for module 'sys_wait'.
24842         * modules/sys_wait-c++-tests: New file.
24843         * tests/test-sys_wait-c++.cc: New file.
24844         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24845         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24846
24847 2010-09-29  Bruno Haible  <bruno@clisp.org>
24848
24849         New module 'waitpid'.
24850         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24851         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24852         Don't include <process.h>.
24853         (waitpid): Declare only, using modern idiom.
24854         * m4/waitpid.m4: New file.
24855         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24856         * modules/waitpid: New file.
24857         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24858         (Makefile.am): Update.
24859         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24860
24861 2010-09-28  Bruno Haible  <bruno@clisp.org>
24862
24863         poll: Assume ANSI C.
24864         * lib/poll.c (poll): Use an ANSI C declaration.
24865
24866 2010-09-28  Bruno Haible  <bruno@clisp.org>
24867
24868         poll-h: Create poll.h on all platforms.
24869         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24870         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24871         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24872         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24873         (gl_REPLACE_POLL_H): Don't set POLL_H.
24874         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24875         * modules/poll-h (Depends-on): Add include_next.
24876         (Makefile.am): Create poll.h unconditionally. Substitute also
24877         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24878
24879 2010-09-28  Bruno Haible  <bruno@clisp.org>
24880
24881         Tests for module 'poll-h'.
24882         * modules/poll-h-c++-tests: New file.
24883         * tests/test-poll-h-c++.cc: New file.
24884
24885         Tests for module 'poll-h'.
24886         * modules/poll-h-tests: New file.
24887         * tests/test-poll-h.c: New file.
24888
24889 2010-09-28  Bruno Haible  <bruno@clisp.org>
24890
24891         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24892         * modules/poll-h (Depends-on): Add 'extensions'.
24893
24894 2010-09-28  Bruno Haible  <bruno@clisp.org>
24895
24896         New module 'poll-h'.
24897         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24898         (poll): Use modern idiom.
24899         * modules/poll-h: New file.
24900         * modules/poll (Files): Remove lib/poll.in.h.
24901         (Depends-on): Add poll-h.
24902         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24903         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24904         * m4/poll_h.m4: New file.
24905         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24906         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24907         and invoke gl_REPLACE_POLL_H.
24908         * lib/poll.c: Use common idiom.
24909         * tests/test-poll.c: Likewise.
24910         * doc/posix-headers/poll.texi: Mention the poll-h module.
24911         Suggested by Eric Blake.
24912
24913 2010-09-26  Bruno Haible  <bruno@clisp.org>
24914
24915         sys_wait: Implement WSTOPSIG.
24916         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24917         Reported by Simon Josefsson.
24918
24919 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24920
24921         stdlib, sys_wait: Avoid compilation error on mingw.
24922         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24923
24924 2010-09-26  Bruno Haible  <bruno@clisp.org>
24925
24926         stdlib tests: Avoid code duplication.
24927         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24928         * modules/sys_wait-tests (Files): Likewise.
24929         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24930         * tests/test-stdlib.c: Include test-sys_wait.h.
24931         (main): Invoke test_sys_wait_macros.
24932         * tests/test-sys_wait.c: Include test-sys_wait.h.
24933         (main): Invoke test_sys_wait_macros.
24934
24935 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24936
24937         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24938         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24939         sure Windows sockets are working before calling getaddrinfo.
24940         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24941         * doc/gnulib.texi (Windows sockets): Fix typo.
24942
24943 2010-09-25  Bruno Haible  <bruno@clisp.org>
24944
24945         Tests for module 'regex-quote'.
24946         * modules/regex-quote-tests: New file.
24947         * tests/test-regex-quote.c: New file.
24948
24949         New module 'regex-quote'.
24950         * lib/regex-quote.h: New file.
24951         * lib/regex-quote.c: New file.
24952         * modules/regex-quote: New file.
24953         Suggested by Reuben Thomas <rrt@sc3d.org>.
24954
24955 2010-09-24  Bruno Haible  <bruno@clisp.org>
24956
24957         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24958         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24959
24960 2010-09-23  Bruno Haible  <bruno@clisp.org>
24961
24962         setenv: Relax license.
24963         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24964         Blake.
24965         Requested by Eric Blake.
24966
24967 2010-09-22  Bruno Haible  <bruno@clisp.org>
24968
24969         termios: Relax license.
24970         * modules/termios (License): Change to LGPLv2+.
24971         Requested by Eric Blake.
24972
24973 2010-09-22  Bruno Haible  <bruno@clisp.org>
24974
24975         threadlib: Allow the package to change the default to 'no'.
24976         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24977         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24978         Reported by Paul Eggert.
24979
24980 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24981             Bruno Haible  <bruno@clisp.org>
24982
24983         Fix endless loop in mbmemcasecoll.
24984         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24985         byte.
24986         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24987
24988 2010-09-22  Bruno Haible  <bruno@clisp.org>
24989
24990         Tests for module 'memcoll'.
24991         * modules/memcoll-tests: New file.
24992         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24993
24994         memcoll, xmemcoll: Clarify size vs. length.
24995         * modules/memcoll.c (memcoll0): Clarify specification.
24996         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24997         passed to collate_error.
24998
24999 2010-09-22  Bruno Haible  <bruno@clisp.org>
25000
25001         Tests for module 'memcasecmp'.
25002         * modules/memcasecmp-tests: New file.
25003         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25004
25005 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25006
25007         * lib/pthread.in.h: Add split double-inclusion guard, and include
25008         system <pthread.h> if there is one.  Use @@-style as in other
25009         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25010         pthread.h doesn't.
25011         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25012         (pthread_mutexattr_settype, pthread_mutex_trylock):
25013         New static inline functions, if there's no system <pthread.h>.
25014         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25015         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25016         Approximate with mutexes if the system lacks spinlocks, as in
25017         MacOS.
25018         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25019         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25020         @@-style.  Check for spinlocks separately.
25021         (gl_PTHREAD_DEFAULTS): New macro.
25022         * modules/pthread: Redo to use a more typical style for in.h files.
25023
25024 2010-09-21  Eric Blake  <eblake@redhat.com>
25025
25026         net_if: enhance tests
25027         * tests/test-net_if.c (main): Move signature checks earlier.
25028         Print failures to stderr.
25029         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25030         Document the bug that we do not yet fix.
25031
25032 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25033
25034         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25035         about gnulib, not GSS.
25036
25037 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25038
25039         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25040         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25041         for Emacs.
25042         * build-aux/pmccabe2html: Make Makefile.am example code more
25043         cut-and-paste friendly.
25044
25045 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25046
25047         * tests/test-net_if.c: New file.
25048         * modules/net_if-tests: New file.
25049
25050 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25051
25052         pthread: add pthread_spin_destroy
25053         * lib/pthread.in.h (pthread_spin_destroy): New function.
25054
25055 2010-09-19  Bruno Haible  <bruno@clisp.org>
25056
25057         gnulib-tool: Fix --help output.
25058         * gnulib-tool (func_usage): Fix help message.
25059         Reported by Reuben Thomas <rrt@sc3d.org>.
25060
25061 2010-09-18  Jim Meyering  <meyering@redhat.com>
25062
25063         maint.mk: avoid unexpanded \n in two diagnostics
25064         * top/maint.mk (sc_prohibit_always_true_header_tests):
25065         Don't use a literal \n in a halt=... assignment.  It would not be
25066         expanded, and the two \n bytes would appear in the diagnostic output
25067         rather than the desired newline.  Use halt=$$(printf ... instead.
25068         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25069
25070 2010-09-18  Bruno Haible  <bruno@clisp.org>
25071
25072         netinet_in: Doc tweak.
25073         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25074         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25075
25076 2010-09-18  Jim Meyering  <meyering@redhat.com>
25077
25078         init.sh: correct an outdated comment
25079         * tests/init.sh (create_exe_shims_):  s/function/alias/
25080
25081         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25082         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25083         a file named "*.exe" is removed between the glob expansion and the
25084         processing of that oddly named file.
25085
25086 2010-09-17  Eric Blake  <eblake@redhat.com>
25087
25088         mirbsd: add some more support
25089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25090         in BSD family.
25091         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25092         devices as OpenBSD.
25093         * m4/host-os.m4 (mirbsd): Add MirBSD.
25094
25095         tests: fix unportable assumption on sys/wait.h
25096         * tests/test-sys_wait.c (main): Relax test.
25097         * tests/test-stdlib.c (main): Likewise.
25098
25099         init.sh: accomodate directory with no .exes
25100         * tests/init.sh: Accomodate directory containing only scripts.
25101
25102         tests: avoid compiler warning
25103         * tests/test-stdlib.c (main): Use the variable.
25104
25105         fdutimens, fdutimensat: update signature, again
25106         * lib/utimens.h (gl_futimens): Delete, and move signature...
25107         (fdutimens): ...here.
25108         (fdutimensat): Rearrange signature.
25109         (lutimensat): Rename variable for clarity.
25110         * lib/fdutimensat.c (fdutimensat): Update signature.
25111         * lib/utimens.c (fdutimens): Likewise.
25112         (gl_futimens): Delete.
25113         (utimens, lutimens): Update callers.
25114         * lib/futimens.c (futimens): Likewise.
25115         * tests/test-fdutimensat.c: Likewise.
25116         * tests/test-utimens.c: Likewise.
25117         * tests/test-futimens.h: Update comment.
25118         * NEWS: Mention this.
25119         Suggested by Paul Eggert.
25120
25121 2010-09-17  Bruno Haible  <bruno@clisp.org>
25122
25123         Take over the maintenance of some older macros from Autoconf.
25124         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25125         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25126         GNU Autoconf.
25127         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25128         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25129
25130 2010-09-17  Eric Blake  <eblake@redhat.com>
25131
25132         fdutimensat: drop atflag validation
25133         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25134         with valid fd, to close a race scenario where futimens is
25135         unsupported and FILE was replaced by a symlink.
25136         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25137         accordingly.
25138         Suggested by Paul Eggert.
25139
25140 2010-09-16  Bruno Haible  <bruno@clisp.org>
25141
25142         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25143         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25144
25145 2010-09-16  Bruno Haible  <bruno@clisp.org>
25146
25147         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25148         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25149         login_tty exists.
25150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25151
25152 2010-09-16  Bruno Haible  <bruno@clisp.org>
25153
25154         login_tty: Make the replacement code work on BSD systems.
25155         * lib/login_tty.c: Include <sys/ioctl.h>.
25156         (login_tty): Use ioctl TIOCSCTTY when available.
25157         * modules/login_tty (Depends-on): Add sys_ioctl.
25158         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25159
25160 2010-09-16  Bruno Haible  <bruno@clisp.org>
25161
25162         login_tty: Stricter unit test.
25163         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25164         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25165         and tcgetsid() after login_tty.
25166         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25167
25168 2010-09-16  Bruno Haible  <bruno@clisp.org>
25169
25170         New module 'tcgetsid'.
25171         * lib/tcgetsid.c: New file.
25172         * m4/tcgetsid.m4: New file.
25173         * modules/tcgetsid: New file.
25174         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25175         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25176         GNULIB_TCGETSID, HAVE_TCGETSID.
25177         * lib/termios.in.h: Include <sys/types.h>.
25178         (tcgetsid): New declaration.
25179         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25180         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25181         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25182         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25183
25184 2010-09-16  Bruno Haible  <bruno@clisp.org>
25185
25186         Tests for module 'termios'.
25187         * modules/termios-c++-tests: New file.
25188         * modules/termios-tests: New file.
25189         * tests/test-termios-c++.cc: New file.
25190         * tests/test-termios.c: New file.
25191
25192         New module 'termios'.
25193         * modules/termios: New file.
25194         * lib/termios.in.h: New file.
25195         * m4/termios_h.m4: New file.
25196         * doc/posix-headers/termios.texi: Mention the new module.
25197
25198 2010-09-16  Eric Blake  <eblake@redhat.com>
25199
25200         fdutimensat: add an atflag parameter
25201         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25202         * lib/utimens.h (fdutimensat): Update prototype.
25203         * tests/test-fdutimensat.c: Adjust test to match.
25204         * NEWS: Document the change.
25205         Suggested by Paul Eggert.
25206
25207 2010-09-16  Bruno Haible  <bruno@clisp.org>
25208
25209         Fix typos in comments.
25210         * lib/striconveh.h: Fix typo in comment.
25211         * lib/login_tty.c (login_tty): Likewise.
25212
25213 2010-09-15  Bruno Haible  <bruno@clisp.org>
25214
25215         stdlib: clarify MirBSD WEXITSTATUS bug
25216         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25217         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25218
25219 2010-09-15  Eric Blake  <eblake@redhat.com>
25220
25221         stdlib: work around MirBSD WEXITSTATUS bug
25222         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25223         * modules/stdlib (Depends-on): Add sys_wait.
25224         * tests/test-sys_wait.c (main): Enhance test.
25225         * tests/test-stdlib.c (main): Likewise.
25226         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25227
25228         docs: mention MacOS issue with WEXITSTATUS(constant)
25229         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25230         issue.
25231         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25232
25233         strnlen: add tests
25234         * modules/strnlen-tests: New file.
25235         * tests/test-strnlen.c: Likewise.
25236
25237 2010-09-14  Bruno Haible  <bruno@clisp.org>
25238
25239         unistr/base: Avoid link errors when module 'libunistring' is also used.
25240         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25241         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25242         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25243         Declare also when HAVE_LIBUNISTRING is set.
25244         Reported by Pádraig Brady <P@draigbrady.com>.
25245
25246 2010-09-14  Eric Blake  <eblake@redhat.com>
25247
25248         test-rawmemchr: make more robust
25249         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25250         (Depends-on, configure.ac): Add needed prerequisites to use it.
25251         * modules/memchr-tests (Files, Depends-on, configure.ac):
25252         Likewise, to avoid implicit reliance on memchr module prereqs.
25253         * tests/test-memchr.c (main): Ensure proper masking.
25254         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25255         reads.
25256
25257         memchr: detect glibc Alpha bug
25258         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25260         Alpha.
25261         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25262         * tests/test-memchr.c (main): Enhance test.
25263         Reported by Nelson H. F. Beebe.
25264
25265 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25266
25267         fts, getcwd, glob: audit for dirfd returning -1
25268         * lib/fts.c (opendir): Remove #define; no longer used.
25269         (opendirat): New arg PDIR_FD.  All callers changed.
25270         (fts_build, _opendir2): Use new opendirat to avoid the need for
25271         dirfd, or for checking whether dirfd returns a negative value.
25272         Don't use opendir; always use openat followed by fdopendir.
25273         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25274         it.
25275         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25276         returns -1 here.
25277         * modules/fts (Depends-on): Remove dirfd.
25278         * modules/getcwd (Depends-on): Likewise.
25279
25280 2010-09-13  Eric Blake  <eblake@redhat.com>
25281
25282         float: fix broken MirBSD header
25283         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25284         * doc/posix-headers/float.texi (float.h): Document it.
25285
25286 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25287
25288         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25289         * lib/fts.c (opendirat): New arg extra_flags.
25290         (__opendir2): Use it to avoid following symlinks when opening
25291         a directory, if symlinks are not supposed to be followed.  See
25292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25293
25294         fdopendir: preserve argument fd before returning
25295         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25296         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25297         (fdopendir): Use them, arranging for FD to be open to the same
25298         directory that it was when it started.  (It might be temporarily
25299         closed while fdopendir is running, so this not thread- or
25300         signal-safe.)  Be careful to do the right thing even when file
25301         descriptors are scarce and dup fails with errno == EMFILE.  See
25302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25303
25304 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25305
25306         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25307         * NEWS: Document change.
25308         * m4/regex.m4: Disable test for regoff_t size.
25309
25310 2010-09-13  Jim Meyering  <meyering@redhat.com>
25311
25312         fts: don't operate on an invalid file descriptor after failed dup
25313         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25314         negative file descriptor.
25315
25316 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25317
25318         savedir: add streamsavedir, deprecate fdsavedir
25319         * NEWS: Mention deprecation of fdsavedir.
25320         * lib/savedir.c (streamsavedir): New extern function, whose name
25321         ends in "savedir" to be consistent with the others.  This differs
25322         from savedirstream in that it doesn't close its argument.  The
25323         next version of GNU tar will use this instead of fdsavedir, to
25324         avoid some race conditions and conserve file descriptors.
25325         (savedirstream): Reimplement as a wrapper around streamsavedir.
25326         (fdsavedir): Add a comment deprecating this function.  As far as
25327         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25328         * lib/savedir.h (streamsavedir): New decl.
25329         (fdsavedir): Add a comment deprecating this.
25330
25331 2010-09-10  Bruno Haible  <bruno@clisp.org>
25332
25333         langinfo: Fix last commit.
25334         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25335         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25337
25338 2010-09-10  Bruno Haible  <bruno@clisp.org>
25339
25340         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25341         * lib/progreloc.c (O_EXEC): Define fallback.
25342
25343 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25344
25345         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25346         * NEWS: Document recent changes to fcntl-h.
25347         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25348         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25349         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25350         Similarly for O_SEARCH; this last was already true, but not documented.
25351         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25352         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25353         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25354         Likewise.
25355         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25356         is zero, not whether it is defined.
25357         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25358         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25359         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25360
25361 2010-09-10  Bruno Haible  <bruno@clisp.org>
25362
25363         langinfo, nl_langinfo: Fix for IRIX 5.3.
25364         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25365         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25366         HAVE_LANGINFO_YESEXPR.
25367         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25368         HAVE_LANGINFO_YESEXPR.
25369         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25370         HAVE_LANGINFO_T_FMT_AMPM is 0.
25371         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25372         HAVE_LANGINFO_YESEXPR is 0.
25373         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25374         NOEXPR.
25375         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25376         * doc/posix-functions/nl_langinfo.texi: Likewise.
25377         Reported by Eric Blake.
25378
25379 2010-09-10  Bruno Haible  <bruno@clisp.org>
25380
25381         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25382         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25383         on FreeBSD 8.0 and OpenBSD 4.6.
25384         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25385         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25386         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25387         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25388         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25389         ac_includes_default.
25390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25391
25392 2010-09-09  Eric Blake  <eblake@redhat.com>
25393
25394         strsignal: work around NetBSD bug
25395         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25396         * lib/string.in.h (includes): Likewise.
25397         * doc/posix-functions/strsignal.texi (strsignal): Document the
25398         bug.
25399         Reported by Nelson H. F. Beebe.
25400
25401         gnulib-tool: work with NetBSD /bin/sh
25402         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25403         (func_get_description, func_get_comment, func_get_status)
25404         (func_get_notice, func_get_applicability, func_get_filelist)
25405         (func_get_dependencies, func_get_autoconf_early_snippet)
25406         (func_get_autoconf_snippet, func_get_automake_snippet)
25407         (func_get_include_directive, func_get_link_directive)
25408         (func_get_license, func_get_maintainer, func_import): Avoid
25409         shell syntax errors from parsing syntax extensions.
25410
25411 2010-09-09  Bruno Haible  <bruno@clisp.org>
25412
25413         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25414         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25415         a reliable way to determine whether the 'alias' command works.
25416
25417 2010-09-08  Jim Meyering  <meyering@redhat.com>
25418
25419         init.sh: penalize a set-x-impaired shell; don't disqualify it
25420         * tests/init.sh: Too many shells corrupt application stderr when
25421         you set -x, so we can't afford to disqualify them, since at least
25422         on Irix-6.5, that would disqualify all bourne shells.
25423         Instead, use a two-pass approach.
25424         On the first pass, try to find a shell that meets the stricter
25425         condition that set -x does not corrupt stderr.
25426         If no shell meets the stricter condition, retest each candidate
25427         shell, but without that extra condition.  Finally, when
25428         VERBOSE=yes is requested and set -x might cause trouble, simply
25429         issue a warning and refrain from enabling debug output.
25430
25431 2010-09-08  Eric Blake  <eblake@redhat.com>
25432
25433         unsetenv: fix OpenBSD bug
25434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25435         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25436         documentation.
25437         Reported by Jim Meyering.
25438
25439         strtod: work around IRIX 6.5 bug
25440         * lib/strtod.c (strtod): Reparse number on shorter string if
25441         exponent parse was invalid.
25442         * tests/test-strtod.c (main): Add check for "0x1p 2".
25443         Reported by Tom G. Christensen.
25444
25445         getopt: optimize previous patch
25446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25447         empty variable.  Speed up awk script.
25448         Reported by Paolo Bonzini.
25449
25450 2010-09-08  Jim Meyering  <meyering@redhat.com>
25451
25452         test.sh: disqualify shells for which set -x corrupts stderr
25453         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25454         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25455         appear in stderr output.  For example, this command:
25456             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25457         prints "P=1" on those two systems:
25458
25459 2010-09-08  Bruno Haible  <bruno@clisp.org>
25460
25461         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25462         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25463         commands, because some shells ignore redirections when there is an
25464         error in the command lookup.
25465         Reported by Eric Blake.
25466
25467 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25468
25469         * lib/regex.h: Fix a mention of `regex_compile' (should be
25470         `re_compile_pattern').
25471         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25472         (re_set_registers): Correct name of parameter in comment.
25473
25474         * doc/regex.texi: Add documentation for missing syntax flags.
25475         Remove commented-out documentation of defunct syntax option
25476         RE_NO_EMPTY_ALTS.
25477         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25478         Add documentation of re_set_registers.
25479         Document trick to re-use a pattern buffer by setting fastmap manually.
25480         Update documentation of struct re_pattern_buffer per public members.
25481         Uncomment documentation of equivalence class operators and
25482         collating symbol operators, since they are now implemented,
25483         Explain leftmost-longest matching in relation to alternatives.
25484         Tidy documentation of substring matching.
25485         Remove POSIX documentation, which is done better in
25486         glibc, and refer the reader there. Keep BSD API documentation, as
25487         that is not readily available elsewhere.
25488
25489 2010-09-07  Eric Blake  <eblake@redhat.com>
25490
25491         getopt: handle POSIXLY_CORRECT set but not exported
25492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25493         export state of POSIXLY_CORRECT, due to bash set -o posix.
25494         Reported by Dustin J. Mitchell.
25495
25496 2010-09-05  Bruno Haible  <bruno@clisp.org>
25497
25498         gnulib-tool: Highlight the changed options.
25499         * gnulib-tool (func_usage): Display the --import, --add-import,
25500         --remove-import explanations in bold font.
25501
25502 2010-09-06  Karl Berry  <karl@gnu.org>
25503
25504         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25505
25506 2010-09-05  Bruno Haible  <bruno@clisp.org>
25507
25508         uniwidth/width: Update comment.
25509         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25510         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25511
25512 2010-09-05  Bruno Haible  <bruno@clisp.org>
25513
25514         isinf, isnan: Relax license.
25515         * modules/isinf (License): Change from GPL to LGPL, with consent from
25516         Ben Pfaff.
25517         * modules/isnan (License): Likewise.
25518         Requested by Ludovic Courtès.
25519
25520 2010-09-04  Bruno Haible  <bruno@clisp.org>
25521
25522         gnulib-tool: Help migration from --import to --add-import or --update.
25523         * gnulib-tool: Emit a verbose error message when --import is used
25524         without any module name.
25525
25526 2010-09-04  Bruno Haible  <bruno@clisp.org>
25527
25528         Update doc about gnulib-tool.
25529         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25530         'gnulib-tool --update' in more detail.
25531         Reported by Eric Blake.
25532
25533 2010-09-04  Bruno Haible  <bruno@clisp.org>
25534
25535         gnulib-tool: Change --import. New options --add/remove-import.
25536         * gnulib-tool: New options --add-import, --remove-import.
25537         (func_usage): Document them.
25538         (have_associative): Define always.
25539         (func_import): In import mode, don't merge the specified settings with
25540         the cached settings. Implement remove-import mode.
25541         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25542         Explain when to use them versus --import.
25543         (Simple update): Use --add-import instead of --import.
25544         * NEWS: Mention the change.
25545
25546 2010-09-04  Bruno Haible  <bruno@clisp.org>
25547
25548         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25549         separate gnulib.mk.
25550
25551 2010-09-04  Bruno Haible  <bruno@clisp.org>
25552
25553         gnulib-tool: Don't talk about CVS any more.
25554         * gnulib-tool (func_usage, func_import): Write "version control"
25555         instead of CVS.
25556
25557 2010-09-04  Jim Meyering  <meyering@redhat.com>
25558
25559         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25560         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25561         false positives (whose names may be ill-chosen) when searching
25562         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25563         would cause a false-positive.
25564
25565         avoid coreutils "make distcheck" failure
25566         Coreutils tests with an absolute build directory name that contains
25567         a space.  Not quoting this directory name caused a failure.
25568         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25569         * tests/test-vc-list-files-cvs.sh: Likewise.
25570
25571 2010-09-04  Bruno Haible  <bruno@clisp.org>
25572
25573         gnulib-tool: Avoid error when run in a package without Makefile.am.
25574         * gnulib-tool: When collecting the m4dirs in a package that does not
25575         have a Makefile.am, eliminate those directories that contain no
25576         gnulib-cache.m4. Fix expression that counts these directories.
25577
25578 2010-09-04  Bruno Haible  <bruno@clisp.org>
25579
25580         update-copyright test: Improve output when perl is missing or too old.
25581         * tests/test-update-copyright.sh: Move test of Perl version down after
25582         the test whether Perl exists. Provide an explanation relating Perl's
25583         error message to Automake's SKIP: message.
25584
25585 2010-09-04  Bruno Haible  <bruno@clisp.org>
25586
25587         Don't augment PATH in TESTS_ENVIRONMENT.
25588         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25589         set abs_aux_dir instead of augmenting PATH.
25590         * modules/vc-list-files-tests (Makefile.am): Likewise.
25591         * tests/test-update-copyright.sh: Augment PATH here.
25592         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25593         path_prepend_.
25594         * tests/test-vc-list-files-git.sh: Likewise.
25595
25596 2010-09-04  Jim Meyering  <meyering@redhat.com>
25597
25598         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25599         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25600
25601 2010-09-04  Bruno Haible  <bruno@clisp.org>
25602
25603         strdup: Fix compilation error in C++ mode.
25604         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25605         the macro.
25606
25607 2010-09-04  Bruno Haible  <bruno@clisp.org>
25608
25609         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25610         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25611         macro into a function.
25612         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25613
25614 2010-09-04  Bruno Haible  <bruno@clisp.org>
25615
25616         Set PATH_SEPARATOR the same way autoconf does.
25617         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25618         the value of PATH_SEPARATOR the same way autoconf-generated configure
25619         scripts do.
25620         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25621         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25622
25623 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25624
25625         Set PATH_SEPARATOR the same way autoconf does.
25626         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25627         the same way autoconf-generated configure scripts do.
25628         * posix-modules: Likewise.
25629
25630 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25631
25632         hash: fix safe_hasher const typo
25633         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25634         const; otherwise, there is a type error later.
25635
25636 2010-09-02  Jim Meyering  <meyering@redhat.com>
25637
25638         test-update-copyright.sh: require perl 5.8.0
25639         * tests/test-update-copyright.sh: Require 5.8.0,
25640         which Tom G. Christensen has confirmed is adequate,
25641         while 5.6.1 is not.
25642
25643 2010-09-02  Eric Blake  <eblake@redhat.com>
25644
25645         tests: init.sh improvements for re-exec'ing with zsh
25646         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25647         -vx through shell re-exec.
25648         Reported by Tom G. Christensen.
25649
25650         wctype: fix typo in previous commit
25651         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25652         Reported by Ludovic Courtès.
25653
25654 2010-09-02  Jim Meyering  <meyering@redhat.com>
25655
25656         test-update-copyright.sh: skip test if Perl is too old
25657         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25658         Reported by Tom G. Christensen.
25659
25660 2010-09-02  Bruno Haible  <bruno@clisp.org>
25661
25662         wctype: Avoid compilation error on IRIX 6.5.30.
25663         * lib/wctype.in.h (iswblank): Declare with a replacement if
25664         REPLACE_ISWBLANK is set.
25665         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25666         declared. Set REPLACE_ISWBLANK.
25667         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25668         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25669         * doc/posix-headers/wctype.texi: Likewise.
25670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25671
25672 2010-09-01  Bruno Haible  <bruno@clisp.org>
25673
25674         New module 'socketlib'.
25675         * modules/socketlib: New file.
25676         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25677         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25678         * modules/sockets (Depends-on): Add socketlib.
25679         Suggested by Sam Steingold <sds@gnu.org>.
25680
25681 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25682
25683         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25684
25685         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25686         when one needs search access to a directory but not read access.
25687         On systems where it is available, it works in some cases where
25688         O_RDONLY does not, namely on directories that are searchable but
25689         not readable, and which need only to be searchable.  If O_SEARCH
25690         is not available, fall back to the traditional method of using
25691         O_RDONLY.
25692
25693         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25694         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25695         when opening a directory that needs only to be searchable.
25696         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25697         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25698         * lib/openat-proc.c (openat_proc_name): Likewise.
25699         * lib/openat.c (openat_needs_fchdir): Likewise.
25700         * lib/save-cwd.c (save_cwd): Likewise.
25701         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25702
25703 2010-08-28  Bruno Haible  <bruno@clisp.org>
25704
25705         New module 'host-cpu-c-abi'.
25706         * modules/host-cpu-c-abi: New file.
25707         * m4/host-cpu-c-abi.m4: New file, based on part of
25708         clisp/src/m4/general.m4.
25709         Requested by Sam Steingold <sds@gnu.org>.
25710
25711 2010-08-31  Eric Blake  <eblake@redhat.com>
25712         and Jim Meyering  <meyering@redhat.com>
25713
25714         hash: factor, and guard against misbehaving hasher function
25715         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25716         of table->hasher's return value.  Also protect against a hash value
25717         so large that adding it to table->bucket results in a NULL pointer.
25718         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25719         Use it in place of open-coded check-and-abort.
25720
25721 2010-08-30  Bruno Haible  <bruno@clisp.org>
25722
25723         hash: silence spurious clang warning
25724         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25725         Reported by Eric Blake.
25726
25727 2010-08-30  Eric Blake  <eblake@redhat.com>
25728
25729         strstr, memmem, strcasestr: avoid leaked shell message
25730         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25731         FreeBSD.
25732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25734
25735         tests: silence clang warning
25736         * tests/test-malloca.c (do_allocation): Avoid dead store.
25737
25738 2010-08-29  Bruno Haible  <bruno@clisp.org>
25739
25740         gettext: Fix recent mistake.
25741         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25742
25743 2010-08-29  Bruno Haible  <bruno@clisp.org>
25744
25745         selinux-h: Offer a --without-selinux option.
25746         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25747         --without-selinux was specified, skip all tests and define
25748         HAVE_SELINUX_SELINUX_H to 0.
25749         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25750         set LIB_SELINUX to empty.
25751         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25752         gl_LIBSELINUX. If --without-selinux was specified, replace
25753         selinux/context.h.
25754         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25755
25756 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25757             Bruno Haible  <bruno@clisp.org>
25758
25759         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25760         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25761         of HAVE_REALLOC.
25762         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25763         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25764         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25765         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25766
25767 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25768             Bruno Haible  <bruno@clisp.org>
25769
25770         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25771         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25772         HAVE_CALLOC.
25773         * lib/xmalloc.c: Update accordingly.
25774         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25775         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25776         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25777
25778 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25779             Bruno Haible  <bruno@clisp.org>
25780
25781         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25782         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25783         HAVE_MALLOC.
25784         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25785         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25786         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25787
25788 2010-08-29  Bruno Haible  <bruno@clisp.org>
25789
25790         Update modules list.
25791         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25792         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25793         (String handling <string.h>): Add astrxfrm.
25794         (File system functions): Add readlinkat.
25795
25796 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25797
25798         Tests for module 'realloc-gnu'.
25799         * modules/realloc-gnu-tests: New file.
25800         * tests/test-realloc-gnu.c: New file.
25801
25802         Tests for module 'calloc-gnu'.
25803         * modules/calloc-gnu-tests: New file.
25804         * tests/test-calloc-gnu.c: New file.
25805
25806         Tests for module 'malloc-gnu'.
25807         * modules/malloc-gnu-tests: New file.
25808         * tests/test-malloc-gnu.c: New file.
25809
25810 2010-08-28  Bruno Haible  <bruno@clisp.org>
25811
25812         Rename module 'realloc' -> 'realloc-gnu'.
25813         * modules/realloc-gnu: New file, copied from modules/realloc.
25814         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25815         obsolete.
25816         * modules/mgetgroups (Depends-on): Update.
25817         * doc/posix-functions/realloc.texi: Update.
25818         * NEWS: Mention the change.
25819
25820         Rename module 'calloc' -> 'calloc-gnu'.
25821         * modules/calloc-gnu: New file, copied from modules/calloc.
25822         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25823         obsolete.
25824         * doc/posix-functions/calloc.texi: Update.
25825         * NEWS: Mention the change.
25826
25827         Rename module 'malloc' -> 'malloc-gnu'.
25828         * modules/malloc-gnu: New file, copied from modules/malloc.
25829         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25830         obsolete.
25831         * modules/argp (Depends-on): Update.
25832         * modules/regex (Depends-on): Update.
25833         * doc/posix-functions/malloc.texi: Update.
25834         * NEWS: Mention the change.
25835
25836 2010-08-28  Eric Blake  <eblake@redhat.com>
25837
25838         pread, pwrite: add missing dependency
25839         * modules/pread (Depends-on): Add extensions.
25840         * modules/pwrite (Depends-on): Likewise.
25841
25842 2010-08-28  Bruno Haible  <bruno@clisp.org>
25843
25844         unistr/u*-strchr: Fix tests dependencies.
25845         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25846         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25847         Reported by Ian Beckwith <ianb@erislabs.net>.
25848
25849 2010-08-28  Bruno Haible  <bruno@clisp.org>
25850
25851         read-file: Don't occupy too much unused memory.
25852         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25853
25854 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25855             Eric Blake  <eblake@redhat.com>
25856             Bruno Haible  <bruno@clisp.org>
25857
25858         read-file: Avoid memory reallocations with regular files.
25859         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25860         (fread_file): With regular files, use the remaining length as the
25861         initial buffer size.  Check against overflow.
25862         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25863         sys_stat.
25864
25865 2010-08-28  Bruno Haible  <bruno@clisp.org>
25866
25867         ftello: Relax license.
25868         * modules/ftello (License): Relax to LGPLv2+.
25869         Reported by Eric Blake.
25870
25871 2010-08-28  Bruno Haible  <bruno@clisp.org>
25872
25873         Avoid relocwrapper link errors due to gnulib replacement functions.
25874         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25875         function.
25876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25877
25878 2010-08-28  Bruno Haible  <bruno@clisp.org>
25879
25880         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25881         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25882         defined.
25883         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25884         Suggested by Eric Blake.
25885
25886 2010-08-28  Bruno Haible  <bruno@clisp.org>
25887
25888         sys_socket, netdb: Ensure socklen_t gets defined.
25889         * modules/sys_socket (Depends-on): Add socklen.
25890         * modules/netdb (Depends-on): Likewise.
25891         * modules/getaddrinfo (Depends-on): Remove socklen.
25892         * modules/getsockopt (Depends-on): Likewise.
25893         * modules/setsockopt (Depends-on): Likewise.
25894         * tests/test-sys_socket.c: Check that socklen_t is defined.
25895         * tests/test-netdb.c: Likewise.
25896         * m4/socklen.m4: Update comments.
25897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25898
25899 2010-08-27  Eric Blake  <eblake@redhat.com>
25900
25901         login_tty: add missing dependency
25902         * modules/login_tty (Depends-on): Add pty.
25903
25904 2010-08-26  Eric Blake  <eblake@redhat.com>
25905
25906         lib-symbol-versions: fix m4 quoting
25907         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25908         format for AC_LINK_IFELSE.
25909
25910         glob: fix compile test
25911         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25912
25913         btowc: fix missing file
25914         * modules/btowc (Files): Also ship locale-fr.m4.
25915
25916         lseek: fix link test
25917         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25918         AC_LINK_IFELSE.
25919
25920         include_next: silence autoconf 2.68 warning
25921         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25922         AC_COMPILE_IFELSE as special.
25923         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25924         autoconf < 2.68.
25925
25926         acl: fix compilation test
25927         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25928         AC_COMPILE_IFELSE.
25929
25930 2010-08-26  Bruno Haible  <bruno@clisp.org>
25931
25932         Modernize AC_TRY_RUN invocations.
25933         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25935         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25936         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25937         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25938         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25941         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25942         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25944         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25948         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25949         gl_MBRLEN_NUL_RETVAL): Likewise.
25950         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25951         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25952         Likewise.
25953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25954         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25955         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25956         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25957         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25958         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25959         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25960         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25961         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25962         Likewise.
25963         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25964         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25966         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25967         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25970         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25971         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25973
25974 2010-08-26  Bruno Haible  <bruno@clisp.org>
25975
25976         Modernize AC_TRY_LINK invocations.
25977         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25978         AC_TRY_LINK.
25979         * m4/argp.m4 (gl_ARGP): Likewise.
25980         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25981         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25982         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25983         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25984         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25985         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25986         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25987         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25988         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25989         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25990         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25991         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25992         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25993         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25994         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25995         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25996         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25997         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25998         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25999         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26000         Likewise.
26001         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26002         Likewise.
26003         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26004         Likewise.
26005         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26007         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26008         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26009         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26010         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26011         * m4/servent.m4 (gl_SERVENT): Likewise.
26012         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26013         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26014         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26015         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26016         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26017         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26018         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26019         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26020         * modules/tsearch-tests (configure.ac): Likewise.
26021
26022 2010-08-26  Bruno Haible  <bruno@clisp.org>
26023
26024         Modernize AC_TRY_COMPILE invocations.
26025         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26026         AC_TRY_COMPILE.
26027         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26028         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26029         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26030         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26031         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26032         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26033         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26034         * m4/lock.m4 (gl_LOCK): Likewise.
26035         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26036         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26037         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26038         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26039         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26040         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26041         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26043         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26044         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26045         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26047         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26048         extraneous semicolon.
26049
26050 2010-08-26  Jim Meyering  <meyering@redhat.com>
26051
26052         stat-time: relax license LGPL
26053         * modules/stat-time (License): Change from GPL to LGPL,
26054         with consent from all contributors, for use in libguile.
26055         Requested by Ludovic Courtès.
26056
26057 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26058
26059         poll: return immediately on POLLHUP.
26060         * lib/poll.c (poll): Always set timeout before wait_timeout is
26061         computed.
26062
26063 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26064
26065         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26066         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26067         rmdir ("dir/.//"), unlinkat.
26068
26069 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26070
26071         stdbool: avoid spurious failure with modern xlc
26072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26073
26074 2010-08-24  Bruno Haible  <bruno@clisp.org>
26075
26076         getloadavg: simplify code
26077         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26078         gl_have_func. Update comments.
26079
26080 2010-08-24  Eric Blake  <eblake@redhat.com>
26081
26082         getloadavg: don't define SVR4 on cygwin
26083         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26084         only define SVR4 when -lkvm is required.
26085         Reported by Yaakov Selkowitz.
26086
26087 2010-08-24  Bruno Haible  <bruno@clisp.org>
26088
26089         priv-set: fix comment
26090         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26091
26092 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26093
26094         priv-set: fix comments
26095         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26096         to match code, as suggested by David Bartley in:
26097         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26098
26099 2010-08-23  Eric Blake  <eblake@redhat.com>
26100
26101         stdbool: avoid rejecting clang
26102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26103         * tests/test-stdbool.c: Enable more tests if using the system
26104         <stdbool.h> instead of the gnulib replacement.
26105         (main): Move xlc bug test to a runtime test for all compilers.
26106         Reported by Anders Kaseorg.
26107
26108         argz: fix shell quoting issue
26109         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26110         Reported by Charles Wilson.
26111
26112 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26113             Erik Faye-Lund <kusmabite@gmail.com>
26114
26115         poll, select: handle ERROR_BROKEN_PIPE.
26116         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26117         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26118         * lib/select.c (win32_compute_revents): Do not mark a pipe
26119         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26120
26121 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26122
26123         fts: allow compilation with C++
26124         * lib/fts_.h: Specify extern "C" linkage with C++.
26125
26126 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26127
26128         Fix gnulib-tool sed script de-commentation for AIX sed.
26129         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26130         sed.
26131
26132 2010-08-17  Eric Blake  <eblake@redhat.com>
26133
26134         test-stddef: test for (some) offsetof bugs
26135         * tests/test-stddef.c: Enhance test to ensure correct type of
26136         offsetof.
26137         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26138         that we are not fixing at this time.
26139
26140 2010-08-15  Bruno Haible  <bruno@clisp.org>
26141
26142         stpncpy: Allow stpncpy to be defined as a macro.
26143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26144         if it's already correctly declared.
26145         * lib/string.in.h (stpncpy): Undefine before redefining.
26146         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26147
26148 2010-08-14  Bruno Haible  <bruno@clisp.org>
26149
26150         Rename module 'memxfrm' to 'amemxfrm'.
26151         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26152         (amemxfrm): Renamed from memxfrm.
26153         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26154         (amemxfrm): Renamed from memxfrm.
26155         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26156         * NEWS: Mention the change.
26157         * MODULES.html.sh (String handling <string.h>): Update.
26158         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26159         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26160         * lib/unicase/u16-casexfrm.c: Likewise.
26161         * lib/unicase/u32-casexfrm.c: Likewise.
26162         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26163         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26164         * lib/uninorm/u16-normxfrm.c: Likewise.
26165         * lib/uninorm/u32-normxfrm.c: Likewise.
26166         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26167         memxfrm.
26168         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26169         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26170         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26171         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26172         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26173         Suggested by Paul Eggert.
26174
26175 2010-08-14  Bruno Haible  <bruno@clisp.org>
26176
26177         Tests for module 'astrxfrm'.
26178         * modules/astrxfrm-tests: New file.
26179         * tests/test-astrxfrm.c: New file.
26180
26181         New module 'astrxfrm'.
26182         * lib/astrxfrm.h: New file.
26183         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26184         * modules/astrxfrm: New file.
26185
26186 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26187
26188         regex: Tweak doc.
26189         * doc/regex.texi (Overview): Don't mention regex.c.
26190         (GNU Regular Expression Compiling): Likewise.
26191         (Match-end-of-line Operator): Mention 'not_eol'.
26192
26193 2010-08-14  Brian Gough  <bjg@gnu.org>
26194             Bruno Haible  <bruno@clisp.org>
26195
26196         git-merge-changelog: add doc relating to use with bzr and hg.
26197         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26198
26199 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26200
26201         pthread: fix pthread.h creation for srcdir != builddir
26202         * modules/pthread (Makefile.am): Fix the rule to work also in a
26203         non-srcdir build.
26204
26205 2010-08-13  Karl Berry  <karl@gnu.org>
26206
26207         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26208         * doc/posix-*/*: force line break before @url of POSIX
26209         specifications.
26210         Suggested by Werner Lemberg.
26211
26212 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26213
26214         strtod: fix const diagnostic
26215         * lib/strtod.c (strtod): Don't assign const char * to char *,
26216         as this elicits a warning from GCC when warnings are enabled.
26217
26218 2010-08-10  Pádraig Brady <P@draigbrady.com>
26219         and Eric Blake  <eblake@redhat.com>
26220
26221         copy-acl: ignore ENOTSUP on HP-UX
26222         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26223         so that it is available for HP-UX.
26224         * lib/copy-acl.c (qcopy_acl): Use it.
26225         Reported by Patrick M. Callahan.
26226
26227 2010-08-10  Eric Blake  <eblake@redhat.com>
26228
26229         open, chown: relax license
26230         * modules/open (License): Change to LGPLv2+, with consent by all
26231         authors, for use in augeas.
26232         * modules/chown (License): Likewise.
26233         * modules/lchown (Likewise): Likewise.
26234         Requested by Adam Stokes.
26235
26236 2010-08-09  Karl Berry  <karl@gnu.org>
26237
26238         * build-aux/ar-lib: new file, import from Automake.
26239         * config/srclist.txt: autocheck for updates.
26240
26241 2010-08-09  Eric Blake  <eblake@redhat.com>
26242
26243         readlinkat: adjust client modules
26244         * modules/areadlinkat (Depends-on): Use readlinkat, not
26245         symlinkat.
26246         * modules/areadlinkat-with-size (Depends-on): Likewise.
26247
26248         mknod: be more vocal about danger of running tests as root
26249         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26250         root, since that is just asking for problems.
26251         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26252
26253         readlinkat: split into its own module
26254         * modules/symlinkat: Split readlinkat...
26255         * modules/readlinkat: ...into separate module.
26256         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26257         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26258         * lib/symlinkat.c (readlinkat): Move...
26259         * lib/readlinkat.c: ...into new file.
26260         * modules/symlinkat-tests: Split readlinkat test...
26261         * modules/readlinkat-tests: ...into separate module.
26262         * tests/test-symlinkat.c: Split...
26263         * tests/test-readlinkat.c: ...into new file.
26264         * NEWS: Document the split.
26265         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26266         * lib/unistd.in.h (readlinkat): Likewise.
26267         Suggested by Bruno Haible.
26268
26269 2010-08-08  Bruno Haible  <bruno@clisp.org>
26270
26271         memxfrm: Speed up.
26272         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26273         that usually only one call to strxfrm is necessary for each string
26274         part.
26275         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26276
26277 2010-08-07  Karl Berry  <karl@gnu.org>
26278
26279         * doc/posix-headers/limits.texi,
26280         * doc/posix-functions/malloc.texi,
26281         * doc/posix-functions/strsignal.texi: missing @item.
26282         * doc/ld-version-script.texi: spurious leading i.
26283         * doc/regex.texi (Interval Operators): no commas inside @var.
26284
26285 2010-08-01  Bruno Haible  <bruno@clisp.org>
26286
26287         Integrate the regex documentation.
26288         * doc/gnulib.texi: Define 'cn' index.
26289         (Regular expressions): New a chapter that includes regex.texi and
26290         regexprops-generic.texi.
26291         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26292         syntax.
26293
26294         Whitespace cleanup.
26295         * doc/regex.texi: Remove trailing spaces.
26296
26297         Add regex documentation.
26298         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26299         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26300         Written by Kathy A. Hargreaves and Karl Berry.
26301
26302 2010-08-01  Bruno Haible  <bruno@clisp.org>
26303
26304         link: Update documentation.
26305         * doc/posix-functions/link.texi: Update regarding Solaris.
26306
26307 2010-07-31  Bruno Haible  <bruno@clisp.org>
26308
26309         Update modules list.
26310         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26311         (String handling <string.h>): Add memcmp2, memxfrm.
26312         (Container data structures): Add xlist, xsublist, xoset.
26313         (Core language properties): Add alignof, unused-parameter.
26314         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26315         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26316         (Unibyte characters <ctype.h>): New section.
26317         (String handling <string.h>): New section.
26318         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26319         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26320         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26321         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26322         tan, tanh, tanl, y0, y1, yn.
26323         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26324         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26325         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26326         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26327         unlockpt, vdprintf, vdprintf-posix.
26328         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26329         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26330         xconcat-filename.
26331         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26332         getdtablesize, pipe2, pipe2-safer.
26333         (Security): New section.
26334         (Networking functions): Add accept4.
26335         (Signal handling): Add sigpipe.
26336         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26337         mbmemcasecoll.
26338         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26339         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26340         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26341         pipe-filter-ii.
26342         (Misc): Add argp-version-etc, login_tty, parse-duration.
26343
26344 2010-07-31  Bruno Haible  <bruno@clisp.org>
26345
26346         Improve doc in MODULES.html.
26347         * modules/linkat (Description): Add the word "function".
26348         * modules/mkfifo (Description): Likewise.
26349         * modules/mknod (Description): Likewise.
26350         * modules/remove (Description): Likewise.
26351         * modules/renameat (Description): Likewise.
26352         * modules/stat (Description): Likewise.
26353         * modules/symlink (Description): Likewise.
26354         * modules/unlink (Description): Likewise.
26355
26356 2010-07-31  Bruno Haible  <bruno@clisp.org>
26357
26358         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26359         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26360         option --enable/disable-c++ instead of --enable/disable-cxx.
26361         * NEWS: Mention the change.
26362
26363 2010-07-31  Bruno Haible  <bruno@clisp.org>
26364
26365         readlink, areadlink: Relax test a bit.
26366         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26367         alternative to ENOTDIR.
26368         * tests/test-areadlink.h (test_areadlink): Likewise.
26369         Reported by Rainer Tammer.
26370
26371 2010-07-31  Bruno Haible  <bruno@clisp.org>
26372
26373         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26374         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26375         character, perform the search using U_STRCHR.
26376         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26377         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26378         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26379         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26380         Suggested by Paolo Bonzini.
26381
26382 2010-07-31  Bruno Haible  <bruno@clisp.org>
26383
26384         unistr/u*-strstr: Fix dependencies.
26385         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26386         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26387         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26388
26389 2010-07-31  Bruno Haible  <bruno@clisp.org>
26390
26391         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26392         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26393         the beginning of the loop.
26394         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26395         cases in 'switch' statement.
26396
26397         unistr/u8-strchr: Fix several bugs.
26398         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26399         the string. When not found, return NULL, not a pointer near the end.
26400
26401         More tests for unistr/u8-strchr.
26402         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26403         that the function does not read past the first occurrence of the byte
26404         being searched.
26405         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26406         * tests/unistr/test-u16-strchr.c (main): New function.
26407         * tests/unistr/test-u32-strchr.c (main): New function.
26408
26409 2010-07-31  Bruno Haible  <bruno@clisp.org>
26410
26411         posix-modules: Ignore backup files of documentation files.
26412         * posix-modules: grep only through files named *.texi.
26413
26414 2010-07-31  Bruno Haible  <bruno@clisp.org>
26415
26416         symlinkat: Fix documentation.
26417         * doc/posix-functions/readlinkat.texi: Fix module name.
26418
26419 2010-07-31  Bruno Haible  <bruno@clisp.org>
26420
26421         fchownat: Replace also when chown has the trailing slash bug.
26422         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26423         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26424         introduced on 2010-04-10.
26425         Reported by Rainer Tammer.
26426
26427 2010-07-31  Bruno Haible  <bruno@clisp.org>
26428
26429         linkat: Work around AIX 7.1 bug.
26430         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26431         whether linkat handles trailing slash correctly. If not, replace linkat
26432         and define LINKAT_TRAILING_SLASH_BUG.
26433         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26434         check whether (fd1,file1) points to a directory if file1 or file2 ends
26435         in a slash. Code taken from lib/link.c.
26436         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26437         Reported by Rainer Tammer.
26438
26439 2010-07-31  Bruno Haible  <bruno@clisp.org>
26440
26441         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26442         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26443         This disables an xlc optimization that was causing wrong test results.
26444         Reported by Rainer Tammer.
26445
26446 2010-07-31  Bruno Haible  <bruno@clisp.org>
26447
26448         iconv: Work around AIX 6.1..7.1 bug.
26449         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26450         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26451         cross-compiling, guess no on all versions of AIX.
26452         Reported by Rainer Tammer.
26453
26454 2010-07-31  Bruno Haible  <bruno@clisp.org>
26455
26456         readlink: Relax test a bit.
26457         * tests/test-readlink.h (test_readlink): Allow different errno value
26458         when readlink is called with a file name that ends in / and refers to
26459         a file.
26460         Suggested by Eric Blake.
26461         Reported by Rainer Tammer.
26462
26463 2010-07-31  Bruno Haible  <bruno@clisp.org>
26464
26465         copysign: Does not require -lm on glibc systems.
26466         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26467         gl_COMMON_DOUBLE_MATHFUNC.
26468         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26469
26470 2010-07-31  Bruno Haible  <bruno@clisp.org>
26471
26472         duplocale: Work around AIX 7.1 bug.
26473         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26474         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26475         * lib/duplocale.c (rpl_duplocale): Update comment.
26476         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26477         Reported by Rainer Tammer.
26478
26479 2010-07-30  Bruno Haible  <bruno@clisp.org>
26480
26481         dirfd: Avoid link error on AIX 7.1.
26482         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26483         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26484         exist, set REPLACE_DIRFD.
26485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26486         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26487         * doc/posix-functions/dirfd.texi: Update.
26488         Reported by Rainer Tammer.
26489
26490 2010-07-30  Eric Blake  <eblake@redhat.com>
26491
26492         strtod: next round of AIX fixes
26493         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26494         exponent.
26495         * tests/test-strtod.c (main): Enhance tests.
26496         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26497         Reported by Rainer Tammer.
26498
26499         futimens: fix configure check
26500         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26501         Reported by Bruno Haible.
26502
26503 2010-07-30  Bruno Haible  <bruno@clisp.org>
26504
26505         getline: Update regarding AIX.
26506         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26507         Reported by Rainer Tammer.
26508
26509 2010-07-30  Bruno Haible  <bruno@clisp.org>
26510
26511         wcwidth: Drop replacement on AIX 7.
26512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26513         AIX 7.
26514         Reported by Rainer Tammer.
26515
26516 2010-07-30  Bruno Haible  <bruno@clisp.org>
26517
26518         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26519         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26520         a 'char *'.
26521         Reported by Rainer Tammer.
26522
26523 2010-07-30  Bruno Haible  <bruno@clisp.org>
26524
26525         unlink: Update regarding AIX.
26526         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26527         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26528         Reported by Rainer Tammer.
26529
26530 2010-07-30  Bruno Haible  <bruno@clisp.org>
26531
26532         symlink: Update regarding AIX.
26533         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26534         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26535         Reported by Rainer Tammer.
26536
26537 2010-07-30  Bruno Haible  <bruno@clisp.org>
26538
26539         strndup: Update regarding AIX.
26540         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26541         AIX 7.
26542         Reported by Rainer Tammer.
26543
26544 2010-07-30  Bruno Haible  <bruno@clisp.org>
26545
26546         stat: Update regarding AIX.
26547         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26548         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26549         Reported by Rainer Tammer.
26550
26551 2010-07-30  Bruno Haible  <bruno@clisp.org>
26552
26553         truncl: Fix autoconf test.
26554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26555         whether truncl works.
26556         Reported by Rainer Tammer.
26557
26558 2010-07-30  Bruno Haible  <bruno@clisp.org>
26559
26560         round: Update regarding AIX.
26561         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26562         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26563         Reported by Rainer Tammer.
26564
26565 2010-07-30  Bruno Haible  <bruno@clisp.org>
26566
26567         rename: Update regarding AIX.
26568         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26569         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26570         Reported by Rainer Tammer.
26571
26572 2010-07-30  Bruno Haible  <bruno@clisp.org>
26573
26574         printf.m4: Update regarding AIX.
26575         * m4/printf.m4: Update comments regarding AIX.
26576         Reported by Rainer Tammer.
26577
26578 2010-07-30  Bruno Haible  <bruno@clisp.org>
26579
26580         iconv: Update regarding AIX.
26581         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26582         AIX 7.
26583         Reported by Rainer Tammer.
26584
26585 2010-07-30  Bruno Haible  <bruno@clisp.org>
26586
26587         getopt: Update regarding AIX.
26588         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26589         no on AIX.
26590         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26591         Reported by Rainer Tammer.
26592
26593 2010-07-30  Bruno Haible  <bruno@clisp.org>
26594
26595         ldexpl; Update regarding AIX.
26596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26597         on AIX 7.
26598         Reported by Rainer Tammer.
26599
26600 2010-07-30  Bruno Haible  <bruno@clisp.org>
26601
26602         frexpl: Update regarding AIX.
26603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26604         on AIX 7.
26605         Reported by Rainer Tammer.
26606
26607 2010-07-30  Bruno Haible  <bruno@clisp.org>
26608
26609         open, fopen: Update regarding AIX.
26610         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26611         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26612         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26613         * doc/posix-functions/fopen.texi: Likewise.
26614         Reported by Rainer Tammer.
26615
26616 2010-07-30  Bruno Haible  <bruno@clisp.org>
26617
26618         chown: Update doc regarding AIX.
26619         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26620         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26621         Reported by Rainer Tammer.
26622
26623 2010-07-30  Eric Blake  <eblake@redhat.com>
26624
26625         strtod: fix bug in replacement function on AIX
26626         * lib/strtod.c (strtod): Special case broken "0x" parse in
26627         underlying strtod.
26628         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26629         * doc/posix-functions/strtod.texi (strtod): Likewise.
26630         Reported by Rainer Tammer.
26631
26632 2010-07-30  Bruno Haible  <bruno@clisp.org>
26633
26634         mbrlen: Fix cross-compilation guess for AIX.
26635         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26636         guess. Leftover from 2008-12-22.
26637
26638 2010-07-30  Bruno Haible  <bruno@clisp.org>
26639
26640         mbrtowc: Fix cross-compilation guess for AIX.
26641         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26642         guess. Leftover from 2008-12-21.
26643
26644 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26645
26646         init.sh: work around trap limitation of some shells
26647         * tests/init.sh (setup_): Move exit trap outside of shell function.
26648
26649 2010-07-29  Eric Blake  <eblake@redhat.com>
26650
26651         strtod: aid debugging
26652         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26653         understanding why strtod is rejected.
26654
26655 2010-07-28  Bruno Haible  <bruno@clisp.org>
26656
26657         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26658         * lib/unistr/u8-chr.c: Include <string.h>.
26659         * tests/unistr/test-u8-chr.c: Likewise.
26660         * tests/unistr/test-u16-chr.c: Likewise.
26661         * tests/unistr/test-u32-chr.c: Likewise.
26662         * tests/unistr/test-u8-strchr.c: Likewise.
26663         * tests/unistr/test-u16-strchr.c: Likewise.
26664         * tests/unistr/test-u32-strchr.c: Likewise.
26665         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26666         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26667         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26668         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26669
26670 2010-07-28  Bruno Haible  <bruno@clisp.org>
26671
26672         Use spaces for indentation, not tabs.
26673         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26674
26675 2010-07-27  Bruno Haible  <bruno@clisp.org>
26676
26677         mbspcasecmp: Fix function specification.
26678         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26679         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26680         Reported by Eric Blake <eblake@redhat.com>.
26681
26682 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26683
26684         timespec: use cast and not conditional, as truncation isn't possible
26685         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26686         instead of a conditional.  Comment about the situation in more detail.
26687         This undoes most of the 2009-10-29 patch.
26688
26689 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26690
26691         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26692         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26693         * lib/unistr/u8-strchr.c: Likewise.
26694         * modules/unistr/u8-chr: Depend on memchr.
26695
26696         unistr/u*-strchr: add tests
26697         * modules/unistr/u8-strchr-tests: New file.
26698         * modules/unistr/u16-strchr-tests: New file.
26699         * modules/unistr/u32-strchr-tests: New file.
26700         * tests/unistr/test-strchr.h: New file.
26701         * tests/unistr/test-u8-strchr.c: New file.
26702         * tests/unistr/test-u16-strchr.c: New file.
26703         * tests/unistr/test-u32-strchr.c: New file.
26704
26705         unistr/u*-chr: test multibyte sequences more
26706         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26707         test vector.
26708         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26709         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26710         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26711
26712         unistr/u*-chr: test multibyte sequences
26713         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26714
26715         unistr/u*-chr: prepare for multibyte tests
26716         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26717         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26718         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26719         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26720         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26721         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26722
26723 2010-07-18  Bruno Haible  <bruno@clisp.org>
26724
26725         unistr/u8-strchr: Optimize non-ASCII argument case.
26726         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26727         because the first byte often matches anyway.
26728         Reported by Pádraig Brady <P@draigbrady.com>.
26729
26730 2010-07-15  Karl Berry  <karl@gnu.org>
26731
26732         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26733
26734 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26735
26736         getcwd: on Solaris, work better if ancestors are inaccessible
26737         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26738         buffer and size, try again with a large buffer.  This works better
26739         on Solaris, since its getcwd succeeds even if the path to the root
26740         is inaccessible, and this is helpful in common cases such as .zfs
26741         hidden directories.  Problem reported by J Chapman Flack in
26742         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26743         Use system getcwd if it's declared, not merely if it's partly
26744         working; use the partly-working test only to avoid needless effort
26745         if the system getcwd fails.
26746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26747         comment that was already obsolete and is now even more obsolete.
26748         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26749         now might call strdup.
26750
26751 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26752
26753         pthread: Add enough so that coreutils/src/sort.c compiles.
26754         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26755         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26756         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26757         Include <sys/types.h>, in case it defines pthread_t.
26758         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26759         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26760         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26761         (pthread_rwlockattr_t, pthread_spinlock_t):
26762         New typedefs, if HAVE_PTHREAD_T is not defined.
26763         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26764         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26765         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26766         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26767         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26768         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26769         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26770         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26771         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26772         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26773         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26774         New macros.
26775         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26776         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26777         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26778         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26779         (pthread_spin_unlock): New dummy functions.
26780         (pthread_create): Return EAGAIN; don't set errno.
26781         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26782         require AC_C_INLINE.
26783         * modules/pthread (Depends-on): Add sched, time.
26784         (pthread.h): Use AM_V_GEN.
26785
26786 2010-07-13  Bruno Haible  <bruno@clisp.org>
26787
26788         striconveh: Don't malloc memory if the result buffer is sufficient.
26789         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26790         buffer if its size is sufficient.
26791         Reported by Ludovic Courtès <ludo@gnu.org>.
26792
26793 2010-07-13  Bruno Haible  <bruno@clisp.org>
26794
26795         strtod: Add safety check.
26796         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26797
26798 2010-07-12  Bruno Haible  <bruno@clisp.org>
26799
26800         Unify tests that set gl_cv_func_ldexpl_no_libm.
26801         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26802         gl_FUNC_LDEXPL.
26803         (gl_FUNC_LDEXPL): Invoke it.
26804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26805
26806 2010-07-12  Bruno Haible  <bruno@clisp.org>
26807
26808         Unify tests that set gl_cv_func_ldexp_no_libm.
26809         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26810         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26811         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26812         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26813         * modules/strtod (Files): Add m4/ldexp.m4.
26814
26815 2010-07-12  Bruno Haible  <bruno@clisp.org>
26816
26817         Unify tests that set gl_cv_func_frexpl_no_libm.
26818         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26819         gl_FUNC_FREXPL_NO_LIBM.
26820         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26822
26823 2010-07-12  Bruno Haible  <bruno@clisp.org>
26824
26825         Unify tests that set gl_cv_func_frexp_no_libm.
26826         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26827         gl_FUNC_FREXP_NO_LIBM.
26828         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26829         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26830
26831 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26832
26833         memcoll: clarify sizes versus lengths, document better, and tweak perf
26834         * lib/memcoll.c (strcoll_loop, memcoll0):
26835         Improve quality of descriptive comments.  Name variables
26836         consistently as to whether they are lengths (which do not include
26837         terminating null) versus sizes (which do).
26838         * lib/xmemcoll.c (xmemcoll0): Likewise.
26839         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26840         returned when s1size == 0; this is easier to compile and saves
26841         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26842
26843 2010-07-12  Bruno Haible  <bruno@clisp.org>
26844
26845         Tests for module '_Exit'.
26846         * modules/_Exit-tests: New file.
26847         * tests/test-_Exit.sh: New file.
26848         * tests/test-_Exit.c: New file.
26849
26850         New module '_Exit'.
26851         * lib/stdlib.in.h (__attribute__): New macro.
26852         (_Exit): New declaration.
26853         * lib/_Exit.c: New file.
26854         * m4/_Exit.m4: New file.
26855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26856         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26857         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26858         * modules/_Exit: New file.
26859         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26860         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26861
26862 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26863
26864         strtod: make it more-accurate typically, and don't require libm
26865         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26866         Include limits.h.  Don't include string.h.
26867         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26868         (locale_isspace): New function, so that no casts are needed to
26869         check whether *s is a space.
26870         (ldexp): Provide an unused dummy if not available.
26871         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26872         (strtod): Use them.  This implementation prefers to use the
26873         underlying strtod if available, falling back on our own code
26874         only to fix known bugs.  This is more likely to produce an
26875         accurate result.  Also, it avoids the use of libm functions.
26876         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26877         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26878         was absent, but it caused a test failure with coreutils.
26879         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26880         with libm.
26881         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26882         * modules/strtod-tests (Makefile.am): Likewise.
26883
26884 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26885             Bruno Haible  <bruno@clisp.org>
26886
26887         unistr/u8-strchr: Optimize ASCII argument case.
26888         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26889
26890 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         (x)memcoll: minor tweaks
26893         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26894         is after the type that it qualifies.
26895         (memcoll0): Likewise.
26896         * lib/memcoll.h (memcoll0): Likewise.
26897         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26898         * lib/xmemcoll.h (xmemcoll0): Likewise.
26899         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26900         differs from memcoll in that the NUL byte is part of the argument.
26901         Omit the abort-checks, as performance is a real issue here.  Plus,
26902         the checks were wrong anyway (an off-by-one error).  Omit local
26903         variable 'diff', as it's a bit clearer that way.
26904         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26905         no longer needed.
26906
26907 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26908
26909         (x)memcoll: speedup when input is known to be NUL delimited
26910         * lib/memcoll.c: Include stdlib.
26911         (memcoll0): New function.
26912         (strcoll_loop): New function, refactored for use in both memcoll
26913         and memcoll0.
26914         * lib/memcoll.h (memcoll0): Add prototype.
26915         * lib/xmemcoll.c (xmemcoll0): New function.
26916         (collate_error): New function, refactored for use in both xmemcoll
26917         and xmemcoll0.
26918         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26919         * m4/memcoll.m4: add inline invocation.
26920
26921 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26922
26923         * build-aux/bootstrap: Remove any local translations
26924         from the translation project synchronization directory,
26925         so that local only translations are not distributed.
26926
26927 2010-07-04  Bruno Haible  <bruno@clisp.org>
26928
26929         fsusage: Clarify which code applies to which platforms.
26930         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26931         platform.
26932         * lib/fsusage.c (get_fs_usage): Likewise.
26933
26934 2010-07-04  Bruno Haible  <bruno@clisp.org>
26935
26936         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26937         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26938         Reported by Martin Lambers <marlam@marlam.de>.
26939
26940 2010-07-04  Jim Meyering  <meyering@redhat.com>
26941
26942         hash: once again explicitly disallow insertion of NULL
26943         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26944         inserting a NULL pointer cannot work with these functions.
26945         Add a comment with details.
26946         This reverts part of the 2010-07-01 commit, 5bef1a35
26947         "hash: extend module to deal with non-pointer keys".
26948
26949 2010-07-01  Bruno Haible  <bruno@clisp.org>
26950
26951         stdbool: Update doc.
26952         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26953         Info from Christian Weisgerber <naddy@mips.inka.de>.
26954
26955 2010-07-01  Jim Meyering  <meyering@redhat.com>
26956
26957         hash: extend module to deal with non-pointer keys
26958         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26959         but that allows insertion of non-pointer entries.
26960         Do not disallow an ENTRY value of NULL.
26961         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26962         * lib/hash.h (hash_insert0): Declare.
26963
26964 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26965
26966         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26967         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26968         not present (i.e. with autoconf 2.59 and when using gettextize, not
26969         gnulib), require AC_GNU_SOURCE instead.
26970
26971 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26972
26973         idpriv-drop: Fix tests.
26974         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26975         not to the test-idpriv-droptemp program.
26976
26977 2010-06-29  Bruno Haible  <bruno@clisp.org>
26978
26979         string: Fix syntax error with g++ 2.96.
26980         * lib/string.in.h (__pure__): Remove definition.
26981         (_GL_ATTRIBUTE_PURE): New macro.
26982         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26983         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26984         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26985
26986 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26987
26988         unitypes: Fix bug introduced on 2010-05-18.
26989         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26990
26991 2010-06-22  Eric Blake  <eblake@redhat.com>
26992
26993         memmem: slight optimization
26994         * lib/str-two-way.h (critical_factorization): Update comments.
26995         Reduce work during factorization phase.
26996         Reported by Carlos Bueno <carlos@bueno.org>.
26997
26998 2010-06-21  Bruno Haible  <bruno@clisp.org>
26999
27000         Fix HAVE_CALLOC_POSIX misnomer.
27001         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27002         !HAVE_CALLOC_POSIX.
27003         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27004         HAVE_CALLOC_POSIX.
27005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27006         instead of HAVE_CALLOC_POSIX.
27007         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27008         HAVE_CALLOC_POSIX.
27009
27010         Use modern idiom for calloc() replacement.
27011         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27012         AC_FUNC_CALLOC.
27013         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27014         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27015         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27016         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27017         (gl_REPLACE_CALLOC): New macro.
27018
27019 2010-06-21  Bruno Haible  <bruno@clisp.org>
27020
27021         Fix HAVE_REALLOC_POSIX misnomer.
27022         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27023         !HAVE_REALLOC_POSIX.
27024         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27025         HAVE_REALLOC_POSIX.
27026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27027         instead of HAVE_REALLOC_POSIX.
27028         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27029         HAVE_REALLOC_POSIX.
27030
27031         Use modern idiom for realloc() replacement.
27032         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27033         AC_FUNC_REALLOC.
27034         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27035         Autoconf's AC_FUNC_REALLOC.
27036         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27037         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27038         (gl_REPLACE_REALLOC): New macro.
27039         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27040
27041 2010-06-21  Bruno Haible  <bruno@clisp.org>
27042
27043         Fix HAVE_MALLOC_POSIX misnomer.
27044         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27045         !HAVE_MALLOC_POSIX.
27046         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27047         HAVE_MALLOC_POSIX.
27048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27049         instead of HAVE_MALLOC_POSIX.
27050         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27051         HAVE_MALLOC_POSIX.
27052
27053         Use modern idiom for malloc() replacement.
27054         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27055         AC_FUNC_MALLOC.
27056         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27057         Autoconf's AC_FUNC_MALLOC.
27058         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27059         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27060         (gl_REPLACE_MALLOC): New macro.
27061         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27062
27063 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27064
27065         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27066         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27067         This macro takes 3 arguments, not 4.
27068
27069 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27070
27071         ipv6: fix detection under mingw
27072         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27073         in6_addr.
27074
27075 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27076
27077         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27078         that strtod() works when cross-compiling to a glibc version known
27079         to work.
27080
27081 2010-06-15  Bruno Haible  <bruno@clisp.org>
27082
27083         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27084
27085 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27086
27087         select: Correct timeout.
27088         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27089
27090 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27091
27092         git-version-gen: init shell var to avoid env var influence
27093         * build-aux/git-version-gen (v): Init shell var to empty.
27094
27095 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27096
27097         priv-set: Don't assume that priv.h exists merely because getppriv does.
27098         See Jan Andersen's bug report about AIX 5L in
27099         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27100         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27101         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27102         * lib/priv-set.h: Likewise.
27103         * tests/test-priv-set.c: Likewise.
27104
27105 2010-06-13  Bruno Haible  <bruno@clisp.org>
27106
27107         relocatable: Make it easier to test whether to install wrappers.
27108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27109         RELOCATABLE_VIA_WRAPPER.
27110
27111 2010-06-13  Bruno Haible  <bruno@clisp.org>
27112
27113         gnulib-tool: Display specified modules and dependencies differently.
27114         * gnulib-tool (func_show_module_list): New function.
27115         (func_import, func_create_testdir): Invoke it.
27116         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27117
27118 2010-06-13  Bruno Haible  <bruno@clisp.org>
27119
27120         gnulib-tool: Align code of func_import and func_create_testdir.
27121         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27122         specified_modules.
27123
27124 2010-06-12  Jim Meyering  <meyering@redhat.com>
27125
27126         test-inttostr: avoid spurious failure on Solaris 9
27127         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27128         to accept "%ju".  Reported by Bruno Haible.
27129
27130 2010-06-11  Jim Meyering  <meyering@redhat.com>
27131
27132         test-sys_socket: mark variables as used more readably
27133         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27134         as "used" explicitly via (void) statement casts.  This is more
27135         readable than using them in an artificial return expression.
27136         Suggestion from Bruno Haible.
27137
27138 2010-06-11  Bruno Haible  <bruno@clisp.org>
27139
27140         Avoid some more warnings from "gcc -Wwrite-strings".
27141         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27142         to 'const char *'.
27143         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27144         * tests/test-c-strcasestr.c (main): Likewise.
27145         * tests/test-mbscasestr1.c (main): Likewise.
27146         * tests/test-mbscasestr2.c (main): Likewise.
27147         * tests/test-memmem.c (main): Likewise.
27148         * tests/test-strstr.c (main): Likewise.
27149         * tests/test-strcasestr.c (main): Likewise.
27150
27151 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27152
27153         init.sh: change framework_failure_ to fail with status 99, not 1
27154         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27155         automake's parallel-tests rule that this is an unexpected failure,
27156         even if the test is listed in XFAIL_TESTS.
27157
27158 2010-06-11  Jim Meyering  <meyering@redhat.com>
27159
27160         test-inttostr: avoid warnings about 4-6KB literal strings
27161         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27162         Include "macros.h", for its definition of ASSERT.
27163         (CK): s/assert/ASSERT/
27164         * modules/inttostr-tests (Files): Add macros.h.
27165
27166         init.sh: don't use $ME_ or skip_ before they are defined
27167         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27168         their first uses.  Also hoist their companions: warn_, fail_,
27169         framework_failure_, $stderr_fileno.  Prompted by a patch from
27170         Stefano Lattarini.
27171
27172         test-sys_socket: avoid set-but-not-used warnings from gcc
27173         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27174         avoid warning about set-but-not-used variables.
27175
27176         test-xvasprintf: avoid 'const' discard warnings
27177         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27178         "const" when assigning from literal strings.
27179         (test_xasprintf): Add "void" in function argument list to placate
27180         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27181
27182         tests: avoid compilation warnings in argmatch and exclude tests...
27183         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27184         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27185         Since it always exits, declare with the "noreturn" attribute.
27186         * tests/test-argmatch.c: Likewise.
27187
27188         tests: avoid 'const' discard warnings in mbsstr tests
27189         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27190         * tests/test-mbsstr2.c (main): Likewise.
27191
27192         test-verify: avoid warning from gcc's -Wmissing-declarations
27193         * tests/test-verify.c (function): Declare to be static.
27194
27195         test-inttostr.c: include <string.h> for use of strcmp
27196         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27197
27198         test-linkat: avoid failed assertion on "other" architectures
27199         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27200         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27201         sparc: https://bugs.launchpad.net/bugs/591968
27202
27203 2010-06-11  Jim Meyering  <meyering@redhat.com>
27204
27205         printf.m4: avoid autoconf's "Expanded Before Required" warning
27206         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27207         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27208         autoconf warning.
27209
27210 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27211
27212         Replacement header templates are now named with ".in", not "_".
27213         * doc/gnulib-intro.texi: Correct.
27214
27215 2010-06-10  Jim Meyering  <meyering@redhat.com>
27216
27217         inttostr-tests: depend on snprintf, not snprintf-posix
27218         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27219         snprintf-posix, to avoid this aclocal failure:
27220           missing file gnulib-tests/vasnprintf.c
27221           configure.ac:45: error: expected source file, required through \
27222           AC_LIBSOURCES, not found
27223
27224 2010-06-10  Jim Meyering  <meyering@redhat.com>
27225
27226         inttostr: add a new function, inttostr, and tests
27227         The namesake function was not available.  The existence of the
27228         template file, inttostr.c makes its addition nontrivial.
27229         * lib/anytostr.c: Rename from inttostr.c.
27230         (anytostr): Rename from inttostr.
27231         * lib/inttostr.c: New file.
27232         * modules/inttostr (Files): Add anytostr.c.
27233         (Makefile.am): Set lib_SOURCES instead of ...
27234         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27235         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27236         * lib/offtostr.c: Likewise.
27237         * lib/uinttostr.c: Likewise.
27238         * lib/umaxtostr.c: Likewise.
27239         * modules/inttostr-tests: New file.
27240         * tests/test-inttostr.c: New file.  Test these functions.
27241
27242 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27243             Bruno Haible  <bruno@clisp.org>
27244
27245         Add "Extending Gnulib" chapter to manual.
27246         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27247         chapter.
27248         (Extending Gnulib): New chapter.
27249         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27250         chapter.
27251
27252 2010-06-09  Bruno Haible  <bruno@clisp.org>
27253
27254         Avoid relocwrapper link errors due to gnulib replacement functions.
27255         * lib/areadlink.c: Use the system's malloc, realloc functions.
27256         (areadlink): Set errno to ENOMEM explicitly.
27257         * modules/areadlink (Depends-on): Remove malloc-posix.
27258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27259
27260 2010-06-09  Bruno Haible  <bruno@clisp.org>
27261
27262         Avoid relocwrapper link errors due to gnulib replacement functions.
27263         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27264         * lib/malloca.c: Likewise.
27265         * lib/relocatable.c: Likewise.
27266         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27267         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27268         * lib/setenv.c: Use the system's malloc, realloc functions.
27269         * lib/strerror.c: Use the system's sprintf function.
27270         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27271
27272 2010-06-04  Bruno Haible  <bruno@clisp.org>
27273
27274         Prefer documented low-level autoconf macro names.
27275         * m4/lib-link.m4: Use m4_translit instead of translit.
27276         * m4/environ.m4: Likewise.
27277         * m4/mathfunc.m4: Likewise.
27278         * m4/onceonly.m4: Likewise.
27279         * m4/stdint.m4: Likewise.
27280         Suggested by Eric Blake.
27281
27282 2010-06-04  Martin Lambers  <marlam@marlam.de>
27283             Bruno Haible  <bruno@clisp.org>
27284
27285         havelib: Allow library names with '+' characters.
27286         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27287         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27288
27289 2010-06-09  Bruno Haible  <bruno@clisp.org>
27290
27291         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27292         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27293         realloc failed.
27294
27295 2010-06-08  Peter Simons  <simons@cryp.to>
27296
27297         maint.mk: make the news-check rule more configurable
27298         * top/maint.mk (news-check-lines-spec): New variable.
27299         (news-check): Use "sed -n 1,10p" in place of "head".
27300
27301 2010-06-07  Jim Meyering  <meyering@redhat.com>
27302
27303         do-release-commit-and-tag: fix typo in --help
27304         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27305
27306         regex: avoid new dead-code warning with gcc-4.6.0
27307         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27308         if-block containing a while-loop.  It's been unused for at least
27309         5 years.
27310
27311 2010-06-05  Bruno Haible  <bruno@clisp.org>
27312
27313         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27314         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27315
27316 2010-06-04  Bruno Haible  <bruno@clisp.org>
27317
27318         Update to GNU gettext 0.18.1.
27319         * modules/gettext (configure.ac): Require gettext infrastructure from
27320         version 0.18.1.
27321
27322 2010-06-03  Bruno Haible  <bruno@clisp.org>
27323
27324         Don't use AC_LIBOBJ with file names in subdirectories.
27325         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27326         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27327         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27328         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27329         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27330         gl_LIBUNISTRING_LIBSOURCE.
27331         (Makefile.am): Augment lib_SOURCES here, conditionally.
27332         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27333
27334 2010-06-03  Bruno Haible  <bruno@clisp.org>
27335
27336         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27337         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27338         expansion does not end with a newline.
27339         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27340         unnecessary newline.
27341
27342 2010-06-03  Bruno Haible  <bruno@clisp.org>
27343
27344         Reduce dependencies.
27345         * tests/test-quotearg.h: New file, extracted from
27346         tests/test-quotearg.c.
27347         * tests/test-quotearg-simple.c: New file, extracted from
27348         tests/test-quotearg.c.
27349         * tests/test-quotearg.c: Don't include <ctype.h>.
27350         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27351         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27352         use_quote_double_quotes, use_quotearg_colon): Moved to
27353         tests/test-quotearg.h.
27354         (results_g, flag_results, custom_quotes, custom_results): Moved
27355         to tests/test-quotearg-simple.c.
27356         (main): Moved the part that does not depend on gettext to
27357         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27358         performed.
27359         * modules/quotearg-simple: New file.
27360         * modules/quotearg-simple-tests: New file.
27361         * modules/quotearg (Depends-on): Add quotearg-simple.
27362         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27363         (Files): Add tests/test-quotearg.h.
27364         Reported by Paolo Bonzini.
27365
27366 2010-06-03  Bruno Haible  <bruno@clisp.org>
27367
27368         Reduce dependencies.
27369         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27370
27371 2010-06-03  Bruno Haible  <bruno@clisp.org>
27372
27373         time: Undefine more broken macros.
27374         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27375         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27376         Reported by Eric Blake.
27377
27378 2010-06-03  Bruno Haible  <bruno@clisp.org>
27379
27380         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27381         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27382         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27383         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27384         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27385         Reported by Ludovic Courtès <ludo@gnu.org>.
27386
27387 2010-06-02  Eric Blake  <eblake@redhat.com>
27388
27389         time: work with mingw + pthreads-win32 library
27390         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27391         if timespec is defined only in pthread.h.
27392         * modules/time (Makefile.am): Substitute it.
27393         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27394         <pthread.h>, when needed.
27395         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27396         from the library.
27397
27398 2010-05-31  Bruno Haible  <bruno@clisp.org>
27399
27400         Avoid expanding two macros in the wrong order.
27401         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27402         gl_LIBUNISTRING if it is defined.
27403         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27404         autoconf >= 2.64.
27405         Reported by Ludovic Courtès <ludo@gnu.org>.
27406
27407 2010-05-27  Jim Meyering  <meyering@redhat.com>
27408
27409         maint.mk: also prohibit "#undef" of always-defined symbols
27410         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27411         Allow more than one space before the symbol name.
27412         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27413         the regexp uses alternation.
27414
27415 2010-05-26  Eric Blake  <eblake@redhat.com>
27416
27417         maint.mk: avoid echo -e
27418         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27419         Convert all uses of echo -* to printf.
27420         Reported by Matthias Bolte.
27421
27422 2010-05-25  Bruno Haible  <bruno@clisp.org>
27423
27424         Update to GNU gettext 0.18, part 2.
27425         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27426         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27427
27428 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27429
27430         Add missing include in test-pwrite.c.
27431         * tests/test-pwrite.c: Include string.h, for strcmp.
27432
27433 2010-05-24  Bruno Haible  <bruno@clisp.org>
27434
27435         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27436
27437 2010-05-24  Bruno Haible  <bruno@clisp.org>
27438
27439         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27440         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27441         iconveh_error argument.
27442         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27443         U_STRCONV_TO_LOCALE.
27444         * lib/unistr/u16-strcoll.c: Likewise.
27445         * lib/unistr/u32-strcoll.c: Likewise.
27446         * modules/unistr/u8-strcoll (Depends-on): Add
27447         uniconv/u8-strconv-to-enc, localcharset. Remove
27448         uniconv/u8-strconv-to-locale.
27449         (configure.ac): Bump version number.
27450         * modules/unistr/u16-strcoll (Depends-on): Add
27451         uniconv/u16-strconv-to-enc, localcharset. Remove
27452         uniconv/u16-strconv-to-locale.
27453         (configure.ac): Bump version number.
27454         * modules/unistr/u32-strcoll (Depends-on): Add
27455         uniconv/u32-strconv-to-enc, localcharset. Remove
27456         uniconv/u32-strconv-to-locale.
27457         (configure.ac): Bump version number.
27458
27459 2010-05-24  Bruno Haible  <bruno@clisp.org>
27460
27461         Avoid a test failure on NetBSD 5.0.
27462         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27463         an iconv() bug.
27464
27465 2010-05-24  Bruno Haible  <bruno@clisp.org>
27466
27467         Adjust #include directive style.
27468         * modules/regex (Includes): Recommend to write <regex.h>.
27469
27470 2010-05-24  Bruno Haible  <bruno@clisp.org>
27471
27472         regex: Don't require alloca.
27473         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27474         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27475         only inside if (0).
27476
27477 2010-05-23  Jim Meyering  <meyering@redhat.com>
27478
27479         test-renameat.c: include <sys/stat.h>
27480         * tests/test-renameat.c: Include <sys/stat.h>; required for
27481         definition of S_IS* macros.
27482
27483 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27484
27485         Update maintainer documentation for 'relocatable-prog' module.
27486         * doc/relocatable-maint.texi: Update.
27487         Comments by Bruno Haible.
27488
27489 2010-05-23  Bruno Haible  <bruno@clisp.org>
27490
27491         git-merge-changelog: Enable --split-merged-entry by default.
27492         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27493         (usage): Don't mention this option any more.
27494         Reported by Ralf Wildenhues.
27495
27496 2010-05-23  Jim Meyering  <meyering@redhat.com>
27497
27498         test-pwrite: do not leave behind a test file named "out"
27499         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27500         The trivial-looking use of init.sh is really necessary.
27501         It ensures that the temporary file, "out", is created in
27502         a temporary directory, and removed upon termination.
27503         * tests/test-pwrite.sh: Re-add file.
27504         * modules/pwrite-tests: Reference it.
27505
27506 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27507
27508         Fix output redirection buglet in init.sh.
27509         * tests/init.sh: Fix redirection of stderr.
27510
27511 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27512
27513         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27514
27515 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27516
27517         * modules/valgrind-tests: New file.
27518         * m4/valgrind-tests.m4: New file.
27519         * doc/valgrind-tests.texi: New file.
27520         * doc/gnulib.texi (Running self-tests under valgrind): New
27521         section.
27522
27523 2010-05-19  Bruno Haible  <bruno@clisp.org>
27524
27525         Clean up dead code in recent commit.
27526         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27527         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27528         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27529         Suggested by Paolo Bonzini.
27530
27531 2010-05-19  Bruno Haible  <bruno@clisp.org>
27532
27533         Avoid valgrind error reports from libunistring.
27534         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27535         * modules/libunistring (Files): Add it.
27536         * modules/libunistring-optional (Files): Likewise.
27537
27538 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27539             Bruno Haible  <bruno@clisp.org>
27540
27541         New module 'libunistring-optional'.
27542         * modules/libunistring-optional: New file.
27543         * m4/libunistring-base.m4: New file.
27544         * m4/libunistring-optional.m4: New file.
27545         * lib/unicase.in.h: Renamed from lib/unicase.h.
27546         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27547         * lib/unictype.in.h: Renamed from lib/unictype.h.
27548         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27549         * lib/uniname.in.h: Renamed from lib/uniname.h.
27550         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27551         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27552         * lib/unistr.in.h: Renamed from lib/unistr.h.
27553         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27554         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27555         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27556         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27557         gl_LIBUNISTRING. If the library was found, determine the installed
27558         version and set LIBUNISTRING_VERSION.
27559         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27560         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27561         handle a configuration option --with-included-libunistring.
27562         * modules/libunistring (Files): Add m4/absolute-header.m4.
27563         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27564         Add m4/libunistring-base.m4.
27565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27566         (Makefile.am): Build unicase.h from unicase.in.h.
27567         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27568         Add m4/libunistring-base.m4.
27569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27570         (Makefile.am): Build uniconv.h from uniconv.in.h.
27571         * modules/unictype/base (Files): Use unictype.in.h instead of
27572         unictype.h. Add m4/libunistring-base.m4.
27573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27574         (Makefile.am): Build unictype.h from unictype.in.h.
27575         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27576         Add m4/libunistring-base.m4.
27577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27578         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27579         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27580         Add m4/libunistring-base.m4.
27581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27582         (Makefile.am): Build uniname.h from uniname.in.h.
27583         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27584         Add m4/libunistring-base.m4.
27585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27586         (Makefile.am): Build uninorm.h from uninorm.in.h.
27587         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27588         unistdio.h. Add m4/libunistring-base.m4.
27589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27590         (Makefile.am): Build unistdio.h from unistdio.in.h.
27591         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27592         Add m4/libunistring-base.m4.
27593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27594         (Makefile.am): Build unistr.h from unistr.in.h.
27595         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27596         Add m4/libunistring-base.m4.
27597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27598         (Makefile.am): Build unitypes.h from unitypes.in.h.
27599         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27600         Add m4/libunistring-base.m4.
27601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27602         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27603         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27604         uniwidth.h. Add m4/libunistring-base.m4.
27605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27606         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27607         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27608         instead of augmenting lib_SOURCES.
27609         * modules/unicase/empty-suffix-context: Likewise.
27610         * modules/unicase/locale-language: Likewise.
27611         * modules/unicase/tolower: Likewise.
27612         * modules/unicase/totitle: Likewise.
27613         * modules/unicase/toupper: Likewise.
27614         * modules/unicase/u8-casecmp: Likewise.
27615         * modules/unicase/u8-casecoll: Likewise.
27616         * modules/unicase/u8-casefold: Likewise.
27617         * modules/unicase/u8-casexfrm: Likewise.
27618         * modules/unicase/u8-ct-casefold: Likewise.
27619         * modules/unicase/u8-ct-tolower: Likewise.
27620         * modules/unicase/u8-ct-totitle: Likewise.
27621         * modules/unicase/u8-ct-toupper: Likewise.
27622         * modules/unicase/u8-is-cased: Likewise.
27623         * modules/unicase/u8-is-casefolded: Likewise.
27624         * modules/unicase/u8-is-lowercase: Likewise.
27625         * modules/unicase/u8-is-titlecase: Likewise.
27626         * modules/unicase/u8-is-uppercase: Likewise.
27627         * modules/unicase/u8-prefix-context: Likewise.
27628         * modules/unicase/u8-suffix-context: Likewise.
27629         * modules/unicase/u8-tolower: Likewise.
27630         * modules/unicase/u8-totitle: Likewise.
27631         * modules/unicase/u8-toupper: Likewise.
27632         * modules/unicase/u16-casecmp: Likewise.
27633         * modules/unicase/u16-casecoll: Likewise.
27634         * modules/unicase/u16-casefold: Likewise.
27635         * modules/unicase/u16-casexfrm: Likewise.
27636         * modules/unicase/u16-ct-casefold: Likewise.
27637         * modules/unicase/u16-ct-tolower: Likewise.
27638         * modules/unicase/u16-ct-totitle: Likewise.
27639         * modules/unicase/u16-ct-toupper: Likewise.
27640         * modules/unicase/u16-is-cased: Likewise.
27641         * modules/unicase/u16-is-casefolded: Likewise.
27642         * modules/unicase/u16-is-lowercase: Likewise.
27643         * modules/unicase/u16-is-titlecase: Likewise.
27644         * modules/unicase/u16-is-uppercase: Likewise.
27645         * modules/unicase/u16-prefix-context: Likewise.
27646         * modules/unicase/u16-suffix-context: Likewise.
27647         * modules/unicase/u16-tolower: Likewise.
27648         * modules/unicase/u16-totitle: Likewise.
27649         * modules/unicase/u16-toupper: Likewise.
27650         * modules/unicase/u32-casecmp: Likewise.
27651         * modules/unicase/u32-casecoll: Likewise.
27652         * modules/unicase/u32-casefold: Likewise.
27653         * modules/unicase/u32-casexfrm: Likewise.
27654         * modules/unicase/u32-ct-casefold: Likewise.
27655         * modules/unicase/u32-ct-tolower: Likewise.
27656         * modules/unicase/u32-ct-totitle: Likewise.
27657         * modules/unicase/u32-ct-toupper: Likewise.
27658         * modules/unicase/u32-is-cased: Likewise.
27659         * modules/unicase/u32-is-casefolded: Likewise.
27660         * modules/unicase/u32-is-lowercase: Likewise.
27661         * modules/unicase/u32-is-titlecase: Likewise.
27662         * modules/unicase/u32-is-uppercase: Likewise.
27663         * modules/unicase/u32-prefix-context: Likewise.
27664         * modules/unicase/u32-suffix-context: Likewise.
27665         * modules/unicase/u32-tolower: Likewise.
27666         * modules/unicase/u32-totitle: Likewise.
27667         * modules/unicase/u32-toupper: Likewise.
27668         * modules/unicase/ulc-casecmp: Likewise.
27669         * modules/unicase/ulc-casecoll: Likewise.
27670         * modules/unicase/ulc-casexfrm: Likewise.
27671         * modules/uniconv/u8-conv-from-enc: Likewise.
27672         * modules/uniconv/u8-conv-to-enc: Likewise.
27673         * modules/uniconv/u8-strconv-from-enc: Likewise.
27674         * modules/uniconv/u8-strconv-from-locale: Likewise.
27675         * modules/uniconv/u8-strconv-to-enc: Likewise.
27676         * modules/uniconv/u8-strconv-to-locale: Likewise.
27677         * modules/uniconv/u16-conv-from-enc: Likewise.
27678         * modules/uniconv/u16-conv-to-enc: Likewise.
27679         * modules/uniconv/u16-strconv-from-enc: Likewise.
27680         * modules/uniconv/u16-strconv-from-locale: Likewise.
27681         * modules/uniconv/u16-strconv-to-enc: Likewise.
27682         * modules/uniconv/u16-strconv-to-locale: Likewise.
27683         * modules/uniconv/u32-conv-from-enc: Likewise.
27684         * modules/uniconv/u32-conv-to-enc: Likewise.
27685         * modules/uniconv/u32-strconv-from-enc: Likewise.
27686         * modules/uniconv/u32-strconv-from-locale: Likewise.
27687         * modules/uniconv/u32-strconv-to-enc: Likewise.
27688         * modules/uniconv/u32-strconv-to-locale: Likewise.
27689         * modules/unictype/bidicategory-byname: Likewise.
27690         * modules/unictype/bidicategory-name: Likewise.
27691         * modules/unictype/bidicategory-of: Likewise.
27692         * modules/unictype/bidicategory-test: Likewise.
27693         * modules/unictype/block-list: Likewise.
27694         * modules/unictype/block-test: Likewise.
27695         * modules/unictype/category-C: Likewise.
27696         * modules/unictype/category-Cc: Likewise.
27697         * modules/unictype/category-Cf: Likewise.
27698         * modules/unictype/category-Cn: Likewise.
27699         * modules/unictype/category-Co: Likewise.
27700         * modules/unictype/category-Cs: Likewise.
27701         * modules/unictype/category-L: Likewise.
27702         * modules/unictype/category-Ll: Likewise.
27703         * modules/unictype/category-Lm: Likewise.
27704         * modules/unictype/category-Lo: Likewise.
27705         * modules/unictype/category-Lt: Likewise.
27706         * modules/unictype/category-Lu: Likewise.
27707         * modules/unictype/category-M: Likewise.
27708         * modules/unictype/category-Mc: Likewise.
27709         * modules/unictype/category-Me: Likewise.
27710         * modules/unictype/category-Mn: Likewise.
27711         * modules/unictype/category-N: Likewise.
27712         * modules/unictype/category-Nd: Likewise.
27713         * modules/unictype/category-Nl: Likewise.
27714         * modules/unictype/category-No: Likewise.
27715         * modules/unictype/category-P: Likewise.
27716         * modules/unictype/category-Pc: Likewise.
27717         * modules/unictype/category-Pd: Likewise.
27718         * modules/unictype/category-Pe: Likewise.
27719         * modules/unictype/category-Pf: Likewise.
27720         * modules/unictype/category-Pi: Likewise.
27721         * modules/unictype/category-Po: Likewise.
27722         * modules/unictype/category-Ps: Likewise.
27723         * modules/unictype/category-S: Likewise.
27724         * modules/unictype/category-Sc: Likewise.
27725         * modules/unictype/category-Sk: Likewise.
27726         * modules/unictype/category-Sm: Likewise.
27727         * modules/unictype/category-So: Likewise.
27728         * modules/unictype/category-Z: Likewise.
27729         * modules/unictype/category-Zl: Likewise.
27730         * modules/unictype/category-Zp: Likewise.
27731         * modules/unictype/category-Zs: Likewise.
27732         * modules/unictype/category-and: Likewise.
27733         * modules/unictype/category-and-not: Likewise.
27734         * modules/unictype/category-byname: Likewise.
27735         * modules/unictype/category-name: Likewise.
27736         * modules/unictype/category-none: Likewise.
27737         * modules/unictype/category-of: Likewise.
27738         * modules/unictype/category-or: Likewise.
27739         * modules/unictype/category-test: Likewise.
27740         * modules/unictype/combining-class: Likewise.
27741         * modules/unictype/ctype-alnum: Likewise.
27742         * modules/unictype/ctype-alpha: Likewise.
27743         * modules/unictype/ctype-blank: Likewise.
27744         * modules/unictype/ctype-cntrl: Likewise.
27745         * modules/unictype/ctype-digit: Likewise.
27746         * modules/unictype/ctype-graph: Likewise.
27747         * modules/unictype/ctype-lower: Likewise.
27748         * modules/unictype/ctype-print: Likewise.
27749         * modules/unictype/ctype-punct: Likewise.
27750         * modules/unictype/ctype-space: Likewise.
27751         * modules/unictype/ctype-upper: Likewise.
27752         * modules/unictype/ctype-xdigit: Likewise.
27753         * modules/unictype/decimal-digit: Likewise.
27754         * modules/unictype/digit: Likewise.
27755         * modules/unictype/mirror: Likewise.
27756         * modules/unictype/numeric: Likewise.
27757         * modules/unictype/property-alphabetic: Likewise.
27758         * modules/unictype/property-ascii-hex-digit: Likewise.
27759         * modules/unictype/property-bidi-arabic-digit: Likewise.
27760         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27761         * modules/unictype/property-bidi-block-separator: Likewise.
27762         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27763         * modules/unictype/property-bidi-common-separator: Likewise.
27764         * modules/unictype/property-bidi-control: Likewise.
27765         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27766         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27767         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27768         * modules/unictype/property-bidi-european-digit: Likewise.
27769         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27770         * modules/unictype/property-bidi-left-to-right: Likewise.
27771         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27772         * modules/unictype/property-bidi-other-neutral: Likewise.
27773         * modules/unictype/property-bidi-pdf: Likewise.
27774         * modules/unictype/property-bidi-segment-separator: Likewise.
27775         * modules/unictype/property-bidi-whitespace: Likewise.
27776         * modules/unictype/property-byname: Likewise.
27777         * modules/unictype/property-combining: Likewise.
27778         * modules/unictype/property-composite: Likewise.
27779         * modules/unictype/property-currency-symbol: Likewise.
27780         * modules/unictype/property-dash: Likewise.
27781         * modules/unictype/property-decimal-digit: Likewise.
27782         * modules/unictype/property-default-ignorable-code-point: Likewise.
27783         * modules/unictype/property-deprecated: Likewise.
27784         * modules/unictype/property-diacritic: Likewise.
27785         * modules/unictype/property-extender: Likewise.
27786         * modules/unictype/property-format-control: Likewise.
27787         * modules/unictype/property-grapheme-base: Likewise.
27788         * modules/unictype/property-grapheme-extend: Likewise.
27789         * modules/unictype/property-grapheme-link: Likewise.
27790         * modules/unictype/property-hex-digit: Likewise.
27791         * modules/unictype/property-hyphen: Likewise.
27792         * modules/unictype/property-id-continue: Likewise.
27793         * modules/unictype/property-id-start: Likewise.
27794         * modules/unictype/property-ideographic: Likewise.
27795         * modules/unictype/property-ids-binary-operator: Likewise.
27796         * modules/unictype/property-ids-trinary-operator: Likewise.
27797         * modules/unictype/property-ignorable-control: Likewise.
27798         * modules/unictype/property-iso-control: Likewise.
27799         * modules/unictype/property-join-control: Likewise.
27800         * modules/unictype/property-left-of-pair: Likewise.
27801         * modules/unictype/property-line-separator: Likewise.
27802         * modules/unictype/property-logical-order-exception: Likewise.
27803         * modules/unictype/property-lowercase: Likewise.
27804         * modules/unictype/property-math: Likewise.
27805         * modules/unictype/property-non-break: Likewise.
27806         * modules/unictype/property-not-a-character: Likewise.
27807         * modules/unictype/property-numeric: Likewise.
27808         * modules/unictype/property-other-alphabetic: Likewise.
27809         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27810         * modules/unictype/property-other-grapheme-extend: Likewise.
27811         * modules/unictype/property-other-id-continue: Likewise.
27812         * modules/unictype/property-other-id-start: Likewise.
27813         * modules/unictype/property-other-lowercase: Likewise.
27814         * modules/unictype/property-other-math: Likewise.
27815         * modules/unictype/property-other-uppercase: Likewise.
27816         * modules/unictype/property-paired-punctuation: Likewise.
27817         * modules/unictype/property-paragraph-separator: Likewise.
27818         * modules/unictype/property-pattern-syntax: Likewise.
27819         * modules/unictype/property-pattern-white-space: Likewise.
27820         * modules/unictype/property-private-use: Likewise.
27821         * modules/unictype/property-punctuation: Likewise.
27822         * modules/unictype/property-quotation-mark: Likewise.
27823         * modules/unictype/property-radical: Likewise.
27824         * modules/unictype/property-sentence-terminal: Likewise.
27825         * modules/unictype/property-soft-dotted: Likewise.
27826         * modules/unictype/property-space: Likewise.
27827         * modules/unictype/property-terminal-punctuation: Likewise.
27828         * modules/unictype/property-test: Likewise.
27829         * modules/unictype/property-titlecase: Likewise.
27830         * modules/unictype/property-unassigned-code-value: Likewise.
27831         * modules/unictype/property-unified-ideograph: Likewise.
27832         * modules/unictype/property-uppercase: Likewise.
27833         * modules/unictype/property-variation-selector: Likewise.
27834         * modules/unictype/property-white-space: Likewise.
27835         * modules/unictype/property-xid-continue: Likewise.
27836         * modules/unictype/property-xid-start: Likewise.
27837         * modules/unictype/property-zero-width: Likewise.
27838         * modules/unictype/scripts: Likewise.
27839         * modules/unictype/syntax-c-ident: Likewise.
27840         * modules/unictype/syntax-c-whitespace: Likewise.
27841         * modules/unictype/syntax-java-ident: Likewise.
27842         * modules/unictype/syntax-java-whitespace: Likewise.
27843         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27844         * modules/unilbrk/u8-width-linebreaks: Likewise.
27845         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27846         * modules/unilbrk/u16-width-linebreaks: Likewise.
27847         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27848         * modules/unilbrk/u32-width-linebreaks: Likewise.
27849         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27850         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27851         * modules/uniname/uniname: Likewise.
27852         * modules/uninorm/canonical-decomposition: Likewise.
27853         * modules/uninorm/composition: Likewise.
27854         * modules/uninorm/decomposing-form: Likewise.
27855         * modules/uninorm/decomposition: Likewise.
27856         * modules/uninorm/filter: Likewise.
27857         * modules/uninorm/nfc: Likewise.
27858         * modules/uninorm/nfd: Likewise.
27859         * modules/uninorm/nfkc: Likewise.
27860         * modules/uninorm/nfkd: Likewise.
27861         * modules/uninorm/u8-normalize: Likewise.
27862         * modules/uninorm/u8-normcmp: Likewise.
27863         * modules/uninorm/u8-normcoll: Likewise.
27864         * modules/uninorm/u8-normxfrm: Likewise.
27865         * modules/uninorm/u16-normalize: Likewise.
27866         * modules/uninorm/u16-normcmp: Likewise.
27867         * modules/uninorm/u16-normcoll: Likewise.
27868         * modules/uninorm/u16-normxfrm: Likewise.
27869         * modules/uninorm/u32-normalize: Likewise.
27870         * modules/uninorm/u32-normcmp: Likewise.
27871         * modules/uninorm/u32-normcoll: Likewise.
27872         * modules/uninorm/u32-normxfrm: Likewise.
27873         * modules/unistdio/u8-asnprintf: Likewise.
27874         * modules/unistdio/u8-asprintf: Likewise.
27875         * modules/unistdio/u8-snprintf: Likewise.
27876         * modules/unistdio/u8-sprintf: Likewise.
27877         * modules/unistdio/u8-u8-asnprintf: Likewise.
27878         * modules/unistdio/u8-u8-asprintf: Likewise.
27879         * modules/unistdio/u8-u8-snprintf: Likewise.
27880         * modules/unistdio/u8-u8-sprintf: Likewise.
27881         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27882         * modules/unistdio/u8-u8-vasprintf: Likewise.
27883         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27884         * modules/unistdio/u8-u8-vsprintf: Likewise.
27885         * modules/unistdio/u8-vasnprintf: Likewise.
27886         * modules/unistdio/u8-vasprintf: Likewise.
27887         * modules/unistdio/u8-vsnprintf: Likewise.
27888         * modules/unistdio/u8-vsprintf: Likewise.
27889         * modules/unistdio/u16-asnprintf: Likewise.
27890         * modules/unistdio/u16-asprintf: Likewise.
27891         * modules/unistdio/u16-snprintf: Likewise.
27892         * modules/unistdio/u16-sprintf: Likewise.
27893         * modules/unistdio/u16-u16-asnprintf: Likewise.
27894         * modules/unistdio/u16-u16-asprintf: Likewise.
27895         * modules/unistdio/u16-u16-snprintf: Likewise.
27896         * modules/unistdio/u16-u16-sprintf: Likewise.
27897         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27898         * modules/unistdio/u16-u16-vasprintf: Likewise.
27899         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27900         * modules/unistdio/u16-u16-vsprintf: Likewise.
27901         * modules/unistdio/u16-vasnprintf: Likewise.
27902         * modules/unistdio/u16-vasprintf: Likewise.
27903         * modules/unistdio/u16-vsnprintf: Likewise.
27904         * modules/unistdio/u16-vsprintf: Likewise.
27905         * modules/unistdio/u32-asnprintf: Likewise.
27906         * modules/unistdio/u32-asprintf: Likewise.
27907         * modules/unistdio/u32-snprintf: Likewise.
27908         * modules/unistdio/u32-sprintf: Likewise.
27909         * modules/unistdio/u32-u32-asnprintf: Likewise.
27910         * modules/unistdio/u32-u32-asprintf: Likewise.
27911         * modules/unistdio/u32-u32-snprintf: Likewise.
27912         * modules/unistdio/u32-u32-sprintf: Likewise.
27913         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27914         * modules/unistdio/u32-u32-vasprintf: Likewise.
27915         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27916         * modules/unistdio/u32-u32-vsprintf: Likewise.
27917         * modules/unistdio/u32-vasnprintf: Likewise.
27918         * modules/unistdio/u32-vasprintf: Likewise.
27919         * modules/unistdio/u32-vsnprintf: Likewise.
27920         * modules/unistdio/u32-vsprintf: Likewise.
27921         * modules/unistdio/ulc-asnprintf: Likewise.
27922         * modules/unistdio/ulc-asprintf: Likewise.
27923         * modules/unistdio/ulc-fprintf: Likewise.
27924         * modules/unistdio/ulc-snprintf: Likewise.
27925         * modules/unistdio/ulc-sprintf: Likewise.
27926         * modules/unistdio/ulc-vasnprintf: Likewise.
27927         * modules/unistdio/ulc-vasprintf: Likewise.
27928         * modules/unistdio/ulc-vfprintf: Likewise.
27929         * modules/unistdio/ulc-vsnprintf: Likewise.
27930         * modules/unistdio/ulc-vsprintf: Likewise.
27931         * modules/unistr/u8-check: Likewise.
27932         * modules/unistr/u8-chr: Likewise.
27933         * modules/unistr/u8-cmp: Likewise.
27934         * modules/unistr/u8-cmp2: Likewise.
27935         * modules/unistr/u8-cpy: Likewise.
27936         * modules/unistr/u8-cpy-alloc: Likewise.
27937         * modules/unistr/u8-endswith: Likewise.
27938         * modules/unistr/u8-mblen: Likewise.
27939         * modules/unistr/u8-mbsnlen: Likewise.
27940         * modules/unistr/u8-mbtouc: Likewise.
27941         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27942         * modules/unistr/u8-mbtoucr: Likewise.
27943         * modules/unistr/u8-move: Likewise.
27944         * modules/unistr/u8-next: Likewise.
27945         * modules/unistr/u8-prev: Likewise.
27946         * modules/unistr/u8-set: Likewise.
27947         * modules/unistr/u8-startswith: Likewise.
27948         * modules/unistr/u8-stpcpy: Likewise.
27949         * modules/unistr/u8-stpncpy: Likewise.
27950         * modules/unistr/u8-strcat: Likewise.
27951         * modules/unistr/u8-strchr: Likewise.
27952         * modules/unistr/u8-strcmp: Likewise.
27953         * modules/unistr/u8-strcoll: Likewise.
27954         * modules/unistr/u8-strcpy: Likewise.
27955         * modules/unistr/u8-strcspn: Likewise.
27956         * modules/unistr/u8-strdup: Likewise.
27957         * modules/unistr/u8-strlen: Likewise.
27958         * modules/unistr/u8-strmblen: Likewise.
27959         * modules/unistr/u8-strmbtouc: Likewise.
27960         * modules/unistr/u8-strncat: Likewise.
27961         * modules/unistr/u8-strncmp: Likewise.
27962         * modules/unistr/u8-strncpy: Likewise.
27963         * modules/unistr/u8-strnlen: Likewise.
27964         * modules/unistr/u8-strpbrk: Likewise.
27965         * modules/unistr/u8-strrchr: Likewise.
27966         * modules/unistr/u8-strspn: Likewise.
27967         * modules/unistr/u8-strstr: Likewise.
27968         * modules/unistr/u8-strtok: Likewise.
27969         * modules/unistr/u8-to-u16: Likewise.
27970         * modules/unistr/u8-to-u32: Likewise.
27971         * modules/unistr/u8-uctomb: Likewise.
27972         * modules/unistr/u16-check: Likewise.
27973         * modules/unistr/u16-chr: Likewise.
27974         * modules/unistr/u16-cmp: Likewise.
27975         * modules/unistr/u16-cmp2: Likewise.
27976         * modules/unistr/u16-cpy: Likewise.
27977         * modules/unistr/u16-cpy-alloc: Likewise.
27978         * modules/unistr/u16-endswith: Likewise.
27979         * modules/unistr/u16-mblen: Likewise.
27980         * modules/unistr/u16-mbsnlen: Likewise.
27981         * modules/unistr/u16-mbtouc: Likewise.
27982         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27983         * modules/unistr/u16-mbtoucr: Likewise.
27984         * modules/unistr/u16-move: Likewise.
27985         * modules/unistr/u16-next: Likewise.
27986         * modules/unistr/u16-prev: Likewise.
27987         * modules/unistr/u16-set: Likewise.
27988         * modules/unistr/u16-startswith: Likewise.
27989         * modules/unistr/u16-stpcpy: Likewise.
27990         * modules/unistr/u16-stpncpy: Likewise.
27991         * modules/unistr/u16-strcat: Likewise.
27992         * modules/unistr/u16-strchr: Likewise.
27993         * modules/unistr/u16-strcmp: Likewise.
27994         * modules/unistr/u16-strcoll: Likewise.
27995         * modules/unistr/u16-strcpy: Likewise.
27996         * modules/unistr/u16-strcspn: Likewise.
27997         * modules/unistr/u16-strdup: Likewise.
27998         * modules/unistr/u16-strlen: Likewise.
27999         * modules/unistr/u16-strmblen: Likewise.
28000         * modules/unistr/u16-strmbtouc: Likewise.
28001         * modules/unistr/u16-strncat: Likewise.
28002         * modules/unistr/u16-strncmp: Likewise.
28003         * modules/unistr/u16-strncpy: Likewise.
28004         * modules/unistr/u16-strnlen: Likewise.
28005         * modules/unistr/u16-strpbrk: Likewise.
28006         * modules/unistr/u16-strrchr: Likewise.
28007         * modules/unistr/u16-strspn: Likewise.
28008         * modules/unistr/u16-strstr: Likewise.
28009         * modules/unistr/u16-strtok: Likewise.
28010         * modules/unistr/u16-to-u32: Likewise.
28011         * modules/unistr/u16-to-u8: Likewise.
28012         * modules/unistr/u16-uctomb: Likewise.
28013         * modules/unistr/u32-check: Likewise.
28014         * modules/unistr/u32-chr: Likewise.
28015         * modules/unistr/u32-cmp: Likewise.
28016         * modules/unistr/u32-cmp2: Likewise.
28017         * modules/unistr/u32-cpy: Likewise.
28018         * modules/unistr/u32-cpy-alloc: Likewise.
28019         * modules/unistr/u32-endswith: Likewise.
28020         * modules/unistr/u32-mblen: Likewise.
28021         * modules/unistr/u32-mbsnlen: Likewise.
28022         * modules/unistr/u32-mbtouc: Likewise.
28023         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28024         * modules/unistr/u32-mbtoucr: Likewise.
28025         * modules/unistr/u32-move: Likewise.
28026         * modules/unistr/u32-next: Likewise.
28027         * modules/unistr/u32-prev: Likewise.
28028         * modules/unistr/u32-set: Likewise.
28029         * modules/unistr/u32-startswith: Likewise.
28030         * modules/unistr/u32-stpcpy: Likewise.
28031         * modules/unistr/u32-stpncpy: Likewise.
28032         * modules/unistr/u32-strcat: Likewise.
28033         * modules/unistr/u32-strchr: Likewise.
28034         * modules/unistr/u32-strcmp: Likewise.
28035         * modules/unistr/u32-strcoll: Likewise.
28036         * modules/unistr/u32-strcpy: Likewise.
28037         * modules/unistr/u32-strcspn: Likewise.
28038         * modules/unistr/u32-strdup: Likewise.
28039         * modules/unistr/u32-strlen: Likewise.
28040         * modules/unistr/u32-strmblen: Likewise.
28041         * modules/unistr/u32-strmbtouc: Likewise.
28042         * modules/unistr/u32-strncat: Likewise.
28043         * modules/unistr/u32-strncmp: Likewise.
28044         * modules/unistr/u32-strncpy: Likewise.
28045         * modules/unistr/u32-strnlen: Likewise.
28046         * modules/unistr/u32-strpbrk: Likewise.
28047         * modules/unistr/u32-strrchr: Likewise.
28048         * modules/unistr/u32-strspn: Likewise.
28049         * modules/unistr/u32-strstr: Likewise.
28050         * modules/unistr/u32-strtok: Likewise.
28051         * modules/unistr/u32-to-u16: Likewise.
28052         * modules/unistr/u32-to-u8: Likewise.
28053         * modules/unistr/u32-uctomb: Likewise.
28054         * modules/uniwbrk/u8-wordbreaks: Likewise.
28055         * modules/uniwbrk/u16-wordbreaks: Likewise.
28056         * modules/uniwbrk/u32-wordbreaks: Likewise.
28057         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28058         * modules/uniwbrk/wordbreak-property: Likewise.
28059         * modules/uniwidth/u8-strwidth: Likewise.
28060         * modules/uniwidth/u8-width: Likewise.
28061         * modules/uniwidth/u16-strwidth: Likewise.
28062         * modules/uniwidth/u16-width: Likewise.
28063         * modules/uniwidth/u32-strwidth: Likewise.
28064         * modules/uniwidth/u32-width: Likewise.
28065         * modules/uniwidth/width: Likewise.
28066         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28067         with $(LIBUNISTRING).
28068         * modules/unicase/ignorable-tests: Likewise.
28069         * modules/unicase/locale-language-tests: Likewise.
28070         * modules/unicase/tolower-tests: Likewise.
28071         * modules/unicase/totitle-tests: Likewise.
28072         * modules/unicase/toupper-tests: Likewise.
28073         * modules/unicase/u8-casecmp-tests: Likewise.
28074         * modules/unicase/u8-casecoll-tests: Likewise.
28075         * modules/unicase/u8-casefold-tests: Likewise.
28076         * modules/unicase/u8-is-cased-tests: Likewise.
28077         * modules/unicase/u8-is-casefolded-tests: Likewise.
28078         * modules/unicase/u8-is-lowercase-tests: Likewise.
28079         * modules/unicase/u8-is-titlecase-tests: Likewise.
28080         * modules/unicase/u8-is-uppercase-tests: Likewise.
28081         * modules/unicase/u8-tolower-tests: Likewise.
28082         * modules/unicase/u8-totitle-tests: Likewise.
28083         * modules/unicase/u8-toupper-tests: Likewise.
28084         * modules/unicase/u16-casecmp-tests: Likewise.
28085         * modules/unicase/u16-casecoll-tests: Likewise.
28086         * modules/unicase/u16-casefold-tests: Likewise.
28087         * modules/unicase/u16-is-cased-tests: Likewise.
28088         * modules/unicase/u16-is-casefolded-tests: Likewise.
28089         * modules/unicase/u16-is-lowercase-tests: Likewise.
28090         * modules/unicase/u16-is-titlecase-tests: Likewise.
28091         * modules/unicase/u16-is-uppercase-tests: Likewise.
28092         * modules/unicase/u16-tolower-tests: Likewise.
28093         * modules/unicase/u16-totitle-tests: Likewise.
28094         * modules/unicase/u16-toupper-tests: Likewise.
28095         * modules/unicase/u32-casecmp-tests: Likewise.
28096         * modules/unicase/u32-casecoll-tests: Likewise.
28097         * modules/unicase/u32-casefold-tests: Likewise.
28098         * modules/unicase/u32-is-cased-tests: Likewise.
28099         * modules/unicase/u32-is-casefolded-tests: Likewise.
28100         * modules/unicase/u32-is-lowercase-tests: Likewise.
28101         * modules/unicase/u32-is-titlecase-tests: Likewise.
28102         * modules/unicase/u32-is-uppercase-tests: Likewise.
28103         * modules/unicase/u32-tolower-tests: Likewise.
28104         * modules/unicase/u32-totitle-tests: Likewise.
28105         * modules/unicase/u32-toupper-tests: Likewise.
28106         * modules/unicase/ulc-casecmp-tests: Likewise.
28107         * modules/unicase/ulc-casecoll-tests: Likewise.
28108         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28109         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28110         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28111         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28112         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28113         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28114         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28115         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28116         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28117         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28118         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28119         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28120         * modules/unictype/bidicategory-byname-tests: Likewise.
28121         * modules/unictype/bidicategory-name-tests: Likewise.
28122         * modules/unictype/bidicategory-of-tests: Likewise.
28123         * modules/unictype/bidicategory-test-tests: Likewise.
28124         * modules/unictype/block-list-tests: Likewise.
28125         * modules/unictype/block-of-tests: Likewise.
28126         * modules/unictype/block-test-tests: Likewise.
28127         * modules/unictype/category-C-tests: Likewise.
28128         * modules/unictype/category-Cc-tests: Likewise.
28129         * modules/unictype/category-Cf-tests: Likewise.
28130         * modules/unictype/category-Cn-tests: Likewise.
28131         * modules/unictype/category-Co-tests: Likewise.
28132         * modules/unictype/category-Cs-tests: Likewise.
28133         * modules/unictype/category-L-tests: Likewise.
28134         * modules/unictype/category-Ll-tests: Likewise.
28135         * modules/unictype/category-Lm-tests: Likewise.
28136         * modules/unictype/category-Lo-tests: Likewise.
28137         * modules/unictype/category-Lt-tests: Likewise.
28138         * modules/unictype/category-Lu-tests: Likewise.
28139         * modules/unictype/category-M-tests: Likewise.
28140         * modules/unictype/category-Mc-tests: Likewise.
28141         * modules/unictype/category-Me-tests: Likewise.
28142         * modules/unictype/category-Mn-tests: Likewise.
28143         * modules/unictype/category-N-tests: Likewise.
28144         * modules/unictype/category-Nd-tests: Likewise.
28145         * modules/unictype/category-Nl-tests: Likewise.
28146         * modules/unictype/category-No-tests: Likewise.
28147         * modules/unictype/category-P-tests: Likewise.
28148         * modules/unictype/category-Pc-tests: Likewise.
28149         * modules/unictype/category-Pd-tests: Likewise.
28150         * modules/unictype/category-Pe-tests: Likewise.
28151         * modules/unictype/category-Pf-tests: Likewise.
28152         * modules/unictype/category-Pi-tests: Likewise.
28153         * modules/unictype/category-Po-tests: Likewise.
28154         * modules/unictype/category-Ps-tests: Likewise.
28155         * modules/unictype/category-S-tests: Likewise.
28156         * modules/unictype/category-Sc-tests: Likewise.
28157         * modules/unictype/category-Sk-tests: Likewise.
28158         * modules/unictype/category-Sm-tests: Likewise.
28159         * modules/unictype/category-So-tests: Likewise.
28160         * modules/unictype/category-Z-tests: Likewise.
28161         * modules/unictype/category-Zl-tests: Likewise.
28162         * modules/unictype/category-Zp-tests: Likewise.
28163         * modules/unictype/category-Zs-tests: Likewise.
28164         * modules/unictype/category-and-not-tests: Likewise.
28165         * modules/unictype/category-and-tests: Likewise.
28166         * modules/unictype/category-byname-tests: Likewise.
28167         * modules/unictype/category-name-tests: Likewise.
28168         * modules/unictype/category-none-tests: Likewise.
28169         * modules/unictype/category-of-tests: Likewise.
28170         * modules/unictype/category-or-tests: Likewise.
28171         * modules/unictype/category-test-withtable-tests: Likewise.
28172         * modules/unictype/combining-class-tests: Likewise.
28173         * modules/unictype/ctype-alnum-tests: Likewise.
28174         * modules/unictype/ctype-alpha-tests: Likewise.
28175         * modules/unictype/ctype-blank-tests: Likewise.
28176         * modules/unictype/ctype-cntrl-tests: Likewise.
28177         * modules/unictype/ctype-digit-tests: Likewise.
28178         * modules/unictype/ctype-graph-tests: Likewise.
28179         * modules/unictype/ctype-lower-tests: Likewise.
28180         * modules/unictype/ctype-print-tests: Likewise.
28181         * modules/unictype/ctype-punct-tests: Likewise.
28182         * modules/unictype/ctype-space-tests: Likewise.
28183         * modules/unictype/ctype-upper-tests: Likewise.
28184         * modules/unictype/ctype-xdigit-tests: Likewise.
28185         * modules/unictype/decimal-digit-tests: Likewise.
28186         * modules/unictype/digit-tests: Likewise.
28187         * modules/unictype/mirror-tests: Likewise.
28188         * modules/unictype/numeric-tests: Likewise.
28189         * modules/unictype/property-alphabetic-tests: Likewise.
28190         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28191         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28192         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28193         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28194         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28195         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28196         * modules/unictype/property-bidi-control-tests: Likewise.
28197         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28198         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28199         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28200         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28201         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28202         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28203         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28204         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28205         * modules/unictype/property-bidi-pdf-tests: Likewise.
28206         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28207         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28208         * modules/unictype/property-byname-tests: Likewise.
28209         * modules/unictype/property-combining-tests: Likewise.
28210         * modules/unictype/property-composite-tests: Likewise.
28211         * modules/unictype/property-currency-symbol-tests: Likewise.
28212         * modules/unictype/property-dash-tests: Likewise.
28213         * modules/unictype/property-decimal-digit-tests: Likewise.
28214         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28215         * modules/unictype/property-deprecated-tests: Likewise.
28216         * modules/unictype/property-diacritic-tests: Likewise.
28217         * modules/unictype/property-extender-tests: Likewise.
28218         * modules/unictype/property-format-control-tests: Likewise.
28219         * modules/unictype/property-grapheme-base-tests: Likewise.
28220         * modules/unictype/property-grapheme-extend-tests: Likewise.
28221         * modules/unictype/property-grapheme-link-tests: Likewise.
28222         * modules/unictype/property-hex-digit-tests: Likewise.
28223         * modules/unictype/property-hyphen-tests: Likewise.
28224         * modules/unictype/property-id-continue-tests: Likewise.
28225         * modules/unictype/property-id-start-tests: Likewise.
28226         * modules/unictype/property-ideographic-tests: Likewise.
28227         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28228         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28229         * modules/unictype/property-ignorable-control-tests: Likewise.
28230         * modules/unictype/property-iso-control-tests: Likewise.
28231         * modules/unictype/property-join-control-tests: Likewise.
28232         * modules/unictype/property-left-of-pair-tests: Likewise.
28233         * modules/unictype/property-line-separator-tests: Likewise.
28234         * modules/unictype/property-logical-order-exception-tests: Likewise.
28235         * modules/unictype/property-lowercase-tests: Likewise.
28236         * modules/unictype/property-math-tests: Likewise.
28237         * modules/unictype/property-non-break-tests: Likewise.
28238         * modules/unictype/property-not-a-character-tests: Likewise.
28239         * modules/unictype/property-numeric-tests: Likewise.
28240         * modules/unictype/property-other-alphabetic-tests: Likewise.
28241         * modules/unictype/property-other-default-ignorable-code-point-tests:
28242         Likewise.
28243         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28244         * modules/unictype/property-other-id-continue-tests: Likewise.
28245         * modules/unictype/property-other-id-start-tests: Likewise.
28246         * modules/unictype/property-other-lowercase-tests: Likewise.
28247         * modules/unictype/property-other-math-tests: Likewise.
28248         * modules/unictype/property-other-uppercase-tests: Likewise.
28249         * modules/unictype/property-paired-punctuation-tests: Likewise.
28250         * modules/unictype/property-paragraph-separator-tests: Likewise.
28251         * modules/unictype/property-pattern-syntax-tests: Likewise.
28252         * modules/unictype/property-pattern-white-space-tests: Likewise.
28253         * modules/unictype/property-private-use-tests: Likewise.
28254         * modules/unictype/property-punctuation-tests: Likewise.
28255         * modules/unictype/property-quotation-mark-tests: Likewise.
28256         * modules/unictype/property-radical-tests: Likewise.
28257         * modules/unictype/property-sentence-terminal-tests: Likewise.
28258         * modules/unictype/property-soft-dotted-tests: Likewise.
28259         * modules/unictype/property-space-tests: Likewise.
28260         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28261         * modules/unictype/property-test-tests: Likewise.
28262         * modules/unictype/property-titlecase-tests: Likewise.
28263         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28264         * modules/unictype/property-unified-ideograph-tests: Likewise.
28265         * modules/unictype/property-uppercase-tests: Likewise.
28266         * modules/unictype/property-variation-selector-tests: Likewise.
28267         * modules/unictype/property-white-space-tests: Likewise.
28268         * modules/unictype/property-xid-continue-tests: Likewise.
28269         * modules/unictype/property-xid-start-tests: Likewise.
28270         * modules/unictype/property-zero-width-tests: Likewise.
28271         * modules/unictype/scripts-tests: Likewise.
28272         * modules/unictype/syntax-c-ident-tests: Likewise.
28273         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28274         * modules/unictype/syntax-java-ident-tests: Likewise.
28275         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28276         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28277         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28278         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28279         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28280         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28281         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28282         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28283         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28284         * modules/uniname/uniname-tests: Likewise.
28285         * modules/uninorm/canonical-decomposition-tests: Likewise.
28286         * modules/uninorm/compat-decomposition-tests: Likewise.
28287         * modules/uninorm/composition-tests: Likewise.
28288         * modules/uninorm/decomposing-form-tests: Likewise.
28289         * modules/uninorm/decomposition-tests: Likewise.
28290         * modules/uninorm/filter-tests: Likewise.
28291         * modules/uninorm/nfc-tests: Likewise.
28292         * modules/uninorm/nfd-tests: Likewise.
28293         * modules/uninorm/nfkc-tests: Likewise.
28294         * modules/uninorm/nfkd-tests: Likewise.
28295         * modules/uninorm/u8-normcmp-tests: Likewise.
28296         * modules/uninorm/u8-normcoll-tests: Likewise.
28297         * modules/uninorm/u16-normcmp-tests: Likewise.
28298         * modules/uninorm/u16-normcoll-tests: Likewise.
28299         * modules/uninorm/u32-normcmp-tests: Likewise.
28300         * modules/uninorm/u32-normcoll-tests: Likewise.
28301         * modules/unistdio/u8-asnprintf-tests: Likewise.
28302         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28303         * modules/unistdio/u8-vasprintf-tests: Likewise.
28304         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28305         * modules/unistdio/u8-vsprintf-tests: Likewise.
28306         * modules/unistdio/u16-asnprintf-tests: Likewise.
28307         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28308         * modules/unistdio/u16-vasprintf-tests: Likewise.
28309         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28310         * modules/unistdio/u16-vsprintf-tests: Likewise.
28311         * modules/unistdio/u32-asnprintf-tests: Likewise.
28312         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28313         * modules/unistdio/u32-vasprintf-tests: Likewise.
28314         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28315         * modules/unistdio/u32-vsprintf-tests: Likewise.
28316         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28317         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28318         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28319         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28320         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28321         * modules/unistr/u8-check-tests: Likewise.
28322         * modules/unistr/u8-chr-tests: Likewise.
28323         * modules/unistr/u8-cmp-tests: Likewise.
28324         * modules/unistr/u8-cmp2-tests: Likewise.
28325         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28326         * modules/unistr/u8-cpy-tests: Likewise.
28327         * modules/unistr/u8-mblen-tests: Likewise.
28328         * modules/unistr/u8-mbsnlen-tests: Likewise.
28329         * modules/unistr/u8-mbtouc-tests: Likewise.
28330         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28331         * modules/unistr/u8-mbtoucr-tests: Likewise.
28332         * modules/unistr/u8-move-tests: Likewise.
28333         * modules/unistr/u8-next-tests: Likewise.
28334         * modules/unistr/u8-prev-tests: Likewise.
28335         * modules/unistr/u8-set-tests: Likewise.
28336         * modules/unistr/u8-stpcpy-tests: Likewise.
28337         * modules/unistr/u8-stpncpy-tests: Likewise.
28338         * modules/unistr/u8-strcat-tests: Likewise.
28339         * modules/unistr/u8-strcmp-tests: Likewise.
28340         * modules/unistr/u8-strcoll-tests: Likewise.
28341         * modules/unistr/u8-strcpy-tests: Likewise.
28342         * modules/unistr/u8-strdup-tests: Likewise.
28343         * modules/unistr/u8-strlen-tests: Likewise.
28344         * modules/unistr/u8-strmblen-tests: Likewise.
28345         * modules/unistr/u8-strmbtouc-tests: Likewise.
28346         * modules/unistr/u8-strncat-tests: Likewise.
28347         * modules/unistr/u8-strncmp-tests: Likewise.
28348         * modules/unistr/u8-strncpy-tests: Likewise.
28349         * modules/unistr/u8-strnlen-tests: Likewise.
28350         * modules/unistr/u8-to-u16-tests: Likewise.
28351         * modules/unistr/u8-to-u32-tests: Likewise.
28352         * modules/unistr/u8-uctomb-tests: Likewise.
28353         * modules/unistr/u16-check-tests: Likewise.
28354         * modules/unistr/u16-chr-tests: Likewise.
28355         * modules/unistr/u16-cmp-tests: Likewise.
28356         * modules/unistr/u16-cmp2-tests: Likewise.
28357         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28358         * modules/unistr/u16-cpy-tests: Likewise.
28359         * modules/unistr/u16-mblen-tests: Likewise.
28360         * modules/unistr/u16-mbsnlen-tests: Likewise.
28361         * modules/unistr/u16-mbtouc-tests: Likewise.
28362         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28363         * modules/unistr/u16-mbtoucr-tests: Likewise.
28364         * modules/unistr/u16-move-tests: Likewise.
28365         * modules/unistr/u16-next-tests: Likewise.
28366         * modules/unistr/u16-prev-tests: Likewise.
28367         * modules/unistr/u16-set-tests: Likewise.
28368         * modules/unistr/u16-stpcpy-tests: Likewise.
28369         * modules/unistr/u16-stpncpy-tests: Likewise.
28370         * modules/unistr/u16-strcat-tests: Likewise.
28371         * modules/unistr/u16-strcmp-tests: Likewise.
28372         * modules/unistr/u16-strcoll-tests: Likewise.
28373         * modules/unistr/u16-strcpy-tests: Likewise.
28374         * modules/unistr/u16-strdup-tests: Likewise.
28375         * modules/unistr/u16-strlen-tests: Likewise.
28376         * modules/unistr/u16-strmblen-tests: Likewise.
28377         * modules/unistr/u16-strmbtouc-tests: Likewise.
28378         * modules/unistr/u16-strncat-tests: Likewise.
28379         * modules/unistr/u16-strncmp-tests: Likewise.
28380         * modules/unistr/u16-strncpy-tests: Likewise.
28381         * modules/unistr/u16-strnlen-tests: Likewise.
28382         * modules/unistr/u16-to-u32-tests: Likewise.
28383         * modules/unistr/u16-to-u8-tests: Likewise.
28384         * modules/unistr/u16-uctomb-tests: Likewise.
28385         * modules/unistr/u32-check-tests: Likewise.
28386         * modules/unistr/u32-chr-tests: Likewise.
28387         * modules/unistr/u32-cmp-tests: Likewise.
28388         * modules/unistr/u32-cmp2-tests: Likewise.
28389         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28390         * modules/unistr/u32-cpy-tests: Likewise.
28391         * modules/unistr/u32-mblen-tests: Likewise.
28392         * modules/unistr/u32-mbsnlen-tests: Likewise.
28393         * modules/unistr/u32-mbtouc-tests: Likewise.
28394         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28395         * modules/unistr/u32-mbtoucr-tests: Likewise.
28396         * modules/unistr/u32-move-tests: Likewise.
28397         * modules/unistr/u32-next-tests: Likewise.
28398         * modules/unistr/u32-prev-tests: Likewise.
28399         * modules/unistr/u32-set-tests: Likewise.
28400         * modules/unistr/u32-stpcpy-tests: Likewise.
28401         * modules/unistr/u32-stpncpy-tests: Likewise.
28402         * modules/unistr/u32-strcat-tests: Likewise.
28403         * modules/unistr/u32-strcmp-tests: Likewise.
28404         * modules/unistr/u32-strcoll-tests: Likewise.
28405         * modules/unistr/u32-strcpy-tests: Likewise.
28406         * modules/unistr/u32-strdup-tests: Likewise.
28407         * modules/unistr/u32-strlen-tests: Likewise.
28408         * modules/unistr/u32-strmblen-tests: Likewise.
28409         * modules/unistr/u32-strmbtouc-tests: Likewise.
28410         * modules/unistr/u32-strncat-tests: Likewise.
28411         * modules/unistr/u32-strncmp-tests: Likewise.
28412         * modules/unistr/u32-strncpy-tests: Likewise.
28413         * modules/unistr/u32-strnlen-tests: Likewise.
28414         * modules/unistr/u32-to-u16-tests: Likewise.
28415         * modules/unistr/u32-to-u8-tests: Likewise.
28416         * modules/unistr/u32-uctomb-tests: Likewise.
28417         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28418         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28419         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28420         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28421         * modules/uniwidth/u8-strwidth-tests: Likewise.
28422         * modules/uniwidth/u8-width-tests: Likewise.
28423         * modules/uniwidth/u16-strwidth-tests: Likewise.
28424         * modules/uniwidth/u16-width-tests: Likewise.
28425         * modules/uniwidth/u32-strwidth-tests: Likewise.
28426         * modules/uniwidth/u32-width-tests: Likewise.
28427         * modules/uniwidth/width-tests: Likewise.
28428
28429 2010-05-18  Richard Jones  <rjones@redhat.com>
28430
28431         doc: users.txt: list hivex
28432         * users.txt: Add hivex.
28433
28434 2010-05-18  Richard Jones  <rjones@redhat.com>
28435
28436         doc: users.txt: list febootstrap
28437         * users.txt: Add febootstrap.
28438
28439 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28440
28441         bootstrap: fix an error when gnulib is not used as a git submodule
28442         * build-aux/bootstrap (gnulib_path): If its length is zero then
28443         assign "gnulib" to it.
28444         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28445
28446 2010-05-16  Bruno Haible  <bruno@clisp.org>
28447
28448         Avoid autoconf warnings about AM_ICONV.
28449         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28450         2.64.
28451
28452 2010-05-16  Bruno Haible  <bruno@clisp.org>
28453
28454         absolute-header: Make the macro usable in more situations.
28455         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28456         from gl_ABSOLUTE_HEADER.
28457         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28458
28459 2010-05-16  James Youngman  <jay@gnu.org>
28460
28461         doc: update users.txt
28462         * users.txt: Add CSSC.
28463
28464 2010-05-16  Jim Meyering  <meyering@redhat.com>
28465
28466         init.sh: fix an error in the previous change; add more comments
28467         * tests/init.sh: Compare exit code in loop against 9, not 2.
28468         Patch by Bruno Haible.
28469         Make the two tests more similar by adding an empty "then" clause.
28470         Add comments.
28471
28472         init.sh: avoid unnecessary shell re-exec
28473         * tests/init.sh: Improve the re-exec-required check to first test the
28474         current shell.  If it passes the test, do not search for a shell that
28475         does pass, and do not re-exec.  This test is particularly contorted to
28476         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28477         of $(...) evokes a syntax error and causes immediate shell exit with
28478         status 2.  Bruno Haible reported that the re-exec made it impossible
28479         to single-step through any init.sh-using script.
28480
28481 2010-05-16  Bruno Haible  <bruno@clisp.org>
28482
28483         Fix collision between gnulib's and libintl's printf replacements.
28484         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28485         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28486         (printf): When using GNU C, map the __printf__ function to rpl_printf
28487         via __asm__. When not using GNU C, define rpl_printf instead of
28488         __printf__.
28489         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28490         commit.
28491         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28492         commit.
28493         * m4/asm-underscore.m4: New file.
28494         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28495         * modules/stdio (Files): Add m4/asm-underscore.m4.
28496         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28497         Reported by Ben Pfaff.
28498
28499 2010-05-16  Bruno Haible  <bruno@clisp.org>
28500
28501         verify: Avoid skipping the test on openSUSE 11.0.
28502         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28503
28504 2010-05-13  Bruno Haible  <bruno@clisp.org>
28505
28506         Avoid useless warnings from G++.
28507         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28508         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28510
28511 2010-05-11  Jim Meyering  <meyering@redhat.com>
28512
28513         maint.mk: tweak preceding change
28514         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28515         regexps tighter by anchoring at EOL, and make the new group "shy"
28516         for slightly decreased overhead.
28517
28518 2010-05-11  Eric Blake  <eblake@redhat.com>
28519
28520         maint.mk: gnulib doesn't guarantee NSIG
28521         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28522
28523 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28524
28525         test-pwrite.c: Remove unused variable declaration.
28526         * tests/test-pwrite.c (main): Remove read_buf declaration.
28527
28528         Remove useless test-pwrite.sh file.
28529         * tests/test-pwrite.sh: Delete file.
28530         * modules/pwrite-tests: Remove references.
28531         Reported by Bruno Haible.
28532
28533 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28534
28535         init.sh: fix a typo
28536         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28537
28538 2010-05-10  Jim Meyering  <meyering@redhat.com>
28539
28540         maint.mk: avoid using a temporary file in the always-defined-macros check
28541         * top/maint.mk (.re-defmac): Remove rule.
28542         (gl_trap_): Remove definition.
28543         (sc_prohibit_always-defined_macros): Rewrite not to create and
28544         depend on a temporary file.  Instead, depend on GNU grep's ability
28545         to read a list of regular expressions from stdin when given "-f -".
28546
28547 2010-05-09  Bruno Haible  <bruno@clisp.org>
28548
28549         Update to GNU gettext 0.18, part 1.
28550         * m4/gettext.m4: Update to GNU gettext 0.18.
28551         * m4/intl.m4: Likewise.
28552         * m4/po.m4: Likewise.
28553         * modules/gettext (Files): Add m4/fcntl-o.m4.
28554         (configure.ac): Require gettext infrastructure from version 0.18.
28555
28556 2010-05-09  Jim Meyering  <meyering@redhat.com>
28557
28558         init.sh: enable MALLOC_PERTURB_
28559         * tests/init.sh: Enable glibc's malloc-perturbing option.
28560
28561         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28562         With my recent change in init.sh from the two-line form:
28563             -#   : ${srcdir=.}
28564             -#   . "$srcdir/init.sh"; path_prepend_ .
28565             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28566         I noticed that using the one-line form would cause this test
28567         to fail with a false-positive, or to stop working altogether,
28568         depending on whether help-version changed or all the tests did.
28569         * top/maint.mk (_hv_regex): Remove this definition.
28570         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28571         (_hv_regex_strong): Use a stronger regex to check for conformance.
28572         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28573         Give a separate diagnostic for lack of conforming use.
28574
28575         maint.mk: prohibit definition of symbols defined by gnulib
28576         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28577         definition of symbols defined by gnulib.
28578
28579 2010-05-09  Bruno Haible  <bruno@clisp.org>
28580
28581         acl: Avoid test failure on Cygwin-hosted mingw.
28582         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28583
28584 2010-05-09  Bruno Haible  <bruno@clisp.org>
28585
28586         error: Use system's fcntl function.
28587         * lib/error.c (fcntl): Undefine.
28588
28589 2010-05-09  Jim Meyering  <meyering@redhat.com>
28590
28591         verify: adjust formatting to be more consistent
28592         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28593         argument-list '('s, and after one comma.
28594
28595 2010-05-09  Bruno Haible  <bruno@clisp.org>
28596
28597         error: More reliable output on mingw.
28598         * lib/error.c: Include <windows.h>.
28599         (is_open): New function.
28600         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28601         defined.
28602
28603 2010-05-09  Bruno Haible  <bruno@clisp.org>
28604
28605         vasnprintf: Fix syntax errors in libintl build on mingw.
28606         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28607         pad_ourselves and prec_ourselves after use.
28608
28609 2010-05-08  Bruno Haible  <bruno@clisp.org>
28610
28611         * lib/config.charset: Update comments for Cygwin 1.7.
28612         * lib/localcharset.c: Likewise.
28613
28614 2010-05-07  Jim Meyering  <meyering@redhat.com>
28615
28616         init.sh: improve comments
28617         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28618         . "${srcdir=.}/init.sh"; path_prepend_ .
28619         Add a note about path_prepend_ and the alternative of using
28620         TESTS_ENVIRONMENT.
28621
28622 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28623
28624         exclude: Unescape hashed patterns in wildcard mode.
28625         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28626         to the hash list.
28627         * tests/test-exclude8.sh: New test case.
28628         * modules/exclude-tests: Add new test.
28629
28630 2010-05-05  Eric Blake  <eblake@redhat.com>
28631
28632         verify: automate tests
28633         * modules/verify-tests: New module.
28634         * tests/test-verify.sh: New file.
28635         * tests/test-verify.c: Guard each negative test with a unique id.
28636         Also avoid warning about unused left hand of comma expressions.
28637
28638 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28639
28640         Further improvements to verify.h, suggested by Eric Blake.
28641         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28642         the GL_* versions, to avoid collision with OpenGL.
28643         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28644         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28645         than testing merely whether it's defined.
28646
28647         Modify verify.h to pacify gcc -Wredundant_decls.
28648         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28649         These use the prefix "GL_" since they're likely to be useful elsewhere.
28650         We may need to break them out into a different .h file.
28651         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28652         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28653         of verify_function__.
28654
28655 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28656
28657         Tests for module pwrite.
28658         * modules/pwrite-tests: New file.
28659         * tests/test-pwrite.sh: New file.
28660         * tests/test-pwrite.c: New file.
28661
28662         New module pwrite.
28663         * lib/unistd.in.h (pwrite): New declaration.
28664         * lib/pwrite.c: New file, from glibc with modifications.
28665         * m4/pwrite.m4: New file.
28666         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28668         REPLACE_PWRITE.
28669         * modules/pwrite: New file.
28670         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28671         REPLACE_PWRITE.
28672         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28673         * doc/posix-functions/pwrite.texi: Mention the new module.
28674
28675 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28676
28677         pread: Update documentation.
28678         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28679
28680 2010-05-04  Eric Blake  <eblake@redhat.com>
28681
28682         docs: update cygwin progress
28683         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28684         this bug.
28685         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28686         Added in cygwin 1.7.2.
28687         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28688         Likewise.
28689         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28690         Likewise.
28691         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28692         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28693         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28694         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28695         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28696         Mention nproc module.
28697         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28698         bug in cygwin 1.7.5 addition.
28699         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28700         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28701         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28702         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28703         1.7.5.
28704         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28705         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28706         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28707         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28708         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28709         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28710         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28711         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28712         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28713         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28714         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28715         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28716         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28717         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28718         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28719         Likewise.
28720         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28721         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28722         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28723         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28724         Likewise.
28725         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28726         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28727         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28728         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28729         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28730         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28731         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28732         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28733         Likewise.
28734         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28735         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28736         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28737         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28738         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28739         Likewise.
28740         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28741         Likewise.
28742         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28743         Likewise.
28744         * doc/glibc-functions/xdrrec_endofrecord.texi
28745         (xdrrec_endofrecord): Likewise.
28746         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28747         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28748         Likewise.
28749         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28750         Likewise.
28751
28752 2010-05-04  Jim Meyering  <meyering@redhat.com>
28753
28754         gendocs.sh: make its "-s FILE" option more useful
28755         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28756         $PACKAGE to reflect the probably-different basename of "FILE".
28757
28758 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28759
28760         bootstrap: don't ignore download_po_files failure
28761         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28762         failure.
28763
28764 2010-05-03  Jim Meyering  <meyering@redhat.com>
28765
28766         maint.mk: allow to pass options to gendocs.sh
28767         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28768         (gendocs_options_): New overridable variable.
28769
28770         gnu-web-doc-update: don't ignore configure or build failure
28771         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28772
28773         announce-gen: backslash-escape '@'s in --help output
28774         * build-aux/announce-gen: Fix syntax errors.
28775
28776         maint.mk, announce-gen: allow project-specific announcement mail headers
28777         * top/maint.mk (translation_project_): Define default.
28778         (announcement_Cc_, announcement_mail_headers_): Likewise.
28779         (announcement): Invoke announce-gen with new --mail-headers option.
28780         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28781
28782         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28783         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28784         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28785         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28786         line in the "err2" output file when running "make check" in verbose
28787         mode (i.e., with set -x enabled).
28788
28789 2010-05-03  Bruno Haible  <bruno@clisp.org>
28790
28791         wctob: Fix for weird platforms.
28792         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28793         argument value.
28794
28795 2010-05-03  Jim Meyering  <meyering@redhat.com>
28796
28797         maint.mk: prohibit unwarranted use of <strings.h>
28798         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28799         strings.h in a file that does not also use strcasecmp, strncasecmp,
28800         ffs or ffsll.
28801
28802         maint.mk: remove obsolete comments
28803         * top/maint.mk: Remove stale, commented-out rules.
28804
28805 2010-05-02  Bruno Haible  <bruno@clisp.org>
28806
28807         wcwidth: Declare also when it's aliased.
28808         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28809         macro.
28810
28811 2010-05-02  Bruno Haible  <bruno@clisp.org>
28812
28813         Fix regression from 2010-04-25.
28814         * gnulib-tool (func_modules_transitive_closure): Check the status of
28815         all modules, not only of the tests that are of the form foo-tests where
28816         foo is a module.
28817
28818 2010-05-02  Bruno Haible  <bruno@clisp.org>
28819
28820         wctob: Work around nasty Cygwin 1.7.2 bug.
28821         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28822         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28823
28824 2010-05-01  Bruno Haible  <bruno@clisp.org>
28825
28826         fpurge: Sharper test.
28827         * tests/test-fpurge.c (main): Add one more ftell check.
28828         * modules/fpurge-tests (Depends-on): Add ftell.
28829         Suggested by Eric Blake.
28830
28831 2010-05-01  Bruno Haible  <bruno@clisp.org>
28832
28833         ftello: Another test.
28834         * tests/test-ftello3.c: New file.
28835         * modules/ftello-tests (Files): Add it.
28836         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28837         MOSTLYCLEANFILES.
28838
28839         ftell: Another test.
28840         * tests/test-ftell3.c: New file.
28841         * modules/ftell-tests (Files): Add it.
28842         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28843         MOSTLYCLEANFILES.
28844
28845 2010-05-01  Bruno Haible  <bruno@clisp.org>
28846
28847         ftell, ftello: Work around Solaris bug.
28848         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28849         * lib/ftello.c: Include stdio-impl.h.
28850         (ftello): On Solaris, when _IOWRT is set, compute the result without
28851         looking at _IOREAD.
28852         * modules/ftello (Files): Add lib/stdio-impl.h.
28853         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28854         * doc/posix-functions/ftello.texi: Likewise.
28855         Reported by Eric Blake.
28856
28857 2010-05-01  Bruno Haible  <bruno@clisp.org>
28858
28859         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28860         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28861         the _IOWRT flag is also set.
28862
28863 2010-05-01  Bruno Haible  <bruno@clisp.org>
28864
28865         Fix doc about a HP-UX stdio bug.
28866         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28867         * doc/posix-functions/ftello.texi: Likewise.
28868
28869 2010-05-01  Bruno Haible  <bruno@clisp.org>
28870
28871         lseek test: Fix failure on Solaris.
28872         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28873         output.
28874
28875 2010-04-30  Jim Meyering  <meyering@redhat.com>
28876
28877         bootstrap: don't ignore failure to generate po*/Makevars
28878         * build-aux/bootstrap (with_gettext): Don't ignore failure
28879         to create po/Makevars or runtime-po/Makevars.
28880
28881 2010-04-29  Eric Blake  <eblake@redhat.com>
28882
28883         headers: relax license to LGPLv2+
28884         * modules/fcntl-h (License): Relax license.
28885         * modules/getopt-posix (License): Likewise.
28886         * modules/locale (License): Likewise.
28887         * modules/math (License): Likewise.
28888         * modules/pty (License): Likewise.
28889         * modules/sched (License): Likewise.
28890         * modules/search (License): Likewise.
28891         * modules/spawn (License): Likewise.
28892         * modules/stdarg (License): Likewise.
28893         * modules/sysexits (License): Likewise.
28894
28895 2010-04-29  Jim Meyering  <meyering@redhat.com>
28896
28897         inttypes: relax license to LGPLv2+
28898         * modules/inttypes (License): Relax license.
28899
28900 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28901
28902         * top/maint.mk (indent): Run twice to produce idempotent results.
28903
28904 2010-04-28  Bruno Haible  <bruno@clisp.org>
28905
28906         getdate: Generate getdate.c in the source directory.
28907         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28908         MOSTLYCLEANFILES.
28909         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28910
28911 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28912
28913         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28914         is not declared as a const *; avoid warnings in that case.
28915
28916 2010-04-28  Eric Blake  <eblake@redhat.com>
28917
28918         canonicalize-lgpl: avoid compiler warning
28919         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28920         declaration' / 'extraneous semicolon' warning with some compilers.
28921         Reported by Andreas Gruenbacher.
28922
28923 2010-04-28  Jim Meyering  <meyering@redhat.com>
28924
28925         init.sh: ensure a more reliable exit status when exiting via trap
28926         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28927         Inspired by patches from Dmitry V. Levin.
28928         Also trap on signal 3 (SIGQUIT).
28929
28930 2010-04-27  Bruno Haible  <bruno@clisp.org>
28931
28932         Update doc about utimes().
28933         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28934         'utimens' module.
28935         Reported by Andreas Gruenbacher <agruen@suse.de>.
28936
28937 2010-04-27  Eric Blake  <eblake@redhat.com>
28938
28939         full-read, full-write: relax license
28940         * modules/full-read (License): Drop to LGPLv2+.
28941         * modules/full-write (License): Likewise.
28942         * modules/safe-read (License): Likewise.
28943         * modules/safe-write (License): Likewise.
28944
28945         pthread: mention library for linking
28946         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28947
28948 2010-04-27  Jim Meyering  <meyering@redhat.com>
28949
28950         maint.mk: fix a bug introduced in last change
28951         * top/maint.mk (gl_assured_headers_): Now that all names are on
28952         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28953         is not anchored to end of word, it should be adequate.
28954
28955         maint.mk: avoid side-effect in latest syntax-check
28956         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28957         to run commands via $(shell...), and hence to incur cost only when
28958         the new rule is actually run.
28959
28960         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28961         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28962         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28963         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28964         (gl_assured_headers_, az_, AZ_): Define.
28965         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28966
28967 2010-04-26  Jim Meyering  <jim@meyering.net>
28968             Bruno Haible  <bruno@clisp.org>
28969
28970         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28971         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28972         Prompted by an exchange with Gilles Espinasse.
28973
28974 2010-04-26  Jim Meyering  <meyering@redhat.com>
28975
28976         git-version-gen: aesthetic tweak
28977         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28978         so that the command remains on a single line.
28979
28980 2010-04-26  Eric Blake  <eblake@redhat.com>
28981
28982         git-version-gen: allow use on EBCDIC hosts
28983         * build-aux/git-version-gen (dirty): Use literal rather than tying
28984         ourselves to ascii.
28985         Reported by Steve Goetze.
28986
28987 2010-04-25  Bruno Haible  <bruno@clisp.org>
28988
28989         netdb: Add support for GNULIB_POSIXCHECK.
28990         * lib/netdb.in.h: Include warn-on-use.h.
28991         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28992         functions are used when GNULIB_POSIXCHECK is defined and the
28993         getaddrinfo module is not in use.
28994         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28995         freeaddrinfo, gai_strerror, getnameinfo are declared.
28996         * modules/netdb (Depends-on): Add warn-on-use.
28997         (Makefile.am): Include warn-on-use.h in netdb.h.
28998
28999 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29000
29001         build: avoid "make check" failure without .git/ directory
29002         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29003         there is no .git/ directory.
29004
29005 2010-04-25  Bruno Haible  <bruno@clisp.org>
29006
29007         ptsname: Fix misuse of ttyname_r.
29008         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29009         of errno.
29010
29011 2010-04-25  Bruno Haible  <bruno@clisp.org>
29012
29013         ttyname_r: Make it work on Solaris 10.
29014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29015         if the system function has the POSIX declaration. Test whether the
29016         function fails if the buffer is less than 128 bytes large.
29017         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29018         system's ttyname_r function. Provide a reasonably large buffer.
29019         * modules/ttyname_r (Depends-on): Add extensions.
29020         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29021
29022 2010-04-25  Bruno Haible  <bruno@clisp.org>
29023
29024         Use the 'extensions' module for some more functions on Solaris.
29025         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29026         module.
29027         * doc/posix-functions/ctime_r.texi: Likewise.
29028         * doc/posix-functions/getgrgid_r.texi: Likewise.
29029         * doc/posix-functions/getgrnam_r.texi: Likewise.
29030         * doc/posix-functions/getpwnam_r.texi: Likewise.
29031         * doc/posix-functions/getpwuid_r.texi: Likewise.
29032         * doc/posix-functions/readdir_r.texi: Likewise.
29033         * doc/posix-functions/sigwait.texi: Likewise.
29034         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29035         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29036
29037 2010-04-25  Bruno Haible  <bruno@clisp.org>
29038
29039         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29040         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29041         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29042         * lib/ttyname_r.c: Include <limits.h>.
29043         (ttyname_r): Define using the system's ttyname_r function, if it exists
29044         and not on Solaris.
29045         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29046         set.
29047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29048         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29049         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29050         Reported by Simon Josefsson.
29051
29052 2010-04-25  Bruno Haible  <bruno@clisp.org>
29053
29054         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29055         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29056         * doc/posix-functions/ctime_r.texi: Likewise.
29057         * doc/posix-functions/getgrgid_r.texi: Likewise.
29058         * doc/posix-functions/getgrnam_r.texi: Likewise.
29059         * doc/posix-functions/getlogin_r.texi: Likewise.
29060         * doc/posix-functions/getpwnam_r.texi: Likewise.
29061         * doc/posix-functions/getpwuid_r.texi: Likewise.
29062         * doc/posix-functions/readdir_r.texi: Likewise.
29063         * doc/posix-functions/sigwait.texi: Likewise.
29064         * doc/posix-functions/ttyname_r.texi: Likewise.
29065         Reported by Simon Josefsson.
29066
29067 2010-04-25  Bruno Haible  <bruno@clisp.org>
29068
29069         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29070         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29071         also to --create-testdir.
29072         (func_acceptable): Don't consider the status of *-tests modules here.
29073         (func_modules_transitive_closure): Consider it here, before including a
29074         test module.
29075         (func_import, func_create_testdir): Set inc_all_direct_tests,
29076         inc_all_indirect_tests.
29077         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29078         --create-testdir and --create-megatestdir.
29079
29080 2010-04-25  Bruno Haible  <bruno@clisp.org>
29081
29082         gnulib-tool: Add --without-*-tests options.
29083         * gnulib-tool (func_usage): Document the --without-*-tests options.
29084         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29085         excl_unportable_tests): New variables.
29086         Fail if they are specified with --import or --update.
29087         (func_acceptable): Respect the excl_*_tests variables.
29088         (func_import): Set the excl_*_tests variables to empty.
29089
29090 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29091             Bruno Haible  <bruno@clisp.org>
29092
29093         Work around a MacOS X 10.4 bug with openpty.
29094         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29095         * tests/test-openpty.c (main): Close the master side explicitly.
29096
29097 2010-04-25  Bruno Haible  <bruno@clisp.org>
29098
29099         strnlen: Fix a C++ test error on MacOS X and Solaris.
29100         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29101         the function is not declared.
29102         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29103         Simon Josefsson.
29104
29105 2010-04-24  Bruno Haible  <bruno@clisp.org>
29106
29107         Avoid a gcc warning.
29108         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29109         of correct type for %08lx directive.
29110         Reported by Eric Blake.
29111
29112 2010-04-24  Bruno Haible  <bruno@clisp.org>
29113
29114         vasnprintf: Correct errno value in case of out-of-memory.
29115         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29116         or sprintf. Use the errno value from SNPRINTF or sprintf.
29117         Reported by Ian Beckwith <ianb@erislabs.net>.
29118
29119 2010-04-24  Bruno Haible  <bruno@clisp.org>
29120
29121         ansi-c++-opt: Find correct compiler when cross-compiling.
29122         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29123         AC_CHECK_PROGS.
29124         Reported by Simon Josefsson.
29125
29126 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29127
29128         vc-list-files: Add support for subversion
29129         * build-aux/vc-list-files: Use "svn list" to generate the list of
29130         files controlled by subversion.
29131
29132 2010-04-23  Jim Meyering  <meyering@redhat.com>
29133
29134         vc-list-files tests: convert to use init.sh
29135         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29136         path_prepend_.
29137         Use Exit, not exit.
29138         Use skip_ rather than open coding it.
29139         Remove trap set-up and compare definitions.
29140         * tests/test-vc-list-files-git.sh: Likewise.
29141         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29142
29143 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29144
29145         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29146         backup files.
29147
29148 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29149
29150         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29151
29152 2010-04-20  Eric Blake  <eblake@redhat.com>
29153
29154         tests: be robust to ignored SIGPIPE
29155         * tests/test-select-in.sh: Consume all output.
29156         * tests/test-lseek.sh: Check correct exit status, while avoiding
29157         EPIPE.
29158
29159 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29160             Bruno Haible  <bruno@clisp.org>
29161
29162         visibility: Don't use -fvisibility if it leads to a warning.
29163         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29164         yes, don't pretend that visibility works if it leads to a warning.
29165         Reported by Mike Gran <spk121@yahoo.com>.
29166
29167 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29168
29169         * build-aux/bootstrap: Use "git -h" for testing for supported options
29170         instead of "git --help".  The short-form option only shows a summary,
29171         and doesn't layout the full man page.  Grep for the full option name
29172         in the summary, too.
29173
29174 2010-04-19  Bruno Haible  <bruno@clisp.org>
29175
29176         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29177         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29178         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29179         mention of RELOCATABLE_STRIP.
29180         Reported by Sylvain Beucler <beuc@beuc.net>.
29181
29182 2010-04-19  Bruno Haible  <bruno@clisp.org>
29183
29184         * lib/diffseq.h: Fix typo in comment.
29185         Reported by Eric Blake.
29186
29187 2010-04-19  Bruno Haible  <bruno@clisp.org>
29188
29189         ioctl: Move autoconf macro to a .m4 file.
29190         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29191         * modules/ioctl (Files): Add it.
29192         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29193         Reported by Ian Beckwith <ianb@erislabs.net>.
29194
29195 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29196             Bruno Haible  <bruno@clisp.org>
29197
29198         diffseq: Accommodate use-case with abstract arrays.
29199         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29200         is not defined.
29201         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29202         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29203
29204 2010-04-18  Bruno Haible  <bruno@clisp.org>
29205
29206         * doc/posix-headers/stdbool.texi: More precise wording.
29207
29208 2010-04-17  Jim Meyering  <meyering@redhat.com>
29209
29210         maint.mk: use gnu-style indentation in an embedded perl script
29211         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29212         Rename variable: s/two/last_two_bytes/
29213
29214 2010-04-16  Eric Blake  <eblake@redhat.com>
29215
29216         test-stdbool: skip test that fails with Solaris CC
29217         * tests/test-stdbool.c (f): Skip test that causes compilation
29218         error under buggy C++ compiler.
29219         * lib/stdbool.in.h: Document the limitation.
29220         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29221
29222         setenv: allow compilation with C++
29223         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29224         register keyword.
29225
29226         stdint: allow test to pass with C++
29227         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29228
29229         getopt: allow compilation with C++
29230         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29231         struct.
29232         * lib/getopt.c (_getopt_internal_r): Use correct type.
29233         Reported by Dagobert Michelson, via Joel E. Denny.
29234
29235 2010-04-16  Bruno Haible  <bruno@clisp.org>
29236
29237         Override netdb.h always.
29238         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29240         Reported by Ludovic Courtès <ludo@gnu.org>.
29241
29242 2010-04-15  Bruno Haible  <bruno@clisp.org>
29243
29244         openpty: Fix mistake from 2010-03-21.
29245         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29246         Reported by Simon Josefsson.
29247
29248 2010-04-15  Eric Blake  <eblake@redhat.com>
29249
29250         test-forkpty: fix expected signature
29251         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29252         Reported by Simon Josefsson.
29253
29254 2010-04-15  Jim Meyering  <meyering@redhat.com>
29255
29256         maint.mk: texinfo_suffix_re_: correct the default regexp
29257         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29258
29259         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29260         make it configurable via texinfo_suffix_re_.
29261
29262 2010-04-14  Eric Blake  <eblake@redhat.com>
29263
29264         strtok_r: relax license to LGPLv2+
29265         * modules/strtok_r (License): Relax license.
29266         Reported by Matthias Bolte.
29267
29268 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29269
29270         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29271         version 1.4.4 by default instead of requiring the libgcrypt
29272         version used during build.  This makes it possible to use the
29273         application with older but still binary compatible libgcrypt
29274         versions.
29275
29276 2010-04-13  Eric Blake  <eblake@redhat.com>
29277
29278         getopt-gnu: match recent glibc fixes and posix ruling
29279         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29280         '+' handling, when requesting extensions.
29281         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29282         'W;' handling.
29283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29284         * doc/posix-functions/getopt.texi (getopt): Document this.
29285         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29286         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29287         Likewise.
29288
29289         getopt: merge bug fixes from glibc
29290         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29291         diagnostics.  Honor '+:' correctly.  Reject ';'.
29292
29293         getopt-posix: detect MacOS bug
29294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29295         optind when missing a required argument.
29296         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29297         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29298         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29299         Likewise.
29300
29301         getopt-posix: avoid spurious failure on Solaris
29302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29303         an indicator that setting optind=1 is sufficient for reset.
29304
29305         getopt-posix: avoid spurious failure on FreeBSD
29306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29307         in POSIX mode, since the m4 test uses it.
29308
29309         gnulib-tool: silence warning on BSD sh
29310         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29311
29312 2010-04-13  Jim Meyering  <meyering@redhat.com>
29313
29314         doc: users.txt: GNU patch now uses gnulib
29315         * users.txt: Add patch.
29316
29317 2010-04-12  Jim Meyering  <meyering@redhat.com>
29318
29319         maint.mk: generate more concise timing data for syntax-check rules
29320         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29321         " done" from each line that reports a syntax-check test duration.
29322
29323 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29324
29325         git-version-gen: use "git update-index..." rather than "git status"
29326         * build-aux/git-version-gen: Use git update-index --refresh, not
29327         "git status".  With some versions of git, "git status" would fail
29328         to update the index and result in an unwarranted "-dirty" suffix.
29329
29330 2010-04-11  Jim Meyering  <meyering@redhat.com>
29331
29332         openat: correct formatting (no semantic change)
29333         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29334         Suggested by Bruno Haible.
29335
29336 2010-04-11  Bruno Haible  <bruno@clisp.org>
29337
29338         Stricter declaration checking in testdirs.
29339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29340         If for_tests is true, augment AM_CPPFLAGS to define
29341         GNULIB_STRICT_CHECKING.
29342         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29343         GNULIB_STRICT_CHECKING is defined, verify that the function is
29344         declared.
29345
29346 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29347             Bruno Haible  <bruno@clisp.org>
29348
29349         libunistring: Improve configure output.
29350         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29351         Don't say "consider installing GNU libunistring" when checking again
29352         with libiconv.
29353
29354 2010-04-11  Bruno Haible  <bruno@clisp.org>
29355
29356         libunistring: Correct value of $LTLIBUNISTRING.
29357         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29358         correct the value of $LTLIBUNISTRING.
29359
29360 2010-04-11  Bruno Haible  <bruno@clisp.org>
29361
29362         havelib: Add static libraries to LIBS in the right order.
29363         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29364         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29365
29366 2010-04-11  Bruno Haible  <bruno@clisp.org>
29367
29368         libunistring: Detect libunistring also when it depends on libiconv.
29369         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29370         the second AC_LIB_HAVE_LINKFLAGS invocation.
29371
29372 2010-04-11  James Youngman  <jay@gnu.org>
29373
29374         close-stream: declare local scalars to be "const"
29375         * lib/close-stream.c (close_stream): Make boolean variables const
29376         to document the fact that we set but do not change them.
29377
29378 2010-04-11  Bruno Haible  <bruno@clisp.org>
29379
29380         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29381
29382 2010-04-11  Jim Meyering  <meyering@redhat.com>
29383
29384         maint.mk: don't include dist-check.mk
29385         * top/maint.mk: Remove bogus include directive.
29386
29387         maint.mk: improve empty-line-at-EOF check
29388         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29389         solution, rather than tail+Perl-based one.  The latter would read
29390         a few kilobytes from the end of each file, and did not handle empty
29391         files properly.
29392
29393         maint.mk: print the elapsed time for each syntax-check rule
29394         * top/maint.mk (sc_m_rules_): Save start time in a file.
29395         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29396         (local-check): Interpose the .z rules
29397
29398 2010-04-11  Jim Meyering  <meyering@redhat.com>
29399
29400         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29401         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29402         empty file with one that ends in an empty line.
29403
29404 2010-04-10  Bruno Haible  <bruno@clisp.org>
29405
29406         mkdir: Make it work on mingw64.
29407         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29408         * lib/mkdir.c: Update comment.
29409         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29410
29411 2010-04-10  Bruno Haible  <bruno@clisp.org>
29412
29413         Don't override improved macro from newer autoconf.
29414         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29415         autoconf >= 2.62.
29416         Reported by Joel E. Denny <jdenny@clemson.edu>.
29417
29418 2010-04-10  Jim Meyering  <meyering@redhat.com>
29419
29420         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29421         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29422
29423         maint.mk: correct a diagnostic
29424         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29425         in diagnostic; now use $prohibit.
29426
29427 2010-04-10  Bruno Haible  <address@hidden>
29428
29429         fchownat: Fix a C++ test error on Solaris 8.
29430         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29431         the function does not exist.
29432
29433 2010-04-10  Bruno Haible  <bruno@clisp.org>
29434
29435         vasnprintf: Add more tests.
29436         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29437         (test_function): Test converting an invalid wide string.
29438
29439         vasnprintf: Correct handling of unconvertible wide string arguments.
29440         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29441         VASNPRINTF.
29442         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29443         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29444         smaller than the expected maximum need for the directive. Set errno to
29445         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29446         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29448         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29449         * modules/vasnprintf (Files): Add m4/printf.m4.
29450         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29451
29452 2010-04-10  Bruno Haible  <bruno@clisp.org>
29453
29454         vasnprintf: Fix crash in %ls directive.
29455         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29456         string is passed as argument to %ls, with no precision and no width.
29457         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29458
29459 2010-04-10  Bruno Haible  <bruno@clisp.org>
29460
29461         vasnprintf: Fix multiple test failures on mingw.
29462         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29463         _snprintf, or snwprintf, not _snwprintf.
29464
29465 2010-04-10  Bruno Haible  <bruno@clisp.org>
29466
29467         write: Fix a C++ test error on mingw.
29468         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29469
29470 2010-04-10  Bruno Haible  <bruno@clisp.org>
29471
29472         vasnprintf test: Reduce code duplication.
29473         * tests/test-vasnprintf.c (test_function): New function, extracted from
29474         test_vasnprintf.
29475         (test_vasnprintf, test_asnprintf): Invoke it.
29476
29477 2010-04-10  Bruno Haible  <bruno@clisp.org>
29478
29479         strnlen: Fix warning in C++ mode on MacOS X.
29480         * lib/string.in.h (strnlen): Use the modern idiom.
29481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29482         defining strnlen as a macro already in <config.h>.
29483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29484         REPLACE_STRNLEN.
29485         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29487
29488 2010-04-08  James Youngman  <jay@gnu.org>
29489
29490         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29491         the example.
29492
29493 2010-04-09  Jim Meyering  <meyering@redhat.com>
29494
29495         maint.mk: print better diagnostic when there is no $(_hv_file)
29496         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29497         announce that when $(_hv_file) (aka help-version) does not exist.
29498
29499         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29500         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29501         not try to interpret its random input bytes.  Jarno Rajahalme reported
29502         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29503         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29504         (mktempd_): Likewise, just in case.
29505
29506         ftruncate: add two years to projected module removal date: 2012
29507         * m4/ftruncate.m4: Adjust comments.
29508
29509         ftruncate: mark module as obsolete; even MinGW provides it, now
29510         * modules/ftruncate (Status): Obsolete.
29511         (Notice): Say that.
29512         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29514
29515 2010-04-08  Bruno Haible  <bruno@clisp.org>
29516
29517         Fix side effects from tests-related modules.
29518         * modules/dprintf-posix (Comment): New section.
29519         * modules/fprintf-posix (Comment): Likewise.
29520         * modules/obstack-printf-posix (Comment): Likewise.
29521         * modules/printf-posix (Comment): Likewise.
29522         * modules/snprintf-posix (Comment): Likewise.
29523         * modules/sprintf-posix (Comment): Likewise.
29524         * modules/vasnprintf-posix (Comment): Likewise.
29525         * modules/vasprintf-posix (Comment): Likewise.
29526         * modules/vdprintf-posix (Comment): Likewise.
29527         * modules/vfprintf-posix (Comment): Likewise.
29528         * modules/vprintf-posix (Comment): Likewise.
29529         * modules/vsnprintf-posix (Comment): Likewise.
29530         * modules/vsprintf-posix (Comment): Likewise.
29531         * modules/xprintf-posix (Comment): Likewise.
29532         * modules/xvasprintf-posix (Comment): Likewise.
29533         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29534         * modules/floorf-tests (Depends-on): Likewise.
29535         * modules/round-tests (Depends-on): Likewise.
29536         * modules/roundf-tests (Depends-on): Likewise.
29537         * modules/trunc-tests (Depends-on): Likewise.
29538         * modules/truncf-tests (Depends-on): Likewise.
29539         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29540         'fprintf-posix' module is not present.
29541         * tests/test-floorf2.c (check): Likewise.
29542         * tests/test-trunc2.c (check): Likewise.
29543         * tests/test-truncf2.c (check): Likewise.
29544         * tests/test-round2.c (equal): Likewise.
29545         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29546
29547 2010-04-07  Karl Berry  <karl@gnu.org>
29548
29549         * config/srclist.txt,
29550         * config/srclistvars.sh,
29551         * config/srclist-update: doc fixes.
29552
29553 2010-04-07  Jim Meyering  <meyering@redhat.com>
29554
29555         maint.mk: add a PATH crosschecking syntax-check rule
29556         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29557         Useful if you use a test like the one in help-version (coreutils,
29558         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29559         printed by prog --version.
29560
29561 2010-04-06  Bruno Haible  <bruno@clisp.org>
29562
29563         Fix link error on mingw.
29564         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29565         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29566
29567 2010-04-06  Bruno Haible  <bruno@clisp.org>
29568
29569         Assume rmdir exists.
29570         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29571
29572 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29573
29574         doc: update users.txt
29575         * users.txt: Add gcal.
29576
29577 2010-04-06  Jim Meyering  <meyering@redhat.com>
29578
29579         init.sh: simply unset TMPDIR rather than risking env -i
29580         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29581         although it probably works fine on all Unix-based systems, some
29582         systems (Cygwin?) cannot tolerate a totally cleared environment.
29583         Suggestion from Eric Blake.
29584
29585 2010-04-06  Jim Meyering  <meyering@redhat.com>
29586
29587         init.sh: portability fix: use env's POSIX-specified -i option not -u
29588         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29589         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29590
29591 2010-04-05  Bruno Haible  <bruno@clisp.org>
29592
29593         btowc: Work around Cygwin 1.7.2 bug.
29594         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29595         does not map NUL to 0.
29596         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29597
29598 2010-04-05  Bruno Haible  <bruno@clisp.org>
29599
29600         Make the multithread modules work on Cygwin 1.7.2.
29601         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29602         imported symbols can be declared weak, so that it returns "no" on
29603         Cygwin 1.7.2.
29604
29605 2010-04-05  Bruno Haible  <bruno@clisp.org>
29606
29607         Use the module 'strncat'.
29608         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29609
29610         Tests for module 'strncat'.
29611         * modules/strncat-tests: New file.
29612         * tests/test-strncat.c: New file.
29613
29614         New module 'strncat'.
29615         * lib/string.in.h (strncat): New declaration.
29616         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29617         * m4/strncat.m4: New file, based on m4/memchr.m4.
29618         * modules/strncat: New file.
29619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29620         is declared.
29621         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29622         REPLACE_STRNCAT.
29623         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29624         REPLACE_STRNCAT.
29625         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29626         module.
29627         * tests/test-string-c++.cc: Check signature of strncat.
29628
29629 2010-04-05  Jim Meyering  <meyering@redhat.com>
29630
29631         xstrtoumax-tests: convert to use init.sh
29632         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29633         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29634         Use Exit, not exit.
29635         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29636
29637         xstrtoimax-tests: convert to use init.sh
29638         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29639         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29640         Use Exit, not exit.
29641         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29642
29643 2010-04-05  Bruno Haible  <bruno@clisp.org>
29644
29645         sys_socket: Avoid #define replacements in C++ mode.
29646         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29647         warning to the function if possible, rather than #defining the symbol
29648         to a dysfunctional alias.
29649
29650 2010-04-05  Bruno Haible  <bruno@clisp.org>
29651
29652         fseeko: Fix C++ test error on mingw.
29653         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29654         gl_FUNC_FSEEKO.
29655         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29656         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29657         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29658         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29659
29660 2010-04-05  Bruno Haible  <bruno@clisp.org>
29661
29662         duplocale: Improve test output.
29663         * tests/test-duplocale.c (main): Print reason for skipped test.
29664
29665 2010-04-05  Bruno Haible  <bruno@clisp.org>
29666
29667         Assume rmdir exists.
29668         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29669         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29670
29671 2010-04-05  Bruno Haible  <bruno@clisp.org>
29672
29673         Fix link error on Solaris 8 with cc.
29674         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29675
29676 2010-04-05  Bruno Haible  <bruno@clisp.org>
29677
29678         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29679         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29680
29681 2010-04-05  Bruno Haible  <bruno@clisp.org>
29682
29683         vasprintf: Update documentation.
29684         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29685
29686 2010-04-05  Bruno Haible  <bruno@clisp.org>
29687
29688         ptsname: Improve test.
29689         * tests/test-ptsname.c (main): Also try the various master names of BSD
29690         systems.
29691
29692 2010-04-05  Bruno Haible  <bruno@clisp.org>
29693
29694         memchr: Avoid a possible C++ test error.
29695         * lib/string.in.h (memchr): Provide declaration if function is missing.
29696         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29697         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29699         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29700
29701 2010-04-05  Bruno Haible  <bruno@clisp.org>
29702
29703         strtok_r: Improve idiom.
29704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29705         AC_LIBOBJ is used.
29706
29707 2010-04-05  Bruno Haible  <bruno@clisp.org>
29708
29709         strdup: Improve idiom.
29710         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29711         AC_LIBOBJ is used.
29712         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29713         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29714         when AC_LIBOBJ is used.
29715
29716 2010-04-05  Bruno Haible  <bruno@clisp.org>
29717
29718         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29719         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29720         don't set REPLACE_MBSINIT to 1.
29721         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29722         don't set REPLACE_MBRTOWC to 1.
29723         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29724         exist, don't set REPLACE_MBSRTOWCS to 1.
29725         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29726         exist, don't set REPLACE_MBSNRTOWCS to 1.
29727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29728         don't set REPLACE_WCRTOMB to 1.
29729         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29730         exist, don't set REPLACE_WCSRTOMBS to 1.
29731         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29732         exist, don't set REPLACE_WCSNRTOMBS to 1.
29733
29734 2010-04-05  Bruno Haible  <bruno@clisp.org>
29735
29736         ldexpl: Improve idiom.
29737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29738         make sure to set HAVE_DECL_LDEXPL to 0.
29739
29740 2010-04-05  Jim Meyering  <meyering@redhat.com>
29741
29742         xstrtol-tests: convert to use init.sh
29743         * modules/xstrtol-tests (Files): Add tests/init.sh.
29744         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29745         Use Exit, not exit.
29746         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29747
29748         atexit-tests: convert to use init.sh
29749         * modules/atexit-tests (Files): Add tests/init.sh.
29750         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29751         Use Exit, not exit.
29752         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29753
29754         init.sh: fix typo
29755         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29756
29757         init.sh: make it easier for a test script to write to the tty, ...
29758         when using automake's parallel-tests mode.
29759         * tests/init.sh (stderr_fileno_): Define overridable variable.
29760         (warn_): New function, to use it.
29761         (fail_, skip_, framework_failure_): Use warn_.
29762
29763 2010-04-04  Bruno Haible  <bruno@clisp.org>
29764
29765         btowc: Avoid warning.
29766         * lib/btowc.c: Include <stdlib.h>.
29767         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29768
29769 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29770             Bruno Haible  <bruno@clisp.org>
29771
29772         wchar: Port to NetBSD 1.5.
29773         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29774         * lib/wctype.in.h (WEOF): Likewise.
29775
29776 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29777             Bruno Haible  <bruno@clisp.org>
29778
29779         Port extended stdio to NetBSD 1.5.
29780         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29781         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29782         older.
29783
29784 2010-04-04  Bruno Haible  <bruno@clisp.org>
29785
29786         string: Remove unused substitution.
29787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29788         HAVE_DECL_STRERROR.
29789         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29790
29791 2010-04-04  Bruno Haible  <bruno@clisp.org>
29792
29793         strtod: Avoid a possible C++ test error.
29794         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29795         set REPLACE_STRTOD.
29796
29797 2010-04-04  Bruno Haible  <bruno@clisp.org>
29798
29799         strerror: Update documentation.
29800         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29801
29802 2010-04-04  Bruno Haible  <bruno@clisp.org>
29803
29804         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29805         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29806         _GL_CXXALIAS_SYS_CAST.
29807
29808 2010-04-04  Bruno Haible  <bruno@clisp.org>
29809
29810         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29811         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29812         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29813         REPLACE_FREXPL to 1.
29814         * doc/posix-functions/frexpl.texi: Update documentation.
29815
29816 2010-04-04  Bruno Haible  <bruno@clisp.org>
29817
29818         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29819         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29820
29821 2010-04-04  Bruno Haible  <bruno@clisp.org>
29822
29823         Implement nanosleep for native Windows.
29824         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29825
29826 2010-04-04  Bruno Haible  <bruno@clisp.org>
29827
29828         math: Fix some C++ test errors on Solaris 8.
29829         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29830
29831 2010-04-04  Bruno Haible  <bruno@clisp.org>
29832
29833         math: Fix some C++ test errors on Cygwin.
29834         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29835         truncl): Provide declaration if the system does not have it.
29836         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29837         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29838         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29839         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29840         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29841         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29842         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29843         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29844         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29845         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29846         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29847         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29848         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29849         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29850         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29851         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29853         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29854         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29855         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29856         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29857         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29858
29859 2010-04-04  Bruno Haible  <bruno@clisp.org>
29860
29861         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29862         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29863         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29865         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29866         * m4/isinf.m4 (gl_ISINF): Likewise.
29867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29868
29869 2010-04-04  Bruno Haible  <bruno@clisp.org>
29870
29871         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29873
29874 2010-04-04  Bruno Haible  <bruno@clisp.org>
29875
29876         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29877         * modules/tmpfile (configure.ac): Update.
29878
29879         tmpfile: Fix C++ test error on mingw.
29880         * lib/stdio.in.h (tmpfile): New declaration.
29881         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29882         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29883         * modules/tmpfile (Depends-on): Add stdio.
29884         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29885         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29886         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29887         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29888         REPLACE_TMPFILE.
29889         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29890
29891 2010-04-04  Bruno Haible  <bruno@clisp.org>
29892
29893         ioctl: Fix C++ test error on mingw.
29894         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29895         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29896         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29897
29898 2010-04-03  Bruno Haible  <bruno@clisp.org>
29899
29900         wcwidth: Fix C++ test error on mingw.
29901         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29903         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29904
29905 2010-04-03  Bruno Haible  <bruno@clisp.org>
29906
29907         nanosleep: Fix C++ test error on mingw.
29908         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29909         * lib/time.in.h (nanosleep): Use modern idiom.
29910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29911         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29912         REPLACE_NANOSLEEP to 1.
29913         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29914         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29915
29916 2010-04-03  Bruno Haible  <bruno@clisp.org>
29917
29918         strptime: Fix C++ test error on mingw.
29919         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29921         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29922         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29924         not REPLACE_STRPTIME.
29925         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29926         REPLACE_STRPTIME.
29927
29928 2010-04-03  Bruno Haible  <bruno@clisp.org>
29929
29930         timegm: Fix C++ test error on mingw.
29931         * lib/time.in.h (timegm): Use modern idiom.
29932         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29933         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29935         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29936
29937 2010-04-03  Bruno Haible  <bruno@clisp.org>
29938
29939         timegm: Assume declaration if function exists.
29940         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29941         if it exists. Don't clobber ac_cv_func_timegm.
29942
29943 2010-04-03  Bruno Haible  <bruno@clisp.org>
29944
29945         time_r: Fix C++ test error on mingw.
29946         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29947         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29948         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29949         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29950         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29951
29952 2010-04-03  Bruno Haible  <bruno@clisp.org>
29953
29954         time_r: Minor updates.
29955         * modules/time_r (Description): Mention the provided functions.
29956         * lib/time_r.c: Don't include <string.h>.
29957         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29958         * doc/posix-functions/localtime_r.texi: Likewise.
29959
29960 2010-04-03  Bruno Haible  <bruno@clisp.org>
29961
29962         time: Fix regression introduced on 2010-03-08.
29963         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29964         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29965
29966 2010-04-03  Jim Meyering  <meyering@redhat.com>
29967
29968         maint.mk: don't silently disable project-specific syntax-check rules
29969         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29970         that they need to convert their project-specific syntax-check rules
29971         to use the new _sc_search_regexp.
29972
29973 2010-04-03  Bruno Haible  <bruno@clisp.org>
29974
29975         fchdir: Fix regression introduced on 2010-03-08.
29976         * lib/unistd.in.h (fchdir): Fix declaration.
29977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29979         REPLACE_FCHDIR.
29980         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29981         REPLACE_FCHDIR.
29982
29983 2010-04-03  Bruno Haible  <bruno@clisp.org>
29984
29985         getpagesize: Fix C++ test error on mingw.
29986         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29987         system does not declare the function.
29988         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29989         declared.
29990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29991         HAVE_DECL_GETPAGESIZE.
29992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29993
29994 2010-04-03  Bruno Haible  <bruno@clisp.org>
29995
29996         stdio: Make C++ tests work on mingw.
29997         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29998         does not declare the function.
29999
30000 2010-04-03  Bruno Haible  <bruno@clisp.org>
30001
30002         ftello: Fix C++ test error on mingw.
30003         * lib/stdio.in.h (ftello): Use modern idiom.
30004         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30005         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30006         is missing and that it needs to be replaced.
30007         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30009         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30010
30011 2010-04-03  Bruno Haible  <bruno@clisp.org>
30012
30013         fseeko: Fix C++ test error on mingw.
30014         * lib/stdio.in.h (fseeko): Use modern idiom.
30015         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30017         is missing and that it needs to be replaced.
30018         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30020         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30021
30022 2010-04-03  Bruno Haible  <bruno@clisp.org>
30023
30024         mkstemp: Fix C++ test error on mingw.
30025         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30027         function is missing and that it needs to be replaced.
30028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30029         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30030
30031 2010-04-03  Bruno Haible  <bruno@clisp.org>
30032
30033         stpncpy: Fix C++ test error on mingw.
30034         * lib/string.in.h (stpncpy): Use modern idiom.
30035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30036         function is missing and that it needs to be replaced.
30037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30038         REPLACE_STPNCPY.
30039         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30040
30041 2010-04-03  Bruno Haible  <bruno@clisp.org>
30042
30043         sys_stat: Fix C++ test error on mingw.
30044         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30045         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30046
30047 2010-04-03  Bruno Haible  <bruno@clisp.org>
30048
30049         pty: Update doc.
30050         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30051
30052 2010-04-03  Bruno Haible  <bruno@clisp.org>
30053
30054         unistd: Fix C++ test error on mingw.
30055         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30056
30057 2010-04-03  Bruno Haible  <bruno@clisp.org>
30058
30059         Update doc regarding mingw.
30060         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30061         * doc/glibc-functions/login_tty.texi: Likewise.
30062         * doc/glibc-functions/forkpty.texi: Likewise.
30063
30064 2010-04-03  Bruno Haible  <bruno@clisp.org>
30065
30066         stdlib: Avoid compilation failure of c-strtold on mingw.
30067         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30068
30069 2010-04-03  Bruno Haible  <bruno@clisp.org>
30070
30071         locale: Make C++ tests work on Cygwin and mingw.
30072         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30073         cannot provide the function.
30074         Reported by Simon Josefsson.
30075
30076 2010-04-03  Bruno Haible  <bruno@clisp.org>
30077
30078         localename: Port to MacOS X 10.6.
30079         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30080         memory layout of the locales in MacOS X 10.6 as well.
30081         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30082
30083 2010-04-02  Bruno Haible  <bruno@clisp.org>
30084
30085         gnulib-tool: Ensure that long-running tests are executed last.
30086         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30087         running tests after the one for the other tests.
30088
30089 2010-04-02  Bruno Haible  <bruno@clisp.org>
30090
30091         gnulib-tool: Ensure the tests in the main directory are executed first.
30092         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30093         start with the current directory.
30094
30095 2010-04-02  Bruno Haible  <bruno@clisp.org>
30096
30097         Tests for module 'havelib', moved here from GNU gettext.
30098         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30099         modifications.
30100         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30101         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30102         with modifications.
30103         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30104         modifications.
30105         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30106         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30107         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30108         with modifications.
30109         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30110         with modifications.
30111         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30112         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30113         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30114         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30115         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30116         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30117         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30118         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30119         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30120         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30121         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30122         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30123         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30124         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30125         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30126         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30127         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30128         with modifications.
30129         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30130         with modifications.
30131         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30132         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30133         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30134         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30135         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30136         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30137         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30138         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30139         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30140         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30141         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30142         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30143         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30144         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30145         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30146         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30147         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30148         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30149         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30150         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30151         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30152         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30153         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30154         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30155         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30156         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30157         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30158         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30159         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30160         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30161         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30162         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30163         * tests/havelib/rpathx/rpathx.c: New file, from
30164         gettext/autoconf-lib-link.
30165         * tests/havelib/rpathx/Makefile.am: New file, from
30166         gettext/autoconf-lib-link.
30167         * tests/havelib/rpathx/configure.ac: New file, from
30168         gettext/autoconf-lib-link with modifications.
30169         * tests/havelib/rpathy/rpathy.c: New file, from
30170         gettext/autoconf-lib-link.
30171         * tests/havelib/rpathy/Makefile.am: New file, from
30172         gettext/autoconf-lib-link.
30173         * tests/havelib/rpathy/configure.ac: New file, from
30174         gettext/autoconf-lib-link with modifications.
30175         * tests/havelib/rpathz/rpathz.c: New file, from
30176         gettext/autoconf-lib-link.
30177         * tests/havelib/rpathz/Makefile.am: New file, from
30178         gettext/autoconf-lib-link.
30179         * tests/havelib/rpathz/configure.ac: New file, from
30180         gettext/autoconf-lib-link with modifications.
30181         * tests/havelib/rpathlx/usex.c: New file, from
30182         gettext/autoconf-lib-link.
30183         * tests/havelib/rpathlx/Makefile.am: New file, from
30184         gettext/autoconf-lib-link.
30185         * tests/havelib/rpathlx/configure.ac: New file, from
30186         gettext/autoconf-lib-link with modifications.
30187         * tests/havelib/rpathly/usey.c: New file, from
30188         gettext/autoconf-lib-link.
30189         * tests/havelib/rpathly/Makefile.am: New file, from
30190         gettext/autoconf-lib-link.
30191         * tests/havelib/rpathly/configure.ac: New file, from
30192         gettext/autoconf-lib-link with modifications.
30193         * tests/havelib/rpathlz/usez.c: New file, from
30194         gettext/autoconf-lib-link.
30195         * tests/havelib/rpathlz/Makefile.am: New file, from
30196         gettext/autoconf-lib-link.
30197         * tests/havelib/rpathlz/configure.ac: New file, from
30198         gettext/autoconf-lib-link with modifications.
30199         * tests/havelib/rpathlyx/usey.c: New file, from
30200         gettext/autoconf-lib-link.
30201         * tests/havelib/rpathlyx/Makefile.am: New file, from
30202         gettext/autoconf-lib-link.
30203         * tests/havelib/rpathlyx/configure.ac: New file, from
30204         gettext/autoconf-lib-link with modifications.
30205         * tests/havelib/rpathlzyx/usez.c: New file, from
30206         gettext/autoconf-lib-link.
30207         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30208         gettext/autoconf-lib-link.
30209         * tests/havelib/rpathlzyx/configure.ac: New file, from
30210         gettext/autoconf-lib-link with modifications.
30211         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30212         with modifications.
30213
30214 2010-04-02  Bruno Haible  <bruno@clisp.org>
30215
30216         gnulib-tool: Create distributed built sources also for the tests.
30217         * gnulib-tool (func_create_testdir): Also generate distributed built
30218         sources in the tests directory.
30219
30220 2010-04-02  Bruno Haible  <bruno@clisp.org>
30221
30222         gnulib-tool: Obey user's environment variables.
30223         * gnulib-tool (func_create_testdir): When creating built sources,
30224         respect the environment variables for autoconf, automake, etc. given by
30225         the user.
30226
30227 2010-04-02  Bruno Haible  <bruno@clisp.org>
30228
30229         gnulib-tool: Provide the value of --m4-base to modules.
30230         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30231         of gl_m4_base.
30232
30233 2010-04-02  Eric Blake  <eblake@redhat.com>
30234
30235         maint.mk: fix some fallout
30236         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30237         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30238
30239 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30240
30241         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30242         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30243         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30244         (sc_cast_of_x_alloc_return_value): Likewise.
30245         (sc_cast_of_alloca_return_value): Likewise.
30246         (sc_space_tab): Likewise.
30247         (sc_prohibit_atoi_atof): Likewise.
30248         (sc_prohibit_magic_number_exit): Likewise.
30249         (sc_error_exit_success): Likewise.
30250         (sc_file_system): Likewise.
30251         (sc_prohibit_have_config_h): Likewise.
30252         (sc_require_config_h): Likewise.
30253         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30254         (sc_obsolete_symbols): Likewise.
30255         (sc_changelog): Likewise.
30256         (sc_program_name): Likewise.
30257         (sc_the_the): Likewise.
30258         (sc_trailing_blank): Likewise.
30259         (sc_two_space_separator_in_usage): Likewise.
30260         (sc_useless_cpp_parens): Likewise.
30261         (sc_GPL_version): Likewise.
30262         (sc_GFDL_version): Likewise.
30263         (sc_texinfo_acronym): Likewise.
30264         (sc_prohibit_cvs_keyword): Likewise.
30265         (sc_prohibit_stat_st_blocks): Likewise.
30266         (sc_prohibit_S_IS_definition): Likewise.
30267         (sc_redundant_const): Likewise.
30268         (sc_makefile_TAB_only_indentation): Likewise.
30269         (sc_m4_quote_check): Likewise.
30270         (sc_makefile_path_separator_check): Likewise.
30271         (sc_copyright_check): Likewise.
30272         (sc_Wundef_boolean): Likewise.
30273         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30274
30275         maint.mk: match 0 or more whitespace-before-function-call '('
30276         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30277         that have zero or two-and-more spaces between the function name
30278         and the open parenthesis.
30279         (sc_error_message_warn_fatal): Likewise.
30280         (sc_error_message_uppercase): Likewise.
30281         (sc_error_message_period): Likewise.
30282
30283 2010-03-31  Eric Blake  <eblake@redhat.com>
30284
30285         maint.mk: check for [ as well as test
30286         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30287         Based on a libvirt report by Matthias Bolte.
30288
30289         gnumakefile: don't squelch _version output
30290         * top/GNUmakefile (_version): Create one-shot dependency rather
30291         than using $(shell) when version must be regenerated.
30292         (_autoreconf): Run verbosely, by default.
30293
30294         sys_time: avoid compiler warnings
30295         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30296         unconditional, fixing regression from 2010-03-29.
30297         Reported by Simon Josefsson.
30298
30299 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30300
30301         maint.mk: s/_header_without_use/_sc_header_without_use/
30302         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30303         (sc_prohibit_assert_without_use): Use the new name.
30304         (sc_prohibit_close_stream_without_use): Likewise.
30305         (sc_prohibit_getopt_without_use): Likewise.
30306         (sc_prohibit_quotearg_without_use): Likewise.
30307         (sc_prohibit_quote_without_use): Likewise.
30308         (sc_prohibit_long_options_without_use): Likewise.
30309         (sc_prohibit_inttostr_without_use): Likewise.
30310         (sc_prohibit_ignore_value_without_use): Likewise.
30311         (sc_prohibit_error_without_use): Likewise.
30312         (sc_prohibit_xalloc_without_use): Likewise.
30313         (sc_prohibit_hash_without_use): Likewise.
30314         (sc_prohibit_hash_pjw_without_use): Likewise.
30315         (sc_prohibit_safe_read_without_use): Likewise.
30316         (sc_prohibit_argmatch_without_use): Likewise.
30317         (sc_prohibit_canonicalize_without_use): Likewise.
30318         (sc_prohibit_root_dev_ino_without_use): Likewise.
30319         (sc_prohibit_openat_without_use): Likewise.
30320         (sc_prohibit_c_ctype_without_use): Likewise.
30321         (sc_prohibit_signal_without_use): Likewise.
30322         (sc_prohibit_intprops_without_use): Likewise.
30323
30324 2010-03-30  Eric Blake  <eblake@redhat.com>
30325
30326         maint: improve module indicators
30327         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30328         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30329         columns, and avoid extra macro expansion.
30330
30331         fdopendir: work around FreeBSD bug
30332         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30334         * modules/dirent (Makefile.am): Substitute it.
30335         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30336         declaration.
30337         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30338         fix.
30339         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30340
30341 2010-03-29  Bruno Haible  <bruno@clisp.org>
30342
30343         Emit #pragma system_header after the inclusion guard, not before.
30344         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30345         guard that spans the entire file, not before. This enables an
30346         optimization in GCC's preprocessor.
30347         * lib/ctype.in.h: Likewise.
30348         * lib/dirent.in.h: Likewise.
30349         * lib/errno.in.h: Likewise.
30350         * lib/float.in.h: Likewise.
30351         * lib/getopt.in.h: Likewise.
30352         * lib/iconv.in.h: Likewise.
30353         * lib/langinfo.in.h: Likewise.
30354         * lib/locale.in.h: Likewise.
30355         * lib/math.in.h: Likewise.
30356         * lib/netdb.in.h: Likewise.
30357         * lib/netinet_in.in.h: Likewise.
30358         * lib/pty.in.h: Likewise.
30359         * lib/sched.in.h: Likewise.
30360         * lib/se-selinux.in.h: Likewise.
30361         * lib/search.in.h: Likewise.
30362         * lib/spawn.in.h: Likewise.
30363         * lib/stdarg.in.h: Likewise.
30364         * lib/stdint.in.h: Likewise.
30365         * lib/string.in.h: Likewise.
30366         * lib/strings.in.h: Likewise.
30367         * lib/sys_file.in.h: Likewise.
30368         * lib/sys_ioctl.in.h: Likewise.
30369         * lib/sys_time.in.h: Likewise.
30370         * lib/sys_times.in.h: Likewise.
30371         * lib/sys_utsname.in.h: Likewise.
30372         * lib/sys_wait.in.h: Likewise.
30373         * lib/sysexits.in.h: Likewise.
30374         * lib/wctype.in.h: Likewise.
30375
30376 2010-03-28  James Youngman  <jay@gnu.org>
30377
30378         save-cwd: don't leak a file descriptor when the caller execs.
30379         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30380         saved file descriptor.
30381         * modules/save-cwd (Depends-on): Depend on cloexec.
30382
30383 2010-03-29  Bruno Haible  <bruno@clisp.org>
30384
30385         Remove vestiges of fts-lgpl module.
30386         * lib/fts_.h: Assume GNULIB_FTS is 1.
30387         * lib/fts.c: Likewise.
30388         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30389
30390 2010-03-28  Bruno Haible  <bruno@clisp.org>
30391
30392         Fix definition of tests witness macro.
30393         * gnulib-tool (func_import): Fix definition of witness macro.
30394
30395 2010-03-28  Bruno Haible  <bruno@clisp.org>
30396
30397         Fix ioctl's protoype on glibc systems.
30398         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30399         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30400         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30401         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30402         signature. If not, arrange to replace the ioctl function.
30403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30404         REPLACE_IOCTL.
30405         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30406         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30407         Reported by Ludovic Courtès <ludo@gnu.org>.
30408
30409 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30410
30411         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30412         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30413         made it so grep -r --include=GLOB* ... did not work.
30414
30415 2010-03-26  Jim Meyering  <meyering@redhat.com>
30416             Eric Blake  <eblake@redhat.com>
30417
30418         maint.mk: prohibit use of test's -o and -a operators
30419         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30420
30421 2010-03-28  Bruno Haible  <bruno@clisp.org>
30422
30423         Remove unused GNULIB_XYZ macro definitions.
30424         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30425         invocation.
30426
30427 2010-03-28  Bruno Haible  <bruno@clisp.org>
30428
30429         Mark privileged tests modules.
30430         * modules/idpriv-drop-tests (Status): New section.
30431         * modules/idpriv-droptemp-tests (Status): New section.
30432
30433 2010-03-28  Bruno Haible  <bruno@clisp.org>
30434
30435         Split C++ tests into separate tests modules.
30436         * modules/dirent-c++-tests: New file, extracted from
30437         modules/dirent-tests.
30438         * modules/dirent-tests: Depend on it.
30439         * modules/fcntl-h-c++-tests: New file, extracted from
30440         modules/fcntl-h-tests.
30441         * modules/fcntl-h-tests: Depend on it.
30442         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30443         * modules/glob-tests: Depend on it.
30444         * modules/iconv-h-c++-tests: New file, extracted from
30445         modules/iconv-h-tests.
30446         * modules/iconv-h-tests: Depend on it.
30447         * modules/langinfo-c++-tests: New file, extracted from
30448         modules/langinfo-tests.
30449         * modules/langinfo-tests: Depend on it.
30450         * modules/locale-c++-tests: New file, extracted from
30451         modules/locale-tests.
30452         * modules/locale-tests: Depend on it.
30453         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30454         * modules/math-tests: Depend on it.
30455         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30456         * modules/pty-tests: Depend on it.
30457         * modules/search-c++-tests: New file, extracted from
30458         modules/search-tests.
30459         * modules/search-tests: Depend on it.
30460         * modules/signal-c++-tests: New file, extracted from
30461         modules/signal-tests.
30462         * modules/signal-tests: Depend on it.
30463         * modules/spawn-c++-tests: New file, extracted from
30464         modules/spawn-tests.
30465         * modules/spawn-tests: Depend on it.
30466         * modules/stdio-c++-tests: New file, extracted from
30467         modules/stdio-tests.
30468         * modules/stdio-tests: Depend on it.
30469         * modules/stdlib-c++-tests: New file, extracted from
30470         modules/stdlib-tests.
30471         * modules/stdlib-tests: Depend on it.
30472         * modules/string-c++-tests: New file, extracted from
30473         modules/string-tests.
30474         * modules/string-tests: Depend on it.
30475         * modules/sys_ioctl-c++-tests: New file, extracted from
30476         modules/sys_ioctl-tests.
30477         * modules/sys_ioctl-tests: Depend on it.
30478         * modules/sys_select-c++-tests: New file, extracted from
30479         modules/sys_select-tests.
30480         * modules/sys_select-tests: Depend on it.
30481         * modules/sys_socket-c++-tests: New file, extracted from
30482         modules/sys_socket-tests.
30483         * modules/sys_socket-tests: Depend on it.
30484         * modules/sys_stat-c++-tests: New file, extracted from
30485         modules/sys_stat-tests.
30486         * modules/sys_stat-tests: Depend on it.
30487         * modules/sys_time-c++-tests: New file, extracted from
30488         modules/sys_time-tests.
30489         * modules/sys_time-tests: Depend on it.
30490         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30491         * modules/time-tests: Depend on it.
30492         * modules/unistd-c++-tests: New file, extracted from
30493         modules/unistd-tests.
30494         * modules/unistd-tests: Depend on it.
30495         * modules/wchar-c++-tests: New file, extracted from
30496         modules/wchar-tests.
30497         * modules/wchar-tests: Depend on it.
30498         * modules/wctype-c++-tests: New file, extracted from
30499         modules/wctype-tests.
30500         * modules/wctype-tests: Depend on it.
30501         Reported by Simon Josefsson.
30502
30503 2010-03-28  Bruno Haible  <bruno@clisp.org>
30504
30505         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30506         * gnulib-tool (func_exists_module): New function, extracted from
30507         func_verify_module.
30508         (func_verify_module): Use it.
30509         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30510         'foo' only if 'foo' exists.
30511         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30512         module.
30513
30514 2010-03-28  Bruno Haible  <bruno@clisp.org>
30515
30516         gnulib-tool: Add support for special categories of tests.
30517         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30518         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30519         (func_usage): Document them.
30520         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30521         inc_unportable_tests, inc_all_tests): New variables.
30522         (func_acceptable): Consider these variables.
30523         (func_modules_transitive_closure): Make it work when the 'Status' field
30524         consists of multiple words.
30525         (func_import): Store and restore the values of inc_cxx_tests,
30526         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30527         inc_all_tests in gnulib-comp.m4.
30528         (func_create_testdir): Set inc_all_tests to true.
30529         * doc/gnulib.texi (Extra tests modules): New section.
30530         Suggested by Jim Meyering.
30531
30532 2010-03-28  Bruno Haible  <bruno@clisp.org>
30533
30534         ansi-c++-opt: Allow turning off the C++ build by default.
30535         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30536         gl_CXX_CHOICE_DEFAULT_NO is defined.
30537         Requested by Eric Blake.
30538
30539 2010-03-28  Bruno Haible  <bruno@clisp.org>
30540
30541         unistd: Avoid #define replacements in C++ mode.
30542         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30543         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30544         setsockopt, shutdown, select): In C++, attach a warning to the function
30545         if possible, rather than #defining the symbol to a dysfunctional alias.
30546         Reported by John W. Eaton <jwe@gnu.org>.
30547
30548 2010-03-28  Bruno Haible  <bruno@clisp.org>
30549
30550         Fix link errors on mingw.
30551         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30552         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30553         $(LIBSOCKET).
30554         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30555         $(LIBSOCKET).
30556
30557 2010-03-28  Bruno Haible  <bruno@clisp.org>
30558             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30559
30560         lib-ignore: Determine different options for different compilers.
30561         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30562         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30563         Add comments.
30564         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30565         * NEWS: Mention the change.
30566
30567 2010-03-27  Bruno Haible  <bruno@clisp.org>
30568
30569         Remove unused GNULIB_XYZ macro definitions.
30570         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30571         * modules/fseek (configure.ac): Likewise.
30572         * modules/ioctl (configure.ac): Likewise.
30573         * modules/open (configure.ac): Likewise.
30574         * modules/stdlib-safer (configure.ac): Likewise.
30575
30576 2010-03-27  Bruno Haible  <bruno@clisp.org>
30577
30578         Add a remark about certain modules.
30579         * modules/malloc (Comment): New section.
30580         * modules/realloc (Comment): Likewise.
30581         * modules/sigpipe (Comment): Likewise.
30582
30583 2010-03-27  Bruno Haible  <bruno@clisp.org>
30584
30585         Resolve conflict between the two kinds of module indicators.
30586         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30587         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30588         * modules/canonicalize (configure.ac): Invoke
30589         gl_MODULE_INDICATOR_FOR_TESTS.
30590         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30591         GNULIB_XYZ.
30592         * tests/test-dirent-c++.cc: Likewise.
30593         * tests/test-dirent-safer.c: Likewise.
30594         * tests/test-dup2.c: Likewise.
30595         * tests/test-fchdir.c: Likewise.
30596         * tests/test-fcntl-h-c++.cc: Likewise.
30597         * tests/test-getopt.c: Likewise.
30598         * tests/test-getopt.h: Likewise.
30599         * tests/test-langinfo-c++.cc: Likewise.
30600         * tests/test-locale-c++.cc: Likewise.
30601         * tests/test-math-c++.cc: Likewise.
30602         * tests/test-pty-c++.cc: Likewise.
30603         * tests/test-search-c++.cc: Likewise.
30604         * tests/test-signal-c++.cc: Likewise.
30605         * tests/test-spawn-c++.cc: Likewise.
30606         * tests/test-stdio-c++.cc: Likewise.
30607         * tests/test-stdlib-c++.cc: Likewise.
30608         * tests/test-string-c++.cc: Likewise.
30609         * tests/test-sys_ioctl-c++.cc: Likewise.
30610         * tests/test-sys_select-c++.cc: Likewise.
30611         * tests/test-sys_socket-c++.cc: Likewise.
30612         * tests/test-sys_stat-c++.cc: Likewise.
30613         * tests/test-sys_time-c++.cc: Likewise.
30614         * tests/test-time-c++.cc: Likewise.
30615         * tests/test-unistd-c++.cc: Likewise.
30616         * tests/test-wchar-c++.cc: Likewise.
30617         * tests/uninorm/test-u8-nfc.c: Likewise.
30618         * tests/uninorm/test-u8-nfd.c: Likewise.
30619         * tests/uninorm/test-u8-nfkc.c: Likewise.
30620         * tests/uninorm/test-u8-nfkd.c: Likewise.
30621         * tests/uninorm/test-u16-nfc.c: Likewise.
30622         * tests/uninorm/test-u16-nfd.c: Likewise.
30623         * tests/uninorm/test-u16-nfkc.c: Likewise.
30624         * tests/uninorm/test-u16-nfkd.c: Likewise.
30625         * tests/uninorm/test-u32-nfc.c: Likewise.
30626         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30627         * tests/uninorm/test-u32-nfd.c: Likewise.
30628         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30629         * tests/uninorm/test-u32-nfkc.c: Likewise.
30630         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30631         * tests/uninorm/test-u32-nfkd.c: Likewise.
30632         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30633         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30634
30635 2010-03-27  Bruno Haible  <bruno@clisp.org>
30636
30637         Distinguish two kinds of module indicators.
30638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30639         gl_MODULE_INDICATOR.
30640         (gl_MODULE_INDICATOR): New macro.
30641         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30642         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30643         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30644         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30645         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30646         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30647         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30648         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30649         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30650         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30651         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30652         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30655         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30657         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30658         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30659         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30660         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30661         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30662         * modules/cloexec (configure.ac): Likewise.
30663         * modules/getopt-gnu (configure.ac): Likewise.
30664         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30665         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30666         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30667         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30668
30669 2010-03-27  Bruno Haible  <bruno@clisp.org>
30670
30671         New module description field 'Comment'.
30672         * gnulib-tool: New option --extract-comment.
30673         (func_usage): Document it.
30674         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30675         (func_get_comment): New function.
30676         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30677
30678 2010-03-27  Bruno Haible  <bruno@clisp.org>
30679
30680         Addendum to 2010-02-07 commit.
30681         * gnulib-tool (func_usage): Document --extract-applicability option.
30682
30683 2010-03-27  Bruno Haible  <bruno@clisp.org>
30684
30685         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30686         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30687         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30688         rather than link errors.
30689
30690 2010-03-27  Bruno Haible  <bruno@clisp.org>
30691
30692         Avoid side effects from tests-related modules on the compilation of lib.
30693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30694         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30695         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30696         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30697         macro.
30698         (func_import): Define a witness macro. Assign it a value that depends
30699         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30700         tests-related modules.
30701         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30702         Reported by Jim Meyering.
30703
30704 2010-03-27  Bruno Haible  <bruno@clisp.org>
30705
30706         Factorize common .m4 code.
30707         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30708         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30709         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30710         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30711         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30712         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30713         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30714         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30715         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30716         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30717         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30718         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30719         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30720         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30721         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30722         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30723         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30724         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30726         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30727         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30729         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30731         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30732         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30733         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30734         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30735         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30736         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30737         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30738         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30739
30740 2010-03-27  Bruno Haible  <bruno@clisp.org>
30741
30742         Fix a compilation error on Cygwin with g++ >= 4.3.
30743         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30744         if it is undefined or if we alias it to chmod.
30745         (lstat): Don't warn about the use of this function if it is undefined
30746         or if we alias it to stat.
30747         Reported by Simon Josefsson.
30748
30749 2010-03-27  Bruno Haible  <bruno@clisp.org>
30750
30751         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30752         * modules/getlogin (configure.ac): Update.
30753
30754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30755         * modules/getlogin_r (configure.ac): Update.
30756
30757         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30759         * modules/inet_ntop (configure.ac): Update.
30760
30761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30762         * modules/inet_pton (configure.ac): Update.
30763
30764         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30765         * modules/mbslen (configure.ac): Update.
30766
30767         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30768         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30769         * modules/forkpty (configure.ac): Update.
30770         * modules/openpty (configure.ac): Update.
30771
30772 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30773
30774         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30775         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30776
30777 2010-03-25  Eric Blake  <eblake@redhat.com>
30778
30779         maint: use pragma consistently across replacement headers
30780         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30781         * lib/dirent.in.h (system_header): Likewise.
30782         * lib/errno.in.h (system_header): Likewise.
30783         * lib/float.in.h (system_header): Likewise.
30784         * lib/getopt.in.h (system_header): Likewise.
30785         * lib/iconv.in.h (system_header): Likewise.
30786         * lib/inttypes.in.h (system_header): Likewise.
30787         * lib/langinfo.in.h (system_header): Likewise.
30788         * lib/locale.in.h (system_header): Likewise.
30789         * lib/math.in.h (system_header): Likewise.
30790         * lib/netdb.in.h (system_header): Likewise.
30791         * lib/netinet_in.in.h (system_header): Likewise.
30792         * lib/pty.in.h (system_header): Likewise.
30793         * lib/sched.in.h (system_header): Likewise.
30794         * lib/se-selinux.in.h (system_header): Likewise.
30795         * lib/search.in.h (system_header): Likewise.
30796         * lib/spawn.in.h (system_header): Likewise.
30797         * lib/stdarg.in.h (system_header): Likewise.
30798         * lib/stdint.in.h (system_header): Likewise.
30799         * lib/string.in.h (system_header): Likewise.
30800         * lib/strings.in.h (system_header): Likewise.
30801         * lib/sys_file.in.h (system_header): Likewise.
30802         * lib/sys_ioctl.in.h (system_header): Likewise.
30803         * lib/sys_socket.in.h (system_header): Likewise.
30804         * lib/sys_times.in.h (system_header): Likewise.
30805         * lib/sys_utsname.in.h (system_header): Likewise.
30806         * lib/sys_wait.in.h (system_header): Likewise.
30807         * lib/sysexits.in.h (system_header): Likewise.
30808         * lib/unistd.in.h (system_header): Likewise.
30809         * lib/wctype.in.h (system_header): Likewise.
30810
30811         arpa/inet: fix mingw compilation warning
30812         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30813         Reported by Matthew Bolte.
30814
30815 2010-03-25  Bruno Haible  <bruno@clisp.org>
30816
30817         Avoid collision between gnulib wrapper and libintl wrapper.
30818         * lib/printf.c (printf): Don't define if a printf wrapper is already
30819         defined in intl/printf.c.
30820         Reported by Michel Boaventura <michel@michelboaventura.com>.
30821
30822 2010-03-25  Bruno Haible  <bruno@clisp.org>
30823
30824         Use ANSI C.
30825         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30826
30827 2010-03-25  Bruno Haible  <bruno@clisp.org>
30828
30829         Minor formatting changes.
30830         * lib/acosl.c: Insert space before function argument list.
30831         * lib/argz.c: Likewise.
30832         * lib/asinl.c: Likewise.
30833         * lib/expl.c: Likewise.
30834         * lib/gen-uni-tables.c: Likewise.
30835         * lib/gettext.h: Likewise.
30836         * lib/glthread/lock.h: Likewise.
30837         * lib/tanl.c: Likewise.
30838         * lib/uniname/uniname.c: Likewise.
30839         * tests/test-idpriv-drop.c: Likewise.
30840         * tests/test-idpriv-droptemp.c: Likewise.
30841         * tests/test-lock.c: Likewise.
30842         * tests/test-tls.c: Likewise.
30843         * lib/argp-help.c: Insert space before function-like macro argument
30844         list.
30845         * lib/memcmp.c: Likewise.
30846         * tests/test-base64.c: Likewise.
30847         * lib/localename.c: Insert space before sizeof's argument list.
30848         * lib/safe-alloc.h: Likewise.
30849         * lib/file-set.h: Insert space before macro argument list.
30850         * tests/test-argp.c: Likewise.
30851         * lib/argp-namefrob.h: Insert space before function parameter list.
30852         * lib/getaddrinfo.c: Likewise.
30853         * lib/netdb.in.h: Likewise.
30854         * lib/parse-duration.h: Likewise.
30855         * lib/parse-duration.c: Likewise.
30856         * lib/poll.c: Likewise.
30857         * lib/select.c: Likewise.
30858         * lib/trim.h: Likewise.
30859         * tests/test-usleep.c: Likewise.
30860         * lib/ldexpl.c: Insert space before function parameter list and before
30861         function argument list.
30862         * lib/logl.c: Likewise.
30863         * lib/sqrtl.c: Likewise.
30864         * lib/trim.c: Likewise.
30865         * lib/cosl.c: Use GNU style indentation. Insert space before function
30866         argument list.
30867         * lib/sinl.c: Likewise.
30868         * lib/tsearch.c: Insert space after 'for'.
30869         Reported by Jim Meyering.
30870
30871 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30872
30873         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30874         config header before grepping, as it's not present before
30875         autoreconf/configure are run.  Reported by Simon Josefsson.
30876
30877 2010-03-23  Bruno Haible  <bruno@clisp.org>
30878
30879         pt_chown: Make it work with automake < 1.11.
30880         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30881         Reported by Simon Josefsson.
30882
30883 2010-03-23  Bruno Haible  <bruno@clisp.org>
30884
30885         pt_chown: Don't depend on GPLed modules.
30886         * lib/pt_chown.c: Don't include idpriv.h.
30887         (main): Don't drop privileges.
30888         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30889         Reported by Simon Josefsson.
30890
30891 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30892
30893         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30894         suggestions from karl@freefriends.org (Karl Berry).
30895
30896 2010-03-22  Eric Blake  <eblake@redhat.com>
30897
30898         gethostname: further tweaks
30899         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30900         are overriding gethostname.
30901         Suggested by Bruno Haible.
30902
30903 2010-03-21  Bruno Haible  <bruno@clisp.org>
30904
30905         Fix comments.
30906         * lib/forkpty.c (rpl_forkpty): Fix comment.
30907         * lib/openpty.c (rpl_openpty): Likewise.
30908         Reported by Eric Blake.
30909
30910 2010-03-22  Eric Blake  <eblake@redhat.com>
30911
30912         gethostname: fix build on mingw
30913         * lib/unistd.in.h (includes): Work around fact that mingw
30914         <winsock2.h> re-includes <unistd.h>, by avoiding any
30915         redeclarations if we are being included by <winsock2.h>.
30916         Reported by Matthias Bolte.
30917
30918 2010-03-21  Bruno Haible  <bruno@clisp.org>
30919
30920         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30921         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30922         modifications.
30923         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30924         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30925         provide the replacement.
30926         * modules/forkpty (Depends-on): Add openpty, login_tty.
30927         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30928         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30929         * doc/glibc-functions/forkpty.texi: More supported platforms.
30930         * config/srclist.txt: Add forkpty.c (commented).
30931
30932 2010-03-21  Bruno Haible  <bruno@clisp.org>
30933
30934         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30935         (Makefile.am): Verify that PTY_LIB is defined.
30936
30937         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30938
30939 2010-03-21  Bruno Haible  <bruno@clisp.org>
30940
30941         Tests for module 'login_tty'.
30942         * modules/login_tty-tests: New file.
30943         * tests/test-login_tty.c: New file.
30944
30945         New module 'login_tty'.
30946         * lib/login_tty.c: New file.
30947         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30948         * modules/login_tty: New file.
30949         * doc/glibc-functions/login_tty.texi: Mention the new module.
30950
30951 2010-03-21  Bruno Haible  <bruno@clisp.org>
30952
30953         login_tty: Documentation.
30954         * doc/glibc-functions/login_tty.texi: New file.
30955         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30956
30957 2010-03-21  Bruno Haible  <bruno@clisp.org>
30958
30959         pty: Consistent macro naming.
30960         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30961         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30962         * modules/pty (configure.ac): Update.
30963
30964 2010-03-21  Bruno Haible  <bruno@clisp.org>
30965
30966         Tests for openpty: Make stricter.
30967         * tests/test-openpty.c (main): Add test of canonical processing and
30968         erase.
30969         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30970
30971         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30972         * lib/openpty.c (openpty): New replacement function.
30973         * lib/pty.in.h: Include <termios.h>.
30974         (openpty): Update declaration. Add comments.
30975         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30976         is not declared, arrange to provide the replacement. Check for _getpty
30977         and posix_openpt.
30978         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30980         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30981         * modules/pty-tests (test_pty_c___LDADD): New variable.
30982         * doc/glibc-functions/openpty.texi: More supported platforms.
30983
30984 2010-03-21  Bruno Haible  <bruno@clisp.org>
30985
30986         setenv: Tweaks.
30987         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30988         the test program.
30989         * doc/posix-functions/setenv.texi: Update platforms list.
30990
30991 2010-03-21  Bruno Haible  <bruno@clisp.org>
30992
30993         New module 'unlockpt'.
30994         * lib/unlockpt.c: New file, from glibc with modifications.
30995         * m4/unlockpt.m4: New file.
30996         * modules/unlockpt: New file.
30997         * lib/stdlib.in.h (unlockpt): New declaration.
30998         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30999         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31000         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31001         HAVE_UNLOCKPT.
31002         * doc/posix-functions/unlockpt.texi: Mention the new module.
31003         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31004         * config/srclist.txt: Add unlockpt.c (commented).
31005
31006 2010-03-21  Jim Meyering  <meyering@redhat.com>
31007
31008         maint.mk: prohibit inclusion of "intprops.h" without use
31009         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31010
31011 2010-03-21  Bruno Haible  <bruno@clisp.org>
31012
31013         New module 'grantpt'.
31014         * lib/grantpt.c: New file, from glibc with modifications.
31015         * m4/grantpt.m4: New file.
31016         * modules/grantpt: New file.
31017         * lib/stdlib.in.h (grantpt): New declaration.
31018         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31019         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31020         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31021         HAVE_GRANTPT.
31022         * doc/posix-functions/grantpt.texi: Mention the new module.
31023         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31024         * config/srclist.txt: Add grantpt.c (commented).
31025
31026 2010-03-21  Bruno Haible  <bruno@clisp.org>
31027
31028         New module 'pt_chown'.
31029         * lib/pt_chown.c: New file, from glibc with modifications.
31030         * lib/pty-private.h: New file, from glibc with modifications.
31031         * modules/pt_chown: New file.
31032         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31033
31034 2010-03-21  Bruno Haible  <bruno@clisp.org>
31035
31036         Tests for module 'ptsname'.
31037         * modules/ptsname-tests: New file.
31038         * tests/test-ptsname.c: New file.
31039
31040         New module 'ptsname'.
31041         * lib/ptsname.c: New file, from glibc with modifications.
31042         * m4/ptsname.m4: New file.
31043         * modules/ptsname: New file.
31044         * lib/stdlib.in.h (ptsname): New declaration.
31045         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31046         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31047         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31048         HAVE_PTSNAME.
31049         * doc/posix-functions/ptsname.texi: Mention the new module.
31050         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31051         * config/srclist.txt: Add ptsname.c (commented).
31052
31053 2010-03-21  Bruno Haible  <bruno@clisp.org>
31054
31055         Tests for module 'ttyname_r'.
31056         * modules/ttyname_r-tests: New file.
31057         * tests/test-ttyname_r.c: New file.
31058
31059         New module 'ttyname_r'.
31060         * lib/ttyname_r.c: New file.
31061         * m4/ttyname_r.m4: New file.
31062         * modules/ttyname_r: New file.
31063         * lib/unistd.in.h (ttyname_r): New declaration.
31064         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31065         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31066         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31067         HAVE_TTYNAME_R.
31068         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31069         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31070
31071 2010-03-20  Bruno Haible  <bruno@clisp.org>
31072
31073         signal: Undefine macro definitions in C++ mode.
31074         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31075         sigfillset): Undefine macro definitions from the system header in C++
31076         mode.
31077         Reported by John W. Eaton <jwe@gnu.org>.
31078
31079 2010-03-20  Bruno Haible  <bruno@clisp.org>
31080
31081         Ensure no #include statements inside extern "C" { ... }.
31082         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31083         contain #include statements.
31084         * lib/time.in.h: Likewise.
31085
31086 2010-03-20  Bruno Haible  <bruno@clisp.org>
31087
31088         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31089         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31090         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31091         Reported by John W. Eaton <jwe@gnu.org>.
31092
31093 2010-03-20  Bruno Haible  <bruno@clisp.org>
31094
31095         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31096         Reported by Jim Meyering.
31097
31098 2010-03-20  Bruno Haible  <bruno@clisp.org>
31099
31100         pipe: Set errno upon failure.
31101         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31102         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31103         errno value in error message.
31104
31105 2010-03-20  Bruno Haible  <bruno@clisp.org>
31106             Jim Meyering  <meyering@redhat.com>
31107
31108         lchown: Avoid "unused variable" warning.
31109         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31110
31111 2010-03-20  Bruno Haible  <bruno@clisp.org>
31112
31113         Work around unlink() bug on MacOS X 10.5.6.
31114         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31115         attempting to unlink a parent directory.
31116         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31117         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31118         activate for the replacement function.
31119         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31120
31121 2010-03-20  Bruno Haible  <bruno@clisp.org>
31122
31123         Fix link errors on Solaris 8.
31124         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31125         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31126
31127 2010-03-19  Jim Meyering  <meyering@redhat.com>
31128
31129         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31130         The _LIBC implementation of build_range_exp correctly honors the
31131         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31132         However, the non-_LIBC implementation would ignore that syntax-bit
31133         flag and return REG_ERANGE unconditionally.
31134         This change makes it honor that flag.
31135         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31136         Make two pointer parameters "const".
31137         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31138         (parse_bracket_exp): Update caller.
31139
31140         regex.m4: correct the reversed range endpoint ([b-a]) test
31141         * m4/regex.m4: When requiring that [b-a] evoke failure,
31142         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31143         test pass once again for x86-based systems.
31144
31145 2010-03-19  Bruno Haible  <bruno@clisp.org>
31146
31147         scandir: Fix link error on Solaris 8.
31148         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31149         macros.
31150
31151 2010-03-19  Bruno Haible  <bruno@clisp.org>
31152
31153         getusershell: Fix documentation.
31154         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31155         module.
31156         * doc/glibc-functions/setusershell.texi: Likewise.
31157
31158         getusershell: Provide declaration, missing on Solaris 9.
31159         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31160         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31161         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31162         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31164         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31165         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31166         HAVE_GETUSERSHELL.
31167         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31168
31169 2010-03-19  Bruno Haible  <bruno@clisp.org>
31170
31171         wctype: Provide iswblank function.
31172         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31173         exists and is fine.
31174         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31175         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31176         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31177         * doc/posix-functions/iswblank.texi: Update.
31178
31179 2010-03-19  Bruno Haible  <bruno@clisp.org>
31180
31181         Tests of module 'pty' in C++ mode.
31182         * modules/pty-tests: New file.
31183         * tests/test-pty-c++.cc: New file.
31184         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31185
31186 2010-03-19  Eric Blake  <eblake@redhat.com>
31187
31188         logb: fix documentation
31189         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31190         1.5 declaration bug.
31191
31192         forkpty, openpty: prefer glibc's const-safe prototype
31193         * lib/forkpty.c (rpl_forkpty): New file.
31194         * lib/openpty.c (rpl_openpty): Likewise.
31195         * modules/forkpty (Files): Distribute it.
31196         * modules/openpty (Files): Likewise.
31197         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31198         check...
31199         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31200         replacement for for non-const BSD signature.
31201         * modules/pty (Makefile.am): Substitute witnesses.
31202         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31203         * tests/test-forkpty.c: Update signature check.
31204         * tests/test-openpty.c: Likewise.
31205         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31206         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31207
31208         forkpty, openpty: split functions into new modules
31209         * modules/pty (Makefile.am): Substitute new witnesses.
31210         (Libraries): Move library detection...
31211         * modules/forkpty: ...into new module.
31212         * modules/openpty: Another new module.
31213         * modules/pty-tests: Rename and split...
31214         * modules/forkpty-tests: ...to this...
31215         * modules/openpty-tests: ...and this.
31216         * tests/test-pty.c: Rename and split...
31217         * tests/test-forkpty.c: ...to this...
31218         * tests/test-openpty.c: ...and this.
31219         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31220         (gl_PTY): Split library searching...
31221         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31222         (gl_FORKPTY, gl_OPENPTY): New macros.
31223         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31224         * NEWS: Mention the split.
31225         * MODULES.html.sh (Misc): Document the modules.
31226         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31228
31229         pty: improve replacement header
31230         * lib/pty.in.h: New file.
31231         * modules/pty (Files): Ship it.
31232         (Makefile.am): Always build replacement.
31233         * m4/pty.m4: Rename...
31234         * m4/pty_h.m4: ...to this.
31235         (gl_PTY): Modernize setting of witness macros; update check of
31236         forkpty to take proper advantage of cache.
31237         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31238
31239         getopt: avoid compiler warning
31240         * lib/getopt.c (attribute_hidden): Remove unused macro.
31241
31242 2010-03-18  Bruno Haible  <bruno@clisp.org>
31243
31244         Fix link errors on Solaris 8.
31245         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31246         * modules/search-tests (test_search_c___LDADD): Likewise.
31247         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31248         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31249         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31250         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31251         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31252         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31253         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31254
31255 2010-03-18  Bruno Haible  <bruno@clisp.org>
31256
31257         Fix bug introduced on 2010-03-14.
31258         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31259         (gl_SPAWN_H): Require it.
31260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31261         Reported by Simon Josefsson.
31262
31263 2010-03-18  Bruno Haible  <bruno@clisp.org>
31264
31265         Fix typo introduced on 2009-12-31.
31266         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31267         posix_spawn_file_actions_adddup2.
31268
31269 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31270         and Eric Blake  <eblake@redhat.com>
31271
31272         test-vc-list-files-git: make more robust
31273         * tests/test-vc-list-files-git.sh: Unset problematic environment
31274         variables.  Chain commands together.
31275
31276 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31277
31278         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31279         `AC_CHECK_DECL' invocation.
31280
31281 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31282
31283         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31284         appears before executable statements. Suggested by Petr Sumbera
31285         <Petr.Sumbera@Sun.COM>.
31286
31287 2010-03-14  Bruno Haible  <bruno@clisp.org>
31288
31289         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31290         portability problems. Instead use a simpler test.
31291         (main): Check that invalid arguments are rejected only on Linux.
31292
31293 2010-03-14  Bruno Haible  <bruno@clisp.org>
31294
31295         Fix bug introduced on 2009-12-31.
31296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31297         gl_PREREQ_SYS_H_WINSOCK2 always.
31298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31299         SYS_SOCKET_H variable.
31300         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31301         Update comments.
31302         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31303         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31306         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31307
31308 2010-03-14  Bruno Haible  <bruno@clisp.org>
31309
31310         Fix values returned by sinl, cosl.
31311         * lib/trigl.h: Add specification comments.
31312         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31313         that combines the values from the precomputed table with the values of
31314         the Chebyshev polynomials.
31315
31316 2010-03-14  Bruno Haible  <bruno@clisp.org>
31317
31318         Fix compilation error when modules 'posix_spawn[p]' are not used.
31319         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31321
31322 2010-03-14  Bruno Haible  <bruno@clisp.org>
31323
31324         Fix compilation error on mingw when module 'time_r' is not used.
31325         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31326         is 1.
31327         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31328         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31329         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31331
31332 2010-03-14  Bruno Haible  <bruno@clisp.org>
31333
31334         Fix compilation error with Sun C.
31335         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31336         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31337         instead of GCC specific ULONG_LONG_MAX.
31338         * lib/xstrtoll.c: Likewise.
31339         * lib/xstrtoull.c: Likewise.
31340
31341 2010-03-13  Bruno Haible  <bruno@clisp.org>
31342
31343         Allow the user to disable C++ code and tests.
31344         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31345         (gl_PROG_ANSI_CXX): Require it.
31346
31347 2010-03-13  Bruno Haible  <bruno@clisp.org>
31348
31349         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31350         cases.
31351
31352 2010-03-13  Bruno Haible  <bruno@clisp.org>
31353
31354         Test that gnulib does not break the standard C++ headers.
31355         * tests/test-locale-c++2.cc: New file.
31356         * modules/locale-tests (Files): Add it.
31357         (Makefile.am): Compile it for test-locale-c++.
31358         * tests/test-math-c++2.cc: New file.
31359         * modules/math-tests (Files): Add it.
31360         (Makefile.am): Compile it for test-math-c++.
31361         * tests/test-signal-c++2.cc: New file.
31362         * modules/signal-tests (Files): Add it.
31363         (Makefile.am): Compile it for test-signal-c++.
31364         * tests/test-stdio-c++2.cc: New file.
31365         * modules/stdio-tests (Files): Add it.
31366         (Makefile.am): Compile it for test-stdio-c++.
31367         * tests/test-stdlib-c++2.cc: New file.
31368         * modules/stdlib-tests (Files): Add it.
31369         (Makefile.am): Compile it for test-stdlib-c++.
31370         * tests/test-string-c++2.cc: New file.
31371         * modules/string-tests (Files): Add it.
31372         (Makefile.am): Compile it for test-string-c++.
31373         * tests/test-time-c++2.cc: New file.
31374         * modules/time-tests (Files): Add it.
31375         (Makefile.am): Compile it for test-time-c++.
31376         Reported by John W. Eaton <jwe@gnu.org>.
31377
31378 2010-03-13  Bruno Haible  <bruno@clisp.org>
31379
31380         * gnulib-tool (func_usage): Clarify which options are available for
31381         --create-testdir and --create-megatestdir.
31382
31383 2010-03-13  Bruno Haible  <bruno@clisp.org>
31384
31385         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31386         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31387         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31388         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31389         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31390         when appropriate.
31391         Reported by Jim Meyering.
31392
31393 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31394
31395         * gnulib-tool (func_import): Explain origin of code.
31396
31397 2010-03-12  Bruno Haible  <bruno@clisp.org>
31398
31399         Fix problem with automake's definition of CXXLINK.
31400         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31401         Reported by Simon Josefsson and Ludovic Courtès.
31402
31403 2010-03-12  Bruno Haible  <bruno@clisp.org>
31404
31405         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31406         stable releases.
31407
31408 2010-03-11  Bruno Haible  <bruno@clisp.org>
31409
31410         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31411         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31412         whether the system provides one variant or multiple variants of the
31413         function.
31414         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31415         C++ compilers.
31416         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31417         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31418         Reported by Jim Meyering.
31419
31420 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31421
31422         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31423
31424 2010-03-08  Bruno Haible  <bruno@clisp.org>
31425
31426         gnulib-tool: Add support for --libtool in --create-testdir.
31427         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31428         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31429
31430 2010-03-08  Eric Blake  <eblake@redhat.com>
31431
31432         gnulib-tool.texi: mention possibility of git submodule
31433         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31434         submodules.
31435         * doc/.gitignore: Ignore another generated file.
31436
31437 2010-03-08  Karl Berry  <karl@gnu.org>
31438
31439         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31440         of committing gnulib files while skipping others.
31441
31442 2010-03-07  Bruno Haible  <bruno@clisp.org>
31443
31444         Tests of module 'wctype' in C++ mode.
31445         * tests/test-wctype-c++.cc: New file.
31446         * modules/wctype-tests (Files): Add it and tests/signature.h.
31447         (Depends-on): Add ansi-c++-opt.
31448         (Makefile.am): Arrange to compile and run test-wctype-c++.
31449
31450         Tests of module 'wchar' in C++ mode.
31451         * tests/test-wchar-c++.cc: New file.
31452         * modules/wchar-tests (Files): Add it and tests/signature.h.
31453         (Depends-on): Add ansi-c++-opt.
31454         (Makefile.am): Arrange to compile and run test-wchar-c++.
31455         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31456         gl_MODULE_INDICATOR.
31457
31458         Tests of module 'unistd' in C++ mode.
31459         * tests/test-unistd-c++.cc: New file.
31460         * modules/unistd-tests (Files): Add it and tests/signature.h.
31461         (Depends-on): Add ansi-c++-opt.
31462         (Makefile.am): Arrange to compile and run test-unistd-c++.
31463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31464         gl_MODULE_INDICATOR.
31465
31466         Tests of module 'time' in C++ mode.
31467         * tests/test-time-c++.cc: New file.
31468         * modules/time-tests (Files): Add it and tests/signature.h.
31469         (Depends-on): Add ansi-c++-opt.
31470         (Makefile.am): Arrange to compile and run test-time-c++.
31471         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31472
31473         Tests of module 'sys_time' in C++ mode.
31474         * tests/test-sys_time-c++.cc: New file.
31475         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31476         (Depends-on): Add ansi-c++-opt.
31477         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31478         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31479         gl_MODULE_INDICATOR.
31480
31481         Tests of module 'sys_stat' in C++ mode.
31482         * tests/test-sys_stat-c++.cc: New file.
31483         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31484         (Depends-on): Add ansi-c++-opt.
31485         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31486         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31487         gl_MODULE_INDICATOR.
31488
31489         Tests of module 'sys_socket' in C++ mode.
31490         * tests/test-sys_socket-c++.cc: New file.
31491         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31492         (Depends-on): Add ansi-c++-opt.
31493         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31494         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31495         gl_MODULE_INDICATOR.
31496
31497         Tests of module 'sys_select' in C++ mode.
31498         * tests/test-sys_select-c++.cc: New file.
31499         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31500         (Depends-on): Add ansi-c++-opt.
31501         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31502         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31503         gl_MODULE_INDICATOR.
31504
31505         Tests of module 'sys_ioctl' in C++ mode.
31506         * tests/test-sys_ioctl-c++.cc: New file.
31507         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31508         (Depends-on): Add ansi-c++-opt.
31509         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31511         gl_MODULE_INDICATOR.
31512
31513         Tests of module 'string' in C++ mode.
31514         * tests/test-string-c++.cc: New file.
31515         * modules/string-tests (Files): Add it and tests/signature.h.
31516         (Depends-on): Add ansi-c++-opt.
31517         (Makefile.am): Arrange to compile and run test-string-c++.
31518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31519         gl_MODULE_INDICATOR.
31520
31521         Tests of module 'stdlib' in C++ mode.
31522         * tests/test-stdlib-c++.cc: New file.
31523         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31524         (Depends-on): Add ansi-c++-opt.
31525         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31526         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31527         gl_MODULE_INDICATOR.
31528
31529         Tests of module 'stdio' in C++ mode.
31530         * tests/test-stdio-c++.cc: New file.
31531         * modules/stdio-tests (Files): Add it and tests/signature.h.
31532         (Depends-on): Add ansi-c++-opt.
31533         (Makefile.am): Arrange to compile and run test-stdio-c++.
31534         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31535         gl_MODULE_INDICATOR.
31536
31537         Tests of module 'spawn' in C++ mode.
31538         * tests/test-spawn-c++.cc: New file.
31539         * modules/spawn-tests (Files): Add it and tests/signature.h.
31540         (Depends-on): Add ansi-c++-opt.
31541         (Makefile.am): Arrange to compile and run test-spawn-c++.
31542         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31543         gl_MODULE_INDICATOR.
31544
31545         Tests of module 'signal' in C++ mode.
31546         * tests/test-signal-c++.cc: New file.
31547         * modules/signal-tests (Files): Add it and tests/signature.h.
31548         (Depends-on): Add ansi-c++-opt.
31549         (Makefile.am): Arrange to compile and run test-signal-c++.
31550         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31551         gl_MODULE_INDICATOR.
31552
31553         Tests of module 'search' in C++ mode.
31554         * tests/test-search-c++.cc: New file.
31555         * modules/search-tests (Files): Add it and tests/signature.h.
31556         (Depends-on): Add ansi-c++-opt.
31557         (Makefile.am): Arrange to compile and run test-search-c++.
31558         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31559         gl_MODULE_INDICATOR.
31560
31561         Tests of module 'math' in C++ mode.
31562         * tests/test-math-c++.cc: New file.
31563         * modules/math-tests (Files): Add it and tests/signature.h.
31564         (Depends-on): Add ansi-c++-opt.
31565         (Makefile.am): Arrange to compile and run test-math-c++.
31566         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31567
31568         Tests of module 'locale' in C++ mode.
31569         * tests/test-locale-c++.cc: New file.
31570         * modules/locale-tests (Files): Add it and tests/signature.h.
31571         (Depends-on): Add ansi-c++-opt.
31572         (Makefile.am): Arrange to compile and run test-locale-c++.
31573         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31574         gl_MODULE_INDICATOR.
31575
31576         Tests of module 'langinfo' in C++ mode.
31577         * tests/test-langinfo-c++.cc: New file.
31578         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31579         (Depends-on): Add ansi-c++-opt.
31580         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31581         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31582         gl_MODULE_INDICATOR.
31583
31584         Tests of module 'iconv-h' in C++ mode.
31585         * tests/test-iconv-h-c++.cc: New file.
31586         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31587         (Depends-on): Add ansi-c++-opt.
31588         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31589
31590         Tests of module 'glob' in C++ mode.
31591         * tests/test-glob-c++.cc: New file.
31592         * modules/glob-tests (Files): Add it.
31593         (Depends-on): Add ansi-c++-opt.
31594         (Makefile.am): Arrange to compile and run test-glob-c++.
31595
31596         Tests of module 'fcntl-h' in C++ mode.
31597         * tests/test-fcntl-h-c++.cc: New file.
31598         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31599         (Depends-on): Add ansi-c++-opt.
31600         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31601         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31602         gl_MODULE_INDICATOR.
31603
31604         Tests of module 'dirent' in C++ mode.
31605         * tests/test-dirent-c++.cc: New file.
31606         * modules/dirent-tests (Files): Add it and tests/signature.h.
31607         (Depends-on): Add ansi-c++-opt.
31608         (Makefile.am): Arrange to compile and run test-dirent-c++.
31609         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31610         gl_MODULE_INDICATOR.
31611
31612         New module 'ansi-c++-opt'.
31613         * modules/ansi-c++-opt: New file.
31614         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31615
31616         Document C++ namespace mode.
31617         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31618
31619         wctype: Avoid #define replacements in C++ mode.
31620         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31621         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31622         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31623         In C++, define a namespaced alias symbol.
31624         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31625         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31626         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31627         rule.
31628
31629         wchar: Avoid #define replacements in C++ mode.
31630         * lib/wchar.in.h: Include c++defs.h.
31631         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31632         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31633         symbol.
31634         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31635         * modules/wchar (Depends-on): Add c++defs.
31636         (Makefile.am): Update wchar.h rule.
31637
31638         unistd: Avoid #define replacements in C++ mode.
31639         * lib/unistd.in.h: Include c++defs.h.
31640         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31641         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31642         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31643         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31644         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31645         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31646         symbol.
31647         (environ): Update.
31648         * modules/unistd (Depends-on): Add c++defs.
31649         (Makefile.am): Update unistd.h rule.
31650
31651         time: Avoid #define replacements in C++ mode.
31652         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31653         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31654         define a namespaced alias symbol.
31655         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31656         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31657         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31658         * modules/time (Depends-on): Add c++defs, warn-on-use.
31659         (Makefile.am): Update time.h rule.
31660         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31661         * modules/nanosleep (configure.ac): Likewise.
31662         * modules/strptime (configure.ac): Likewise.
31663         * modules/timegm (configure.ac): Likewise.
31664
31665         sys_time: Avoid #define replacements in C++ mode.
31666         * lib/sys_time.in.h: Include c++defs.h.
31667         (gettimeofday): In C++, define a namespaced alias symbol.
31668         * modules/sys_time (Depends-on): Add c++defs.
31669         (Makefile.am): Update sys/time.h rule.
31670
31671         sys_stat: Avoid #define replacements in C++ mode.
31672         * lib/sys_stat.in.h: Include c++defs.h.
31673         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31674         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31675         namespaced alias symbol.
31676         In C++, define a namespaced alias symbol.
31677         * modules/sys_stat (Depends-on): Add c++defs.
31678         (Makefile.am): Update sys/stat.h rule.
31679
31680         sys_socket: Avoid #define replacements in C++ mode.
31681         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31682         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31683         definitions also when the system has a <sys/socket.h>.
31684         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31685         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31686         In C++, define a namespaced alias symbol.
31687         * modules/sys_socket (Depends-on): Add c++defs.
31688         (Makefile.am): Update sys/socket.h rule.
31689
31690         sys_select: Avoid #define replacements in C++ mode.
31691         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31692         definitions also when the system has a <sys/select.h>.
31693         (select): In C++, define a namespaced alias symbol.
31694         * modules/sys_select (Depends-on): Add c++defs.
31695         (Makefile.am): Update sys/select.h rule.
31696
31697         sys_ioctl: Avoid #define replacements in C++ mode.
31698         * lib/sys_ioctl.in.h: Include c++defs.h.
31699         (ioctl): In C++, define a namespaced alias symbol.
31700         * modules/sys_ioctl (Depends-on): Add c++defs.
31701         (Makefile.am): Update sys/ioctl.h rule.
31702
31703         string: Avoid #define replacements in C++ mode.
31704         * lib/string.in.h: Include c++defs.h.
31705         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31706         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31707         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31708         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31709         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31710         * modules/string (Depends-on): Add c++defs.
31711         (Makefile.am): Update string.h rule.
31712
31713         stdlib: Avoid #define replacements in C++ mode.
31714         * lib/stdlib.in.h: Include c++defs.h.
31715         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31716         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31717         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31718         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31719         symbol.
31720         * modules/stdlib (Depends-on): Add c++defs.
31721         (Makefile.am): Update stdlib.h rule.
31722
31723         stdio: Avoid #define replacements in C++ mode.
31724         * lib/stdio.in.h: Include c++defs.h.
31725         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31726         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31727         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31728         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31729         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31730         namespaced alias symbol.
31731         * modules/stdio (Depends-on): Add c++defs.
31732         (Makefile.am): Update stdio.h rule.
31733
31734         spawn: Avoid #define replacements in C++ mode.
31735         * lib/spawn.in.h: Include c++defs.h.
31736         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31737         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31738         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31739         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31740         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31741         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31742         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31743         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31744         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31745         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31746         In C++, define a namespaced alias symbol.
31747         * modules/spawn (Depends-on): Add c++defs.
31748         (Makefile.am): Update spawn.h rule.
31749
31750         signal: Avoid #define replacements in C++ mode.
31751         * lib/signal.in.h: Include c++defs.h.
31752         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31753         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31754         namespaced alias symbol.
31755         * modules/signal (Depends-on): Add c++defs.
31756         (Makefile.am): Update signal.h rule.
31757
31758         search: Avoid #define replacements in C++ mode.
31759         * lib/search.in.h: Include c++defs.h.
31760         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31761         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31762         symbol.
31763         * modules/search (Depends-on): Add c++defs.
31764         (Makefile.am): Update search.h rule.
31765
31766         math: Avoid #define replacements in C++ mode.
31767         * lib/math.in.h: Include c++defs.h.
31768         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31769         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31770         trunc, truncl): In C++, define a namespaced alias symbol.
31771         * modules/math (Depends-on): Add c++defs.
31772         (Makefile.am): Update math.h rule.
31773
31774         locale: Avoid #define replacements in C++ mode.
31775         * lib/locale.in.h: Include c++defs.h.
31776         (duplocale): In C++, define a namespaced alias symbol.
31777         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31778         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31779         * modules/locale (Depends-on): Add c++defs.
31780         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31781
31782         langinfo: Avoid #define replacements in C++ mode.
31783         * lib/langinfo.in.h: Include c++defs.h.
31784         (nl_langinfo): In C++, define a namespaced alias symbol.
31785         * modules/langinfo (Depends-on): Add c++defs.
31786         (Makefile.am): Update langinfo.h rule.
31787
31788         iconv-h: Avoid #define replacements in C++ mode.
31789         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31790         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31791         symbol.
31792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31793         whenever iconv is present.
31794         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31795         (Makefile.am): Update iconv.h rule.
31796
31797         glob: Avoid #define replacements in C++ mode.
31798         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31799         (_gl_glob_errfunc_fn): New type.
31800         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31801         symbol.
31802         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31803         (Makefile.am): Update glob.h rule.
31804
31805         fcntl-h: Avoid #define replacements in C++ mode.
31806         * lib/fcntl.in.h: Include c++defs.h.
31807         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31808         * modules/fcntl-h (Depends-on): Add c++defs.
31809         (Makefile.am): Update fcntl.h rule.
31810
31811         dirent: Avoid #define replacements in C++ mode.
31812         * lib/dirent.in.h: Include c++defs.h.
31813         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31814         namespaced alias symbol.
31815         (dirfd): Update declaration.
31816         * modules/dirent (Depends-on): Add c++defs.
31817         (Makefile.am): Update dirent.h rule.
31818
31819         ctype: Make it usable in C++ code.
31820         * lib/ctype.in.h: Include c++defs.h.
31821         (isblank): Declare as extern "C".
31822         * modules/ctype (Depends-on): Add c++defs.
31823         (Makefile.am): Update ctype.h rule.
31824
31825         New module 'c++defs'.
31826         * modules/c++defs: New file.
31827         * build-aux/c++defs.h: New file.
31828         Reported by John W. Eaton <jwe@gnu.org>.
31829
31830 2010-03-07  Bruno Haible  <bruno@clisp.org>
31831
31832         logb: Provide missing declaration for Cygwin.
31833         * lib/math.in.h (logb): New declaration.
31834         * m4/logb.m4: New file.
31835         * modules/logb (Files): Add m4/logb.m4.
31836         (Depends-on): Add math.
31837         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31838         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31840         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31841         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31842
31843 2010-03-07  Bruno Haible  <bruno@clisp.org>
31844
31845         Fix test-cond link error.
31846         * tests/test-cond.c: Include <stdio.h>.
31847
31848 2010-03-07  Bruno Haible  <bruno@clisp.org>
31849
31850         Fix test-dirent-safer link error.
31851         * modules/dirent-safer-tests (Makefile.am): Define
31852         test_dirent_safer_LDADD.
31853
31854 2010-03-07  Bruno Haible  <bruno@clisp.org>
31855
31856         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31857         among default module list.
31858
31859 2010-03-07  Bruno Haible  <bruno@clisp.org>
31860
31861         Fix link error on platforms with GNU libiconv.
31862         * modules/unistr/u8-strcoll-tests (Makefile): Define
31863         test_u8_strcoll_LDADD.
31864         * modules/unistr/u16-strcoll-tests (Makefile): Define
31865         test_u16_strcoll_LDADD.
31866         * modules/unistr/u32-strcoll-tests (Makefile): Define
31867         test_u32_strcoll_LDADD.
31868
31869 2010-03-07  Bruno Haible  <bruno@clisp.org>
31870
31871         Use POSIX declarations for socket functions.
31872         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31873         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31874         rpl_sendto): Change declaration to match POSIX.
31875         * lib/connect.c (rpl_connect): Likewise.
31876         * lib/accept.c (rpl_accept): Likewise.
31877         * lib/bind.c (rpl_bind): Likewise.
31878         * lib/getpeername.c (rpl_getpeername): Likewise.
31879         * lib/getsockname.c (rpl_getsockname): Likewise.
31880         * lib/recv.c (rpl_recv): Likewise.
31881         * lib/send.c (rpl_send): Likewise.
31882         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31883         * lib/sendto.c (rpl_sendto): Likewise.
31884
31885 2010-03-06  Bruno Haible  <bruno@clisp.org>
31886
31887         Clarify access, euidaccess, faccessat.
31888         * doc/posix-functions/faccessat.texi: Mention security problem under
31889         "Other problems", not "Portability problems".
31890         * doc/posix-functions/access.texi: Likewise. Mention a related security
31891         problem.
31892         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31893         * lib/euidaccess.c: Add comments about platforms.
31894         * lib/unistd.in.h (access, euidaccess): Add warnings.
31895
31896 2010-03-07  Bruno Haible  <bruno@clisp.org>
31897
31898         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31899         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31900         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31901         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31902         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31903         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31904         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31905         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31906         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31908         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31909         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31910         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31911         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31912         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31913         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31914         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31915         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31916         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31917         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31918         Likewise.
31919         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31920         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31921         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31922         Likewise.
31923         * tests/test-spawn.c (main): Make it work when
31924         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31925
31926 2010-03-07  Bruno Haible  <bruno@clisp.org>
31927
31928         Fix incorrect Makefile.am generation in German locale.
31929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31930         Execute sed command with character range in C locale.
31931
31932 2010-03-06  Bruno Haible  <bruno@clisp.org>
31933
31934         Tests for module 'iconv-h'.
31935         * modules/iconv-h-tests: New file.
31936         * tests/test-iconv-h.c: New file.
31937
31938         New module 'iconv-h'.
31939         * modules/iconv-h: New file.
31940         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31941         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31942         (configure.ac): Remove gl_ICONV_H.
31943         (Makefile.am): Remove rule for iconv.h.
31944
31945 2010-03-06  Bruno Haible  <bruno@clisp.org>
31946
31947         More consistent naming of *.m4 files.
31948         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31949         * modules/wctype (Files): Update.
31950
31951         More consistent naming of *.m4 files.
31952         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31953         * modules/wchar (Files): Update.
31954
31955 2010-03-06  Jim Meyering  <meyering@redhat.com>
31956
31957         euidaccess: relax license to LGPLv2+
31958         * modules/euidaccess (License): Relax to LGPLv2+.
31959
31960 2010-03-06  Bruno Haible  <bruno@clisp.org>
31961
31962         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31963         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31964         (Makefile.am): Augment lib_SOURCES instead.
31965
31966 2010-03-04  Jim Meyering  <meyering@redhat.com>
31967
31968         utime: remove obsolete module
31969         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31970         unnecessary for years, and has been marked as obsolete for 10 months.
31971         * modules/utime: Remove file.
31972         * lib/utime.c: Remove file.
31973         * m4/utime.m4: Remove file.
31974         * m4/utimes-null.m4: Remove file.
31975         * doc/posix-functions/utime.texi (utime): Remove reference to
31976         the module.  Move the sole "fixed by gnulib" item into the
31977         "problems not fixed by Gnulib" list.
31978         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31979
31980 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31981
31982         * modules/exit (License): Relax license to LGPLv2+.
31983         (Status): Mark as obsolete.
31984         * NEWS: Mention deprecated 'exit' module.
31985         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31986         of now obsolete 'exit'.
31987
31988 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31989
31990         fts-lgpl: remove unused module
31991         * modules/fts-lgpl: Remove.
31992         * MODULES.html.sh (func_all_modules): Adjust.
31993         * check-module (find_included_lib_files): Adjust.
31994         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31995
31996 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31997
31998         copy-acl: enhance Solaris ACL error handling
31999         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32000         * lib/set-mode-acl.c (qset_acl): Likewise.
32001
32002 2010-03-02  Bruno Haible  <bruno@clisp.org>
32003
32004         spawn: Don't override the system defined values on FreeBSD 8.
32005         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32006         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32007         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32008         if HAVE_POSIX_SPAWN is 1.
32009         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32010
32011 2010-03-01  Bruno Haible  <bruno@clisp.org>
32012
32013         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32014         regarding Automake.
32015
32016 2010-02-25  Bruno Haible  <bruno@clisp.org>
32017
32018         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32019         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32020         setting, not afterwards.
32021         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32022
32023 2010-02-24  Eric Blake  <eblake@redhat.com>
32024
32025         bootstrap, git-version-gen: use timestamp
32026         * build-aux/git-version-gen (scriptversion): Force UTC.
32027         * build-aux/bootstrap (scriptversion): New variable.
32028
32029         bootstrap: allow older git
32030         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32031         older than 1.6.4.  Requested by the libvirt project.
32032
32033 2010-02-23  Eric Blake  <eblake@redhat.com>
32034
32035         warn-on-use: work with old autoconf
32036         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32037         AS_VAR semantics of autoconf 2.60.
32038         Reported by Bruno Haible.
32039
32040         bootstrap: improve some comments
32041         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32042         clarification comments.
32043
32044         gettimeofday: provide correct function
32045         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32046         when replacement is declared, otherwise provide gettimeofday.
32047         Reported by Michael Goffioul.
32048
32049 2010-02-23  Jim Meyering  <meyering@redhat.com>
32050
32051         lib-ignore: relax license to "unlimited", not LGPLv2+
32052         * modules/lib-ignore (License): Relax to "unlimited".
32053
32054 2010-02-23  Jim Meyering  <meyering@redhat.com>
32055
32056         lib-ignore: relax license to LGPLv2+
32057         * modules/lib-ignore (License): Relax to LGPLv2+.
32058
32059 2010-02-22  Eric Blake  <eblake@redhat.com>
32060
32061         lseek: avoid bash 3.2 broken pipe bug
32062         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32063         warning from bash 3.2.
32064         Reported by Ben Pfaff, with analysis from Bruno Haible.
32065
32066         bootstrap: support non-FSF copyright holder
32067         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32068         bootstrap.conf override of COPYRIGHT_HOLDER.
32069         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32070
32071         bootstrap: interoperate with gettext 0.14.1
32072         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32073
32074         bootstrap: allow for alternate submodule location
32075         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32076         hardcoding submodule location.
32077         (gnulib_mk): Allow direct use of Makefile.am.
32078
32079         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32080         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32081         rather than reconfiguring where the submodule points.
32082
32083         gettimeofday: restore support for platforms that lack function
32084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32085         replacement if function is missing.
32086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32087         * modules/sys_time (Makefile.am): Substitute it.
32088         * lib/sys_time.in.h (gettimeofday): Check it.
32089         Reported by Michael Goffioul.
32090
32091 2010-02-21  Bruno Haible  <bruno@clisp.org>
32092
32093         * lib/stdio.in.h (obstack_printf): Fix typo.
32094
32095 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32096
32097         vc-list-files: use bzr ls's -R option
32098         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32099         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32100
32101 2010-02-21  Jim Meyering  <meyering@redhat.com>
32102
32103         init.sh: fix EXEEXT shims to work also for names like test-prog
32104         * tests/init.sh: Re-exec a better shell, when needed.
32105         If the current shell lacks support for posix $(...), an init.sh-using
32106         test will now try to find a shell that supports that.  If EXEEXT is
32107         nonempty, we also require support for hyphen-in-alias-name and shell
32108         substitutions like ${var#glob}.  Failure to find such a shell results
32109         in a skipped test.
32110
32111 2010-02-21  Bruno Haible  <bruno@clisp.org>
32112
32113         Really work around around "broken pipe" error message from bash 3.2.
32114         * gnulib-tool (func_reset_sigpipe): Remove function.
32115         (echo): In bash 3.2, define to a function that uses printf.
32116         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32117
32118 2010-02-20  Bruno Haible  <bruno@clisp.org>
32119
32120         Restore support for automake 1.9.6 with autoconf 2.61.
32121         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32122         Reported by James Youngman <jay@gnu.org>.
32123
32124 2010-02-20  Bruno Haible  <bruno@clisp.org>
32125
32126         Improve *printf warning condition.
32127         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32128         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32129         and the function is overridden due to SIGPIPE emulation.
32130
32131 2010-02-20  Bruno Haible  <bruno@clisp.org>
32132
32133         * lib/stdio.in.h: Tweak comments.
32134
32135 2010-02-19  Bruno Haible  <bruno@clisp.org>
32136
32137         Make it easier to find modules. New gnulib-tool option '--find'.
32138         * gnulib-tool: New option --find.
32139         (func_usage): Document it.
32140         (func_sanitize_modulelist): New function, extracted from
32141         func_all_modules.
32142         (func_all_modules): Invoke it.
32143         * doc/gnulib-tool.texi (Which modules?): New node.
32144
32145 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32146
32147         * lib/sys_select.in.h: Provide select replacement even if
32148         sys/select.h exists on a system, for Interix.
32149
32150 2010-02-18  Jim Meyering  <meyering@redhat.com>
32151
32152         init.sh: don't use $(...) just yet
32153         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32154         to accommodate e.g., Solaris' /bin/sh.
32155
32156 2010-02-17  Bruno Haible  <bruno@clisp.org>
32157
32158         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32159         Reported by Ludovic Courtès <ludo@gnu.org>.
32160
32161 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32162
32163         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32164         linking with -lintl.
32165
32166 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32167
32168         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32169         if not provided by the system's netdb.h.  Reported by
32170         ludo@gnu.org (Ludovic Courtès).
32171
32172 2010-02-15  Jim Meyering  <meyering@redhat.com>
32173
32174         init.sh: improve portability and efficiency
32175         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32176         "dummy" in a for loop.
32177         Use '!', not '^' to select the complement of a character set used
32178         in a "case" statement.
32179         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32180         Suggestions from Eric Blake.
32181
32182         init.sh: automatically accommodate programs with the .exe suffix
32183         Automatically arrange for an invocation of "prog" to execute the
32184         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32185         may use the simpler "prog", yet still work when built on a system
32186         that requires specifying the added suffix.
32187         Do this by constructing a function named "prog" that invokes
32188         "prog.exe" for each .exe file in selected directories.
32189         * tests/init.sh (find_exe_basenames_): New function.
32190         (create_exe_shim_functions_): New function.
32191         (path_prepend_): Use it.
32192
32193         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32194         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32195         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32196
32197 2010-02-14  Jim Meyering  <meyering@redhat.com>
32198
32199         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32200         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32201         (sc_prohibit_hash_pjw_without_use): New rule.
32202
32203         maint.mk: allow the default upload destination dir to be overridden
32204         * top/maint.mk (upload_dest_dir_): Define with a default that
32205         preserves the status quo.
32206         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32207         Reported by Peter Simons.
32208
32209         maint.mk: prohibit inclusion of "hash.h" without_use
32210         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32211
32212 2010-02-10  Jim Meyering  <meyering@redhat.com>
32213
32214         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32215         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32216
32217 2010-02-09  Eric Blake  <ebb9@byu.net>
32218         and Bruno Haible  <bruno@clisp.org>
32219
32220         obstack-printf-posix: ensure declaration
32221         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32222         extracted from gl_FUNC_OBSTACK_PRINTF.
32223         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32224         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32225         Likewise.
32226         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32227         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32228         0.
32229
32230 2010-02-08  Bruno Haible  <bruno@clisp.org>
32231
32232         gnulib-tool: Fix typo in 2010-02-07 commit.
32233         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32234         Reported by Eric Blake.
32235
32236 2010-02-07  Bruno Haible  <bruno@clisp.org>
32237
32238         gnulib-tool: Fix up caching patches.
32239         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32240         option --no-cache. Use associative arrays when supported by the shell.
32241         (sed_comments): New variable.
32242         (modcache): Renamed from do_cache.
32243         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32244         abbreviate unnecessarily.
32245         (have_associative): New variable.
32246         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32247         way also for ksh and zsh.
32248         (func_init_sed_convert_to_cache_statements): New function, extracted
32249         from func_cache_lookup_module. Add support for associative arrays.
32250         Don't set the c_MODULE_cached variable here. Ignore all lines before
32251         the first field header. Remove only the final newline, not all trailing
32252         newlines. Support empty fields correctly. Limit the use of 'eval' to
32253         assignments.
32254         (func_get_description, func_get_status, func_get_notice,
32255         func_get_applicability, func_get_filelist, func_get_dependencies,
32256         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32257         func_get_automake_snippet, func_get_include_directive,
32258         func_get_link_directive, func_get_license, func_get_maintainer):
32259         Update documentation. List the unoptimized code first. Add support for
32260         associative arrays. Limit the use of 'eval' to assignments.
32261         (func_get_applicability): Undo stylistic pessimisations.
32262         (func_get_automake_snippet, func_get_include_directive): Reduce code
32263         duplication.
32264         (func_modules_transitive_closure, func_modules_add_dummy,
32265         func_modules_notice, func_modules_to_filelist, func_add_file,
32266         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32267         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32268         func_create_testdir, func_create_megatestdir): Update documentation.
32269
32270 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32271
32272         * gnulib-tool (func_cache_lookup_module): Store the module name
32273         belonging to the cache variable; error out if two different
32274         module names map to the same cache variable name.
32275
32276 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32277
32278         gnulib-tool: Make caching optional.
32279         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32280         Update matching short versions of --no-changelog.
32281         (func_usage): Update.
32282         (sed_extract_cache_prog): Renamed from ...
32283         (sed_extract_prog): ... this; revert to old extraction script.
32284         (func_get_description, func_get_status)
32285         (func_get_notice, func_get_applicability, func_get_filelist)
32286         (func_get_dependencies, func_get_autoconf_early_snippet)
32287         (func_get_autoconf_snippet, func_get_automake_snippet)
32288         (func_get_include_directive, func_get_link_directive)
32289         (func_get_license, func_get_maintainer): If $do_cache is false,
32290         use old, non-caching extraction scripts.
32291         Suggestion by Bruno Haible.
32292
32293 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32294
32295         gnulib-tool: cache module metainformation.
32296         * gnulib-tool (sed_extract_prog): Match newline before each
32297         header, and rewrite header to a shell variable suffix.
32298         (func_cache_var, func_cache_lookup_module): New functions,
32299         to turn a module name into a cache variable prefix, and to
32300         look up and cache module metainformation.
32301         (func_get_description, func_get_status)
32302         (func_get_notice, func_get_applicability, func_get_filelist)
32303         (func_get_dependencies, func_get_autoconf_early_snippet)
32304         (func_get_autoconf_snippet, func_get_automake_snippet)
32305         (func_get_include_directive, func_get_link_directive)
32306         (func_get_license, func_get_maintainer): Use
32307         func_cache_lookup_module.
32308
32309 2010-02-07  Bruno Haible  <bruno@clisp.org>
32310
32311         fnctl: Fix missing dependency.
32312         * modules/fcntl (Depends-on): Add getdtablesize.
32313         Reported by John W. Eaton <jwe@gnu.org>.
32314
32315 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32316
32317         Argp: fix recognition of short alias options.
32318
32319         * lib/argp-parse.c (convert_options): Fix improper use of
32320         `|' between character values.
32321         * tests/test-argp.c (group1_option): New alias option
32322         --read (-r).
32323         (group1_parser): Special handling for 'r'.
32324         (test15): New test case.
32325         (test_fun): Add test15.
32326         * tests/test-argp-2.sh: Update expected --help and --usage
32327         outputs.
32328
32329 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32330
32331         * tests/test-argp.c: Fix indentation.
32332
32333 2010-02-04  Eric Blake  <ebb9@byu.net>
32334
32335         gettimeofday: expose type of second argument
32336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32337         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32338         * tests/test-gettimeofday.c: Use it to silence warning.
32339         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32340         the issue.
32341
32342 2010-02-03  Jim Meyering  <meyering@redhat.com>
32343
32344         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32345         * lib/regcomp.c (TYPE_SIGNED): Define.
32346         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32347
32348         regcomp.c: avoid a new -Wshadow warning
32349         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32350
32351 2010-02-01  Jim Meyering  <meyering@redhat.com>
32352
32353         removing useless parentheses in cpp #define directives
32354         For motivation, see commit c0221df4, "define STREQ(a,b)
32355         consistently, removing useless parentheses"
32356         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32357         * lib/mountlist.c (MNT_IGNORE): Likewise.
32358         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32359
32360 2010-02-01  Eric Blake  <ebb9@byu.net>
32361
32362         sys_time: use link-warning
32363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32364         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32365         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32366         * modules/sys_time (Depends-on): Add warn-on-use.
32367         (Makefile.am): Always build replacement.
32368         (configure.ac): Update substitutions.
32369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32370         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32371         bother with SYS_TIME_H.
32372         * modules/gettimeofday (configure.ac): Declare indicator.
32373         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32374         in use.
32375
32376         closein-tests: silence compiler warning
32377         * tests/test-closein.c (main): Ignore fread result.
32378         * modules/closein-tests (Depends-on): Add ignore-value.
32379
32380         tests: silence warning about system return
32381         * tests/test-areadlink-with-size.c (main): Ignore system result.
32382         * tests/test-areadlink.c (main): Likewise.
32383         * tests/test-areadlinkat-with-size.c (main): Likewise.
32384         * tests/test-areadlinkat.c (main): Likewise.
32385         * tests/test-canonicalize-lgpl.c (main): Likewise.
32386         * tests/test-canonicalize.c (main): Likewise.
32387         * tests/test-chown.c (main): Likewise.
32388         * tests/test-fchownat.c (main): Likewise.
32389         * tests/test-fdutimensat.c (main): Likewise.
32390         * tests/test-fstatat.c (main): Likewise.
32391         * tests/test-futimens.c (main): Likewise.
32392         * tests/test-lchown.c (main): Likewise.
32393         * tests/test-link.c (main): Likewise.
32394         * tests/test-linkat.c (main): Likewise.
32395         * tests/test-lstat.c (main): Likewise.
32396         * tests/test-mkdir.c (main): Likewise.
32397         * tests/test-mkdirat.c (main): Likewise.
32398         * tests/test-mkfifo.c (main): Likewise.
32399         * tests/test-mkfifoat.c (main): Likewise.
32400         * tests/test-mknod.c (main): Likewise.
32401         * tests/test-readlink.c (main): Likewise.
32402         * tests/test-remove.c (main): Likewise.
32403         * tests/test-rename.c (main): Likewise.
32404         * tests/test-renameat.c (main): Likewise.
32405         * tests/test-rmdir.c (main): Likewise.
32406         * tests/test-symlink.c (main): Likewise.
32407         * tests/test-symlinkat.c (main): Likewise.
32408         * tests/test-unlink.c (main): Likewise.
32409         * tests/test-unlinkat.c (main): Likewise.
32410         * tests/test-utimens.c (main): Likewise.
32411         * tests/test-utimensat.c (main): Likewise.
32412         * modules/areadlink-tests (Depends-on): Add ignore-value.
32413         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32414         * modules/areadlinkat-tests (Depends-on): Likewise.
32415         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32416         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32417         * modules/canonicalize-tests (Depends-on): Likewise.
32418         * modules/chown-tests (Depends-on): Likewise.
32419         * modules/fdutimensat-tests (Depends-on): Likewise.
32420         * modules/futimens-tests (Depends-on): Likewise.
32421         * modules/lchown-tests (Depends-on): Likewise.
32422         * modules/link-tests (Depends-on): Likewise.
32423         * modules/linkat-tests (Depends-on): Likewise.
32424         * modules/lstat-tests (Depends-on): Likewise.
32425         * modules/mkdir-tests (Depends-on): Likewise.
32426         * modules/mkfifo-tests (Depends-on): Likewise.
32427         * modules/mkfifoat-tests (Depends-on): Likewise.
32428         * modules/mknod-tests (Depends-on): Likewise.
32429         * modules/openat-tests (Depends-on): Likewise.
32430         * modules/readlink-tests (Depends-on): Likewise.
32431         * modules/remove-tests (Depends-on): Likewise.
32432         * modules/rename-tests (Depends-on): Likewise.
32433         * modules/renameat-tests (Depends-on): Likewise.
32434         * modules/rmdir-tests (Depends-on): Likewise.
32435         * modules/symlink-tests (Depends-on): Likewise.
32436         * modules/symlinkat-tests (Depends-on): Likewise.
32437         * modules/unlink-tests (Depends-on): Likewise.
32438         * modules/utimens-tests (Depends-on): Likewise.
32439         * modules/utimensat-tests (Depends-on): Likewise.
32440
32441 2010-01-31  Bruno Haible  <bruno@clisp.org>
32442
32443         Perform the same test for many <math.h> functions.
32444         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32445         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32446         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32447         of gl_MATHFUNC.
32448         * modules/acos (configure.ac): Likewise.
32449         * modules/asin (configure.ac): Likewise.
32450         * modules/atan (configure.ac): Likewise.
32451         * modules/atan2 (configure.ac): Likewise.
32452         * modules/cbrt (configure.ac): Likewise.
32453         * modules/copysign (configure.ac): Likewise.
32454         * modules/cos (configure.ac): Likewise.
32455         * modules/cosh (configure.ac): Likewise.
32456         * modules/erf (configure.ac): Likewise.
32457         * modules/erfc (configure.ac): Likewise.
32458         * modules/exp (configure.ac): Likewise.
32459         * modules/fmod (configure.ac): Likewise.
32460         * modules/hypot (configure.ac): Likewise.
32461         * modules/j0 (configure.ac): Likewise.
32462         * modules/j1 (configure.ac): Likewise.
32463         * modules/jn (configure.ac): Likewise.
32464         * modules/lgamma (configure.ac): Likewise.
32465         * modules/log (configure.ac): Likewise.
32466         * modules/log10 (configure.ac): Likewise.
32467         * modules/log1p (configure.ac): Likewise.
32468         * modules/pow (configure.ac): Likewise.
32469         * modules/remainder (configure.ac): Likewise.
32470         * modules/sin (configure.ac): Likewise.
32471         * modules/sinh (configure.ac): Likewise.
32472         * modules/tan (configure.ac): Likewise.
32473         * modules/tanh (configure.ac): Likewise.
32474         * modules/y0 (configure.ac): Likewise.
32475         * modules/y1 (configure.ac): Likewise.
32476         * modules/yn (configure.ac): Likewise.
32477         Suggested by Paolo Bonzini.
32478
32479 2010-01-31  Bruno Haible  <bruno@clisp.org>
32480
32481         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32482
32483 2010-01-31  Bruno Haible  <bruno@clisp.org>
32484
32485         Work around getdelim() bug on FreeBSD 8.0.
32486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32487         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32488         not work.
32489         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32490         is 1.
32491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32492         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32493         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32494         a non-zero size.
32495         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32496
32497 2010-01-31  Bruno Haible  <bruno@clisp.org>
32498
32499         Work around getline() bug on FreeBSD 8.0.
32500         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32501         and a non-zero size.
32502         * tests/test-getline.c (main): Likewise.
32503         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32504         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32505
32506 2010-01-28  Eric Blake  <ebb9@byu.net>
32507
32508         regex: fix build failure
32509         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32510         platforms.
32511
32512 2010-01-28  Jim Meyering  <meyering@redhat.com>
32513
32514         regex: do not ignore memory allocation failure
32515         * lib/regex_internal.c (create_cd_newstate): Detect
32516         re_node_set_init_copy failure.   Extracted from glibc commit
32517         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32518
32519         regex: sync more white-space changes from libc
32520         * lib/regex_internal.c: White-space only changes.
32521         * lib/regexec.c: Likewise.
32522
32523         regex: add many uses of __attribute_warn_unused_result__
32524         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32525         * lib/regexec.c: Likewise.
32526         Extracted from a messy glibc commit.
32527
32528         regcomp.c: spelling and merge-artifact from glibc
32529         * lib/regcomp.c: Merge remainder of glibc's
32530         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32531
32532         regcomp.c: sync white-space changes from glibc
32533         * lib/regcomp.c: Merge to accommodate white space
32534         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32535
32536         regcomp.c: do not ignore internal return values
32537         * lib/regcomp.c: Do not ignore internal return values.
32538         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32539         but without its white-space changes and spelling fixes.
32540
32541         regex_internal.h: define __attribute_warn_unused_result__
32542         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32543
32544         maint: add a syntax-check rule to check for vulnerable Makefile.in
32545         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32546
32547 2010-01-27  Jim Meyering  <meyering@redhat.com>
32548
32549         ncftpput-ftp: clean up spaces
32550         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32551         Remove trailing blanks.
32552
32553 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32554
32555         * build-aux/git-version-gen: Fix copyright statement.
32556         * build-aux/gnupload: Likewise.
32557         * tests/test-arcfour.c: Likewise.
32558         * tests/test-arctwo.c: Likewise.
32559         * tests/test-count-one-bits.c: Likewise.
32560         * tests/test-crc.c: Likewise.
32561         * tests/test-des.c: Likewise.
32562         * tests/test-gc-arcfour.c: Likewise.
32563         * tests/test-gc-arctwo.c: Likewise.
32564         * tests/test-gc-des.c: Likewise.
32565         * tests/test-gc-hmac-md5.c: Likewise.
32566         * tests/test-gc-hmac-sha1.c: Likewise.
32567         * tests/test-gc-md2.c: Likewise.
32568         * tests/test-gc-md4.c: Likewise.
32569         * tests/test-gc-md5.c: Likewise.
32570         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32571         * tests/test-gc-rijndael.c: Likewise.
32572         * tests/test-gc-sha1.c: Likewise.
32573         * tests/test-gc.c: Likewise.
32574         * tests/test-gethostname.c: Likewise.
32575         * tests/test-gettimeofday.c: Likewise.
32576         * tests/test-hash.c: Likewise.
32577         * tests/test-hmac-md5.c: Likewise.
32578         * tests/test-hmac-sha1.c: Likewise.
32579         * tests/test-md2.c: Likewise.
32580         * tests/test-md4.c: Likewise.
32581         * tests/test-md5.c: Likewise.
32582         * tests/test-memchr.c: Likewise.
32583         * tests/test-memchr2.c: Likewise.
32584         * tests/test-memcmp.c: Likewise.
32585         * tests/test-memmem.c: Likewise.
32586         * tests/test-memrchr.c: Likewise.
32587         * tests/test-rawmemchr.c: Likewise.
32588         * tests/test-read-file.c: Likewise.
32589         * tests/test-rijndael.c: Likewise.
32590         * tests/test-sockets.c: Likewise.
32591         * tests/test-strchrnul.c: Likewise.
32592         * tests/test-strstr.c: Likewise.
32593         * tests/test-strtod.c: Likewise.
32594         * build-aux/ncftpput-ftp: Likewise.
32595
32596 2010-01-26  Eric Blake  <ebb9@byu.net>
32597
32598         ignore-value: update recommended header name
32599         * modules/ignore-value (Include): Only use <> for headers that
32600         exist in glibc.
32601
32602 2010-01-26  Jim Meyering  <meyering@redhat.com>
32603
32604         test-userspec.c: avoid compiler warnings
32605         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32606         and "initialization discards qualifiers..." warnings.
32607         Put the first "uid" in its own scope, and make char* members "const".
32608
32609 2010-01-25  Bruno Haible  <bruno@clisp.org>
32610
32611         gnulib-tool: Make warning diagnostics consistent.
32612         * gnulib-tool (func_warning): New function.
32613         Use it everywhere where gnulib-tool produces output to stderr and it is
32614         not a fatal error.
32615
32616 2010-01-25  Bruno Haible  <bruno@clisp.org>
32617
32618         Fix test dependencies.
32619         * modules/xstrtol-tests (Depends-on): Add inttypes.
32620         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32621
32622 2010-01-25 Pádraig Brady <P@draigBrady.com>
32623
32624         syntax-check: detect incorrect boolean macro values in config.h
32625         * modules/maintainer-makefile (configure.ac): Parameterize the location
32626         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32627         The logic is from Eric Blake and the location indicated by Jim Meyering.
32628         Note the more natural CONFIG_HEADER name is prohibited by automake
32629         for backwards compatibility reasons.
32630         * top/maint.mk (sc_Wundef_boolean): New rule.
32631
32632 2010-01-25  Jim Meyering  <meyering@redhat.com>
32633
32634         bootstrap: detect MacOS 10.6's shasum, too
32635         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32636         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32637
32638 2010-01-23  Jim Meyering  <meyering@redhat.com>
32639
32640         xstrtoll: new module
32641         * modules/xstrtoll: New file.
32642         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32643         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32644         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32645         ./configure fails if you use this module and lack "long long".
32646         * modules/xstrtoll-tests: New module.
32647         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32648         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32649         new init.sh-based test framework.
32650
32651 2010-01-24  Bruno Haible  <bruno@clisp.org>
32652
32653         Tests for module 'yn'.
32654         * modules/yn-tests: New file.
32655         * tests/test-yn.c: New file.
32656
32657         Tests for module 'y1'.
32658         * modules/y1-tests: New file.
32659         * tests/test-y1.c: New file.
32660
32661         Tests for module 'y0'.
32662         * modules/y0-tests: New file.
32663         * tests/test-y0.c: New file.
32664
32665         Tests for module 'tanh'.
32666         * modules/tanh-tests: New file.
32667         * tests/test-tanh.c: New file.
32668
32669         Tests for module 'tan'.
32670         * modules/tan-tests: New file.
32671         * tests/test-tan.c: New file.
32672
32673         Tests for module 'sqrt'.
32674         * modules/sqrt-tests: New file.
32675         * tests/test-sqrt.c: New file.
32676
32677         Tests for module 'sinh'.
32678         * modules/sinh-tests: New file.
32679         * tests/test-sinh.c: New file.
32680
32681         Tests for module 'sin'.
32682         * modules/sin-tests: New file.
32683         * tests/test-sin.c: New file.
32684
32685         Tests for module 'rint'.
32686         * modules/rint-tests: New file.
32687         * tests/test-rint.c: New file.
32688
32689         Tests for module 'remainder'.
32690         * modules/remainder-tests: New file.
32691         * tests/test-remainder.c: New file.
32692
32693         Tests for module 'pow'.
32694         * modules/pow-tests: New file.
32695         * tests/test-pow.c: New file.
32696
32697         Tests for module 'nextafter'.
32698         * modules/nextafter-tests: New file.
32699         * tests/test-nextafter.c: New file.
32700
32701         Tests for module 'modf'.
32702         * modules/modf-tests: New file.
32703         * tests/test-modf.c: New file.
32704
32705         Tests for module 'logb'.
32706         * modules/logb-tests: New file.
32707         * tests/test-logb.c: New file.
32708
32709         Tests for module 'log1p'.
32710         * modules/log1p-tests: New file.
32711         * tests/test-log1p.c: New file.
32712
32713         Tests for module 'log10'.
32714         * modules/log10-tests: New file.
32715         * tests/test-log10.c: New file.
32716
32717         Tests for module 'log'.
32718         * modules/log-tests: New file.
32719         * tests/test-log.c: New file.
32720
32721         Tests for module 'lgamma'.
32722         * modules/lgamma-tests: New file.
32723         * tests/test-lgamma.c: New file.
32724
32725         Tests for module 'ldexp'.
32726         * modules/ldexp-tests: New file.
32727         * tests/test-ldexp.c: New file.
32728
32729         Tests for module 'jn'.
32730         * modules/jn-tests: New file.
32731         * tests/test-jn.c: New file.
32732
32733         Tests for module 'j1'.
32734         * modules/j1-tests: New file.
32735         * tests/test-j1.c: New file.
32736
32737         Tests for module 'j0'.
32738         * modules/j0-tests: New file.
32739         * tests/test-j0.c: New file.
32740
32741         Tests for module 'hypot'.
32742         * modules/hypot-tests: New file.
32743         * tests/test-hypot.c: New file.
32744
32745         Tests for module 'fmod'.
32746         * modules/fmod-tests: New file.
32747         * tests/test-fmod.c: New file.
32748
32749         Tests for module 'fabs'.
32750         * modules/fabs-tests: New file.
32751         * tests/test-fabs.c: New file.
32752
32753         Tests for module 'exp'.
32754         * modules/exp-tests: New file.
32755         * tests/test-exp.c: New file.
32756
32757         Tests for module 'erfc'.
32758         * modules/erfc-tests: New file.
32759         * tests/test-erfc.c: New file.
32760
32761         Tests for module 'erf'.
32762         * modules/erf-tests: New file.
32763         * tests/test-erf.c: New file.
32764
32765         Tests for module 'cosh'.
32766         * modules/cosh-tests: New file.
32767         * tests/test-cosh.c: New file.
32768
32769         Tests for module 'cos'.
32770         * modules/cos-tests: New file.
32771         * tests/test-cos.c: New file.
32772
32773         Tests for module 'copysign'.
32774         * modules/copysign-tests: New file.
32775         * tests/test-copysign.c: New file.
32776
32777         Tests for module 'cbrt'.
32778         * modules/cbrt-tests: New file.
32779         * tests/test-cbrt.c: New file.
32780
32781         Tests for module 'atan2'.
32782         * modules/atan2-tests: New file.
32783         * tests/test-atan2.c: New file.
32784
32785         Tests for module 'atan'.
32786         * modules/atan-tests: New file.
32787         * tests/test-atan.c: New file.
32788
32789         Tests for module 'asin'.
32790         * modules/asin-tests: New file.
32791         * tests/test-asin.c: New file.
32792
32793         Tests for module 'acos'.
32794         * modules/acos-tests: New file.
32795         * tests/test-acos.c: New file.
32796
32797 2010-01-24  Bruno Haible  <bruno@clisp.org>
32798
32799         Fix tests for common <math.h> functions.
32800         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32801         code snippet that references the function pointer, rather than merely
32802         calling the function. Substitute the FUNC_LIBM variable.
32803         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32804         * modules/acos (configure.ac): Likewise.
32805         * modules/asin (configure.ac): Likewise.
32806         * modules/atan (configure.ac): Likewise.
32807         * modules/atan2 (configure.ac): Likewise.
32808         * modules/cbrt (configure.ac): Likewise.
32809         * modules/copysign (configure.ac): Likewise.
32810         * modules/cos (configure.ac): Likewise.
32811         * modules/cosh (configure.ac): Likewise.
32812         * modules/erf (configure.ac): Likewise.
32813         * modules/erfc (configure.ac): Likewise.
32814         * modules/exp (configure.ac): Likewise.
32815         * modules/fabs (configure.ac): Likewise.
32816         * modules/fmod (configure.ac): Likewise.
32817         * modules/hypot (configure.ac): Likewise.
32818         * modules/j0 (configure.ac): Likewise.
32819         * modules/j1 (configure.ac): Likewise.
32820         * modules/jn (configure.ac): Likewise.
32821         * modules/ldexp (configure.ac): Likewise.
32822         * modules/lgamma (configure.ac): Likewise.
32823         * modules/log (configure.ac): Likewise.
32824         * modules/log10 (configure.ac): Likewise.
32825         * modules/log1p (configure.ac): Likewise.
32826         * modules/logb (configure.ac): Likewise.
32827         * modules/modf (configure.ac): Likewise.
32828         * modules/nextafter (configure.ac): Likewise.
32829         * modules/pow (configure.ac): Likewise.
32830         * modules/remainder (configure.ac): Likewise.
32831         * modules/rint (configure.ac): Likewise.
32832         * modules/sin (configure.ac): Likewise.
32833         * modules/sinh (configure.ac): Likewise.
32834         * modules/tan (configure.ac): Likewise.
32835         * modules/tanh (configure.ac): Likewise.
32836         * modules/y0 (configure.ac): Likewise.
32837         * modules/y1 (configure.ac): Likewise.
32838         * modules/yn (configure.ac): Likewise.
32839
32840 2010-01-24  Bruno Haible  <bruno@clisp.org>
32841
32842         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32843         * tests/test-acosl.c (x): New variable.
32844         (main): Store argument in x and fetch it from x.
32845         * tests/test-asinl.c (x): New variable.
32846         (main): Store argument in x and fetch it from x.
32847         * tests/test-atanl.c (x): New variable.
32848         (main): Store argument in x and fetch it from x.
32849         * tests/test-cosl.c (x): New variable.
32850         (main): Store argument in x and fetch it from x.
32851         * tests/test-expl.c (x): New variable.
32852         (main): Store argument in x and fetch it from x.
32853         * tests/test-logl.c (x): New variable.
32854         (main): Store argument in x and fetch it from x.
32855         * tests/test-sinl.c (x): New variable.
32856         (main): Store argument in x and fetch it from x.
32857         * tests/test-sqrtl.c (x): New variable.
32858         (main): Store argument in x and fetch it from x.
32859         * tests/test-tanl.c (x): New variable.
32860         (main): Store argument in x and fetch it from x.
32861
32862 2010-01-24  Bruno Haible  <bruno@clisp.org>
32863
32864         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32865         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32866         assignments to the initial TESTS_ENVIRONMENT.
32867         * doc/gnulib.texi (Unit test modules): Document it.
32868         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32869         TESTS_ENVIRONMENT.
32870         * modules/btowc-tests (Makefile.am): Likewise.
32871         * modules/c-stack-tests (Makefile.am): Likewise.
32872         * modules/c-strcase-tests (Makefile.am): Likewise.
32873         * modules/copy-file-tests (Makefile.am): Likewise.
32874         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32875         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32876         * modules/mbrtowc-tests (Makefile.am): Likewise.
32877         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32878         * modules/mbscasestr-tests (Makefile.am): Likewise.
32879         * modules/mbschr-tests (Makefile.am): Likewise.
32880         * modules/mbscspn-tests (Makefile.am): Likewise.
32881         * modules/mbsinit-tests (Makefile.am): Likewise.
32882         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32883         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32884         * modules/mbspbrk-tests (Makefile.am): Likewise.
32885         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32886         * modules/mbsrchr-tests (Makefile.am): Likewise.
32887         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32888         * modules/mbsspn-tests (Makefile.am): Likewise.
32889         * modules/mbsstr-tests (Makefile.am): Likewise.
32890         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32891         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32892         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32893         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32894         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32895         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32896         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32897         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32898         * modules/wcrtomb-tests (Makefile.am): Likewise.
32899         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32900         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32901         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32902         assignments from TESTS_ENVIRONMENT.
32903         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32904         augmentation.
32905         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32906         * modules/atexit-tests (Makefile.am): Likewise.
32907         * modules/binary-io-tests (Makefile.am): Likewise.
32908         * modules/closein-tests (Makefile.am): Likewise.
32909         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32910         * modules/exclude-tests (Makefile.am): Likewise.
32911         * modules/fflush-tests (Makefile.am): Likewise.
32912         * modules/fpending-tests (Makefile.am): Likewise.
32913         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32914         * modules/freadahead-tests (Makefile.am): Likewise.
32915         * modules/freadptr-tests (Makefile.am): Likewise.
32916         * modules/freadseek-tests (Makefile.am): Likewise.
32917         * modules/fseek-tests (Makefile.am): Likewise.
32918         * modules/fseeko-tests (Makefile.am): Likewise.
32919         * modules/ftell-tests (Makefile.am): Likewise.
32920         * modules/ftello-tests (Makefile.am): Likewise.
32921         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32922         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32923         * modules/lseek-tests (Makefile.am): Likewise.
32924         * modules/parse-duration-tests (Makefile.am): Likewise.
32925         * modules/perror-tests (Makefile.am): Likewise.
32926         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32927         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32928         * modules/pipe-tests (Makefile.am): Likewise.
32929         * modules/pread-tests (Makefile.am): Likewise.
32930         * modules/printf-posix-tests (Makefile.am): Likewise.
32931         * modules/select-tests (Makefile.am): Likewise.
32932         * modules/sigpipe-tests (Makefile.am): Likewise.
32933         * modules/tsearch-tests (Makefile.am): Likewise.
32934         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32935         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32936         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32937         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32938         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32939         * modules/version-etc-tests (Makefile.am): Likewise.
32940         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32941         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32942         * modules/xalloc-die-tests (Makefile.am): Likewise.
32943         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32944         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32945         * modules/xstrtol-tests (Makefile.am): Likewise.
32946         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32947         * modules/yesno-tests (Makefile.am): Likewise.
32948         Suggested by Jim Meyering.
32949
32950 2010-01-24  Bruno Haible  <bruno@clisp.org>
32951
32952         More documentation.
32953         * doc/gnulib.texi (Writing modules): New chapter.
32954         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32955         the new chapter.
32956
32957 2010-01-24  Jim Meyering  <meyering@redhat.com>
32958
32959         maint.mk: do not prepend "./" after filtering
32960         * top/maint.mk (_prepend_srcdir_prefix): New variable
32961         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32962         "./" when $(srcdir) is ".".
32963
32964         define STREQ(a,b) consistently, removing useless parentheses
32965         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32966         since the only risk is that "a" or "b" contains an unparenthesized
32967         comma, but if either did that, STREQ would have 3 or more arguments.
32968         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32969         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32970         * lib/hash-triple.c (STREQ): Likewise.
32971         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32972         * lib/getugroups.c (STREQ): Likewise.
32973
32974 2010-01-23  Jim Meyering  <meyering@redhat.com>
32975
32976         maint.mk: fix syntax-check in a non-srcdir build directory
32977         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32978         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32979
32980 2010-01-22  Jim Meyering  <meyering@redhat.com>
32981
32982         userspec: add unit tests
32983         * tests/test-userspec.c: New file.
32984         * modules/userspec-tests: Likewise.
32985
32986 2010-01-21  Jim Meyering  <meyering@redhat.com>
32987
32988         maint.mk: handle source file names containing "." robustly
32989         * top/maint.mk (_dot_escaped_srcdir): Define.
32990         (VC_LIST): Use it in LHS of sed substitution.
32991
32992 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32993
32994         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32995         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32996         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32997         from a non-srcdir build.
32998
32999 2010-01-20  Eric Blake  <ebb9@byu.net>
33000
33001         warn-on-use: use instead of link-warning
33002         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33003         * modules/unistd (Depends-on, Makefile.am): Likewise.
33004         * modules/arpa_inet (Depends-on): Replace link-warning with
33005         warn-on-use.
33006         (Makefile.am): Update rules accordingly.
33007         * modules/ctype (Depends-on, Makefile.am): Likewise.
33008         * modules/dirent (Depends-on, Makefile.am): Likewise.
33009         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33010         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33011         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33012         * modules/locale (Depends-on, Makefile.am): Likewise.
33013         * modules/math (Depends-on, Makefile.am): Likewise.
33014         * modules/search (Depends-on, Makefile.am): Likewise.
33015         * modules/signal (Depends-on, Makefile.am): Likewise.
33016         * modules/spawn (Depends-on, Makefile.am): Likewise.
33017         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33018         * modules/string (Depends-on, Makefile.am): Likewise.
33019         * modules/strings (Depends-on, Makefile.am): Likewise.
33020         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33021         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33022         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33023         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33024         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33025         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33026         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33027         * modules/wchar (Depends-on, Makefile.am): Likewise.
33028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33029         should be poisoned.
33030         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33031         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33032         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33034         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33035         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33036         * m4/math_h.m4 (gl_MATH_H): Likewise.
33037         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33038         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33039         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33040         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33041         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33042         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33043         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33051         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33052         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33053         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33054         GL_LINK_WARNING.
33055         * lib/ctype.in.h: Likewise.
33056         * lib/dirent.in.h: Likewise.
33057         * lib/fcntl.in.h: Likewise.
33058         * lib/inttypes.in.h: Likewise.
33059         * lib/langinfo.in.h: Likewise.
33060         * lib/locale.in.h: Likewise.
33061         * lib/math.in.h: Likewise.
33062         * lib/search.in.h: Likewise.
33063         * lib/signal.in.h: Likewise.
33064         * lib/spawn.in.h: Likewise.
33065         * lib/stdio.in.h: Likewise.
33066         * lib/stdlib.in.h: Likewise.
33067         * lib/string.in.h: Likewise.
33068         * lib/strings.in.h: Likewise.
33069         * lib/sys_file.in.h: Likewise.
33070         * lib/sys_ioctl.in.h: Likewise.
33071         * lib/sys_select.in.h: Likewise.
33072         * lib/sys_socket.in.h: Likewise.
33073         * lib/sys_stat.in.h: Likewise.
33074         * lib/sys_times.in.h: Likewise.
33075         * lib/sys_utsname.in.h: Likewise.
33076         * lib/unistd.in.h: Likewise.
33077         * lib/wchar.in.h: Likewise.
33078
33079 2010-01-20  Bruno Haible  <bruno@clisp.org>
33080
33081         Avoid duplicate -lm.
33082         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33083         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33085         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33086         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33087         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33088         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33089         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33090         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33091         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33092         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33093         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33094         Reported by Paolo Bonzini.
33095
33096 2010-01-19  Bruno Haible  <bruno@clisp.org>
33097
33098         langinfo, nl_langinfo: Relicense under LGPLv2+.
33099         * modules/langinfo (License): Change to LGPLv2+.
33100         * modules/nl_langinfo (License): Likewise.
33101         Patch by David Lutterkort <lutter@redhat.com>.
33102
33103 2010-01-19  Bruno Haible  <bruno@clisp.org>
33104
33105         Avoid compilation error with cc on OSF/1 5.1.
33106         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33107         statement, not before.
33108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33109
33110 2010-01-18  Bruno Haible  <bruno@clisp.org>
33111
33112         Avoid a link error due to the __printf__ symbol.
33113         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33114         and 2.6.x.
33115         (__format__, __printf__): Remove definitions.
33116         * lib/argp-fmtstream.h: Likewise.
33117         * lib/argp.h: Likewise.
33118         * lib/error.h: Likewise.
33119         * lib/vasnprintf.h: Likewise.
33120         * lib/xprintf.h: Likewise.
33121         * lib/xvasprintf.h: Likewise.
33122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33123
33124 2010-01-18  Bruno Haible  <bruno@clisp.org>
33125
33126         Tests for module 'tanl'.
33127         * modules/tanl-tests: New file.
33128         * tests/test-tanl.c: New file.
33129
33130         Tests for module 'sqrtl'.
33131         * modules/sqrtl-tests: New file.
33132         * tests/test-sqrtl.c: New file.
33133
33134         Tests for module 'sinl'.
33135         * modules/sinl-tests: New file.
33136         * tests/test-sinl.c: New file.
33137
33138         Tests for module 'logl'.
33139         * modules/logl-tests: New file.
33140         * tests/test-logl.c: New file.
33141
33142         Tests for module 'expl'.
33143         * modules/expl-tests: New file.
33144         * tests/test-expl.c: New file.
33145
33146         Tests for module 'cosl'.
33147         * modules/cosl-tests: New file.
33148         * tests/test-cosl.c: New file.
33149
33150         Tests for module 'atanl'.
33151         * modules/atanl-tests: New file.
33152         * tests/test-atanl.c: New file.
33153
33154         Tests for module 'asinl'.
33155         * modules/asinl-tests: New file.
33156         * tests/test-asinl.c: New file.
33157
33158         Tests for module 'acosl'.
33159         * modules/acosl-tests: New file.
33160         * tests/test-acosl.c: New file.
33161
33162         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33163         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33164         tanl): Use the standard gnulib idiom.
33165         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33166         * lib/sinl.c: Likewise.
33167         * lib/tanl.c: Don't include trigl.c.
33168         (kernel_tanl): Make static.
33169         * lib/sincosl.c: Include trigl.h first.
33170         * lib/trigl.c: Likewise.
33171         * m4/acosl.m4: New file.
33172         * m4/asinl.m4: New file.
33173         * m4/atanl.m4: New file.
33174         * m4/cosl.m4: New file.
33175         * m4/expl.m4: New file.
33176         * m4/logl.m4: New file.
33177         * m4/sinl.m4: New file.
33178         * m4/sqrtl.m4: New file.
33179         * m4/tanl.m4: New file.
33180         * m4/mathl.m4: Remove file.
33181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33182         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33183         Don't initialize GNULIB_MATHL.
33184         * modules/acosl: New file.
33185         * modules/asinl: New file.
33186         * modules/atanl: New file.
33187         * modules/cosl: New file.
33188         * modules/expl: New file.
33189         * modules/logl: New file.
33190         * modules/sinl: New file.
33191         * modules/sqrtl: New file.
33192         * modules/tanl: New file.
33193         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33194         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33195         substitute GNULIB_MATHL.
33196         * modules/mathl: Rewritten.
33197         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33198         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33199         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33200         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33201         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33202         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33203         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33204         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33205         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33206
33207 2010-01-18  Bruno Haible  <bruno@clisp.org>
33208
33209         sqrt: Make gl_FUNC_SQRT requirable.
33210         * m4/sqrt.m4: New file.
33211         * modules/sqrt (Files): Add it.
33212         (configure.ac): Invoke gl_FUNC_SQRT.
33213
33214 2010-01-18  Bruno Haible  <bruno@clisp.org>
33215
33216         New modules for common <math.h> functions.
33217         * m4/mathfunc.m4: New file.
33218         * modules/acos: New file.
33219         * modules/asin: New file.
33220         * modules/atan: New file.
33221         * modules/atan2: New file.
33222         * modules/cbrt: New file.
33223         * modules/copysign: New file.
33224         * modules/cos: New file.
33225         * modules/cosh: New file.
33226         * modules/erf: New file.
33227         * modules/erfc: New file.
33228         * modules/exp: New file.
33229         * modules/fabs: New file.
33230         * modules/fmod: New file.
33231         * modules/hypot: New file.
33232         * modules/j0: New file.
33233         * modules/j1: New file.
33234         * modules/jn: New file.
33235         * modules/ldexp: New file.
33236         * modules/lgamma: New file.
33237         * modules/log: New file.
33238         * modules/log10: New file.
33239         * modules/log1p: New file.
33240         * modules/logb: New file.
33241         * modules/modf: New file.
33242         * modules/nextafter: New file.
33243         * modules/pow: New file.
33244         * modules/remainder: New file.
33245         * modules/rint: New file.
33246         * modules/sin: New file.
33247         * modules/sinh: New file.
33248         * modules/sqrt: New file.
33249         * modules/tan: New file.
33250         * modules/tanh: New file.
33251         * modules/y0: New file.
33252         * modules/y1: New file.
33253         * modules/yn: New file.
33254         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33255         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33256         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33257         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33258         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33259         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33260         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33261         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33262         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33263         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33264         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33265         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33266         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33267         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33268         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33269         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33270         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33271         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33272         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33273         * doc/posix-functions/log.texi: Mention the 'log' module.
33274         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33275         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33276         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33277         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33278         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33279         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33280         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33281         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33282         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33283         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33284         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33285         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33286         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33287         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33288         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33289         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33290
33291 2010-01-18  Jim Meyering  <meyering@redhat.com>
33292
33293         ignore-value: relax license to LGPLv2+
33294         * modules/ignore-value (License): Relax to LGPLv2+.
33295
33296         getdate: don't leak when TZ contains two or more '"'s
33297         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33298         double quote in TZ after the first one.
33299
33300         readtokens: do not leak internal token_lengths buffer
33301         * lib/readtokens.c (readtokens): Free the local, lengths,
33302         when the supplied "token_lengths" parameter is NULL.
33303
33304 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33305
33306         Fix a couple of missing LIBTHREAD link failures on AIX.
33307         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33308         $(LIBTHREAD).
33309         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33310
33311         Link test-poll against INET_PTON_LIB.
33312         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33313         for inet_pton on Solaris 10.
33314
33315 2010-01-17  Bruno Haible  <bruno@clisp.org>
33316
33317         unistdio/*-sprintf: Fix typo in module description.
33318         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33319         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33320         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33321         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33322         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33323         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33324         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33326
33327 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33328
33329         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33330         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33331         variables in shell case patterns, for AIX and HP-UX ksh.
33332
33333         Split large sed scripts, for HP-UX sed.
33334         * modules/stdio: Split sed scripts around 50 sed commands,
33335         to avoid HP-UX limit of 99 commands, in the near future.
33336         * modules/string: Likewise.
33337         * modules/unistd: Likewise.
33338
33339         gnulib-tool: avoid writing in the current directory.
33340         * gnulib-tool (func_emit_lib_Makefile_am)
33341         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33342         not in the current directory, so concurrent gnulib-tool
33343         instances do not interfere.
33344
33345 2010-01-16  Jim Meyering  <meyering@redhat.com>
33346
33347         doc: update users.txt
33348         * users.txt: Add grep.
33349         (diffutils, gzip): Update URLs.
33350
33351 2010-01-12  Bruno Haible  <bruno@clisp.org>
33352
33353         posix_spawn: Avoid test failure on Cygwin.
33354         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33355         characters.
33356         Reported by Simon Josefsson.
33357
33358 2010-01-12  Bruno Haible  <bruno@clisp.org>
33359
33360         * tests/test-cond.c (main): When skipping the test, show the reason.
33361
33362 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33363
33364         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33365
33366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33367
33368         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33369         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33370
33371 2010-01-12  Eric Blake  <ebb9@byu.net>
33372
33373         build: guarantee AS_VAR_IF
33374         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33375         (gl_AS_VAR_IF): Move...
33376         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33377         Reported by Simon Josefsson.
33378
33379 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33380
33381         * lib/stdio.in.h: Fix typo.
33382
33383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33384
33385         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33386         libgpg-error.
33387
33388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33389
33390         * tests/test-xalloc-die.sh: Use $EXEEXT.
33391
33392 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33393             Bruno Haible  <bruno@clisp.org>
33394
33395         getlogin, getlogin_r: Avoid test failure.
33396         * tests/test-getlogin.c: Include <stdio.h>.
33397         (main): Skip the test when the function fails because stdin is not a
33398         tty.
33399         * tests/test-getlogin_r.c: Include <stdio.h>.
33400         (main): Skip the test when the function fails because stdin is not a
33401         tty.
33402
33403 2010-01-11  Eric Blake  <ebb9@byu.net>
33404
33405         tests: avoid more large file warnings
33406         * tests/test-fflush.c: Avoid warning about ftell use.
33407         * tests/test-fseek.c: Avoid warning about fseek use.
33408
33409 2010-01-10  Bruno Haible  <bruno@clisp.org>
33410
33411         nproc: Work better on Linux when /proc and /sys are not mounted.
33412         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33413         as lower bound when, on glibc/Linux systems,
33414         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33415         Suggested by Pádraig Brady <P@draigbrady.com>.
33416         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33417
33418         nproc: Refactor.
33419         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33420         extracted from num_processors.
33421         (num_processors): Call it.
33422
33423 2010-01-11  Jim Meyering  <meyering@redhat.com>
33424
33425         utimecmp: avoid new warning from upcoming gcc-4.5.0
33426         * lib/utimecmp.c (BILLION): Define using #define rather than an
33427         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33428
33429 2010-01-11  Eric Blake  <ebb9@byu.net>
33430
33431         math: add portability warnings for classification macros
33432         * modules/math (Depends-on): Add warn-on-use.
33433         (Makefile.am): Provide new substitutions.
33434         * m4/math_h.m4 (gl_MATH_H): Require inline.
33435         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33436         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33437         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33438         implement warnings.
33439
33440         unistd: warn on use of environ without module
33441         * modules/unistd (Depends-on): Add warn-on-use.
33442         (Makefile.am): Provide new substitutions.
33443         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33444         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33445
33446         stdio: warn on suspicious uses
33447         * modules/stdio (Depends-on): Add warn-on-use.
33448         (Makefile.am): Provide new substitutions.
33449         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33450         fseeko.
33451         * lib/stdio.in.h (gets): Always warn on use.
33452         (fseek, ftell): Adjust when warnings are issued, and honor
33453         _GL_NO_LARGE_FILES as a way to silence the warning.
33454         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33455         any warning about large file offsets.
33456         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33457         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33458         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33459         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33460         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33461         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33462         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33463         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33464
33465         warn-on-use: new module
33466         * modules/warn-on-use: New file.
33467         * build-aux/warn-on-use.h: Likewise.
33468         * m4/warn-on-use.m4: Likewise.
33469         * MODULES.html.sh (Support for building): Mention it.
33470
33471 2010-01-10  Bruno Haible  <bruno@clisp.org>
33472
33473         Tests for module 'unistr/u32-strdup'.
33474         * modules/unistr/u32-strdup-tests: New file.
33475         * tests/unistr/test-u32-strdup.c: New file.
33476
33477         Tests for module 'unistr/u16-strdup'.
33478         * modules/unistr/u16-strdup-tests: New file.
33479         * tests/unistr/test-u16-strdup.c: New file.
33480
33481         Tests for module 'unistr/u8-strdup'.
33482         * modules/unistr/u8-strdup-tests: New file.
33483         * tests/unistr/test-u8-strdup.c: New file.
33484         * tests/unistr/test-strdup.h: New file.
33485
33486         Tests for module 'unistr/u32-strncmp'.
33487         * modules/unistr/u32-strncmp-tests: New file.
33488         * tests/unistr/test-u32-strncmp.c: New file.
33489
33490         Tests for module 'unistr/u16-strncmp'.
33491         * modules/unistr/u16-strncmp-tests: New file.
33492         * tests/unistr/test-u16-strncmp.c: New file.
33493
33494         Tests for module 'unistr/u8-strncmp'.
33495         * modules/unistr/u8-strncmp-tests: New file.
33496         * tests/unistr/test-u8-strncmp.c: New file.
33497         * tests/unistr/test-strncmp.h: New file.
33498
33499         Tests for module 'unistr/u32-strcoll'.
33500         * modules/unistr/u32-strcoll-tests: New file.
33501         * tests/unistr/test-u32-strcoll.c: New file.
33502
33503         Tests for module 'unistr/u16-strcoll'.
33504         * modules/unistr/u16-strcoll-tests: New file.
33505         * tests/unistr/test-u16-strcoll.c: New file.
33506
33507         Tests for module 'unistr/u8-strcoll'.
33508         * modules/unistr/u8-strcoll-tests: New file.
33509         * tests/unistr/test-u8-strcoll.c: New file.
33510
33511         Tests for module 'unistr/u32-strcmp'.
33512         * modules/unistr/u32-strcmp-tests: New file.
33513         * tests/unistr/test-u32-strcmp.c: New file.
33514         * tests/unistr/test-u32-strcmp.h: New file.
33515
33516         Tests for module 'unistr/u16-strcmp'.
33517         * modules/unistr/u16-strcmp-tests: New file.
33518         * tests/unistr/test-u16-strcmp.c: New file.
33519         * tests/unistr/test-u16-strcmp.h: New file.
33520
33521         Tests for module 'unistr/u8-strcmp'.
33522         * modules/unistr/u8-strcmp-tests: New file.
33523         * tests/unistr/test-u8-strcmp.c: New file.
33524         * tests/unistr/test-u8-strcmp.h: New file.
33525         * tests/unistr/test-strcmp.h: New file.
33526
33527         Tests for module 'unistr/u32-strncat'.
33528         * modules/unistr/u32-strncat-tests: New file.
33529         * tests/unistr/test-u32-strncat.c: New file.
33530
33531         Tests for module 'unistr/u16-strncat'.
33532         * modules/unistr/u16-strncat-tests: New file.
33533         * tests/unistr/test-u16-strncat.c: New file.
33534
33535         Tests for module 'unistr/u8-strncat'.
33536         * modules/unistr/u8-strncat-tests: New file.
33537         * tests/unistr/test-u8-strncat.c: New file.
33538         * tests/unistr/test-strncat.h: New file.
33539
33540         Tests for module 'unistr/u32-strcat'.
33541         * modules/unistr/u32-strcat-tests: New file.
33542         * tests/unistr/test-u32-strcat.c: New file.
33543
33544         Tests for module 'unistr/u16-strcat'.
33545         * modules/unistr/u16-strcat-tests: New file.
33546         * tests/unistr/test-u16-strcat.c: New file.
33547
33548         Tests for module 'unistr/u8-strcat'.
33549         * modules/unistr/u8-strcat-tests: New file.
33550         * tests/unistr/test-u8-strcat.c: New file.
33551         * tests/unistr/test-strcat.h: New file.
33552
33553         Tests for module 'unistr/u32-stpncpy'.
33554         * modules/unistr/u32-stpncpy-tests: New file.
33555         * tests/unistr/test-u32-stpncpy.c: New file.
33556
33557         Tests for module 'unistr/u16-stpncpy'.
33558         * modules/unistr/u16-stpncpy-tests: New file.
33559         * tests/unistr/test-u16-stpncpy.c: New file.
33560
33561         Tests for module 'unistr/u8-stpncpy'.
33562         * modules/unistr/u8-stpncpy-tests: New file.
33563         * tests/unistr/test-u8-stpncpy.c: New file.
33564         * tests/unistr/test-stpncpy.h: New file.
33565
33566         Tests for module 'unistr/u32-strncpy'.
33567         * modules/unistr/u32-strncpy-tests: New file.
33568         * tests/unistr/test-u32-strncpy.c: New file.
33569
33570         Tests for module 'unistr/u16-strncpy'.
33571         * modules/unistr/u16-strncpy-tests: New file.
33572         * tests/unistr/test-u16-strncpy.c: New file.
33573
33574         Tests for module 'unistr/u8-strncpy'.
33575         * modules/unistr/u8-strncpy-tests: New file.
33576         * tests/unistr/test-u8-strncpy.c: New file.
33577         * tests/unistr/test-strncpy.h: New file.
33578
33579         Tests for module 'unistr/u32-stpcpy'.
33580         * modules/unistr/u32-stpcpy-tests: New file.
33581         * tests/unistr/test-u32-stpcpy.c: New file.
33582
33583         Tests for module 'unistr/u16-stpcpy'.
33584         * modules/unistr/u16-stpcpy-tests: New file.
33585         * tests/unistr/test-u16-stpcpy.c: New file.
33586
33587         Tests for module 'unistr/u8-stpcpy'.
33588         * modules/unistr/u8-stpcpy-tests: New file.
33589         * tests/unistr/test-u8-stpcpy.c: New file.
33590         * tests/unistr/test-stpcpy.h: New file.
33591
33592         Tests for module 'unistr/u32-strcpy'.
33593         * modules/unistr/u32-strcpy-tests: New file.
33594         * tests/unistr/test-u32-strcpy.c: New file.
33595
33596         Tests for module 'unistr/u16-strcpy'.
33597         * modules/unistr/u16-strcpy-tests: New file.
33598         * tests/unistr/test-u16-strcpy.c: New file.
33599
33600         Tests for module 'unistr/u8-strcpy'.
33601         * modules/unistr/u8-strcpy-tests: New file.
33602         * tests/unistr/test-u8-strcpy.c: New file.
33603         * tests/unistr/test-strcpy.h: New file.
33604
33605         Tests for module 'unistr/u32-strnlen'.
33606         * modules/unistr/u32-strnlen-tests: New file.
33607         * tests/unistr/test-u32-strnlen.c: New file.
33608
33609         Tests for module 'unistr/u16-strnlen'.
33610         * modules/unistr/u16-strnlen-tests: New file.
33611         * tests/unistr/test-u16-strnlen.c: New file.
33612
33613         Tests for module 'unistr/u8-strnlen'.
33614         * modules/unistr/u8-strnlen-tests: New file.
33615         * tests/unistr/test-u8-strnlen.c: New file.
33616         * tests/unistr/test-strnlen.h: New file.
33617
33618         Tests for module 'unistr/u32-strlen'.
33619         * modules/unistr/u32-strlen-tests: New file.
33620         * tests/unistr/test-u32-strlen.c: New file.
33621
33622         Tests for module 'unistr/u16-strlen'.
33623         * modules/unistr/u16-strlen-tests: New file.
33624         * tests/unistr/test-u16-strlen.c: New file.
33625
33626         Tests for module 'unistr/u8-strlen'.
33627         * modules/unistr/u8-strlen-tests: New file.
33628         * tests/unistr/test-u8-strlen.c: New file.
33629
33630         Tests for module 'unistr/u32-prev'.
33631         * modules/unistr/u32-prev-tests: New file.
33632         * tests/unistr/test-u32-prev.c: New file.
33633
33634         Tests for module 'unistr/u16-prev'.
33635         * modules/unistr/u16-prev-tests: New file.
33636         * tests/unistr/test-u16-prev.c: New file.
33637
33638         Tests for module 'unistr/u8-prev'.
33639         * modules/unistr/u8-prev-tests: New file.
33640         * tests/unistr/test-u8-prev.c: New file.
33641
33642         Tests for module 'unistr/u32-next'.
33643         * modules/unistr/u32-next-tests: New file.
33644         * tests/unistr/test-u32-next.c: New file.
33645
33646         Tests for module 'unistr/u16-next'.
33647         * modules/unistr/u16-next-tests: New file.
33648         * tests/unistr/test-u16-next.c: New file.
33649
33650         Tests for module 'unistr/u8-next'.
33651         * modules/unistr/u8-next-tests: New file.
33652         * tests/unistr/test-u8-next.c: New file.
33653
33654         Tests for module 'unistr/u32-strmbtouc'.
33655         * modules/unistr/u32-strmbtouc-tests: New file.
33656         * tests/unistr/test-u32-strmbtouc.c: New file.
33657
33658         Tests for module 'unistr/u16-strmbtouc'.
33659         * modules/unistr/u16-strmbtouc-tests: New file.
33660         * tests/unistr/test-u16-strmbtouc.c: New file.
33661
33662         Tests for module 'unistr/u8-strmbtouc'.
33663         * modules/unistr/u8-strmbtouc-tests: New file.
33664         * tests/unistr/test-u8-strmbtouc.c: New file.
33665
33666         Tests for module 'unistr/u32-strmblen'.
33667         * modules/unistr/u32-strmblen-tests: New file.
33668         * tests/unistr/test-u32-strmblen.c: New file.
33669
33670         Tests for module 'unistr/u16-strmblen'.
33671         * modules/unistr/u16-strmblen-tests: New file.
33672         * tests/unistr/test-u16-strmblen.c: New file.
33673
33674         Tests for module 'unistr/u8-strmblen'.
33675         * modules/unistr/u8-strmblen-tests: New file.
33676         * tests/unistr/test-u8-strmblen.c: New file.
33677
33678         Tests for module 'unistr/u32-cpy-alloc'.
33679         * modules/unistr/u32-cpy-alloc-tests: New file.
33680         * tests/unistr/test-u32-cpy-alloc.c: New file.
33681
33682         Tests for module 'unistr/u16-cpy-alloc'.
33683         * modules/unistr/u16-cpy-alloc-tests: New file.
33684         * tests/unistr/test-u16-cpy-alloc.c: New file.
33685
33686         Tests for module 'unistr/u8-cpy-alloc'.
33687         * modules/unistr/u8-cpy-alloc-tests: New file.
33688         * tests/unistr/test-u8-cpy-alloc.c: New file.
33689         * tests/unistr/test-cpy-alloc.h: New file.
33690
33691         Tests for module 'unistr/u32-mbsnlen'.
33692         * modules/unistr/u32-mbsnlen-tests: New file.
33693         * tests/unistr/test-u32-mbsnlen.c: New file.
33694
33695         Tests for module 'unistr/u16-mbsnlen'.
33696         * modules/unistr/u16-mbsnlen-tests: New file.
33697         * tests/unistr/test-u16-mbsnlen.c: New file.
33698
33699         Tests for module 'unistr/u8-mbsnlen'.
33700         * modules/unistr/u8-mbsnlen-tests: New file.
33701         * tests/unistr/test-u8-mbsnlen.c: New file.
33702
33703         Tests for module 'unistr/u32-chr'.
33704         * modules/unistr/u32-chr-tests: New file.
33705         * tests/unistr/test-u32-chr.c: New file.
33706
33707         Tests for module 'unistr/u16-chr'.
33708         * modules/unistr/u16-chr-tests: New file.
33709         * tests/unistr/test-u16-chr.c: New file.
33710
33711         Tests for module 'unistr/u8-chr'.
33712         * modules/unistr/u8-chr-tests: New file.
33713         * tests/unistr/test-u8-chr.c: New file.
33714         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33715
33716         Tests for module 'unistr/u32-cmp2'.
33717         * modules/unistr/u32-cmp2-tests: New file.
33718         * tests/unistr/test-u32-cmp2.c: New file.
33719
33720         Tests for module 'unistr/u16-cmp2'.
33721         * modules/unistr/u16-cmp2-tests: New file.
33722         * tests/unistr/test-u16-cmp2.c: New file.
33723
33724         Tests for module 'unistr/u8-cmp2'.
33725         * modules/unistr/u8-cmp2-tests: New file.
33726         * tests/unistr/test-u8-cmp2.c: New file.
33727         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33728
33729         Tests for module 'unistr/u32-cmp'.
33730         * modules/unistr/u32-cmp-tests: New file.
33731         * tests/unistr/test-u32-cmp.c: New file.
33732
33733         Tests for module 'unistr/u16-cmp'.
33734         * modules/unistr/u16-cmp-tests: New file.
33735         * tests/unistr/test-u16-cmp.c: New file.
33736
33737         Tests for module 'unistr/u8-cmp'.
33738         * modules/unistr/u8-cmp-tests: New file.
33739         * tests/unistr/test-u8-cmp.c: New file.
33740         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33741
33742         Tests for module 'unistr/u32-set'.
33743         * modules/unistr/u32-set-tests: New file.
33744         * tests/unistr/test-u32-set.c: New file.
33745
33746         Tests for module 'unistr/u16-set'.
33747         * modules/unistr/u16-set-tests: New file.
33748         * tests/unistr/test-u16-set.c: New file.
33749
33750         Tests for module 'unistr/u8-set'.
33751         * modules/unistr/u8-set-tests: New file.
33752         * tests/unistr/test-u8-set.c: New file.
33753         * tests/unistr/test-set.h: New file.
33754
33755         Tests for module 'unistr/u32-move'.
33756         * modules/unistr/u32-move-tests: New file.
33757         * tests/unistr/test-u32-move.c: New file.
33758
33759         Tests for module 'unistr/u16-move'.
33760         * modules/unistr/u16-move-tests: New file.
33761         * tests/unistr/test-u16-move.c: New file.
33762
33763         Tests for module 'unistr/u8-move'.
33764         * modules/unistr/u8-move-tests: New file.
33765         * tests/unistr/test-u8-move.c: New file.
33766         * tests/unistr/test-move.h: New file.
33767
33768         Tests for module 'unistr/u32-cpy'.
33769         * modules/unistr/u32-cpy-tests: New file.
33770         * tests/unistr/test-u32-cpy.c: New file.
33771
33772         Tests for module 'unistr/u16-cpy'.
33773         * modules/unistr/u16-cpy-tests: New file.
33774         * tests/unistr/test-u16-cpy.c: New file.
33775
33776         Tests for module 'unistr/u8-cpy'.
33777         * modules/unistr/u8-cpy-tests: New file.
33778         * tests/unistr/test-u8-cpy.c: New file.
33779         * tests/unistr/test-cpy.h: New file.
33780
33781 2010-01-09  Bruno Haible  <bruno@clisp.org>
33782
33783         Tests for module 'unistr/u32-uctomb'.
33784         * modules/unistr/u32-uctomb-tests: New file.
33785         * tests/unistr/test-u32-uctomb.c: New file.
33786
33787         Tests for module 'unistr/u16-uctomb'.
33788         * modules/unistr/u16-uctomb-tests: New file.
33789         * tests/unistr/test-u16-uctomb.c: New file.
33790
33791         Tests for module 'unistr/u8-uctomb'.
33792         * modules/unistr/u8-uctomb-tests: New file.
33793         * tests/unistr/test-u8-uctomb.c: New file.
33794
33795         Tests for module 'unistr/u32-mbtoucr'.
33796         * modules/unistr/u32-mbtoucr-tests: New file.
33797         * tests/unistr/test-u32-mbtoucr.c: New file.
33798
33799         Tests for module 'unistr/u16-mbtoucr'.
33800         * modules/unistr/u16-mbtoucr-tests: New file.
33801         * tests/unistr/test-u16-mbtoucr.c: New file.
33802
33803         Tests for module 'unistr/u8-mbtoucr'.
33804         * modules/unistr/u8-mbtoucr-tests: New file.
33805         * tests/unistr/test-u8-mbtoucr.c: New file.
33806
33807         Tests for module 'unistr/u32-mbtouc'.
33808         * modules/unistr/u32-mbtouc-tests: New file.
33809         * tests/unistr/test-u32-mbtouc.c: New file.
33810
33811         Tests for module 'unistr/u16-mbtouc'.
33812         * modules/unistr/u16-mbtouc-tests: New file.
33813         * tests/unistr/test-u16-mbtouc.c: New file.
33814
33815         Tests for module 'unistr/u8-mbtouc'.
33816         * modules/unistr/u8-mbtouc-tests: New file.
33817         * tests/unistr/test-u8-mbtouc.c: New file.
33818
33819         Tests for module 'unistr/u32-mbtouc-unsafe'.
33820         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33821         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33822         * tests/unistr/test-u32-mbtouc.h: New file.
33823
33824         Tests for module 'unistr/u16-mbtouc-unsafe'.
33825         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33826         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33827         * tests/unistr/test-u16-mbtouc.h: New file.
33828
33829         Tests for module 'unistr/u8-mbtouc-unsafe'.
33830         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33831         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33832         * tests/unistr/test-u8-mbtouc.h: New file.
33833
33834         Tests for module 'unistr/u32-mblen'.
33835         * modules/unistr/u32-mblen-tests: New file.
33836         * tests/unistr/test-u32-mblen.c: New file.
33837
33838         Tests for module 'unistr/u16-mblen'.
33839         * modules/unistr/u16-mblen-tests: New file.
33840         * tests/unistr/test-u16-mblen.c: New file.
33841
33842         Tests for module 'unistr/u8-mblen'.
33843         * modules/unistr/u8-mblen-tests: New file.
33844         * tests/unistr/test-u8-mblen.c: New file.
33845
33846         Tests for module 'unistr/u32-to-u16'.
33847         * modules/unistr/u32-to-u16-tests: New file.
33848         * tests/unistr/test-u32-to-u16.c: New file.
33849
33850         Tests for module 'unistr/u32-to-u8'.
33851         * modules/unistr/u32-to-u8-tests: New file.
33852         * tests/unistr/test-u32-to-u8.c: New file.
33853
33854         Tests for module 'unistr/u16-to-u32'.
33855         * modules/unistr/u16-to-u32-tests: New file.
33856         * tests/unistr/test-u16-to-u32.c: New file.
33857
33858         Tests for module 'unistr/u16-to-u8'.
33859         * modules/unistr/u16-to-u8-tests: New file.
33860         * tests/unistr/test-u16-to-u8.c: New file.
33861
33862         Tests for module 'unistr/u8-to-u32'.
33863         * modules/unistr/u8-to-u32-tests: New file.
33864         * tests/unistr/test-u8-to-u32.c: New file.
33865
33866         Tests for module 'unistr/u8-to-u16'.
33867         * modules/unistr/u8-to-u16-tests: New file.
33868         * tests/unistr/test-u8-to-u16.c: New file.
33869
33870         Tests for module 'unistr/u32-check'.
33871         * modules/unistr/u32-check-tests: New file.
33872         * tests/unistr/test-u32-check.c: New file.
33873
33874         Tests for module 'unistr/u16-check'.
33875         * modules/unistr/u16-check-tests: New file.
33876         * tests/unistr/test-u16-check.c: New file.
33877
33878         Tests for module 'unistr/u8-check'.
33879         * modules/unistr/u8-check-tests: New file.
33880         * tests/unistr/test-u8-check.c: New file.
33881
33882         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33883         (category_equals): New function.
33884         (main): Add more tests.
33885         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33886
33887         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33888
33889 2010-01-10  Bruno Haible  <bruno@clisp.org>
33890
33891         unistr/u*-strcoll: Try harder to distinguish different strings.
33892         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33893         compare s1 and s2 to see if they are different.
33894
33895 2010-01-10  Bruno Haible  <bruno@clisp.org>
33896
33897         unistr/u*-stpncpy: Fix the return value.
33898         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33899         description of the return value consistent with stpncpy in glibc.
33900         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33901         written non-NUL unit.
33902
33903 2010-01-10  Bruno Haible  <bruno@clisp.org>
33904
33905         unistr/u*-next: Add missing dependencies.
33906         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33907         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33908         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33909
33910 2010-01-10  Bruno Haible  <bruno@clisp.org>
33911
33912         unistr/u8-mbsnlen: Fix return value for incomplete character.
33913         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33914         u8_mblen.
33915         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33916         Remove unistr/u8-mblen.
33917         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33918         u16_mblen.
33919         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33920         Remove unistr/u16-mblen.
33921
33922 2010-01-10  Bruno Haible  <bruno@clisp.org>
33923
33924         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33925         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33926         Reported by Brian Gough <bjg@gnu.org> and
33927         Chris Clayton <chris2553@googlemail.com> via
33928         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33929
33930 2010-01-09  Bruno Haible  <bruno@clisp.org>
33931
33932         unistr/u16-to-u32: Reject invalid input.
33933         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33934         u16_mbtouc.
33935         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33936         Remove unistr/u16-mbtouc.
33937
33938         unistr/u16-to-u8: Reject invalid input.
33939         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33940         u16_mbtouc.
33941         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33942         Remove unistr/u16-mbtouc.
33943
33944         unistr/u8-to-u32: Reject invalid input.
33945         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33946         u8_mbtouc.
33947         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33948         Remove unistr/u8-mbtouc.
33949
33950         unistr/u8-to-u16: Reject invalid input.
33951         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33952         u8_mbtouc.
33953         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33954         Remove unistr/u8-mbtouc.
33955
33956 2010-01-09  Bruno Haible  <bruno@clisp.org>
33957
33958         Tests for module 'getlogin'.
33959         * modules/getlogin-tests: New file.
33960         * tests/test-getlogin.c: New file.
33961
33962         New module 'getlogin'.
33963         * lib/unistd.in.h (getlogin): New declaration.
33964         * lib/getlogin.c: New file.
33965         * m4/getlogin.m4: New file.
33966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33967         HAVE_GETLOGIN.
33968         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33969         HAVE_GETLOGIN.
33970         * modules/getlogin: New file.
33971         * doc/posix-functions/getlogin.texi: Mention the new module.
33972         Reported by John W. Eaton <jwe@gnu.org>.
33973
33974 2010-01-09  Bruno Haible  <bruno@clisp.org>
33975
33976         getlogin_r: Support for native Windows.
33977         * lib/getlogin_r.c: Include <windows.h>
33978         (getlogin_r): Implement for native Windows.
33979         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33980         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33981         via John W. Eaton <jwe@gnu.org>.
33982
33983 2010-01-09  Bruno Haible  <bruno@clisp.org>
33984
33985         getlogin_r: Small fixes.
33986         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33987         succeeds.
33988         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33989         before testing whether getlogin_r is declared. No need to set
33990         HAVE_DECL_GETLOGIN_R to 1.
33991         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33992
33993 2010-01-09  Bruno Haible  <bruno@clisp.org>
33994
33995         * lib/unistd.in.h (getlogin_r): Add comment.
33996
33997 2010-01-09  Bruno Haible  <bruno@clisp.org>
33998
33999         Tests for module 'getlogin_r'.
34000         * modules/getlogin_r-tests: New file.
34001         * tests/test-getlogin_r.c: New file.
34002
34003 2010-01-09  Jim Meyering  <meyering@redhat.com>
34004
34005         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34006         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34007         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34008
34009 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34010
34011         * lib/dup2.c (rpl_dup2): Improve comment.
34012
34013 2010-01-08  Eric Blake  <ebb9@byu.net>
34014
34015         maint.mk: allow packages to add makefile @@ exceptions
34016         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34017         (sc_makefile_check): Rename...
34018         (sc_makefile_at_at_check): ...to this, and use hook.
34019
34020         dup2: work around mingw bug
34021         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34022         Reported by Simon Josefsson.
34023
34024 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34025
34026         glob: Fix C++ compilation.
34027         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34028         C++.
34029
34030 2010-01-07  Bruno Haible  <bruno@clisp.org>
34031
34032         Fix indentation of wctype.in.h, broken since 2007-01-06.
34033         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34034
34035 2010-01-07  Bruno Haible  <bruno@clisp.org>
34036
34037         mbslen: Avoid collision with system function.
34038         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34039         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34040         * m4/mbslen.m4: New file.
34041         * modules/mbslen (Files): Add it.
34042         (configure.ac): Invoke gl_MBSLEN.
34043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34044         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34045         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34046         via Ian Beckwith <ianb@erislabs.net>.
34047
34048 2010-01-07  Bruno Haible  <bruno@clisp.org>
34049
34050         dirent: Document the last fix.
34051         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34052
34053 2010-01-07  Bruno Haible  <bruno@clisp.org>
34054
34055         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34056         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34057         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34058         va_list are defined.
34059         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34060         Reported by Eric Blake.
34061
34062 2010-01-07  Bruno Haible  <bruno@clisp.org>
34063
34064         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34065         * modules/xlist (Depends-on): Add 'list',
34066         * modules/xoset (Depends-on): Add 'oset'.
34067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34068
34069 2010-01-07  Bruno Haible  <bruno@clisp.org>
34070
34071         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34072         * doc/posix-functions/strncasecmp.texi: Likewise.
34073
34074 2010-01-07  Bruno Haible  <bruno@clisp.org>
34075
34076         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34077
34078 2010-01-07  John W. Eaton  <jwe@octave.org>
34079
34080         wctype: allow C++ use
34081         * lib/wctype.in.h: Add extern "C" block for C++.
34082
34083 2010-01-06  Eric Blake  <ebb9@byu.net>
34084
34085         maint.mk: detect incorrect GFDL usage
34086         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34087
34088 2010-01-06  Jim Meyering  <meyering@redhat.com>
34089         and Eric Blake  <ebb9@byu.net>
34090
34091         maint.mk: ignore multi-line copyright in NEWS
34092         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34093
34094 2010-01-06  Eric Blake  <ebb9@byu.net>
34095
34096         select: add missing dependency
34097         * modules/select-tests (Depends-on): Move sockets dependency...
34098         * modules/select (Depends-on): ...here.
34099         Reported by Ian Beckwith.
34100
34101         doc: regenerate INSTALL
34102         * doc/INSTALL: Reflect recent autoconf update.
34103         * doc/INSTALL.ISO: Likewise.
34104         * doc/INSTALL.UTF-8: Likewise.
34105
34106         pread: fix compilation on glibc
34107         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34108         Reported by Ralf Wildenhues.
34109
34110         dirent: fix test failure
34111         * lib/dirent.in.h (includes): Guarantee ino_t.
34112         Reported by Ralf Wildenhues.
34113
34114 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34115
34116         linkat, renameat: avoid bad free
34117         * lib/at-func2.c (at_func2): Fix typo.
34118         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34119
34120 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34121
34122         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34123         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34124         to avoid failure of symlink test later.
34125
34126 2010-01-06  Eric Blake  <ebb9@byu.net>
34127
34128         stdio, unistd: guarantee ssize_t
34129         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34130         2008 are exposed when needed.
34131         * lib/stdio.in.h (includes): Likewise.
34132         Reported by Ralf Wildenhues.
34133
34134 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34135
34136         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34137         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34138         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34139
34140 2010-01-06  Jim Meyering  <meyering@redhat.com>
34141
34142         readtokens: this module *does* require xalloc.h
34143         It uses only functions that were omitted by the old syntax-check rule.
34144         * lib/readtokens.c: Include "xalloc.h" once again.
34145         * modules/readtokens (Depends-on): Add xalloc.
34146         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34147
34148 2010-01-05  Eric Blake  <ebb9@byu.net>
34149
34150         maint: support 'make announcement' from a VPATH build
34151         * top/maint.mk (announcement): Look for correct NEWS file.
34152
34153 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34154
34155         utimens (fdutimens): ignore a negative FD, per contract
34156         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34157         when we have a valid file descriptor.  Otherwise, using a brand
34158         new glibc (with just-patched futimens that now fails with EBADF)
34159         would cause this function to fail with ENOSYS.
34160         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34161         See also http://bugzilla.redhat.com/552320.
34162
34163 2010-01-05  Eric Blake  <ebb9@byu.net>
34164
34165         strcase: document what it provides
34166         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34167         gnulib module.
34168         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34169         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34170
34171 2010-01-05  Jim Meyering  <meyering@redhat.com>
34172
34173         maint: remove useless inclusions of "xalloc.h"
34174         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34175         * lib/readtokens.c: Likewise.
34176         * lib/same.c: Likewise.
34177         * modules/getloadavg (Depends-on): Remove xalloc.
34178         * modules/readtokens: Likewise.
34179         * modules/same: Likewise.
34180
34181         maint.mk: include 4 more function names in alloca.h-checking regexp
34182         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34183         regexp.  Before, we would give a false-positive (saying alloca.h
34184         is included unnecessarily) when the only uses involved omitted symbols.
34185
34186         xalloc.h: use consistent formatting
34187         * lib/xalloc.h: Move declarations to start in the first column.
34188
34189 2010-01-05  Eric Blake  <ebb9@byu.net>
34190
34191         mkdir: avoid xalloc
34192         * lib/mkdir.c (includes): Drop unused header.
34193         Reported by John W. Eaton.
34194
34195 2010-01-04  Jim Meyering  <meyering@redhat.com>
34196
34197         nl_langinfo: avoid configure-time syntax error
34198         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34199         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34200         the empty string.  Don't let that provoke a shell syntax error.
34201
34202         regcomp, regexec, fnmatch: avoid array bounds read error
34203         * lib/regcomp.c (build_equiv_class): From glibc:
34204         Use only the low 24 bits of a findidx return value as an index
34205         into the weights array.  Patch by Ulrich Drepper:
34206         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34207         * lib/regexec.c (check_node_accept_bytes): Likewise.
34208         * lib/fnmatch_loop.c (FCT): Likewise.
34209
34210         regcomp: skip collseq lookup when there are no rules
34211         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34212         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34213
34214         regcomp: recognize ill-formed { } expressions
34215         * lib/regcomp.c (parse_dup_op): From glibc:
34216         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34217
34218         regcomp: fix typo in comment
34219         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34220         s/satisfy/satisfies/.
34221
34222         regcomp: sync from glibc: remove dead store
34223         * lib/regcomp.c (duplicate_node_closure): Remove useless
34224         search_duplicated_node call and dead store.
34225
34226         regcomp: sync from glibc; always use nl_langinfo
34227         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34228         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34229         * modules/regex (Depends-on): Add nl_langinfo.
34230
34231 2010-01-04  Eric Blake  <ebb9@byu.net>
34232
34233         fdopendir: fix configure test
34234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34235
34236 2010-01-01  Bruno Haible  <bruno@clisp.org>
34237
34238         wchar: Remove unused configure check.
34239         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34240
34241 2010-01-01  Eric Blake  <ebb9@byu.net>
34242
34243         headers: make check of system header explicit
34244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34245         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34246         ourselves.
34247         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34249         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34250         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34251         internals.
34252         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34253         missing.
34254         Suggested by Bruno Haible.
34255
34256 2010-01-01  Jim Meyering  <meyering@redhat.com>
34257
34258         ChangeLog: tweak to eliminate unnecessary copyright line
34259         * ChangeLog: Remove a copyright line that was mistakenly updated
34260         by today's update-copyright run.  Reported by Eric Blake.
34261
34262         test-update-copyright: don't let envvar setting cause test failure
34263         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34264
34265 2010-01-01  Bruno Haible  <bruno@clisp.org>
34266
34267         localename: Avoid gcc warning.
34268         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34269         function if it is not used.
34270
34271 2010-01-01  Jim Meyering  <meyering@redhat.com>
34272
34273         update nearly all FSF copyright year lists to include 2010
34274         Use the same procedure as for 2009, outlined in
34275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34276
34277         version-etc: set COPYRIGHT_YEAR to 2010
34278         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34279
34280 2009-12-31  Eric Blake  <ebb9@byu.net>
34281
34282         doc: correct availability of cygwin 1.5.x getopt
34283         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34284         variables.
34285         * doc/posix-functions/opterr.texi (opterr): Likewise.
34286         * doc/posix-functions/optind.texi (optind): Likewise.
34287         * doc/posix-functions/optopt.texi (optopt): Likewise.
34288         * doc/posix-functions/tzname.texi (tzname): Likewise.
34289
34290         openat: update maintainer
34291         * modules/openat (Maintainer): Add myself.
34292
34293         utimens: avoid shadowing warning
34294         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34295         buffers into one, to avoid shadowing, as well as avoiding a
34296         redundant stat.
34297         Reported by Jim Meyering.
34298
34299         test-dup2: avoid compiler warning
34300         * tests/test-dup2.c (is_inheritable): Only define if used.
34301
34302 2010-01-01  Bruno Haible  <bruno@clisp.org>
34303
34304         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34305         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34306         defined, use wctomb instead of wcrtomb.
34307
34308 2010-01-01  Bruno Haible  <bruno@clisp.org>
34309
34310         iconv: Reject native Solaris iconv.
34311         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34312         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34313
34314 2009-12-31  Bruno Haible  <bruno@clisp.org>
34315
34316         * tests/test-signal.c (main): Remove test of 'SIG'.
34317
34318 2009-12-31  Bruno Haible  <bruno@clisp.org>
34319
34320         spawn: Fix incomplete fix.
34321         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34322         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34323         warnings for GNULIB_POSIXCHECK again.
34324         Reported by Eric Blake.
34325
34326 2009-12-31  Bruno Haible  <bruno@clisp.org>
34327
34328         Avoid namespace pollution on glibc systems.
34329         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34330         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34331         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34332         glibc systems.
34333
34334 2009-12-31  Bruno Haible  <bruno@clisp.org>
34335
34336         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34337         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34339         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34340         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34342         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34343
34344 2009-12-31  Bruno Haible  <bruno@clisp.org>
34345
34346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34347         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34348         afterwards.
34349
34350 2009-12-31  Bruno Haible  <bruno@clisp.org>
34351
34352         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34353         SYS_UTSNAME_H.
34354
34355 2009-12-31  Bruno Haible  <bruno@clisp.org>
34356
34357         spawn: Fix misapplied patch.
34358         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34359         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34360         warnings for GNULIB_POSIXCHECK.
34361
34362 2009-12-31  Bruno Haible  <bruno@clisp.org>
34363
34364         times: Update after sys_times changed.
34365         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34366         * modules/times (Files): Add it.
34367         (configure.ac): Invoke gl_FUNC_TIMES.
34368
34369 2009-12-31  Bruno Haible  <bruno@clisp.org>
34370
34371         Use AC_C_INLINE where necessary.
34372         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34375         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34376         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34377         * m4/mbiter.m4 (gl_MBITER): Likewise.
34378         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34379         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34380         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34381         * modules/u64 (configure.ac): Likewise.
34382
34383 2009-12-31  Bruno Haible  <bruno@clisp.org>
34384
34385         Use AC_C_INLINE instead of module 'inline' where possible.
34386         * modules/inline (Description): Clarify purpose.
34387         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34388         * modules/count-one-bits (Depends-on): Remove inline.
34389         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34390         * modules/openat (Depends-on): Remove inline.
34391         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34392         instead of depending on module 'inline'.
34393         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34394         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34395         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34396         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34397         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34398         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34399         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34400         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34401         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34402         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34403         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34404         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34405         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34406         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34407         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34408         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34409         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34410         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34411         Likewise.
34412         * modules/unictype/property-ascii-hex-digit (Depends-on,
34413         configure.ac): Likewise.
34414         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34415         configure.ac): Likewise.
34416         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34417         configure.ac): Likewise.
34418         * modules/unictype/property-bidi-block-separator (Depends-on,
34419         configure.ac): Likewise.
34420         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34421         configure.ac): Likewise.
34422         * modules/unictype/property-bidi-common-separator (Depends-on,
34423         configure.ac): Likewise.
34424         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34425         Likewise.
34426         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34427         configure.ac): Likewise.
34428         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34429         configure.ac): Likewise.
34430         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34431         configure.ac): Likewise.
34432         * modules/unictype/property-bidi-european-digit (Depends-on,
34433         configure.ac): Likewise.
34434         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34435         configure.ac): Likewise.
34436         * modules/unictype/property-bidi-left-to-right (Depends-on,
34437         configure.ac): Likewise.
34438         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34439         configure.ac): Likewise.
34440         * modules/unictype/property-bidi-other-neutral (Depends-on,
34441         configure.ac): Likewise.
34442         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34443         Likewise.
34444         * modules/unictype/property-bidi-segment-separator (Depends-on,
34445         configure.ac): Likewise.
34446         * modules/unictype/property-bidi-whitespace (Depends-on,
34447         configure.ac): Likewise.
34448         * modules/unictype/property-combining (Depends-on, configure.ac):
34449         Likewise.
34450         * modules/unictype/property-composite (Depends-on, configure.ac):
34451         Likewise.
34452         * modules/unictype/property-currency-symbol (Depends-on,
34453         configure.ac): Likewise.
34454         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34455         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34456         Likewise.
34457         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34458         configure.ac): Likewise.
34459         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34460         Likewise.
34461         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34462         Likewise.
34463         * modules/unictype/property-extender (Depends-on, configure.ac):
34464         Likewise.
34465         * modules/unictype/property-format-control (Depends-on, configure.ac):
34466         Likewise.
34467         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34468         Likewise.
34469         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34470         Likewise.
34471         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34472         Likewise.
34473         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34474         Likewise.
34475         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34476         Likewise.
34477         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34478         Likewise.
34479         * modules/unictype/property-id-start (Depends-on, configure.ac):
34480         Likewise.
34481         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34482         Likewise.
34483         * modules/unictype/property-ids-binary-operator (Depends-on,
34484         configure.ac): Likewise.
34485         * modules/unictype/property-ids-trinary-operator (Depends-on,
34486         configure.ac): Likewise.
34487         * modules/unictype/property-ignorable-control (Depends-on,
34488         configure.ac): Likewise.
34489         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34490         Likewise.
34491         * modules/unictype/property-join-control (Depends-on, configure.ac):
34492         Likewise.
34493         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34494         Likewise.
34495         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34496         Likewise.
34497         * modules/unictype/property-logical-order-exception (Depends-on,
34498         configure.ac): Likewise.
34499         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34500         Likewise.
34501         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34502         * modules/unictype/property-non-break (Depends-on, configure.ac):
34503         Likewise.
34504         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34505         Likewise.
34506         * modules/unictype/property-numeric (Depends-on, configure.ac):
34507         Likewise.
34508         * modules/unictype/property-other-alphabetic (Depends-on,
34509         configure.ac): Likewise.
34510         * modules/unictype/property-other-default-ignorable-code-point
34511         (Depends-on, configure.ac): Likewise.
34512         * modules/unictype/property-other-grapheme-extend (Depends-on,
34513         configure.ac): Likewise.
34514         * modules/unictype/property-other-id-continue (Depends-on,
34515         configure.ac): Likewise.
34516         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34517         Likewise.
34518         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34519         Likewise.
34520         * modules/unictype/property-other-math (Depends-on, configure.ac):
34521         Likewise.
34522         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34523         Likewise.
34524         * modules/unictype/property-paired-punctuation (Depends-on,
34525         configure.ac): Likewise.
34526         * modules/unictype/property-paragraph-separator (Depends-on,
34527         configure.ac): Likewise.
34528         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34529         Likewise.
34530         * modules/unictype/property-pattern-white-space (Depends-on,
34531         configure.ac): Likewise.
34532         * modules/unictype/property-private-use (Depends-on, configure.ac):
34533         Likewise.
34534         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34535         Likewise.
34536         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34537         Likewise.
34538         * modules/unictype/property-radical (Depends-on, configure.ac):
34539         Likewise.
34540         * modules/unictype/property-sentence-terminal (Depends-on,
34541         configure.ac): Likewise.
34542         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34543         Likewise.
34544         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34545         * modules/unictype/property-terminal-punctuation (Depends-on,
34546         configure.ac): Likewise.
34547         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34548         Likewise.
34549         * modules/unictype/property-unassigned-code-value (Depends-on,
34550         configure.ac): Likewise.
34551         * modules/unictype/property-unified-ideograph (Depends-on,
34552         configure.ac): Likewise.
34553         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34554         Likewise.
34555         * modules/unictype/property-variation-selector (Depends-on,
34556         configure.ac): Likewise.
34557         * modules/unictype/property-white-space (Depends-on, configure.ac):
34558         Likewise.
34559         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34560         Likewise.
34561         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34562         Likewise.
34563         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34564         Likewise.
34565         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34566         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34567         Likewise.
34568
34569 2009-12-31  Bruno Haible  <bruno@clisp.org>
34570
34571         Remove unnecessary AC_C_INLINE invocation.
34572         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34573         since 2009-08-21.
34574
34575 2009-12-31  Jim Meyering  <meyering@redhat.com>
34576
34577         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34578         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34579         With this change, we can all remove the gpg_key_ID = ... definition
34580         from our respective cfg.mk files.
34581
34582         maint.mk: create announcement template in ~/, not in /tmp
34583         * top/maint.mk (emit_upload_commands): Adjust.
34584         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34585         Remove temporary file, .ci-msg.
34586
34587 2009-12-31  Eric Blake  <ebb9@byu.net>
34588
34589         link-warning: always build headers with link warnings
34590         * modules/arpa_inet (Makefile.am): Always build replacement
34591         header.
34592         * modules/ctype (Makefile.am): Likewise.
34593         * modules/dirent (Makefile.am): Likewise.
34594         * modules/inttypes (Makefile.am): Likewise.
34595         * modules/langinfo (Makefile.am): Likewise.
34596         * modules/locale (Makefile.am): Likewise.
34597         * modules/spawn (Makefile.am): Likewise.
34598         * modules/sys_file (Makefile.am): Likewise.
34599         * modules/sys_ioctl (Makefile.am): Likewise.
34600         * modules/sys_select (Makefile.am): Likewise.
34601         * modules/sys_socket (Makefile.am): Likewise.
34602         * modules/sys_times (Makefile.am): Likewise.
34603         * modules/sys_utsname (Makefile.am): Likewise.
34604         * modules/sys_wait (Makefile.am): Likewise.
34605         * modules/wchar (Makefile.am): Likewise.
34606         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34607         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34608         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34609         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34611         Likewise.
34612         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34613         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34615         Likewise.
34616         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34617         Likewise.
34618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34620         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34622         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34624         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34625         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34626         (gl_WCHAR_H_DEFAULTS): Likewise.
34627
34628 2009-12-31  Eric Blake  <ebb9@byu.net>
34629
34630         signal, spawn: use link warnings
34631         * lib/signal.in.h (sigset_t): Make unconditional.
34632         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34633         (sigpending, sigprocmask, sigaction): Add link warnings.
34634         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34635         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34636         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34637         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34638         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34639         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34640         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34641         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34642         (posix_spawn_file_actions_destroy)
34643         (posix_spawn_file_actions_addopen)
34644         (posix_spawn_file_actions_addclose)
34645         (posix_spawn_file_actions_adddup2): Likewise.
34646         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34647         * tests/test-signal.c (main): Enhance test.
34648
34649         spawn: improve wrapper support
34650         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34651         (gl_SPAWN_H_DEFAULTS): New defaults.
34652         * modules/spawn (Makefile.am): Substitute them.
34653         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34654         Only declare if missing or broken.
34655
34656         sys_times, sys_utsname: use include_next
34657         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34658         header.
34659         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34661         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34662         * modules/sys_times (Depends-on): Add include_next.
34663         (Makefile.am): Substitute additional values.
34664         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34665         * lib/sys_times.in.h (includes): Include native header, if
34666         available.
34667         * lib/sys_utsname.in.h (includes): Likewise.
34668         * tests/test-sys_times.c (main): Enhance test.
34669
34670         fdutimensat: revert prior patch
34671         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34672         utimens.h.
34673         Reported by Bruno Haible.
34674
34675 2009-12-30  Eric Blake  <ebb9@byu.net>
34676
34677         sys_wait: drop link-warning dependency
34678         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34679         link-warning efforts.
34680         * lib/sys_wait.in.h: Likewise.
34681
34682         fdutimensat: remove bogus dependency
34683         * modules/fdutimensat (Depends-on): Drop inline.
34684
34685         unistd: fix typo
34686         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34687
34688 2009-12-30  Bruno Haible  <bruno@clisp.org>
34689
34690         Fix compilation error with Solaris cc.
34691         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34692         * lib/unicase/u16-is-invariant.c: Likewise.
34693         * lib/unicase/u32-is-invariant.c: Likewise.
34694         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34695
34696 2009-12-30  Bruno Haible  <bruno@clisp.org>
34697
34698         Fix test crash.
34699         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34700         locales.
34701         Reported by Simon Josefsson <simon@josefsson.org>.
34702
34703 2009-12-30  Bruno Haible  <bruno@clisp.org>
34704
34705         Fix compilation error on most platforms.
34706         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34707         Reported by Simon Josefsson <simon@josefsson.org>
34708         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34709
34710 2009-12-30  Eric Blake  <ebb9@byu.net>
34711
34712         futimens, utimensat: work around ntfs-3g bug
34713         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34714         a ctime bug is present, and expand workaround to cover ntfs-3g.
34715         * lib/utimens.c (fdutimens, lutimens): Likewise.
34716         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34717         (validate_timespec): Adjust return value.
34718         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34719         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34720         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34721
34722 2009-12-29  Eric Blake  <ebb9@byu.net>
34723
34724         link-warning: make usage consistent
34725         * modules/ctype (Depends-on): Add link-warning.
34726         (Makefile.am): Update rules accordingly.
34727         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34728         * modules/locale (Depends-on, Makefile.am): Likewise.
34729         * modules/sys_file (Makefile.am): Likewise.
34730         * modules/getopt-posix (Makefile.am): Delete unused link warning
34731         efforts.
34732         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34733         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34734         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34735         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34736
34737         stdio: remove unused variables
34738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34740         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34741
34742         tests: test more substitute headers
34743         * modules/ctype-tests: New file.
34744         * modules/dirent-tests: Likewise.
34745         * modules/spawn-tests: Likewise.
34746         * modules/sys_file-tests: Likewise.
34747         * modules/sys_ioctl-tests: Likewise.
34748         * modules/sys_wait-tests: Likewise.
34749         * tests/test-ctype.c: Likewise.
34750         * tests/test-dirent.c: Likewise.
34751         * tests/test-spawn.c: Likewise.
34752         * tests/test-sys_file.c: Likewise.
34753         * tests/test-sys_ioctl.c: Likewise.
34754         * tests/test-sys_wait.c: Likewise.
34755         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34756         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34757         whether or not flock is in use.
34758
34759         tests: remove License section from module
34760         * modules/arpa_inet-tests: Remove unneeded section.
34761         * modules/byteswap-tests: Likewise.
34762         * modules/ceilf-tests: Likewise.
34763         * modules/ceill-tests: Likewise.
34764         * modules/crypto/des-tests: Likewise.
34765         * modules/crypto/gc-arcfour-tests: Likewise.
34766         * modules/crypto/gc-arctwo-tests: Likewise.
34767         * modules/crypto/gc-des-tests: Likewise.
34768         * modules/crypto/gc-hmac-md5-tests: Likewise.
34769         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34770         * modules/crypto/gc-md2-tests: Likewise.
34771         * modules/crypto/gc-md4-tests: Likewise.
34772         * modules/crypto/gc-md5-tests: Likewise.
34773         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34774         * modules/crypto/gc-rijndael-tests: Likewise.
34775         * modules/crypto/gc-sha1-tests: Likewise.
34776         * modules/crypto/gc-tests: Likewise.
34777         * modules/crypto/md2-tests: Likewise.
34778         * modules/crypto/md4-tests: Likewise.
34779         * modules/fcntl-h-tests: Likewise.
34780         * modules/floorf-tests: Likewise.
34781         * modules/floorl-tests: Likewise.
34782         * modules/frexp-nolibm-tests: Likewise.
34783         * modules/frexp-tests: Likewise.
34784         * modules/frexpl-nolibm-tests: Likewise.
34785         * modules/frexpl-tests: Likewise.
34786         * modules/getaddrinfo-tests: Likewise.
34787         * modules/inttypes-tests: Likewise.
34788         * modules/isfinite-tests: Likewise.
34789         * modules/isinf-tests: Likewise.
34790         * modules/ldexpl-tests: Likewise.
34791         * modules/locale-tests: Likewise.
34792         * modules/math-tests: Likewise.
34793         * modules/netdb-tests: Likewise.
34794         * modules/netinet_in-tests: Likewise.
34795         * modules/printf-frexp-tests: Likewise.
34796         * modules/printf-frexpl-tests: Likewise.
34797         * modules/priv-set-tests: Likewise.
34798         * modules/random_r-tests: Likewise.
34799         * modules/round-tests: Likewise.
34800         * modules/roundf-tests: Likewise.
34801         * modules/roundl-tests: Likewise.
34802         * modules/search-tests: Likewise.
34803         * modules/select-tests: Likewise.
34804         * modules/signal-tests: Likewise.
34805         * modules/stdbool-tests: Likewise.
34806         * modules/stddef-tests: Likewise.
34807         * modules/stdint-tests: Likewise.
34808         * modules/stdio-tests: Likewise.
34809         * modules/stdlib-tests: Likewise.
34810         * modules/string-tests: Likewise.
34811         * modules/strings-tests: Likewise.
34812         * modules/sys_select-tests: Likewise.
34813         * modules/sys_socket-tests: Likewise.
34814         * modules/sys_stat-tests: Likewise.
34815         * modules/sys_time-tests: Likewise.
34816         * modules/sys_utsname-tests: Likewise.
34817         * modules/sysexits-tests: Likewise.
34818         * modules/time-tests: Likewise.
34819         * modules/trunc-tests: Likewise.
34820         * modules/truncf-tests: Likewise.
34821         * modules/truncl-tests: Likewise.
34822         * modules/tsearch-tests: Likewise.
34823         * modules/unistd-tests: Likewise.
34824         * modules/wchar-tests: Likewise.
34825         * modules/wctype-tests: Likewise.
34826
34827         tests: fix license on several tests
34828         * tests/test-des.c: Update to GPLv3+.
34829         * tests/test-flock.c: Likewise.
34830         * tests/test-fsync.c: Likewise.
34831         * tests/test-futimens.h: Likewise.
34832         * tests/test-gc-arcfour.c: Likewise.
34833         * tests/test-gc-arctwo.c: Likewise.
34834         * tests/test-gc-des.c: Likewise.
34835         * tests/test-gc-hmac-md5.c: Likewise.
34836         * tests/test-gc-hmac-sha1.c: Likewise.
34837         * tests/test-gc-md2.c: Likewise.
34838         * tests/test-gc-md4.c: Likewise.
34839         * tests/test-gc-md5.c: Likewise.
34840         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34841         * tests/test-gc-rijndael.c: Likewise.
34842         * tests/test-gc-sha1.c: Likewise.
34843         * tests/test-gc.c: Likewise.
34844         * tests/test-getcwd.c: Likewise.
34845         * tests/test-link.c: Likewise.
34846         * tests/test-link.h: Likewise.
34847         * tests/test-lutimens.h: Likewise.
34848         * tests/test-md2.c: Likewise.
34849         * tests/test-md4.c: Likewise.
34850         * tests/test-mkdir.h: Likewise.
34851         * tests/test-rename.c: Likewise.
34852         * tests/test-rename.h: Likewise.
34853         * tests/test-safe-alloc.c: Likewise.
34854         * tests/test-utimens-common.h: Likewise.
34855         * tests/test-utimens.h: Likewise.
34856
34857         maint: sync license texts
34858         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34859         * doc/gpl-3.0.texi: Revert copyright year update.
34860         * doc/lgpl-3.0.texi: Likewise.
34861
34862 2009-12-29  Jim Meyering  <meyering@redhat.com>
34863
34864         update nearly all FSF copyright year lists to include 2009
34865         The files named by the following are exempted:
34866             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34867               test -f "$dst" && { echo "$dst"; continue; }
34868               test -d "$dst" || continue
34869               echo "$dst"/$(basename "$src")
34870             done > exempt
34871             git ls-files tests/unictype >> exempt
34872         In the remaining files, convert to all-interval notation if
34873         - there is already at least one year interval like 2000-2003
34874         - the file is maintained by me
34875         - the file is in lib/uni*/, where that style already prevails
34876         Otherwise, use update-copyright's default.
34877
34878 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34879         and Eric Blake  <ebb9@byu.net>
34880
34881         tests: don't require debug system() to pass
34882         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34883         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34884         * tests/test-unlink.h (test_unlink_func): Likewise.
34885         * tests/test-fstatat.c (main): ...into callers.
34886         * tests/test-lstat.c (main): Likewise.
34887         * tests/test-rmdir.c (main): Likewise.
34888         * tests/test-unlink.c (main): Likewise.
34889         * tests/test-unlinkat.c (main): Likewise.
34890         * tests/test-areadlink-with-size.c (main): Don't require a
34891         debug-only system call to pass, aiding cross-testing to mingw.
34892         * tests/test-areadlink.c (main): Likewise.
34893         * tests/test-areadlinkat-with-size.c (main): Likewise.
34894         * tests/test-areadlinkat.c (main): Likewise.
34895         * tests/test-canonicalize-lgpl.c (main): Likewise.
34896         * tests/test-canonicalize.c (main): Likewise.
34897         * tests/test-chown.c (main): Likewise.
34898         * tests/test-fchownat.c (main): Likewise.
34899         * tests/test-lchown.c (main): Likewise.
34900         * tests/test-fdutimensat.c (main): Likewise.
34901         * tests/test-futimens.c (main): Likewise.
34902         * tests/test-link.c (main): Likewise.
34903         * tests/test-linkat.c (main): Likewise.
34904         * tests/test-mkdir.c (main): Likewise.
34905         * tests/test-mkdirat.c (main): Likewise.
34906         * tests/test-mkfifo.c (main): Likewise.
34907         * tests/test-mkfifoat.c (main): Likewise.
34908         * tests/test-mknod.c (main): Likewise.
34909         * tests/test-readlink.c (main): Likewise.
34910         * tests/test-remove.c (main): Likewise.
34911         * tests/test-rename.c (main): Likewise.
34912         * tests/test-renameat.c (main): Likewise.
34913         * tests/test-symlink.c (main): Likewise.
34914         * tests/test-symlinkat.c (main): Likewise.
34915         * tests/test-utimens.c (main): Likewise.
34916         * tests/test-utimensat.c (main): Likewise.
34917
34918 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34919
34920         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34921         on $(UNUSED_PARAMETER_H) to avoid build failure.
34922
34923 2009-12-28  Jim Meyering  <meyering@redhat.com>
34924
34925         update-copyright: you may specify a max. line length other than 72
34926         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34927
34928         maint: use consistent FSF copyright line syntax
34929         * lib/posixtm.c: Add missing comma in FSF copyright line.
34930         * lib/posixtm.h: Likewise.
34931         * lib/getugroups.c: Add missing ", Inc.".
34932
34933         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34934         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34935         FSF copyright line.  Remove trailing blanks.
34936
34937 2009-12-28  Eric Blake  <ebb9@byu.net>
34938
34939         test-dup2: reduce dependencies
34940         * modules/cloexec (Configure.ac): Set witness.
34941         * modules/dup2-tests (Depends-on): Drop cloexec.
34942         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34943         not present.
34944         Suggested by Bruno Haible.
34945
34946 2009-12-26  Bruno Haible  <bruno@clisp.org>
34947
34948         Remove an unneeded dependency.
34949         * modules/fseterr (Depends-on): Remove dup2.
34950
34951 2009-12-26  Eric Blake  <ebb9@byu.net>
34952
34953         tests: use macros.h in more places
34954         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34955         (ASSERT_STREAM): Provide default of stderr.
34956         * tests/test-dirent-safer.c: Include macros.h, using alternate
34957         stream for assertions.
34958         * tests/test-dup-safer.c: Likewise.
34959         * tests/test-freopen-safer.c: Likewise.
34960         * tests/test-getopt.c: Likewise.
34961         * tests/test-openat-safer.c: Likewise.
34962         * tests/test-pipe.c: Likewise.
34963         * tests/test-popen-safer.c: Likewise.
34964         * modules/dirent-safer-tests (Files): Include macros.h.
34965         * modules/unistd-safer-tests (Files): Likewise.
34966         * modules/freopen-safer-tests (Files): Likewise.
34967         * modules/getopt-posix-tests (Files): Likewise.
34968         * modules/openat-safer-tests (Files): Likewise.
34969         * modules/pipe-tests (Files): Likewise.
34970
34971 2009-12-26  Bruno Haible  <bruno@clisp.org>
34972
34973         javacomp: Portability fix.
34974         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34975         that it also works on Solaris.
34976
34977 2009-12-26  Bruno Haible  <bruno@clisp.org>
34978
34979         localename: Fix storage allocation of gl_locale_name_thread's result.
34980         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34981         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34982         all platforms that have 'uselocale'.
34983         (gl_locale_name_thread_unsafe): New function, extracted from
34984         gl_locale_name_thread.
34985         (gl_locale_name_thread): Call struniq on all platforms that have
34986         'uselocale'.
34987         * tests/test-localename.c (test_locale_name_thread): Check that the
34988         resulting strings are permanently allocated.
34989         * modules/localename-tests (Depends-on): Add strdup.
34990
34991 2009-12-26  Bruno Haible  <bruno@clisp.org>
34992
34993         * tests/test-localename.c (categories): Fill in the strings.
34994
34995 2009-12-26  Jim Meyering  <meyering@redhat.com>
34996
34997         isdir: complete the removal of m4/isdir.m4
34998         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34999
35000         isdir: clean up, since at least grep still uses it
35001         * lib/isdir.c: Include "isdir.h".
35002         (S_ISDIR): Remove now-unneeded definition.
35003         * modules/isdir (Files): Add lib/isdir.h.
35004         * lib/isdir.h: New file, with declaration.
35005         * m4/isdir.m4: Remove file -- unneeded.
35006
35007 2009-12-25  Bruno Haible  <bruno@clisp.org>
35008
35009         selinux-h: Make generated .h files standalone.
35010         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35011         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35012         * lib/se-selinux.in.h: Likewise.
35013         * modules/selinux-h (Depends-on): Add unused-parameter.
35014         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35015         selinux/selinux.h and selinux/context.h.
35016         Suggested by Eric Blake.
35017
35018 2009-12-25  Bruno Haible  <bruno@clisp.org>
35019
35020         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35021         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35022         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35023         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35024         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35025
35026 2009-12-24  Bruno Haible  <bruno@clisp.org>
35027
35028         openat: Fix warning.
35029         * lib/openat-proc.c: Include <unistd.h>.
35030
35031 2009-12-24  Bruno Haible  <bruno@clisp.org>
35032
35033         New module 'unused-parameter'.
35034         * build-aux/unused-parameter.h: New file, extracted from earlier
35035         gnulib-common.m4.
35036         * modules/unused-parameter: New file.
35037         * lib/unistr.h: Include unused-parameter.h.
35038         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35039         _GL_UNUSED.
35040         * modules/unistr/base (Depends-on): Add unused-parameter.
35041
35042 2009-12-24  Bruno Haible  <bruno@clisp.org>
35043
35044         Add missing dependencies to 'extensions' module.
35045         * m4/extensions.m4: Add comment.
35046         * modules/accept4 (Depends-on): Add extensions.
35047         * modules/dup3 (Depends-on): Likewise.
35048         * modules/fcntl (Depends-on): Likewise.
35049         * modules/futimens (Depends-on): Likewise.
35050         * modules/mknod (Depends-on): Likewise.
35051         * modules/pipe2 (Depends-on): Likewise.
35052         * modules/stat-time (Depends-on): Likewise.
35053         * modules/strcasestr-simple (Depends-on): Likewise.
35054         * modules/strsignal (Depends-on): Likewise.
35055         * modules/utimensat (Depends-on): Likewise.
35056         * modules/localcharset (Depends-on): Likewise. Needed because of
35057         gl_FCNTL_O_FLAGS.
35058         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35059         AC_TYPE_MBSTATE_T.
35060         * modules/wcsnrtombs (Depends-on): Likewise.
35061         * modules/wcsrtombs (Depends-on): Likewise.
35062
35063 2009-12-24  Bruno Haible  <bruno@clisp.org>
35064
35065         binary-io: Avoid gcc warning due to SET_BINARY.
35066         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35067         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35068
35069 2009-12-24  Bruno Haible  <bruno@clisp.org>
35070
35071         Avoid future namespace pollution on glibc systems.
35072         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35073         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35074         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35075         glibc systems.
35076
35077 2009-12-24  Bruno Haible  <bruno@clisp.org>
35078
35079         Refactor common macros used in tests.
35080         * tests/macros.h: New file.
35081         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35082         and/or <stdlib.h>, if appropriate.
35083         (ASSERT, SIZEOF): Remove macros.
35084         * tests/test-areadlink-with-size.c: Likewise.
35085         * tests/test-areadlinkat.c: Likewise.
35086         * tests/test-areadlinkat-with-size.c: Likewise.
35087         * tests/test-argmatch.c: Likewise.
35088         * tests/test-argv-iter.c: Likewise.
35089         * tests/test-array-mergesort.c: Likewise.
35090         * tests/test-array_list.c: Likewise.
35091         * tests/test-array_oset.c: Likewise.
35092         * tests/test-avltree_list.c: Likewise.
35093         * tests/test-avltree_oset.c: Likewise.
35094         * tests/test-avltreehash_list.c: Likewise.
35095         * tests/test-base64.c: Likewise.
35096         * tests/test-binary-io.c: Likewise.
35097         * tests/test-bitrotate.c: Likewise.
35098         * tests/test-btowc.c: Likewise.
35099         * tests/test-byteswap.c: Likewise.
35100         * tests/test-c-ctype.c: Likewise.
35101         * tests/test-c-stack.c: Likewise.
35102         * tests/test-c-strcasecmp.c: Likewise.
35103         * tests/test-c-strcasestr.c: Likewise.
35104         * tests/test-c-strncasecmp.c: Likewise.
35105         * tests/test-c-strstr.c: Likewise.
35106         * tests/test-canonicalize-lgpl.c: Likewise.
35107         * tests/test-canonicalize.c: Likewise.
35108         * tests/test-carray_list.c: Likewise.
35109         * tests/test-ceilf1.c: Likewise.
35110         * tests/test-ceilf2.c: Likewise.
35111         * tests/test-ceill.c: Likewise.
35112         * tests/test-chown.c: Likewise.
35113         * tests/test-cloexec.c: Likewise.
35114         * tests/test-copy-acl.c: Likewise.
35115         * tests/test-copy-file.c: Likewise.
35116         * tests/test-count-one-bits.c: Likewise.
35117         * tests/test-dprintf-posix.c: Likewise.
35118         * tests/test-dup2.c: Likewise.
35119         * tests/test-dup3.c: Likewise.
35120         * tests/test-duplocale.c: Likewise.
35121         * tests/test-fbufmode.c: Likewise.
35122         * tests/test-fchdir.c: Likewise.
35123         * tests/test-fchownat.c: Likewise.
35124         * tests/test-fcntl-safer.c: Likewise.
35125         * tests/test-fcntl.c: Likewise.
35126         * tests/test-fdopendir.c: Likewise.
35127         * tests/test-fdutimensat.c: Likewise.
35128         * tests/test-fflush2.c: Likewise.
35129         * tests/test-file-has-acl.c: Likewise.
35130         * tests/test-filevercmp.c: Likewise.
35131         * tests/test-flock.c: Likewise.
35132         * tests/test-floorf1.c: Likewise.
35133         * tests/test-floorf2.c: Likewise.
35134         * tests/test-floorl.c: Likewise.
35135         * tests/test-fnmatch.c: Likewise.
35136         * tests/test-fopen.h: Likewise.
35137         * tests/test-fpending.c: Likewise.
35138         * tests/test-fprintf-posix.c: Likewise.
35139         * tests/test-fpurge.c: Likewise.
35140         * tests/test-freadable.c: Likewise.
35141         * tests/test-freadahead.c: Likewise.
35142         * tests/test-freading.c: Likewise.
35143         * tests/test-freadptr.c: Likewise.
35144         * tests/test-freadptr2.c: Likewise.
35145         * tests/test-freadseek.c: Likewise.
35146         * tests/test-freopen.c: Likewise.
35147         * tests/test-frexp.c: Likewise.
35148         * tests/test-frexpl.c: Likewise.
35149         * tests/test-fseek.c: Likewise.
35150         * tests/test-fseeko.c: Likewise.
35151         * tests/test-fstatat.c: Likewise.
35152         * tests/test-fstrcmp.c: Likewise.
35153         * tests/test-fsync.c: Likewise.
35154         * tests/test-ftell.c: Likewise.
35155         * tests/test-ftello.c: Likewise.
35156         * tests/test-func.c: Likewise.
35157         * tests/test-futimens.c: Likewise.
35158         * tests/test-fwritable.c: Likewise.
35159         * tests/test-fwriting.c: Likewise.
35160         * tests/test-getcwd.c: Likewise.
35161         * tests/test-getdate.c: Likewise.
35162         * tests/test-getdelim.c: Likewise.
35163         * tests/test-getdtablesize.c: Likewise.
35164         * tests/test-getgroups.c: Likewise.
35165         * tests/test-getline.c: Likewise.
35166         * tests/test-getndelim2.c: Likewise.
35167         * tests/test-glob.c: Likewise.
35168         * tests/test-hash.c: Likewise.
35169         * tests/test-i-ring.c: Likewise.
35170         * tests/test-iconv-utf.c: Likewise.
35171         * tests/test-iconv.c: Likewise.
35172         * tests/test-idpriv-drop.c: Likewise.
35173         * tests/test-idpriv-droptemp.c: Likewise.
35174         * tests/test-inet_ntop.c: Likewise.
35175         * tests/test-inet_pton.c: Likewise.
35176         * tests/test-isblank.c: Likewise.
35177         * tests/test-isfinite.c: Likewise.
35178         * tests/test-isinf.c: Likewise.
35179         * tests/test-isnan.c: Likewise.
35180         * tests/test-isnand.h: Likewise.
35181         * tests/test-isnanf.h: Likewise.
35182         * tests/test-isnanl.h: Likewise.
35183         * tests/test-lchown.c: Likewise.
35184         * tests/test-ldexpl.c: Likewise.
35185         * tests/test-link.c: Likewise.
35186         * tests/test-linkat.c: Likewise.
35187         * tests/test-linked_list.c: Likewise.
35188         * tests/test-linkedhash_list.c: Likewise.
35189         * tests/test-localename.c: Likewise.
35190         * tests/test-lseek.c: Likewise.
35191         * tests/test-lstat.c: Likewise.
35192         * tests/test-mbmemcasecmp.c: Likewise.
35193         * tests/test-mbmemcasecoll.c: Likewise.
35194         * tests/test-mbrtowc.c: Likewise.
35195         * tests/test-mbscasecmp.c: Likewise.
35196         * tests/test-mbscasestr1.c: Likewise.
35197         * tests/test-mbscasestr2.c: Likewise.
35198         * tests/test-mbscasestr3.c: Likewise.
35199         * tests/test-mbscasestr4.c: Likewise.
35200         * tests/test-mbschr.c: Likewise.
35201         * tests/test-mbscspn.c: Likewise.
35202         * tests/test-mbsinit.c: Likewise.
35203         * tests/test-mbsncasecmp.c: Likewise.
35204         * tests/test-mbsnrtowcs.c: Likewise.
35205         * tests/test-mbspbrk.c: Likewise.
35206         * tests/test-mbspcasecmp.c: Likewise.
35207         * tests/test-mbsrchr.c: Likewise.
35208         * tests/test-mbsrtowcs.c: Likewise.
35209         * tests/test-mbsspn.c: Likewise.
35210         * tests/test-mbsstr1.c: Likewise.
35211         * tests/test-mbsstr2.c: Likewise.
35212         * tests/test-mbsstr3.c: Likewise.
35213         * tests/test-memchr.c: Likewise.
35214         * tests/test-memchr2.c: Likewise.
35215         * tests/test-memcmp.c: Likewise.
35216         * tests/test-memmem.c: Likewise.
35217         * tests/test-memrchr.c: Likewise.
35218         * tests/test-mkdir.c: Likewise.
35219         * tests/test-mkdirat.c: Likewise.
35220         * tests/test-mkfifo.c: Likewise.
35221         * tests/test-mkfifoat.c: Likewise.
35222         * tests/test-mknod.c: Likewise.
35223         * tests/test-nanosleep.c: Likewise.
35224         * tests/test-nl_langinfo.c: Likewise.
35225         * tests/test-obstack-printf.c: Likewise.
35226         * tests/test-open.c: Likewise.
35227         * tests/test-openat.c: Likewise.
35228         * tests/test-pipe-filter-gi1.c: Likewise.
35229         * tests/test-pipe-filter-gi2-main.c: Likewise.
35230         * tests/test-pipe-filter-ii1.c: Likewise.
35231         * tests/test-pipe-filter-ii2-main.c: Likewise.
35232         * tests/test-pipe2.c: Likewise.
35233         * tests/test-popen.h: Likewise.
35234         * tests/test-posixtm.c: Likewise.
35235         * tests/test-pread.c: Likewise.
35236         * tests/test-printf-frexp.c: Likewise.
35237         * tests/test-printf-frexpl.c: Likewise.
35238         * tests/test-printf-posix.c: Likewise.
35239         * tests/test-priv-set.c: Likewise.
35240         * tests/test-quotearg.c: Likewise.
35241         * tests/test-random_r.c: Likewise.
35242         * tests/test-rawmemchr.c: Likewise.
35243         * tests/test-rbtree_list.c: Likewise.
35244         * tests/test-rbtree_oset.c: Likewise.
35245         * tests/test-rbtreehash_list.c: Likewise.
35246         * tests/test-readlink.c: Likewise.
35247         * tests/test-remove.c: Likewise.
35248         * tests/test-rename.c: Likewise.
35249         * tests/test-renameat.c: Likewise.
35250         * tests/test-rmdir.c: Likewise.
35251         * tests/test-round1.c: Likewise.
35252         * tests/test-roundf1.c: Likewise.
35253         * tests/test-roundl.c: Likewise.
35254         * tests/test-safe-alloc.c: Likewise.
35255         * tests/test-sameacls.c: Likewise.
35256         * tests/test-set-mode-acl.c: Likewise.
35257         * tests/test-setenv.c: Likewise.
35258         * tests/test-sigaction.c: Likewise.
35259         * tests/test-signbit.c: Likewise.
35260         * tests/test-sleep.c: Likewise.
35261         * tests/test-snprintf-posix.c: Likewise.
35262         * tests/test-snprintf.c: Likewise.
35263         * tests/test-sprintf-posix.c: Likewise.
35264         * tests/test-stat-time.c: Likewise.
35265         * tests/test-stat.c: Likewise.
35266         * tests/test-strcasestr.c: Likewise.
35267         * tests/test-strchrnul.c: Likewise.
35268         * tests/test-strerror.c: Likewise.
35269         * tests/test-striconv.c: Likewise.
35270         * tests/test-striconveh.c: Likewise.
35271         * tests/test-striconveha.c: Likewise.
35272         * tests/test-strsignal.c: Likewise.
35273         * tests/test-strstr.c: Likewise.
35274         * tests/test-strtod.c: Likewise.
35275         * tests/test-strverscmp.c: Likewise.
35276         * tests/test-symlink.c: Likewise.
35277         * tests/test-symlinkat.c: Likewise.
35278         * tests/test-trunc1.c: Likewise.
35279         * tests/test-trunc2.c: Likewise.
35280         * tests/test-truncf1.c: Likewise.
35281         * tests/test-truncf2.c: Likewise.
35282         * tests/test-truncl.c: Likewise.
35283         * tests/test-uname.c: Likewise.
35284         * tests/test-unlink.c: Likewise.
35285         * tests/test-unlinkat.c: Likewise.
35286         * tests/test-unsetenv.c: Likewise.
35287         * tests/test-usleep.c: Likewise.
35288         * tests/test-utimens.c: Likewise.
35289         * tests/test-utimensat.c: Likewise.
35290         * tests/test-vasnprintf-posix.c: Likewise.
35291         * tests/test-vasnprintf-posix2.c: Likewise.
35292         * tests/test-vasnprintf.c: Likewise.
35293         * tests/test-vasprintf-posix.c: Likewise.
35294         * tests/test-vasprintf.c: Likewise.
35295         * tests/test-vdprintf-posix.c: Likewise.
35296         * tests/test-vfprintf-posix.c: Likewise.
35297         * tests/test-vprintf-posix.c: Likewise.
35298         * tests/test-vsnprintf-posix.c: Likewise.
35299         * tests/test-vsnprintf.c: Likewise.
35300         * tests/test-vsprintf-posix.c: Likewise.
35301         * tests/test-wcrtomb.c: Likewise.
35302         * tests/test-wcsnrtombs.c: Likewise.
35303         * tests/test-wcsrtombs.c: Likewise.
35304         * tests/test-wctype.c: Likewise.
35305         * tests/test-wcwidth.c: Likewise.
35306         * tests/test-xfprintf-posix.c: Likewise.
35307         * tests/test-xmemdup0.c: Likewise.
35308         * tests/test-xprintf-posix.c: Likewise.
35309         * tests/test-xvasprintf.c: Likewise.
35310         * tests/unicase/test-locale-language.c: Likewise.
35311         * tests/unicase/test-mapping-part1.h: Likewise.
35312         * tests/unicase/test-predicate-part1.h: Likewise.
35313         * tests/unicase/test-u8-casecmp.c: Likewise.
35314         * tests/unicase/test-u8-casecoll.c: Likewise.
35315         * tests/unicase/test-u8-casefold.c: Likewise.
35316         * tests/unicase/test-u8-is-cased.c: Likewise.
35317         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35318         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35319         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35320         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35321         * tests/unicase/test-u8-tolower.c: Likewise.
35322         * tests/unicase/test-u8-totitle.c: Likewise.
35323         * tests/unicase/test-u8-toupper.c: Likewise.
35324         * tests/unicase/test-u16-casecmp.c: Likewise.
35325         * tests/unicase/test-u16-casecoll.c: Likewise.
35326         * tests/unicase/test-u16-casefold.c: Likewise.
35327         * tests/unicase/test-u16-is-cased.c: Likewise.
35328         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35329         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35330         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35331         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35332         * tests/unicase/test-u16-tolower.c: Likewise.
35333         * tests/unicase/test-u16-totitle.c: Likewise.
35334         * tests/unicase/test-u16-toupper.c: Likewise.
35335         * tests/unicase/test-u32-casecmp.c: Likewise.
35336         * tests/unicase/test-u32-casecoll.c: Likewise.
35337         * tests/unicase/test-u32-casefold.c: Likewise.
35338         * tests/unicase/test-u32-is-cased.c: Likewise.
35339         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35340         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35341         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35342         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35343         * tests/unicase/test-u32-tolower.c: Likewise.
35344         * tests/unicase/test-u32-totitle.c: Likewise.
35345         * tests/unicase/test-u32-toupper.c: Likewise.
35346         * tests/unicase/test-ulc-casecmp.c: Likewise.
35347         * tests/unicase/test-ulc-casecoll.c: Likewise.
35348         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35349         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35350         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35351         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35352         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35353         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35354         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35355         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35356         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35357         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35358         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35359         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35360         * tests/unictype/test-bidi_byname.c: Likewise.
35361         * tests/unictype/test-bidi_name.c: Likewise.
35362         * tests/unictype/test-bidi_of.c: Likewise.
35363         * tests/unictype/test-bidi_test.c: Likewise.
35364         * tests/unictype/test-block_list.c: Likewise.
35365         * tests/unictype/test-block_of.c: Likewise.
35366         * tests/unictype/test-block_test.c: Likewise.
35367         * tests/unictype/test-categ_and.c: Likewise.
35368         * tests/unictype/test-categ_and_not.c: Likewise.
35369         * tests/unictype/test-categ_byname.c: Likewise.
35370         * tests/unictype/test-categ_name.c: Likewise.
35371         * tests/unictype/test-categ_none.c: Likewise.
35372         * tests/unictype/test-categ_of.c: Likewise.
35373         * tests/unictype/test-categ_or.c: Likewise.
35374         * tests/unictype/test-categ_test_withtable.c: Likewise.
35375         * tests/unictype/test-combining.c: Likewise.
35376         * tests/unictype/test-decdigit.c: Likewise.
35377         * tests/unictype/test-digit.c: Likewise.
35378         * tests/unictype/test-mirror.c: Likewise.
35379         * tests/unictype/test-numeric.c: Likewise.
35380         * tests/unictype/test-pr_byname.c: Likewise.
35381         * tests/unictype/test-pr_test.c: Likewise.
35382         * tests/unictype/test-predicate-part1.h: Likewise.
35383         * tests/unictype/test-scripts.c: Likewise.
35384         * tests/unictype/test-sy_c_ident.c: Likewise.
35385         * tests/unictype/test-sy_java_ident.c: Likewise.
35386         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35387         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35388         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35389         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35390         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35391         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35392         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35393         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35394         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35395         * tests/uninorm/test-compat-decomposition.c: Likewise.
35396         * tests/uninorm/test-composition.c: Likewise.
35397         * tests/uninorm/test-decomposing-form.c: Likewise.
35398         * tests/uninorm/test-decomposition.c: Likewise.
35399         * tests/uninorm/test-u8-nfc.c: Likewise.
35400         * tests/uninorm/test-u8-nfd.c: Likewise.
35401         * tests/uninorm/test-u8-nfkc.c: Likewise.
35402         * tests/uninorm/test-u8-nfkd.c: Likewise.
35403         * tests/uninorm/test-u8-normcmp.c: Likewise.
35404         * tests/uninorm/test-u8-normcoll.c: Likewise.
35405         * tests/uninorm/test-u16-nfc.c: Likewise.
35406         * tests/uninorm/test-u16-nfd.c: Likewise.
35407         * tests/uninorm/test-u16-nfkc.c: Likewise.
35408         * tests/uninorm/test-u16-nfkd.c: Likewise.
35409         * tests/uninorm/test-u16-normcmp.c: Likewise.
35410         * tests/uninorm/test-u16-normcoll.c: Likewise.
35411         * tests/uninorm/test-u32-nfc.c: Likewise.
35412         * tests/uninorm/test-u32-nfd.c: Likewise.
35413         * tests/uninorm/test-u32-nfkc.c: Likewise.
35414         * tests/uninorm/test-u32-nfkd.c: Likewise.
35415         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35416         * tests/uninorm/test-u32-normcmp.c: Likewise.
35417         * tests/uninorm/test-u32-normcoll.c: Likewise.
35418         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35419         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35420         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35421         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35422         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35423         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35424         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35425         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35426         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35427         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35428         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35429         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35430         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35431         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35432         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35433         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35434         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35435         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35436         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35437         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35438         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35439         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35440         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35441         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35442         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35443         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35444         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35445         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35446         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35447         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35448         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35449         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35450         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35451         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35452         * tests/uniwidth/test-u8-width.c: Likewise.
35453         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35454         * tests/uniwidth/test-u16-width.c: Likewise.
35455         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35456         * tests/uniwidth/test-u32-width.c: Likewise.
35457         * tests/uniwidth/test-uc_width.c: Likewise.
35458         * tests/uniwidth/test-uc_width2.c: Likewise.
35459         * modules/acl-tests (Files): Add tests/macros.h.
35460         * modules/areadlink-tests (Files): Likewise.
35461         * modules/areadlink-with-size-tests (Files): Likewise.
35462         * modules/areadlinkat-tests (Files): Likewise.
35463         * modules/areadlinkat-with-size-tests (Files): Likewise.
35464         * modules/argmatch-tests (Files): Likewise.
35465         * modules/argv-iter-tests (Files): Likewise.
35466         * modules/array-list-tests (Files): Likewise.
35467         * modules/array-mergesort-tests (Files): Likewise.
35468         * modules/array-oset-tests (Files): Likewise.
35469         * modules/avltree-list-tests (Files): Likewise.
35470         * modules/avltree-oset-tests (Files): Likewise.
35471         * modules/avltreehash-list-tests (Files): Likewise.
35472         * modules/base64-tests (Files): Likewise.
35473         * modules/binary-io-tests (Files): Likewise.
35474         * modules/bitrotate-tests (Files): Likewise.
35475         * modules/btowc-tests (Files): Likewise.
35476         * modules/byteswap-tests (Files): Likewise.
35477         * modules/c-ctype-tests (Files): Likewise.
35478         * modules/c-stack-tests (Files): Likewise.
35479         * modules/c-strcase-tests (Files): Likewise.
35480         * modules/c-strcasestr-tests (Files): Likewise.
35481         * modules/c-strstr-tests (Files): Likewise.
35482         * modules/canonicalize-lgpl-tests (Files): Likewise.
35483         * modules/canonicalize-tests (Files): Likewise.
35484         * modules/carray-list-tests (Files): Likewise.
35485         * modules/ceilf-tests (Files): Likewise.
35486         * modules/ceill-tests (Files): Likewise.
35487         * modules/chown-tests (Files): Likewise.
35488         * modules/cloexec-tests (Files): Likewise.
35489         * modules/copy-file-tests (Files): Likewise.
35490         * modules/count-one-bits-tests (Files): Likewise.
35491         * modules/dprintf-posix-tests (Files): Likewise.
35492         * modules/dup2-tests (Files): Likewise.
35493         * modules/dup3-tests (Files): Likewise.
35494         * modules/duplocale-tests (Files): Likewise.
35495         * modules/fbufmode-tests (Files): Likewise.
35496         * modules/fchdir-tests (Files): Likewise.
35497         * modules/fcntl-safer-tests (Files): Likewise.
35498         * modules/fcntl-tests (Files): Likewise.
35499         * modules/fdopendir-tests (Files): Likewise.
35500         * modules/fdutimensat-tests (Files): Likewise.
35501         * modules/fflush-tests (Files): Likewise.
35502         * modules/filevercmp-tests (Files): Likewise.
35503         * modules/flock-tests (Files): Likewise.
35504         * modules/floorf-tests (Files): Likewise.
35505         * modules/floorl-tests (Files): Likewise.
35506         * modules/fnmatch-tests (Files): Likewise.
35507         * modules/fopen-safer-tests (Files): Likewise.
35508         * modules/fopen-tests (Files): Likewise.
35509         * modules/fpending-tests (Files): Likewise.
35510         * modules/fprintf-posix-tests (Files): Likewise.
35511         * modules/fpurge-tests (Files): Likewise.
35512         * modules/freadable-tests (Files): Likewise.
35513         * modules/freadahead-tests (Files): Likewise.
35514         * modules/freading-tests (Files): Likewise.
35515         * modules/freadptr-tests (Files): Likewise.
35516         * modules/freadseek-tests (Files): Likewise.
35517         * modules/freopen-tests (Files): Likewise.
35518         * modules/frexp-nolibm-tests (Files): Likewise.
35519         * modules/frexp-tests (Files): Likewise.
35520         * modules/frexpl-nolibm-tests (Files): Likewise.
35521         * modules/frexpl-tests (Files): Likewise.
35522         * modules/fseek-tests (Files): Likewise.
35523         * modules/fseeko-tests (Files): Likewise.
35524         * modules/fstrcmp-tests (Files): Likewise.
35525         * modules/fsync-tests (Files): Likewise.
35526         * modules/ftell-tests (Files): Likewise.
35527         * modules/ftello-tests (Files): Likewise.
35528         * modules/func-tests (Files): Likewise.
35529         * modules/futimens-tests (Files): Likewise.
35530         * modules/fwritable-tests (Files): Likewise.
35531         * modules/fwriting-tests (Files): Likewise.
35532         * modules/getcwd-tests (Files): Likewise.
35533         * modules/getdate-tests (Files): Likewise.
35534         * modules/getdelim-tests (Files): Likewise.
35535         * modules/getdtablesize-tests (Files): Likewise.
35536         * modules/getgroups-tests (Files): Likewise.
35537         * modules/getline-tests (Files): Likewise.
35538         * modules/getndelim2-tests (Files): Likewise.
35539         * modules/glob-tests (Files): Likewise.
35540         * modules/hash-tests (Files): Likewise.
35541         * modules/i-ring-tests (Files): Likewise.
35542         * modules/iconv-tests (Files): Likewise.
35543         * modules/iconv_open-utf-tests (Files): Likewise.
35544         * modules/idpriv-drop-tests (Files): Likewise.
35545         * modules/idpriv-droptemp-tests (Files): Likewise.
35546         * modules/inet_ntop-tests (Files): Likewise.
35547         * modules/inet_pton-tests (Files): Likewise.
35548         * modules/isblank-tests (Files): Likewise.
35549         * modules/isfinite-tests (Files): Likewise.
35550         * modules/isinf-tests (Files): Likewise.
35551         * modules/isnan-tests (Files): Likewise.
35552         * modules/isnand-nolibm-tests (Files): Likewise.
35553         * modules/isnand-tests (Files): Likewise.
35554         * modules/isnanf-nolibm-tests (Files): Likewise.
35555         * modules/isnanf-tests (Files): Likewise.
35556         * modules/isnanl-nolibm-tests (Files): Likewise.
35557         * modules/isnanl-tests (Files): Likewise.
35558         * modules/lchown-tests (Files): Likewise.
35559         * modules/ldexpl-tests (Files): Likewise.
35560         * modules/link-tests (Files): Likewise.
35561         * modules/linkat-tests (Files): Likewise.
35562         * modules/linked-list-tests (Files): Likewise.
35563         * modules/linkedhash-list-tests (Files): Likewise.
35564         * modules/localename-tests (Files): Likewise.
35565         * modules/lseek-tests (Files): Likewise.
35566         * modules/lstat-tests (Files): Likewise.
35567         * modules/mbmemcasecmp-tests (Files): Likewise.
35568         * modules/mbmemcasecoll-tests (Files): Likewise.
35569         * modules/mbrtowc-tests (Files): Likewise.
35570         * modules/mbscasecmp-tests (Files): Likewise.
35571         * modules/mbscasestr-tests (Files): Likewise.
35572         * modules/mbschr-tests (Files): Likewise.
35573         * modules/mbscspn-tests (Files): Likewise.
35574         * modules/mbsinit-tests (Files): Likewise.
35575         * modules/mbsncasecmp-tests (Files): Likewise.
35576         * modules/mbsnrtowcs-tests (Files): Likewise.
35577         * modules/mbspbrk-tests (Files): Likewise.
35578         * modules/mbspcasecmp-tests (Files): Likewise.
35579         * modules/mbsrchr-tests (Files): Likewise.
35580         * modules/mbsrtowcs-tests (Files): Likewise.
35581         * modules/mbsspn-tests (Files): Likewise.
35582         * modules/mbsstr-tests (Files): Likewise.
35583         * modules/memchr-tests (Files): Likewise.
35584         * modules/memchr2-tests (Files): Likewise.
35585         * modules/memcmp-tests (Files): Likewise.
35586         * modules/memmem-tests (Files): Likewise.
35587         * modules/memrchr-tests (Files): Likewise.
35588         * modules/mkdir-tests (Files): Likewise.
35589         * modules/mkfifo-tests (Files): Likewise.
35590         * modules/mkfifoat-tests (Files): Likewise.
35591         * modules/mknod-tests (Files): Likewise.
35592         * modules/nanosleep-tests (Files): Likewise.
35593         * modules/nl_langinfo-tests (Files): Likewise.
35594         * modules/obstack-printf-tests (Files): Likewise.
35595         * modules/open-tests (Files): Likewise.
35596         * modules/openat-tests (Files): Likewise.
35597         * modules/pipe-filter-gi-tests (Files): Likewise.
35598         * modules/pipe-filter-ii-tests (Files): Likewise.
35599         * modules/pipe2-tests (Files): Likewise.
35600         * modules/popen-safer-tests (Files): Likewise.
35601         * modules/popen-tests (Files): Likewise.
35602         * modules/posixtm-tests (Files): Likewise.
35603         * modules/pread-tests (Files): Likewise.
35604         * modules/printf-frexp-tests (Files): Likewise.
35605         * modules/printf-frexpl-tests (Files): Likewise.
35606         * modules/printf-posix-tests (Files): Likewise.
35607         * modules/priv-set-tests (Files): Likewise.
35608         * modules/quotearg-tests (Files): Likewise.
35609         * modules/random_r-tests (Files): Likewise.
35610         * modules/rawmemchr-tests (Files): Likewise.
35611         * modules/rbtree-list-tests (Files): Likewise.
35612         * modules/rbtree-oset-tests (Files): Likewise.
35613         * modules/rbtreehash-list-tests (Files): Likewise.
35614         * modules/readlink-tests (Files): Likewise.
35615         * modules/remove-tests (Files): Likewise.
35616         * modules/rename-tests (Files): Likewise.
35617         * modules/renameat-tests (Files): Likewise.
35618         * modules/rmdir-tests (Files): Likewise.
35619         * modules/round-tests (Files): Likewise.
35620         * modules/roundf-tests (Files): Likewise.
35621         * modules/roundl-tests (Files): Likewise.
35622         * modules/safe-alloc-tests (Files): Likewise.
35623         * modules/setenv-tests (Files): Likewise.
35624         * modules/sigaction-tests (Files): Likewise.
35625         * modules/signbit-tests (Files): Likewise.
35626         * modules/sleep-tests (Files): Likewise.
35627         * modules/snprintf-posix-tests (Files): Likewise.
35628         * modules/snprintf-tests (Files): Likewise.
35629         * modules/sprintf-posix-tests (Files): Likewise.
35630         * modules/stat-tests (Files): Likewise.
35631         * modules/stat-time-tests (Files): Likewise.
35632         * modules/strcasestr-tests (Files): Likewise.
35633         * modules/strchrnul-tests (Files): Likewise.
35634         * modules/strerror-tests (Files): Likewise.
35635         * modules/striconv-tests (Files): Likewise.
35636         * modules/striconveh-tests (Files): Likewise.
35637         * modules/striconveha-tests (Files): Likewise.
35638         * modules/strsignal-tests (Files): Likewise.
35639         * modules/strstr-tests (Files): Likewise.
35640         * modules/strtod-tests (Files): Likewise.
35641         * modules/strverscmp-tests (Files): Likewise.
35642         * modules/symlink-tests (Files): Likewise.
35643         * modules/symlinkat-tests (Files): Likewise.
35644         * modules/trunc-tests (Files): Likewise.
35645         * modules/truncf-tests (Files): Likewise.
35646         * modules/truncl-tests (Files): Likewise.
35647         * modules/uname-tests (Files): Likewise.
35648         * modules/unicase/cased-tests (Files): Likewise.
35649         * modules/unicase/ignorable-tests (Files): Likewise.
35650         * modules/unicase/locale-language-tests (Files): Likewise.
35651         * modules/unicase/tolower-tests (Files): Likewise.
35652         * modules/unicase/totitle-tests (Files): Likewise.
35653         * modules/unicase/toupper-tests (Files): Likewise.
35654         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35655         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35656         * modules/unicase/u8-casefold-tests (Files): Likewise.
35657         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35658         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35659         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35660         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35661         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35662         * modules/unicase/u8-tolower-tests (Files): Likewise.
35663         * modules/unicase/u8-totitle-tests (Files): Likewise.
35664         * modules/unicase/u8-toupper-tests (Files): Likewise.
35665         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35666         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35667         * modules/unicase/u16-casefold-tests (Files): Likewise.
35668         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35669         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35670         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35671         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35672         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35673         * modules/unicase/u16-tolower-tests (Files): Likewise.
35674         * modules/unicase/u16-totitle-tests (Files): Likewise.
35675         * modules/unicase/u16-toupper-tests (Files): Likewise.
35676         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35677         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35678         * modules/unicase/u32-casefold-tests (Files): Likewise.
35679         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35680         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35681         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35682         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35683         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35684         * modules/unicase/u32-tolower-tests (Files): Likewise.
35685         * modules/unicase/u32-totitle-tests (Files): Likewise.
35686         * modules/unicase/u32-toupper-tests (Files): Likewise.
35687         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35688         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35689         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35690         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35691         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35692         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35693         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35694         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35695         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35696         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35697         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35698         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35699         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35700         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35701         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35702         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35703         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35704         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35705         * modules/unictype/block-list-tests (Files): Likewise.
35706         * modules/unictype/block-of-tests (Files): Likewise.
35707         * modules/unictype/block-test-tests (Files): Likewise.
35708         * modules/unictype/category-C-tests (Files): Likewise.
35709         * modules/unictype/category-Cc-tests (Files): Likewise.
35710         * modules/unictype/category-Cf-tests (Files): Likewise.
35711         * modules/unictype/category-Cn-tests (Files): Likewise.
35712         * modules/unictype/category-Co-tests (Files): Likewise.
35713         * modules/unictype/category-Cs-tests (Files): Likewise.
35714         * modules/unictype/category-L-tests (Files): Likewise.
35715         * modules/unictype/category-Ll-tests (Files): Likewise.
35716         * modules/unictype/category-Lm-tests (Files): Likewise.
35717         * modules/unictype/category-Lo-tests (Files): Likewise.
35718         * modules/unictype/category-Lt-tests (Files): Likewise.
35719         * modules/unictype/category-Lu-tests (Files): Likewise.
35720         * modules/unictype/category-M-tests (Files): Likewise.
35721         * modules/unictype/category-Mc-tests (Files): Likewise.
35722         * modules/unictype/category-Me-tests (Files): Likewise.
35723         * modules/unictype/category-Mn-tests (Files): Likewise.
35724         * modules/unictype/category-N-tests (Files): Likewise.
35725         * modules/unictype/category-Nd-tests (Files): Likewise.
35726         * modules/unictype/category-Nl-tests (Files): Likewise.
35727         * modules/unictype/category-No-tests (Files): Likewise.
35728         * modules/unictype/category-P-tests (Files): Likewise.
35729         * modules/unictype/category-Pc-tests (Files): Likewise.
35730         * modules/unictype/category-Pd-tests (Files): Likewise.
35731         * modules/unictype/category-Pe-tests (Files): Likewise.
35732         * modules/unictype/category-Pf-tests (Files): Likewise.
35733         * modules/unictype/category-Pi-tests (Files): Likewise.
35734         * modules/unictype/category-Po-tests (Files): Likewise.
35735         * modules/unictype/category-Ps-tests (Files): Likewise.
35736         * modules/unictype/category-S-tests (Files): Likewise.
35737         * modules/unictype/category-Sc-tests (Files): Likewise.
35738         * modules/unictype/category-Sk-tests (Files): Likewise.
35739         * modules/unictype/category-Sm-tests (Files): Likewise.
35740         * modules/unictype/category-So-tests (Files): Likewise.
35741         * modules/unictype/category-Z-tests (Files): Likewise.
35742         * modules/unictype/category-Zl-tests (Files): Likewise.
35743         * modules/unictype/category-Zp-tests (Files): Likewise.
35744         * modules/unictype/category-Zs-tests (Files): Likewise.
35745         * modules/unictype/category-and-not-tests (Files): Likewise.
35746         * modules/unictype/category-and-tests (Files): Likewise.
35747         * modules/unictype/category-byname-tests (Files): Likewise.
35748         * modules/unictype/category-name-tests (Files): Likewise.
35749         * modules/unictype/category-none-tests (Files): Likewise.
35750         * modules/unictype/category-of-tests (Files): Likewise.
35751         * modules/unictype/category-or-tests (Files): Likewise.
35752         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35753         * modules/unictype/combining-class-tests (Files): Likewise.
35754         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35755         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35756         * modules/unictype/ctype-blank-tests (Files): Likewise.
35757         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35758         * modules/unictype/ctype-digit-tests (Files): Likewise.
35759         * modules/unictype/ctype-graph-tests (Files): Likewise.
35760         * modules/unictype/ctype-lower-tests (Files): Likewise.
35761         * modules/unictype/ctype-print-tests (Files): Likewise.
35762         * modules/unictype/ctype-punct-tests (Files): Likewise.
35763         * modules/unictype/ctype-space-tests (Files): Likewise.
35764         * modules/unictype/ctype-upper-tests (Files): Likewise.
35765         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35766         * modules/unictype/decimal-digit-tests (Files): Likewise.
35767         * modules/unictype/digit-tests (Files): Likewise.
35768         * modules/unictype/mirror-tests (Files): Likewise.
35769         * modules/unictype/numeric-tests (Files): Likewise.
35770         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35771         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35772         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35773         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35774         Likewise.
35775         * modules/unictype/property-bidi-block-separator-tests (Files):
35776         Likewise.
35777         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35778         Likewise.
35779         * modules/unictype/property-bidi-common-separator-tests (Files):
35780         Likewise.
35781         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35782         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35783         Likewise.
35784         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35785         Likewise.
35786         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35787         Likewise.
35788         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35789         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35790         Likewise.
35791         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35792         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35793         Likewise.
35794         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35795         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35796         * modules/unictype/property-bidi-segment-separator-tests (Files):
35797         Likewise.
35798         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35799         * modules/unictype/property-byname-tests (Files): Likewise.
35800         * modules/unictype/property-combining-tests (Files): Likewise.
35801         * modules/unictype/property-composite-tests (Files): Likewise.
35802         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35803         * modules/unictype/property-dash-tests (Files): Likewise.
35804         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35805         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35806         Likewise.
35807         * modules/unictype/property-deprecated-tests (Files): Likewise.
35808         * modules/unictype/property-diacritic-tests (Files): Likewise.
35809         * modules/unictype/property-extender-tests (Files): Likewise.
35810         * modules/unictype/property-format-control-tests (Files): Likewise.
35811         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35812         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35813         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35814         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35815         * modules/unictype/property-hyphen-tests (Files): Likewise.
35816         * modules/unictype/property-id-continue-tests (Files): Likewise.
35817         * modules/unictype/property-id-start-tests (Files): Likewise.
35818         * modules/unictype/property-ideographic-tests (Files): Likewise.
35819         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35820         * modules/unictype/property-ids-trinary-operator-tests (Files):
35821         Likewise.
35822         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35823         * modules/unictype/property-iso-control-tests (Files): Likewise.
35824         * modules/unictype/property-join-control-tests (Files): Likewise.
35825         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35826         * modules/unictype/property-line-separator-tests (Files): Likewise.
35827         * modules/unictype/property-logical-order-exception-tests (Files):
35828         Likewise.
35829         * modules/unictype/property-lowercase-tests (Files): Likewise.
35830         * modules/unictype/property-math-tests (Files): Likewise.
35831         * modules/unictype/property-non-break-tests (Files): Likewise.
35832         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35833         * modules/unictype/property-numeric-tests (Files): Likewise.
35834         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35835         * modules/unictype/property-other-default-ignorable-code-point-tests
35836         (Files): Likewise.
35837         * modules/unictype/property-other-grapheme-extend-tests (Files):
35838         Likewise.
35839         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35840         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35841         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35842         * modules/unictype/property-other-math-tests (Files): Likewise.
35843         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35844         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35845         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35846         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35847         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35848         * modules/unictype/property-private-use-tests (Files): Likewise.
35849         * modules/unictype/property-punctuation-tests (Files): Likewise.
35850         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35851         * modules/unictype/property-radical-tests (Files): Likewise.
35852         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35853         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35854         * modules/unictype/property-space-tests (Files): Likewise.
35855         * modules/unictype/property-terminal-punctuation-tests (Files):
35856         Likewise.
35857         * modules/unictype/property-test-tests (Files): Likewise.
35858         * modules/unictype/property-titlecase-tests (Files): Likewise.
35859         * modules/unictype/property-unassigned-code-value-tests (Files):
35860         Likewise.
35861         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35862         * modules/unictype/property-uppercase-tests (Files): Likewise.
35863         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35864         * modules/unictype/property-white-space-tests (Files): Likewise.
35865         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35866         * modules/unictype/property-xid-start-tests (Files): Likewise.
35867         * modules/unictype/property-zero-width-tests (Files): Likewise.
35868         * modules/unictype/scripts-tests (Files): Likewise.
35869         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35870         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35871         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35872         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35873         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35874         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35875         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35876         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35877         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35878         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35879         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35880         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35881         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35882         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35883         * modules/uninorm/composition-tests (Files): Likewise.
35884         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35885         * modules/uninorm/decomposition-tests (Files): Likewise.
35886         * modules/uninorm/filter-tests (Files): Likewise.
35887         * modules/uninorm/nfc-tests (Files): Likewise.
35888         * modules/uninorm/nfd-tests (Files): Likewise.
35889         * modules/uninorm/nfkc-tests (Files): Likewise.
35890         * modules/uninorm/nfkd-tests (Files): Likewise.
35891         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35892         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35893         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35894         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35895         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35896         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35897         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35898         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35899         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35900         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35901         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35902         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35903         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35904         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35905         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35906         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35907         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35908         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35909         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35910         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35911         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35912         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35913         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35914         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35915         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35916         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35917         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35918         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35919         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35920         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35921         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35922         * modules/uniwidth/u8-width-tests (Files): Likewise.
35923         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35924         * modules/uniwidth/u16-width-tests (Files): Likewise.
35925         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35926         * modules/uniwidth/u32-width-tests (Files): Likewise.
35927         * modules/uniwidth/width-tests (Files): Likewise.
35928         * modules/unlink-tests (Files): Likewise.
35929         * modules/unsetenv-tests (Files): Likewise.
35930         * modules/usleep-tests (Files): Likewise.
35931         * modules/utimens-tests (Files): Likewise.
35932         * modules/utimensat-tests (Files): Likewise.
35933         * modules/vasnprintf-posix-tests (Files): Likewise.
35934         * modules/vasnprintf-tests (Files): Likewise.
35935         * modules/vasprintf-posix-tests (Files): Likewise.
35936         * modules/vasprintf-tests (Files): Likewise.
35937         * modules/vdprintf-posix-tests (Files): Likewise.
35938         * modules/vfprintf-posix-tests (Files): Likewise.
35939         * modules/vprintf-posix-tests (Files): Likewise.
35940         * modules/vsnprintf-posix-tests (Files): Likewise.
35941         * modules/vsnprintf-tests (Files): Likewise.
35942         * modules/vsprintf-posix-tests (Files): Likewise.
35943         * modules/wcrtomb-tests (Files): Likewise.
35944         * modules/wcsnrtombs-tests (Files): Likewise.
35945         * modules/wcsrtombs-tests (Files): Likewise.
35946         * modules/wctype-tests (Files): Likewise.
35947         * modules/wcwidth-tests (Files): Likewise.
35948         * modules/xmemdup0-tests (Files): Likewise.
35949         * modules/xprintf-posix-tests (Files): Likewise.
35950         * modules/xvasprintf-tests (Files): Likewise.
35951
35952 2009-12-24  Eric Blake  <ebb9@byu.net>
35953
35954         test-nanosleep: fix typo
35955         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35956         patch.
35957         Reported by Bruno Haible.
35958
35959 2009-12-24  Bruno Haible  <bruno@clisp.org>
35960
35961         Reduce namespace pollution on glibc systems.
35962         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35963         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35964         systems.
35965         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35966         <getopt.h> on glibc systems.
35967         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35968         systems.
35969         * lib/fcntl.c: Include <unistd.h> here instead.
35970
35971 2009-12-24  Bruno Haible  <bruno@clisp.org>
35972
35973         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35974
35975 2009-12-24  Eric Blake  <ebb9@byu.net>
35976
35977         tests: add signature checks
35978         * tests/signature.h (SIGNATURE_CHECK): New file.
35979         * modules/atexit-tests (Files): Use it.
35980         * modules/btowc-tests (Files): Likewise.
35981         * modules/canonicalize-lgpl-tests (Files): Likewise.
35982         * modules/ceilf-tests (Files): Likewise.
35983         * modules/ceill-tests (Files): Likewise.
35984         * modules/chown-tests (Files): Likewise.
35985         * modules/dprintf-posix-tests (Files): Likewise.
35986         * modules/dup2-tests (Files): Likewise.
35987         * modules/dup3-tests (Files): Likewise.
35988         * modules/duplocale-tests (Files): Likewise.
35989         * modules/fchdir-tests (Files): Likewise.
35990         * modules/fcntl-tests (Files): Likewise.
35991         * modules/fdopendir-tests (Files): Likewise.
35992         * modules/fflush-tests (Files): Likewise.
35993         * modules/flock-tests (Files): Likewise.
35994         * modules/floorf-tests (Files): Likewise.
35995         * modules/floorl-tests (Files): Likewise.
35996         * modules/fnmatch-tests (Files): Likewise.
35997         * modules/fopen-tests (Files): Likewise.
35998         * modules/fprintf-posix-tests (Files): Likewise.
35999         * modules/freopen-tests (Files): Likewise.
36000         * modules/frexp-nolibm-tests (Files): Likewise.
36001         * modules/frexp-tests (Files): Likewise.
36002         * modules/frexpl-nolibm-tests (Files): Likewise.
36003         * modules/frexpl-tests (Files): Likewise.
36004         * modules/fseek-tests (Files): Likewise.
36005         * modules/fseeko-tests (Files): Likewise.
36006         * modules/fsync-tests (Files): Likewise.
36007         * modules/ftell-tests (Files): Likewise.
36008         * modules/ftello-tests (Files): Likewise.
36009         * modules/futimens-tests (Files): Likewise.
36010         * modules/getaddrinfo-tests (Files): Likewise.
36011         * modules/getcwd-tests (Files): Likewise.
36012         * modules/getdelim-tests (Files): Likewise.
36013         * modules/getdtablesize-tests (Files): Likewise.
36014         * modules/getgroups-tests (Files): Likewise.
36015         * modules/gethostname-tests (Files): Likewise.
36016         * modules/getline-tests (Files): Likewise.
36017         * modules/getopt-posix-tests (Files): Likewise.
36018         * modules/gettimeofday-tests (Files): Likewise.
36019         * modules/glob-tests (Files): Likewise.
36020         * modules/iconv-tests (Files): Likewise.
36021         * modules/inet_ntop-tests (Files): Likewise.
36022         * modules/inet_pton-tests (Files): Likewise.
36023         * modules/isblank-tests (Files): Likewise.
36024         * modules/lchown-tests (Files): Likewise.
36025         * modules/ldexpl-tests (Files): Likewise.
36026         * modules/link-tests (Files): Likewise.
36027         * modules/linkat-tests (Files): Likewise.
36028         * modules/lseek-tests (Files): Likewise.
36029         * modules/lstat-tests (Files): Likewise.
36030         * modules/mbrtowc-tests (Files): Likewise.
36031         * modules/mbsinit-tests (Files): Likewise.
36032         * modules/mbsnrtowcs-tests (Files): Likewise.
36033         * modules/mbsrtowcs-tests (Files): Likewise.
36034         * modules/memchr-tests (Files): Likewise.
36035         * modules/memcmp-tests (Files): Likewise.
36036         * modules/memmem-tests (Files): Likewise.
36037         * modules/memrchr-tests (Files): Likewise.
36038         * modules/mkdir-tests (Files): Likewise.
36039         * modules/mkfifo-tests (Files): Likewise.
36040         * modules/mkfifoat-tests (Files): Likewise.
36041         * modules/mknod-tests (Files): Likewise.
36042         * modules/nanosleep-tests (Files): Likewise.
36043         * modules/nl_langinfo-tests (Files): Likewise.
36044         * modules/obstack-printf-tests (Files): Likewise.
36045         * modules/open-tests (Files): Likewise.
36046         * modules/openat-tests (Files): Likewise.
36047         * modules/perror-tests (Files): Likewise.
36048         * modules/pipe2-tests (Files): Likewise.
36049         * modules/poll-tests (Files): Likewise.
36050         * modules/popen-tests (Files): Likewise.
36051         * modules/posix_spawn-tests (Files): Likewise.
36052         * modules/posix_spawnp-tests (Files): Likewise.
36053         * modules/pread-tests (Files): Likewise.
36054         * modules/printf-posix-tests (Files): Likewise.
36055         * modules/pty-tests (Files): Likewise.
36056         * modules/random_r-tests (Files): Likewise.
36057         * modules/rawmemchr-tests (Files): Likewise.
36058         * modules/readlink-tests (Files): Likewise.
36059         * modules/remove-tests (Files): Likewise.
36060         * modules/rename-tests (Files): Likewise.
36061         * modules/renameat-tests (Files): Likewise.
36062         * modules/rmdir-tests (Files): Likewise.
36063         * modules/round-tests (Files): Likewise.
36064         * modules/roundf-tests (Files): Likewise.
36065         * modules/roundl-tests (Files): Likewise.
36066         * modules/select-tests (Files): Likewise.
36067         * modules/setenv-tests (Files): Likewise.
36068         * modules/sigaction-tests (Files): Likewise.
36069         * modules/sleep-tests (Files): Likewise.
36070         * modules/snprintf-posix-tests (Files): Likewise.
36071         * modules/snprintf-tests (Files): Likewise.
36072         * modules/sprintf-posix-tests (Files): Likewise.
36073         * modules/stat-tests (Files): Likewise.
36074         * modules/strcasestr-tests (Files): Likewise.
36075         * modules/strchrnul-tests (Files): Likewise.
36076         * modules/strerror-tests (Files): Likewise.
36077         * modules/strsignal-tests (Files): Likewise.
36078         * modules/strstr-tests (Files): Likewise.
36079         * modules/strtod-tests (Files): Likewise.
36080         * modules/strverscmp-tests (Files): Likewise.
36081         * modules/symlink-tests (Files): Likewise.
36082         * modules/symlinkat-tests (Files): Likewise.
36083         * modules/times-tests (Files): Likewise.
36084         * modules/trunc-tests (Files): Likewise.
36085         * modules/truncf-tests (Files): Likewise.
36086         * modules/truncl-tests (Files): Likewise.
36087         * modules/tsearch-tests (Files): Likewise.
36088         * modules/uname-tests (Files): Likewise.
36089         * modules/unlink-tests (Files): Likewise.
36090         * modules/unsetenv-tests (Files): Likewise.
36091         * modules/usleep-tests (Files): Likewise.
36092         * modules/utimensat-tests (Files): Likewise.
36093         * modules/vasprintf-tests (Files): Likewise.
36094         * modules/vdprintf-posix-tests (Files): Likewise.
36095         * modules/vfprintf-posix-tests (Files): Likewise.
36096         * modules/vprintf-posix-tests (Files): Likewise.
36097         * modules/vsnprintf-posix-tests (Files): Likewise.
36098         * modules/vsnprintf-tests (Files): Likewise.
36099         * modules/vsprintf-posix-tests (Files): Likewise.
36100         * modules/wcrtomb-tests (Files): Likewise.
36101         * modules/wcsnrtombs-tests (Files): Likewise.
36102         * modules/wcsrtombs-tests (Files): Likewise.
36103         * modules/wcwidth-tests (Files): Likewise.
36104         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36105         * tests/test-isinf.c (isinf): Likewise.
36106         * tests/test-isnan.c (isnan): Likewise.
36107         * tests/test-signbit.c (signbit): Likewise.
36108         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36109         declaration, either as macro or with correct signature.
36110         (select): Ensure function under test is declared with correct
36111         signature in correct header.
36112         * tests/test-atexit.c (atexit): Likewise.
36113         * tests/test-btowc.c (btowc): Likewise.
36114         * tests/test-canonicalize-lgpl.c (realpath)
36115         (canonicalize_file_name): Likewise.
36116         * tests/test-ceilf1.c (ceilf): Likewise.
36117         * tests/test-ceill.c (ceill): Likewise.
36118         * tests/test-chown.c (chown): Likewise.
36119         * tests/test-dprintf-posix.c (dprintf): Likewise.
36120         * tests/test-dup2.c (dup2): Likewise.
36121         * tests/test-dup3.c (dup3): Likewise.
36122         * tests/test-duplocale.c (duplocale): Likewise.
36123         * tests/test-fchdir.c (fchdir): Likewise.
36124         * tests/test-fchownat.c (fchownat): Likewise.
36125         * tests/test-fcntl.c (fcntl): Likewise.
36126         * tests/test-fdopendir.c (fdopendir): Likewise.
36127         * tests/test-fflush.c (fflush): Likewise.
36128         * tests/test-flock.c (flock): Likewise.
36129         * tests/test-floorf1.c (floorf): Likewise.
36130         * tests/test-floorl.c (floorl): Likewise.
36131         * tests/test-fnmatch.c (fnmatch): Likewise.
36132         * tests/test-fopen.c (fopen): Likewise.
36133         * tests/test-fprintf-posix.c (fprintf): Likewise.
36134         * tests/test-freopen.c (freopen): Likewise.
36135         * tests/test-frexp.c (frexp): Likewise.
36136         * tests/test-frexpl.c (frexpl): Likewise.
36137         * tests/test-fseek.c (fseek): Likewise.
36138         * tests/test-fseeko.c (fseeko): Likewise.
36139         * tests/test-fstatat.c (fstatat): Likewise.
36140         * tests/test-fsync.c (fsync): Likewise.
36141         * tests/test-ftell.c (ftell): Likewise.
36142         * tests/test-ftello.c (ftello): Likewise.
36143         * tests/test-futimens.c (futimens): Likewise.
36144         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36145         (gai_strerror): Likewise.
36146         * tests/test-getcwd.c (getcwd): Likewise.
36147         * tests/test-getdelim.c (getdelim): Likewise.
36148         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36149         * tests/test-getgroups.c (getgroups): Likewise.
36150         * tests/test-gethostname.c (gethostname): Likewise.
36151         * tests/test-getline.c (getline): Likewise.
36152         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36153         Likewise.
36154         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36155         * tests/test-glob.c (glob, globfree): Likewise.
36156         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36157         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36158         * tests/test-inet_pton.c (inet_pton): Likewise.
36159         * tests/test-isblank.c (isblank): Likewise.
36160         * tests/test-lchown.c (lchown): Likewise.
36161         * tests/test-ldexpl.c (ldexpl): Likewise.
36162         * tests/test-link.c (link): Likewise.
36163         * tests/test-linkat.c (linkat): Likewise.
36164         * tests/test-lseek.c (lseek): Likewise.
36165         * tests/test-lstat.c (lstat): Likewise.
36166         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36167         * tests/test-mbsinit.c (mbsinit): Likewise.
36168         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36169         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36170         * tests/test-memchr.c (memchr): Likewise.
36171         * tests/test-memcmp.c (memcmp): Likewise.
36172         * tests/test-memmem.c (memmem): Likewise.
36173         * tests/test-memrchr.c (memrchr): Likewise.
36174         * tests/test-mkdir.c (mkdir): Likewise.
36175         * tests/test-mkdirat.c (mkdirat): Likewise.
36176         * tests/test-mkfifo.c (mkfifo): Likewise.
36177         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36178         * tests/test-mknod.c (mknod): Likewise.
36179         * tests/test-nanosleep.c (nanosleep): Likewise.
36180         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36181         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36182         Likewise.
36183         * tests/test-open.c (open): Likewise.
36184         * tests/test-openat.c (openat): Likewise.
36185         * tests/test-perror.c (perror): Likewise.
36186         * tests/test-pipe2.c (pipe2): Likewise.
36187         * tests/test-poll.c (poll): Likewise.
36188         * tests/test-popen.c (popen, pclose): Likewise.
36189         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36190         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36191         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36192         (posix_spawn_file_actions_destroy)
36193         (posix_spawn_file_actions_addclose)
36194         (posix_spawn_file_actions_addopen)
36195         (posix_spawn_file_actions_adddup2): Likewise.
36196         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36197         * tests/test-pread.c (pread): Likewise.
36198         * tests/test-printf-posix.c (printf): Likewise.
36199         * tests/test-pty.c (openpty, forkpty): Likewise.
36200         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36201         (random_r): Likewise.
36202         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36203         * tests/test-readlink.c (readlink): Likewise.
36204         * tests/test-remove.c (remove): Likewise.
36205         * tests/test-rename.c (rename): Likewise.
36206         * tests/test-renameat.c (renameat): Likewise.
36207         * tests/test-rmdir.c (rmdir): Likewise.
36208         * tests/test-round1.c (round): Likewise.
36209         * tests/test-roundf1.c (roundf): Likewise.
36210         * tests/test-roundl.c (roundl): Likewise.
36211         * tests/test-setenv.c (setenv): Likewise.
36212         * tests/test-sigaction.c (sigaction): Likewise.
36213         * tests/test-sleep.c (sleep): Likewise.
36214         * tests/test-snprintf.c (snprintf): Likewise.
36215         * tests/test-sprintf-posix.c (sprintf): Likewise.
36216         * tests/test-stat.c (stat): Likewise.
36217         * tests/test-stpncpy.c (stpncpy): Likewise.
36218         * tests/test-strcasestr.c (strcasestr): Likewise.
36219         * tests/test-strchrnul.c (strchrnul): Likewise.
36220         * tests/test-strerror.c (strerror): Likewise.
36221         * tests/test-strsignal.c (strsignal): Likewise.
36222         * tests/test-strstr.c (strstr): Likewise.
36223         * tests/test-strtod.c (strtod): Likewise.
36224         * tests/test-strverscmp.c (strverscmp): Likewise.
36225         * tests/test-symlink.c (symlink): Likewise.
36226         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36227         * tests/test-times.c (times): Likewise.
36228         * tests/test-trunc1.c (trunc): Likewise.
36229         * tests/test-truncf1.c (truncf): Likewise.
36230         * tests/test-truncl.c (truncl): Likewise.
36231         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36232         Likewise.
36233         * tests/test-uname.c (uname): Likewise.
36234         * tests/test-unlink.c (unlink): Likewise.
36235         * tests/test-unlinkat.c (unlinkat): Likewise.
36236         * tests/test-unsetenv.c (unsetenv): Likewise.
36237         * tests/test-usleep.c (usleep): Likewise.
36238         * tests/test-utimensat.c (utimensat): Likewise.
36239         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36240         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36241         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36242         * tests/test-vprintf-posix.c (vprintf): Likewise.
36243         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36244         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36245         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36246         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36247         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36248         * tests/test-wcwidth.c (wcwidth): Likewise.
36249
36250         build: pull in conditional headers during GNULIB_POSIXCHECK
36251         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36252         definitions from any conditionally-included headers.
36253         * lib/stdlib.in.h (includes): Likewise.
36254         * lib/unistd.in.h (includes): Likewise.
36255
36256 2009-12-24  Bruno Haible  <bruno@clisp.org>
36257
36258         * tests/test-argv-iter.c: Include header file being tested immediately
36259         after config.h.
36260         * tests/test-base64.c: Likewise.
36261         * tests/test-flock.c: Likewise.
36262         * tests/test-fsync.c: Likewise.
36263         * tests/test-getdate.c: Likewise.
36264         * tests/test-getndelim2.c: Likewise.
36265         * tests/test-isfinite.c: Likewise.
36266         * tests/test-isinf.c: Likewise.
36267         * tests/test-strerror.c: Likewise.
36268         * tests/test-strsignal.c: Likewise.
36269
36270 2009-12-23  Eric Blake  <ebb9@byu.net>
36271
36272         unistd: work around cygwin bug
36273         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36274         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36275         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36276
36277 2009-12-23  Bruno Haible  <bruno@clisp.org>
36278
36279         localename: More tests.
36280         * tests/test-localename.c (SIZEOF): New macro.
36281         (categories): New variable.
36282         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36283         test_locale_name_default): Add test w.r.t. thread locale.
36284         (test_locale_name_thread): New function.
36285         (main): Invoke it.
36286
36287         localename: Make aware of thread locale.
36288         * lib/localename.h (gl_locale_name_thread): New declaration.
36289         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36290         behaviour with respect to thread locale.
36291         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36292         <langinfo.h>, glthread/lock.h.
36293         (SIZE_BITS): New macro.
36294         (string_hash): New function.
36295         (struct hash_node): New type.
36296         (HASH_TABLE_SIZE): New macro.
36297         (struniq_hash_table, struniq_lock): New variables.
36298         (struniq): New function.
36299         (gl_locale_name_thread): New function.
36300         (gl_locale_name): Invoke it.
36301         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36302         * modules/localename (Depends-on): Add lock.
36303         Reported by Mike Gran <spk121@yahoo.com>.
36304
36305 2009-12-23  Eric Blake  <ebb9@byu.net>
36306
36307         va-args: new module
36308         * modules/va-args: New file.
36309         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36310         * MODULES.html.sh (Core language properties): Mention it.
36311
36312         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36313         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36314         named alias for __attribute__((__unused__)).
36315         * lib/chown.c: Update client.
36316         * lib/fchmodat.c: Likewise.
36317         * lib/fts.c: Likewise.
36318         * lib/getdate.y: Likewise.
36319         * lib/getgroups.c: Likewise.
36320         * lib/getopt.c: Likewise.
36321         * lib/getugroups.c: Likewise.
36322         * lib/mkdir.c: Likewise.
36323         * lib/mkfifo.c: Likewise.
36324         * lib/mkfifoat.c: Likewise.
36325         * lib/mknod.c: Likewise.
36326         * lib/mknodat.c: Likewise.
36327         * lib/readlink.c: Likewise.
36328         * lib/se-context.in.h: Likewise.
36329         * lib/se-selinux.in.h: Likewise.
36330         * lib/sockets.c: Likewise.
36331         * lib/symlink.c: Likewise.
36332         * lib/symlinkat.c: Likewise.
36333         * lib/unicodeio.c: Likewise.
36334         * lib/unistr.h: Likewise.
36335         * tests/test-areadlink.c: Likewise.
36336         * tests/test-areadlinkat.c: Likewise.
36337         * tests/test-filenamecat.c: Likewise.
36338         * tests/test-fseeko.c: Likewise.
36339         * tests/test-ftello.c: Likewise.
36340         * tests/test-getdate.c: Likewise.
36341         * tests/test-getgroups.c: Likewise.
36342         * tests/test-gethostname.c: Likewise.
36343         * tests/test-quotearg.c: Likewise.
36344         * tests/test-version-etc.c: Likewise.
36345         * tests/test-xalloc-die.c: Likewise.
36346         * tests/test-xfprintf-posix.c: Likewise.
36347         * tests/test-xprintf-posix.c: Likewise.
36348         * tests/test-xvasprintf.c: Likewise.
36349
36350         tests: avoid compiler warnings
36351         * tests/test-fcntl.c (main): Delete unused parameters.
36352         * tests/test-freopen-safer.c (main): Likewise.
36353         * tests/test-xalloc-die.c (main): Mark unused parameters.
36354         * tests/test-fseeko.c (main): Likewise.
36355         * tests/test-ftello.c (main): Likewise.
36356         * tests/test-nanosleep.c (main): Avoid declaration warning.
36357         * tests/test-sleep.c (main): Likewise.
36358         * tests/test-unsetenv.c (main): Silence warning about string
36359         literal.
36360         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36361
36362 2009-12-23  Bruno Haible  <bruno@clisp.org>
36363
36364         * tests/test-localename.c (test_locale_name): New function, extracted
36365         from main. Also test mixed situations.
36366         (test_locale_name_posix, test_locale_name_environ,
36367         test_locale_name_default): New functions.
36368         (main): Invoke them all.
36369         * modules/localename-tests (configure.ac): Test for newlocale.
36370
36371 2009-12-23  Bruno Haible  <bruno@clisp.org>
36372
36373         unistd: Ensure getcwd gets declared before being overridden.
36374         * lib/unistd.in.h: Conditionally include <io.h>.
36375
36376 2009-12-22  Bruno Haible  <bruno@clisp.org>
36377
36378         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36379         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36380         (gl_WCHAR_H): Invoke it.
36381         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36382         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36383         Reported by Karl Berry <karl@freefriends.org>.
36384
36385 2009-12-22  Eric Blake  <ebb9@byu.net>
36386
36387         math, unistd: avoid redundant includes
36388         * lib/math.in.h (isnan): No need to re-include <math.h>.
36389         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36390
36391         getsubopt: work around cygwin bug
36392         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36393         avoid conflicting with system getsubopt.
36394         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36395         bug.
36396
36397         getopt: synchronize from glibc
36398         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36399         parameter order.  Adjust all callers.
36400         (_getopt_internal_r, main): Adjust quoting in error messages.
36401         Drop considerations for outdated POSIX 1003.2 error message.
36402         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36403         callers.
36404         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36405
36406         test-getopt: test stderr behavior
36407         * modules/getopt-posix-tests (Depends-on): Add dup2.
36408         * tests/test-getopt.c (ASSERT): Avoid stderr.
36409         (main): Move stderr to a temporary file.
36410         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36411         Instead, add parameter to inform caller if output occurred.
36412         (test_getopt): Adjust all existing tests to expect silence, and
36413         add new tests of leading ":".
36414         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36415         glibc shortcomings with leading "-:" or "+:" in optstring.
36416         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36417         Likewise.
36418         * doc/posix-functions/getopt.texi (getopt): Likewise.
36419
36420         test-getopt: enhance test
36421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36422         supports optind=0.
36423         * tests/test-getopt.c (OPTIND_MIN): Move...
36424         * tests/test-getopt.h (OPTIND_MIN): ...here.
36425         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36426         Require that optind=0 works, since modern BSD supports it in
36427         addition to optreset, and since coreutils expects it.
36428         (test_getopt_long_only): New test.
36429         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36430         glibc shortcomings with 'W;', and enforcement of optind=0.
36431         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36432         Likewise.
36433
36434 2009-12-21  Bruno Haible  <bruno@clisp.org>
36435
36436         localename: Improvements for MacOS X and Cygwin.
36437         * lib/localename.h (gl_locale_name_environ): New declaration.
36438         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36439         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36440         (gl_locale_name_posix): Invoke it.
36441         (gl_locale_name_default): Add comments. Use Windows native API also on
36442         Cygwin.
36443
36444 2009-12-21  Bruno Haible  <bruno@clisp.org>
36445
36446         Update list of Win32 locale ids.
36447         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36448         (LANG_SAMI): Renamed from LANG_SAAMI.
36449         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36450         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36451         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36452         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36453         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36454         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36455         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36456         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36457         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36458         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36459         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36460         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36461         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36462         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36463         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36464         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36465         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36466         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36467         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36468         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36469         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36470         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36471         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36472         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36473         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36474         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36475         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36476         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36477         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36478         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36479         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36480         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36481         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36482         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36483         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36484         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36485         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36486         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36487         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36488         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36489         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36490         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36491         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36492         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36493         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36494         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36495         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36496         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36497         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36498         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36499         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36500         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36501         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36502         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36503         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36504         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36505         Add more languages and countries for Sami, Sorbian. Add more countries
36506         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36507         for Pashto. Change country for Syriac, Tswana.
36508
36509 2009-12-21  Eric Blake  <ebb9@byu.net>
36510
36511         test-utimens: avoid spurious failure
36512         * tests/test-chown.h (nap): Factor...
36513         * tests/nap.h: ...into new file.
36514         * tests/test-lchown.h (nap): Avoid duplication.
36515         * tests/test-utimens-common.h (nap): Use shared implementation,
36516         necessary on file systems with 1-second resolution.
36517         * modules/chown-tests (Files): Include new file.
36518         * modules/fdutimensat-tests (Files): Likewise.
36519         * modules/futimens-tests (Files): Likewise.
36520         * modules/lchown-tests (Files): Likewise.
36521         * modules/openat-tests (Files): Likewise.
36522         * modules/utimens-tests (Files): Likewise.
36523         * modules/utimensat-tests (Files): Likewise.
36524
36525 2009-12-19  Eric Blake  <ebb9@byu.net>
36526
36527         futimens, utimensat: work around Linux bug
36528         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36529         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36530         * lib/utimensat.c (rpl_utimensat): Work around it.
36531         * lib/futimens.c (rpl_futimens): Adjust comment.
36532
36533         utimens: work around Linux ctime bug
36534         * lib/utimens.c (detect_ctime_bug): New helper function.
36535         (update_timespec): Differentiate between workaround needed for
36536         this bug vs. what is needed for systems that lack utimensat.
36537         (fdutimens, lutimens): Work around bug.
36538
36539         utimens: check for ctime update
36540         * tests/test-utimens-common.h (check_ctime): Define.
36541         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36542         * tests/test-futimens.h (test_futimens): Likewise.
36543         * tests/test-lutimens.h (test_lutimens): Likewise.
36544         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36545         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36546
36547 2009-12-19  Bruno Haible  <bruno@clisp.org>
36548
36549         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36550         * tests/test-dprintf-posix2.sh: New file.
36551         * tests/test-dprintf-posix2.c: New file.
36552         * modules/dprintf-posix-tests (Files): Add them.
36553         (configure.ac): Check for getrlimit and setrlimit.
36554         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36555
36556 2009-12-19  Bruno Haible  <bruno@clisp.org>
36557
36558         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36559         * tests/test-fprintf-posix3.sh: New file.
36560         * tests/test-fprintf-posix3.c: New file.
36561         * modules/fprintf-posix-tests (Files): Add them.
36562         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36563
36564 2009-12-19  Eric Blake  <ebb9@byu.net>
36565
36566         dirfd: fix prototype
36567         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36568         * lib/dirfd.c (dirfd): Likewise.
36569
36570         canonicalize: reduce memory usage
36571         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36572         allocation to size.
36573         Reported by Solar Designer <solar@openwall.com>.
36574
36575 2009-12-19  Bruno Haible  <bruno@clisp.org>
36576
36577         New module attribute 'Applicability'.
36578         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36579         * gnulib-tool: New option --extract-applicability.
36580         (func_usage): Document it.
36581         (sed_extract_prog): Recognize it.
36582         (func_get_applicability): New function.
36583         (func_import): Generalize handling of 'link-warning' module.
36584         * modules/link-warning (Applicability): New section.
36585         * modules/arg-nonnull (Applicability): New section.
36586         Repoted by Simon Josefsson <simon@josefsson.org>.
36587
36588 2009-12-19  Bruno Haible  <bruno@clisp.org>
36589
36590         fflush: tweak
36591         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36592         * lib/fseeko.c (rpl_fseeko): Likewise.
36593
36594 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36595
36596         * lib/gl_list.h: Fix typo in comment.
36597
36598 2009-12-16  Eric Blake  <ebb9@byu.net>
36599
36600         fcntl: use to simplify other modules
36601         * modules/cloexec (Depends-on): Add fcntl.
36602         * modules/fchdir (Depends-on): Likewise.
36603         * modules/fd-safer-flag (Depends-on): Likewise.
36604         * modules/unistd-safer (Depends-on): Likewise.
36605         * modules/dup3 (configure.ac): Set module indicator.
36606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36607         missing.
36608         * lib/fchdir.c (_gl_register_dup): Fix comment.
36609         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36610         * lib/dup-safer.c (dup_safer): Likewise.
36611         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36612         * lib/dup3.c (dup3): Likewise.
36613         * tests/test-fchdir.c (main): Enhance test.
36614         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36615
36616         fcntl: port portions of fcntl to mingw
36617         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36618         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36619         replacement for mingw.
36620         * modules/fcntl (Description): Update.
36621         (Depends-on): Add dup2.
36622         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36623         * modules/fcntl-h (Makefile.am): Substitute it.
36624         * lib/fcntl.in.h (fcntl): Update declaration.
36625         (F_DUPFD, F_GETFD): New macros, when needed.
36626         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36627         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36628         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36629         we now guarantee.
36630
36631         fcntl: work around cygwin bug in F_DUPFD
36632         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36633         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36634         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36635         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36636         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36637
36638         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36639         * modules/fcntl (Files): List new files.
36640         (configure.ac): Run a test.
36641         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36642         * lib/fcntl.c (rpl_fcntl): Likewise.
36643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36644         (gl_FCNTL_H): Always replace fcntl.h.
36645         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36646         * lib/fcntl.in.h (fcntl): Declare replacement.
36647         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36648         needed, plus a witness.
36649         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36650         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36651         * tests/test-fcntl.c: New file.
36652         * modules/fcntl-tests: Likewise.
36653
36654         binary-io: avoid potential compilation warning
36655         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36656         directives.
36657
36658         fflush: avoid compilation error on NetBSD
36659         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36660         between off_t and fpos_t, since the latter is sometimes a struct.
36661         * lib/fseeko.c (rpl_fseeko): Likewise.
36662         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36663
36664 2009-12-15  Eric Blake  <ebb9@byu.net>
36665
36666         fcntl-h, stdio, sys_ioctl: fix declarations
36667         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36668         function must not take arguments.
36669         * lib/sys_ioctl.in.h (ioctl): Likewise.
36670         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36671         (open): Add a link warning.
36672
36673 2009-12-15  Jim Meyering  <meyering@redhat.com>
36674
36675         areadlink, areadlink-with-size: relax license to LGPLv2+
36676         * modules/areadlink (License): Relax to LGPLv2+.
36677         * modules/areadlink-with-size (License): Likewise.
36678
36679 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36680             Bruno Haible  <bruno@clisp.org>
36681
36682         *printf: Fix memory leak.
36683         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36684         * lib/vfprintf.c (vfprintf): Likewise.
36685         * lib/dprintf.c (dprintf): Likewise.
36686         * lib/vdprintf.c (vdprintf): Likewise.
36687
36688 2009-12-14  Eric Blake  <ebb9@byu.net>
36689
36690         accept4: adjust module dependencies
36691         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36692
36693         utimens: one more try at avoiding compiler warning
36694         * lib/utimens.c (lutimens): Lower scope of result.
36695
36696 2009-12-13  Bruno Haible  <bruno@clisp.org>
36697
36698         Move the malloc checking from module 'list' to new module 'xlist'.
36699         * modules/xlist: New file.
36700         * lib/gl_xlist.h: New file.
36701         * lib/gl_xlist.c: New file.
36702         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36703         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36704         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36705         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36706         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36707         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36708         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36709         gl_sortedlist_nx_add): New declarations.
36710         (struct gl_list_implementation): Rename and change methods accordingly.
36711         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36712         (gl_list_nx_create): Renamed from gl_list_create.
36713         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36714         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36715         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36716         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36717         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36718         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36719         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36720         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36721         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36722         gl_list_create_empty.
36723         (gl_list_nx_create): Renamed from gl_list_create.
36724         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36725         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36726         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36727         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36728         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36729         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36730         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36731         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36732         * lib/gl_array_list.c: Don't include xalloc.h.
36733         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36734         NULL upon out-of-memory.
36735         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36736         out-of-memory.
36737         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36738         Change return type to 'int'.
36739         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36740         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36741         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36742         upon out-of-memory.
36743         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36744         upon out-of-memory.
36745         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36746         upon out-of-memory.
36747         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36748         upon out-of-memory.
36749         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36750         out-of-memory.
36751         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36752         Update.
36753         (gl_array_list_implementation): Update.
36754         * lib/gl_carray_list.c: Don't include xalloc.h.
36755         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36756         Return NULL upon out-of-memory.
36757         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36758         out-of-memory.
36759         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36760         Change return type to 'int'.
36761         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36762         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36763         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36764         upon out-of-memory.
36765         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36766         upon out-of-memory.
36767         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36768         out-of-memory.
36769         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36770         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36771         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36772         Update.
36773         (gl_carray_list_implementation): Update.
36774         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36775         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36776         gl_linked_create_empty. Return NULL upon out-of-memory.
36777         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36778         out-of-memory.
36779         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36780         Change return type to 'int'. Return -1 upon out-of-memory.
36781         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36782         out-of-memory.
36783         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36784         upon out-of-memory.
36785         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36786         upon out-of-memory.
36787         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36788         NULL upon out-of-memory.
36789         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36790         upon out-of-memory.
36791         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36792         out-of-memory.
36793         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36794         Update.
36795         * lib/gl_linked_list.c: Don't include xalloc.h.
36796         (gl_linked_list_implementation): Update.
36797         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36798         (add_to_bucket): Change return type to 'int'.
36799         (gl_linkedhash_list_implementation): Update.
36800         * lib/gl_anytree_list1.h (free_subtree): New function.
36801         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36802         gl_tree_create_empty. Return NULL upon out-of-memory.
36803         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36804         Change return type to 'int'. Return -1 upon out-of-memory.
36805         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36806         out-of-memory.
36807         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36808         (gl_tree_remove_node): New function, moved here from
36809         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36810         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36811         Update.
36812         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36813         malloc, not xmalloc. Return NULL upon out-of-memory.
36814         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36815         out-of-memory.
36816         (gl_tree_remove_node_from_tree): New function, extracted from
36817         gl_tree_remove_node.
36818         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36819         upon out-of-memory.
36820         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36821         out-of-memory.
36822         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36823         upon out-of-memory.
36824         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36825         upon out-of-memory.
36826         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36827         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36828         not xmalloc. Return NULL upon out-of-memory.
36829         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36830         out-of-memory.
36831         (gl_tree_remove_node_from_tree): New function, extracted from
36832         gl_tree_remove_node.
36833         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36834         upon out-of-memory.
36835         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36836         out-of-memory.
36837         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36838         upon out-of-memory.
36839         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36840         upon out-of-memory.
36841         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36842         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36843         gl_anytree_list1.h before gl_anyavltree_list2.h.
36844         (gl_avltree_list_implementation): Update.
36845         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36846         gl_anytree_list1.h before gl_anyavltree_list2.h.
36847         (gl_rbtree_list_implementation): Update.
36848         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36849         Change return type to 'int'. Return -1 upon out-of-memory. Use
36850         __builtin_expect.
36851         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36852         (gl_avltreehash_list_implementation): Update.
36853         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36854         (gl_rbtreehash_list_implementation): Update.
36855         * modules/array-list (Depends-on): Remove xalloc.
36856         * modules/carray-list (Depends-on): Likewise.
36857         * modules/linked-list (Depends-on): Likewise.
36858         * modules/linkedhash-list (Depends-on): Likewise.
36859         * modules/avltree-list (Depends-on): Likewise.
36860         * modules/rbtree-list (Depends-on): Likewise.
36861         * modules/avltreehash-list (Depends-on): Likewise.
36862         * modules/rbtreehash-list (Depends-on): Likewise.
36863
36864         * modules/xsublist: New file.
36865         * lib/gl_xsublist.h: New file.
36866         * lib/gl_xsublist.c: New file.
36867         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36868         (gl_sublist_nx_create): New declaration.
36869         * lib/gl_sublist.c: Don't include xalloc.h.
36870         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36871         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36872         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36873         Change return type to 'int'. Return -1 upon out-of-memory.
36874         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36875         upon out-of-memory.
36876         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36877         NULL upon out-of-memory.
36878         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36879         upon out-of-memory.
36880         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36881         NULL upon out-of-memory.
36882         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36883         NULL upon out-of-memory.
36884         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36885         upon out-of-memory.
36886         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36887         (gl_sublist_list_implementation): Update.
36888         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36889         upon out-of-memory.
36890         * modules/sublist (Depends-on): Remove xalloc.
36891
36892         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36893         * tests/test-carray_list.c: Likewise.
36894         * tests/test-linked_list.c: Likewise.
36895         * tests/test-linkedhash_list.c: Likewise.
36896         * tests/test-avltree_list.c: Likewise.
36897         * tests/test-rbtree_list.c: Likewise.
36898         * tests/test-avltreehash_list.c: Likewise.
36899         * tests/test-rbtreehash_list.c: Likewise.
36900         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36901         * modules/carray-list-tests (Makefile.am): Likewise.
36902         * modules/linked-list-tests (Makefile.am): Likewise.
36903         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36904         * modules/avltree-list-tests (Makefile.am): Likewise.
36905         * modules/rbtree-list-tests (Makefile.am): Likewise.
36906         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36907         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36908
36909         * NEWS: Mention the changes.
36910
36911         * lib/clean-temp.c: Include gl_xlist.h.
36912         * modules/clean-temp (Depends-on): Add xlist.
36913
36914         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36915         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36916
36917         * tests/test-array_oset.c: Include gl_xlist.h.
36918         * modules/array-oset-tests (Depends-on): Add xlist.
36919
36920         Reported by José E. Marchesi <jemarch@gnu.org>.
36921
36922 2009-12-13  Bruno Haible  <bruno@clisp.org>
36923
36924         Move the malloc checking from module 'oset' to new module 'xoset'.
36925         * modules/xoset: New file.
36926         * lib/gl_xoset.h: New file.
36927         * lib/gl_xoset.c: New file.
36928         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36929         declarations.
36930         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36931         (struct gl_oset_implementation): Rename and change methods accordingly.
36932         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36933         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36934         'int'. Mark as __warn_unused_result__.
36935         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36936         gl_oset_create_empty.
36937         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36938         'int'.
36939         * lib/gl_array_oset.c: Don't include xalloc.h.
36940         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36941         malloc, not xmalloc.
36942         (grow): Change return type to 'int'. Don't call xalloc_die.
36943         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36944         to 'int'.
36945         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36946         'int'.
36947         (gl_array_oset_implementation): Update.
36948         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36949         gl_tree_create_empty.
36950         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36951         'int'.
36952         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36953         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36954         xmalloc.
36955         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36956         not xmalloc.
36957         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36958         xmalloc.
36959         (gl_avltree_oset_implementation): Update.
36960         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36961         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36962         xmalloc.
36963         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36964         not xmalloc.
36965         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36966         xmalloc.
36967         (gl_rbtree_oset_implementation): Update.
36968         * modules/array-oset (Depends-on): Remove xalloc.
36969         * modules/avltree-oset (Depends-on): Likewise.
36970         * modules/rbtree-oset (Depends-on): Likewise.
36971         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36972         * tests/test-avltree_oset.c: Likewise.
36973         * tests/test-rbtree_oset.c: Likewise.
36974         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36975         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36976         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36977         * NEWS: Mention the change.
36978
36979 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36980
36981         maint.mk: allow a project to override release-prep commands
36982         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36983         commands into a new rule.
36984         (release-prep): New rule.
36985         (release-prep-hook): New overridable variable.
36986
36987 2009-12-13  Bruno Haible  <bruno@clisp.org>
36988
36989         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36990
36991 2009-12-13  Jim Meyering  <meyering@redhat.com>
36992
36993         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36994         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36995
36996 2009-12-12  Bruno Haible  <bruno@clisp.org>
36997
36998         duplocale: Tweak.
36999         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37000
37001 2009-12-12  Karl Berry  <karl@gnu.org>
37002
37003         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37004
37005 2009-12-12  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/po.m4: Undo incorrect untabification.
37008
37009 2009-12-12  Bruno Haible  <bruno@clisp.org>
37010
37011         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37012         * modules/c-strtod (Depends-on): Add locale.
37013         * modules/c-strtold (Depends-on): Likewise.
37014
37015 2009-12-12  Bruno Haible  <bruno@clisp.org>
37016
37017         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37018
37019 2009-12-11  Eric Blake  <ebb9@byu.net>
37020
37021         setenv: relax requirement in light of POSIX ruling
37022         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37023         not NULL.
37024         * tests/test-setenv.c (main): Relax test.
37025         * tests/test-unsetenv.c (main): Likewise.
37026         * doc/posix-functions/setenv.texi (setenv): Document this.
37027         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37028
37029 2009-12-11  Bruno Haible  <bruno@clisp.org>
37030
37031         New module 'fd-safer-flag'.
37032         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37033         * lib/dup-safer.c (dup_safer_flag): Remove function.
37034         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37035         * lib/fd-safer.c (fd_safer_flag): Remove function.
37036         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37037         * modules/cloexec (configure.ac): Drop indicator macro.
37038         * modules/fd-safer-flag: New file.
37039         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37040         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37041         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37042
37043 2009-12-11  Bruno Haible  <bruno@clisp.org>
37044
37045         Tests for module 'nl_langinfo'.
37046         * modules/nl_langinfo-tests: New file.
37047         * tests/test-nl_langinfo.sh: New file.
37048         * tests/test-nl_langinfo.c: New file.
37049
37050         New module 'nl_langinfo'.
37051         * lib/nl_langinfo.c: New file.
37052         * m4/nl_langinfo.m4: New file.
37053         * modules/nl_langinfo: New file.
37054         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37055
37056 2009-12-11  Bruno Haible  <bruno@clisp.org>
37057
37058         Tests for module 'langinfo'.
37059         * modules/langinfo-tests: New file.
37060         * tests/test-langinfo.c: New file.
37061
37062         New module 'langinfo'.
37063         * lib/langinfo.in.h: New file.
37064         * m4/langinfo_h.m4: New file.
37065         * modules/langinfo: New file.
37066         * doc/posix-headers/langinfo.texi: Mention the new module.
37067
37068 2009-12-11  Bruno Haible  <bruno@clisp.org>
37069
37070         * lib/config.charset: Untabify.
37071
37072 2009-12-11  Bruno Haible  <bruno@clisp.org>
37073
37074         * modules/unistd-safer (configure.ac): Drop indicator macro.
37075
37076 2009-12-11  Bruno Haible  <bruno@clisp.org>
37077
37078         Move pipe2-safer code to its own file.
37079         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37080         * lib/pipe-safer.c (pipe2_safer): Remove function.
37081         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37082         (Makefile.am): Add it to lib_SOURCES.
37083
37084 2009-12-10  Bruno Haible  <bruno@clisp.org>
37085
37086         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37087
37088 2009-12-10  Bruno Haible  <bruno@clisp.org>
37089
37090         Declare which arguments expect non-NULL values, for GCC and clang.
37091         * build-aux/arg-nonnull.h: New file.
37092         * modules/arg-nonnull: New file.
37093         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37094         (inet_ntop, inet_pton): Use it.
37095         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37096         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37097         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37098         (open, openat): Use it.
37099         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37100         (fnmatch): Use it.
37101         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37102         (getopt, getopt_long, getopt_long_only): Use it.
37103         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37104         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37105         Use it.
37106         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37107         (iconv_open): Use it.
37108         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37109         (strtoimax, strtoumax): Use it.
37110         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37111         (duplocale): Use it.
37112         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37113         (frexp, frexpl): Use it.
37114         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37115         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37116         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37117         (tsearch, tfind, tdelete, twalk): Use it.
37118         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37119         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37120         sigpending): Use it.
37121         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37122         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37123         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37124         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37125         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37126         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37127         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37128         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37129         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37130         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37131         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37132         Use it.
37133         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37134         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37135         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37136         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37137         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37138         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37139         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37140         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37141         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37142         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37143         strtoull, unsetenv): Use it.
37144         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37145         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37146         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37147         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37148         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37149         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37150         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37151         (strcasecmp, strncasecmp): Use it.
37152         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37153         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37154         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37155         rpl_setsockopt): Use it.
37156         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37157         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37158         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37159         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37160         (gettimeofday): Use it.
37161         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37162         (times): Use it.
37163         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37164         (uname): Use it.
37165         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37166         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37167         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37168         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37169         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37170         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37171         unlinkat, write): Use it.
37172         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37173         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37174         * lib/argv-iter.h: Include arg-nonnull.h.
37175         (_ATTRIBUTE_NONNULL_): Remove macro.
37176         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37177         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37178         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37179         optimization.
37180         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37181         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37182         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37183         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37184         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37185         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37186         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37187         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37188         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37189         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37190         * modules/dirent (Depends-on): Add arg-nonnull.
37191         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37192         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37193         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37194         * modules/fnmatch (Depends-on): Add arg-nonnull.
37195         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37196         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37197         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37198         * modules/glob (Depends-on): Add arg-nonnull.
37199         (Makefile.am): Insert arg-nonnull.h into glob.h.
37200         * modules/iconv_open (Depends-on): Add arg-nonnull.
37201         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37202         * modules/inttypes (Depends-on): Add arg-nonnull.
37203         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37204         * modules/locale (Depends-on): Add arg-nonnull.
37205         (Makefile.am): Insert arg-nonnull.h into locale.h.
37206         * modules/math (Depends-on): Add arg-nonnull.
37207         (Makefile.am): Insert arg-nonnull.h into math.h.
37208         * modules/netdb (Depends-on): Add arg-nonnull.
37209         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37210         * modules/search (Depends-on): Add arg-nonnull.
37211         (Makefile.am): Insert arg-nonnull.h into search.h.
37212         * modules/signal (Depends-on): Add arg-nonnull.
37213         (Makefile.am): Insert arg-nonnull.h into signal.h.
37214         * modules/spawn (Depends-on): Add arg-nonnull.
37215         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37216         * modules/stdio (Depends-on): Add arg-nonnull.
37217         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37218         * modules/stdlib (Depends-on): Add arg-nonnull.
37219         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37220         * modules/string (Depends-on): Add arg-nonnull.
37221         (Makefile.am): Insert arg-nonnull.h into string.h.
37222         * modules/strings (Depends-on): Add arg-nonnull.
37223         (Makefile.am): Insert arg-nonnull.h into strings.h.
37224         * modules/sys_socket (Depends-on): Add arg-nonnull.
37225         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37226         * modules/sys_stat (Depends-on): Add arg-nonnull.
37227         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37228         * modules/sys_time (Depends-on): Add arg-nonnull.
37229         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37230         * modules/sys_times (Depends-on): Add arg-nonnull.
37231         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37232         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37233         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37234         * modules/time (Depends-on): Add arg-nonnull.
37235         (Makefile.am): Insert arg-nonnull.h into time.h.
37236         * modules/unistd (Depends-on): Add arg-nonnull.
37237         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37238         * modules/wchar (Depends-on): Add arg-nonnull.
37239         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37240         * modules/argv-iter (Depends-on): Add arg-nonnull.
37241         * tests/test-canonicalize.c (null_ptr): New function.
37242         (main): Use it.
37243         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37244         (main): Use it.
37245         * tests/test-memmem.c (null_ptr): New function.
37246         (main): Use it.
37247         Reported by Jim Meyering.
37248
37249 2009-12-10  Bruno Haible  <bruno@clisp.org>
37250
37251         Use spaces for indentation, not tabs.
37252         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37253         * m4/*.m4: Untabify.
37254         * build-aux/*.h: Untabify.
37255         * tests/**/*.[hc]: Untabify.
37256         * README: New section "Indent with spaces, not TABs", based on
37257         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37258         * NEWS: Mention the change.
37259
37260 2009-12-10  Bruno Haible  <bruno@clisp.org>
37261
37262         pty test: Fix link error.
37263         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37264         test_pty_LDADD.
37265
37266 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37267
37268         * modules/pty: New file.
37269         * modules/pty-tests: New file.
37270         * m4/pty.m4: New file.
37271         * tests/test-pty.c: New file.
37272         * doc/glibc-headers/pty.texi: Modified.
37273         * doc/glibc-functions/forkpty.texi: Modified.
37274         * doc/glibc-functions/openpty.texi: Modified.
37275
37276 2009-12-10  Bruno Haible  <bruno@clisp.org>
37277
37278         Avoid syntax error in C++ mode.
37279         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37280
37281 2009-12-10  Bruno Haible  <bruno@clisp.org>
37282
37283         Use sed with option -e.
37284         * gnulib-tool (func_version, func_emit_copyright_notice,
37285         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37286         option -e to sed.
37287         * modules/link-warning (Makefile.am): Likewise.
37288
37289 2009-12-10  Jim Meyering  <meyering@redhat.com>
37290
37291         mgetgroups: do not write bytes beyond end of malloc'd buffer
37292         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37293         username, we call getgroups with a one-element-shorter buffer,
37294         but still told it the length was original, max_n_groups.
37295
37296 2009-12-09  Eric Blake  <ebb9@byu.net>
37297
37298         cloexec: relax license
37299         * modules/cloexec (Maintainer): Add myself.
37300         (License): Use LGPL, not GPL.
37301
37302         link-warning: optimize generation
37303         * modules/link-warning (Makefile.am): Reduce process usage.
37304
37305 2009-12-09  Bruno Haible  <bruno@clisp.org>
37306
37307         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37308         workaround was added on 2009-11-17.
37309
37310 2009-12-09  Jim Meyering  <meyering@redhat.com>
37311             Bruno Haible  <bruno@clisp.org>
37312
37313         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37314         * modules/link-warning (Makefile.am): Make the comment-removing sed
37315         command more robust in the face of bootstrap-prepended comment lines.
37316
37317 2009-12-09  Bruno Haible  <bruno@clisp.org>
37318
37319         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37320         most one group.
37321
37322 2009-12-09  Simon Josefsson <simon@josefsson.org>
37323             Bruno Haible  <bruno@clisp.org>
37324
37325         * build-aux/link-warning.h: Add copyright notice.
37326         * modules/link-warning (Makefile.am): Generate link-warning.h from
37327         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37328         * NEWS: Mention change in link-warning module.
37329         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37330         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37331         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37332         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37333         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37334         * modules/math (Makefile.am): Add dependency to math.h.
37335         * modules/search (Makefile.am): Add dependency to search.h.
37336         * modules/signal (Makefile.am): Add dependency to signal.h.
37337         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37338         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37339         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37340         * modules/string (Makefile.am): Add dependency to string.h.
37341         * modules/strings (Makefile.am): Add dependency to strings.h.
37342         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37343         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37344         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37345         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37346         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37347         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37348         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37349         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37350         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37351
37352 2009-12-09  Bruno Haible  <bruno@clisp.org>
37353
37354         fchdir: Optimize away rpl_fstat when possible.
37355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37356         REPLACE_OPEN_DIRECTORY.
37357         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37358
37359 2009-12-09  Bruno Haible  <bruno@clisp.org>
37360
37361         * lib/fchdir.c: Update comment.
37362
37363 2009-12-09  Bruno Haible  <bruno@clisp.org>
37364
37365         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37366
37367 2009-12-08  Eric Blake  <ebb9@byu.net>
37368
37369         fchdir: avoid memory leak on re-registration.
37370         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37371
37372 2009-12-08  Jim Meyering  <meyering@redhat.com>
37373
37374         init.sh: avoid Solaris 10 /bin/sh portability problem
37375         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37376         sourced script:
37377           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37378           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37379           bar
37380         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37381         and two tests used that idiom.
37382         * tests/init.sh: Update suggested usage comments.
37383         (path_prepend_): New function, to be used in place
37384         of the --src-path=DIR option.
37385         (setup_): Move PATH-prepending code into path_prepend_.
37386         * tests/test-pread.sh: Adapt to new usage.
37387         * tests/test-xalloc-die.sh: Likewise.
37388
37389 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37390
37391         * doc/gnulib.texi (Glibc pty.h): Add.
37392         * doc/glibc-functions/forkpty.texi: Add.
37393         * doc/glibc-functions/openpty.texi: Add.
37394         Suggested by Bruno Haible.
37395
37396 2009-12-08  Eric Blake  <ebb9@byu.net>
37397
37398         fchdir: fix logic bugs
37399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37400         * tests/test-fchdir.c (main): Enhance test.
37401         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37402         is in use.
37403
37404         dup2: fix logic bugs
37405         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37406         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37407         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37408         exists.
37409         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37410
37411 2009-12-07  Eric Blake  <ebb9@byu.net>
37412
37413         unlink: fix m4 detection
37414         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37415
37416         unistd-safer: add unit test
37417         * modules/unistd-safer-tests: New file.
37418         * tests/test-dup-safer.c: Likewise.
37419         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37420         * tests/test-dup2.c (setmode): Likewise.
37421         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37422
37423         cloexec: preserve text vs. binary across dup_cloexec
37424         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37425         mode.
37426         * modules/dup2-tests (Depends-on): Add binary-io.
37427         * modules/cloexec-tests (Depends-on): Likewise.
37428         * tests/test-dup2.c (setmode, is_mode): New helpers.
37429         (main): Add tests that translation mode is preserved.
37430         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37431         Reported by Bruno Haible.
37432
37433         mgetgroups: reduce duplicate listings
37434         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37435         resulting array.
37436         * tests/test-chown.h (test_chown): Simplify client.
37437         * tests/test-lchown.h (test_lchown): Likewise.
37438
37439 2009-12-06  Bruno Haible  <bruno@clisp.org>
37440
37441         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37442         value.
37443
37444 2009-12-06  Bruno Haible  <bruno@clisp.org>
37445
37446         * lib/progname.c: Include stdio.h, stdlib.h.
37447         (set_program_name): Reject a NULL argument.
37448
37449 2009-12-05  Eric Blake  <ebb9@byu.net>
37450
37451         pipe2-safer: new module
37452         * modules/pipe2-safer: New file.
37453         * lib/unistd-safer.h (pipe2_safer): New prototype.
37454         * lib/unistd--.h (pipe2): New wrapper.
37455         * lib/pipe-safer.c (pipe2_safer): New function.
37456         * modules/pipe (Depends-on): Add pipe2-safer.
37457         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37458
37459         stdlib-safer: preserve cloexec flag for mkostemp[s]
37460         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37461         fd_safer_flag.
37462
37463         unistd-safer: allow preservation of cloexec status via flag
37464         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37465         prototypes.
37466         * lib/dup-safer.c (dup_safer_flag): New function.
37467         * lib/fd-safer.c (fd_safer_flag): Likewise.
37468         * modules/cloexec (configure.ac): Set witness.
37469
37470         test-dup2: enhance test
37471         * modules/dup2-tests (Depends-on): Add cloexec.
37472         * tests/test-dup2.c (main): Enhance test.
37473
37474         cloexec: add dup_cloexec
37475         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37476         header and comments.
37477         * lib/cloexec.c (set_cloexec_flag): Add comments.
37478         (dup_cloexec): New function, with mingw implementation borrowed
37479         from...
37480         * lib/w32spawn.h (dup_noinherit): ...here.
37481         * modules/execute (Depends-on): Add cloexec.
37482         * modules/pipe (Depends-on): Likewise.
37483         * modules/cloexec (Depends-on): Add dup2.
37484         * modules/cloexec-tests (Files): New file.
37485         * tests/test-cloexec.c: Likewise.
37486
37487         test-xalloc-die: fix test for mingw
37488         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37489         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37490         directory and .exe suffix off argv[0] output.
37491
37492         test-fseeko: fix test for mingw
37493         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37494         than undefining fseek, so test will pass on mingw.
37495
37496 2009-12-05  Bruno Haible  <bruno@clisp.org>
37497
37498         * lib/progname.h (set_program_name): Clarify specification.
37499         * lib/progname.c (set_program_name): Likewise.
37500         Reported by Jim Meyering.
37501
37502 2009-12-05  Jim Meyering  <meyering@redhat.com>
37503
37504         maint.mk: backslash-escape parens in default regexp
37505         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37506         backslash-escape the literal parentheses.
37507
37508         maint.mk: news-date-check: use grep -E
37509         * top/maint.mk (today): Define a Make variable, not a...
37510         (news-date-check): ...shell variable.
37511         (news-date-regexp): Use the Make variable.
37512         Use grep's -E option.  Change the failing diagnostic to mention
37513         the variable, $(news-date-regexp).
37514
37515 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37516
37517         maintainer-makefile: allow customization of NEWS entry format
37518         * top/maint.mk (news-date-regexp): New overridable variable.
37519         (news-date-check): Use it.
37520
37521 2009-12-04  Eric Blake  <ebb9@byu.net>
37522
37523         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37524         * lib/mgetgroups.h (xgetgroups): New prototype.
37525         * lib/mgetgroups.c (xgetgroups): New wrapper.
37526         (mgetgroups): Handle ENOSYS.
37527         * modules/mgetgroups (Depends-on): Add realloc.
37528         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37529
37530         mgetgroups: avoid argument promotion issues with -1
37531         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37532         for invalid gid_t.
37533         * tests/test-chown.h (getegid, test_chown): Likewise.
37534         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37535
37536 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37537
37538         exclude: Fix header file problems.
37539         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37540
37541 2009-12-01  Jim Meyering  <meyering@redhat.com>
37542
37543         fts: fts_open: do not let an empty string cause immediate failure
37544         This is required in support of GNU rm, for which the command
37545         "rm A '' B" must process and remove both A and B, in spite of
37546         the empty string argument.
37547         * lib/fts.c (fts_open): Do not let the presence of an empty string
37548         cause fts_open to fail immediately.  Most fts-using tools must be
37549         able to process all arguments, in order, and can be expected to
37550         diagnose such arguments themselves.
37551
37552 2009-11-30  Eric Blake  <ebb9@byu.net>
37553
37554         utimens: fix compilation error
37555         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37556         Declare variable at right scope.
37557
37558 2009-11-29  Jim Meyering  <meyering@redhat.com>
37559
37560         bootstrap: handle perl-5.11's changed --version output
37561         * build-aux/bootstrap (get_version): Handle perl separately,
37562         since perl-5.11's --version output is different.
37563
37564 2009-11-28  Jim Meyering  <meyering@redhat.com>
37565
37566         userspec: depend on the inttostr module, too
37567         * modules/userspec (Depends-on): Add inttostr.
37568
37569         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37570         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37571         number of MAXUID when it evaluates to (uid_t) -1.
37572         Likewise for group ID.  Reported by Matt McCutchen in
37573         <http://savannah.gnu.org/bugs/?28113>
37574
37575         userspec: reformat to use spaces, not TABs
37576         * lib/userspec.c: Expand TABs to spaces.
37577         Add Emacs' "indent-tabs-mode: nil" hint.
37578
37579 2009-11-27  Eric Blake  <ebb9@byu.net>
37580
37581         getopt-gnu: flush out another BSD bug
37582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37583         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37584         flush out BSD bug.
37585         * tests/test-getopt.h (test_getopt): End lists with NULL.
37586         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37587         (test_getopt_long_posix): Enhance test.
37588         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37589         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37590         getopt-gnu.
37591         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37592         Likewise.
37593
37594 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37595
37596         * modules/idpriv-droptemp-tests (Notice): Fix text.
37597
37598 2009-11-27  Jim Meyering  <meyering@redhat.com>
37599
37600         test-xalloc-die: avoid spurious failure due to libtool argv difference
37601         In a libtool-enabled project, this test would fail due to a difference
37602         in the emitted program name, e.g.,
37603         -test-xalloc-die: memory exhausted
37604         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37605         Use program to avoid that.
37606         * modules/xalloc-die-tests (Depends-on): Add progname.
37607         * tests/test-xalloc-die.c: Include progname.h".
37608         (program_name): Remove decl.
37609         (main): Call set_program_name.
37610         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37611
37612 2009-11-26  Richard Jones  <rjones@redhat.com>
37613
37614         w32sock: leave win32 error in place.
37615         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37616
37617 2009-11-26  Eric Blake  <ebb9@byu.net>
37618
37619         init.sh: suggest to use skip_ and fail_ functions in comments
37620         * tests/init.sh: Add a sentence.
37621
37622 2009-11-25  Bruno Haible  <bruno@clisp.org>
37623
37624         init.sh: add documentation in comments
37625         * tests/init.sh: Add some developer and user documentation.
37626
37627 2009-11-26  Jim Meyering  <meyering@redhat.com>
37628
37629         init.sh: accommodate even those who specify bogus srcdir manually
37630         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37631         configure-time tests to be sanitized, so that there is no need to
37632         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37633         (with no double quotes) suffices.  However, since tests may be
37634         invoked manually, and since you may explicitly set srcdir to the
37635         name of a directory containing spaces, do quote its uses here.
37636         * tests/test-pread.sh: Likewise.
37637         Suggested by Bruno Haible.
37638
37639         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37640         * tests/test-pread.sh: Write no data into the pipe, because
37641         test-pread actually reads none.  This avoids a diagnostic,
37642         "bash: echo: write error: Broken pipe", that arises in the unusual
37643         event something is ignoring SIGPIPE, and might be interpreted
37644         as some sort of failure.  Reported by Bruno Haible.
37645
37646 2009-11-25  Jim Meyering  <meyering@redhat.com>
37647
37648         test-pread: cover failure with ESPIPE and EINVAL
37649         * tests/test-pread.c (main): Test for failure, too.
37650         * tests/test-pread.sh: Invoke with stdin on a pipe.
37651         Suggested by Eric Blake.
37652
37653         pread: improvement and fix
37654         * modules/pread (Depends-on): Depend on lseek, for portability to
37655         e.g., mingw.  Suggested by Eric Blake.
37656         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37657
37658         unistd.in.h: correct declaration of pread
37659         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37660         Reported by Richard W.M. Jones.
37661
37662         test-pread.sh: distribute the test script
37663         * modules/pread-tests (Files): Include test-pread.sh.
37664
37665         test-pread.sh: clean up
37666         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37667         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37668         That is unnecessary, since it's always ".".
37669         Suggestion from Eric Blake.
37670
37671         test-pread.sh: make executable
37672         * tests/test-pread.sh: Set executable bit.
37673         Reported by Eric Blake.
37674
37675         correct typo in test-pread.sh
37676         * tests/test-pread.sh: Add #! line.
37677
37678         test pread
37679         * tests/test-pread.c: New file.
37680         * tests/test-pread.sh: Likewise.
37681         * modules/pread-tests: Likewise.
37682
37683         pread: new module
37684         * modules/pread: New file.
37685         * lib/unistd.in.h (pread): Define/declare.
37686         * lib/pread.c (pread): New file.
37687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37688         * modules/unistd (Makefile.am): Substitute witnesses.
37689         * doc/posix-functions/pread.texi (pread): Update.
37690         * MODULES.html.sh: Add pread.
37691
37692 2009-11-25  Jim Meyering  <meyering@redhat.com>
37693
37694         tests/init.sh: new file to be used via most *.sh tests
37695         * tests/init.sh: New file.
37696
37697 2009-11-25  Eric Blake  <ebb9@byu.net>
37698
37699         utimens: work around older Linux failure with symlinks
37700         * lib/utimens.c (lutimensat_works_really): New variable.
37701         (fdutimens, lutimens): Use it to manage kernels that support
37702         nanosecond times on files, but not on symlinks.
37703         Reported by OndÅ™ej Vašík.
37704
37705         utimes: fix configure grammar
37706         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37707
37708 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37709
37710         regex: Fix fastmap for multibyte character ranges.
37711         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37712         characters when a multibyte character range is included.
37713
37714 2009-11-22  Andy Wingo  <wingo@pobox.com>
37715
37716         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37717         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37718
37719 2009-11-24  Bruno Haible  <bruno@clisp.org>
37720
37721         doc: Most *_l functions exist in MacOS X 10.5.
37722         * doc/posix-functions/duplocale.texi: Update platforms list.
37723         * doc/posix-functions/freelocale.texi: Likewise.
37724         * doc/posix-functions/newlocale.texi: Likewise.
37725         * doc/posix-functions/uselocale.texi: Likewise.
37726         * doc/posix-functions/isalnum_l.texi: Likewise.
37727         * doc/posix-functions/isalpha_l.texi: Likewise.
37728         * doc/posix-functions/isblank_l.texi: Likewise.
37729         * doc/posix-functions/iscntrl_l.texi: Likewise.
37730         * doc/posix-functions/isdigit_l.texi: Likewise.
37731         * doc/posix-functions/isgraph_l.texi: Likewise.
37732         * doc/posix-functions/islower_l.texi: Likewise.
37733         * doc/posix-functions/isprint_l.texi: Likewise.
37734         * doc/posix-functions/ispunct_l.texi: Likewise.
37735         * doc/posix-functions/isspace_l.texi: Likewise.
37736         * doc/posix-functions/isupper_l.texi: Likewise.
37737         * doc/posix-functions/iswalnum_l.texi: Likewise.
37738         * doc/posix-functions/iswalpha_l.texi: Likewise.
37739         * doc/posix-functions/iswblank_l.texi: Likewise.
37740         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37741         * doc/posix-functions/iswctype_l.texi: Likewise.
37742         * doc/posix-functions/iswdigit_l.texi: Likewise.
37743         * doc/posix-functions/iswgraph_l.texi: Likewise.
37744         * doc/posix-functions/iswlower_l.texi: Likewise.
37745         * doc/posix-functions/iswprint_l.texi: Likewise.
37746         * doc/posix-functions/iswpunct_l.texi: Likewise.
37747         * doc/posix-functions/iswspace_l.texi: Likewise.
37748         * doc/posix-functions/iswupper_l.texi: Likewise.
37749         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37750         * doc/posix-functions/isxdigit_l.texi: Likewise.
37751         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37752         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37753         * doc/posix-functions/strcoll_l.texi: Likewise.
37754         * doc/posix-functions/strfmon_l.texi: Likewise.
37755         * doc/posix-functions/strftime_l.texi: Likewise.
37756         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37757         * doc/posix-functions/strxfrm_l.texi: Likewise.
37758         * doc/posix-functions/tolower_l.texi: Likewise.
37759         * doc/posix-functions/toupper_l.texi: Likewise.
37760         * doc/posix-functions/towctrans_l.texi: Likewise.
37761         * doc/posix-functions/towlower_l.texi: Likewise.
37762         * doc/posix-functions/towupper_l.texi: Likewise.
37763         * doc/posix-functions/wcscoll_l.texi: Likewise.
37764         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37765         * doc/posix-functions/wctrans_l.texi: Likewise.
37766         * doc/posix-functions/wctype_l.texi: Likewise.
37767         * doc/glibc-functions/strptime_l.texi: Likewise.
37768         * doc/glibc-functions/strtod_l.texi: Likewise.
37769         * doc/glibc-functions/strtof_l.texi: Likewise.
37770         * doc/glibc-functions/strtol_l.texi: Likewise.
37771         * doc/glibc-functions/strtold_l.texi: Likewise.
37772         * doc/glibc-functions/strtoll_l.texi: Likewise.
37773         * doc/glibc-functions/strtoul_l.texi: Likewise.
37774         * doc/glibc-functions/strtoull_l.texi: Likewise.
37775         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37776         * doc/glibc-functions/wcstod_l.texi: Likewise.
37777         * doc/glibc-functions/wcstof_l.texi: Likewise.
37778         * doc/glibc-functions/wcstol_l.texi: Likewise.
37779         * doc/glibc-functions/wcstold_l.texi: Likewise.
37780         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37781         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37782         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37783
37784 2009-11-24  Bruno Haible  <bruno@clisp.org>
37785
37786         duplocale: Fix logic bug.
37787         * lib/duplocale.c: Don't include <langinfo.h>.
37788         (_NL_LOCALE_NAME): Remove macro.
37789         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37790         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37791
37792 2009-11-23  Jim Meyering  <meyering@redhat.com>
37793
37794         test-update-copyright: don't hard-code /usr/bin/perl
37795         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37796         perl to print the current year.  Gilles Espinasse reported that
37797         the replaced use of perl was hard-coded as /usr/bin/perl.
37798
37799 2009-11-23  Bruno Haible  <bruno@clisp.org>
37800
37801         duplocale: Add support for glibc 2.3.x.
37802         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37803
37804 2009-11-22  Bruno Haible  <bruno@clisp.org>
37805
37806         vasnprintf: Tiny optimization.
37807         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37808         MacOS X.
37809
37810 2009-11-22  Bruno Haible  <bruno@clisp.org>
37811
37812         Tests for module 'duplocale'.
37813         * modules/duplocale-tests: New file.
37814         * tests/test-duplocale.c: New file.
37815
37816         New module 'duplocale'.
37817         * m4/duplocale.m4: New file.
37818         * lib/locale.in.h (duplocale): New declaration.
37819         * lib/duplocale.c: New file.
37820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37821         gl_LOCALE_H_DEFAULTS): New macros.
37822         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37823         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37824         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37825         REPLACE_DUPLOCALE.
37826         * modules/duplocale: New file.
37827         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37828
37829 2009-11-22  Bruno Haible  <bruno@clisp.org>
37830
37831         * modules/locale-tests (configure.ac): Test for newlocale function.
37832         * tests/test-locale.c: When the system has extended locale functions,
37833         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37834
37835         locale: Make locale_t available when possible.
37836         * lib/locale.in.h: Include <xlocale.h> when it exists.
37837         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37838         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37839         * modules/locale (Depends-on): Add extensions.
37840         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37841         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37842
37843 2009-11-22  Bruno Haible  <bruno@clisp.org>
37844
37845         Add comments.
37846         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37847         invocation.
37848         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37849         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37850         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37851
37852 2009-11-22  Bruno Haible  <bruno@clisp.org>
37853
37854         error: account for the possibility of freopen (stdout).
37855         * lib/error.c: Include <unistd.h>.
37856         (flush_stdout): New function, extracted from error and error_at_line.
37857         Determine stdout's fd dynamically.
37858         (error, error_at_line): Invoke flush_stdout.
37859         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37860         * modules/error (Depends-on): Add unistd.
37861
37862 2009-11-22  Bruno Haible  <bruno@clisp.org>
37863
37864         diffseq: Add comment.
37865         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37866
37867 2009-11-22  Jim Meyering  <meyering@redhat.com>
37868
37869         c-stack: avoid defining an unused static function
37870         * lib/c-stack.c (find_stack_direction): Do not define this function
37871         when it will not be used.
37872
37873         diffseq: avoid spurious gcc warnings
37874         * lib/diffseq.h (IF_LINT2): Define.
37875         (compareseq): Use it to initialize two members of "part".
37876         This avoids two used-uninitialized warnings.
37877
37878 2009-11-21  Jim Meyering  <meyering@redhat.com>
37879
37880         c-stack: avoid "ignoring return value of `write'" warning
37881         * lib/c-stack.c: Include "ignore-value.h".
37882         (die): Explicitly ignore each write return value.
37883         * modules/c-stack (Depends-on): Add ignore-value.
37884
37885 2009-11-21  Bruno Haible  <bruno@clisp.org>
37886
37887         diffseq: reduce scope of variable 'best'.
37888         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37889         variable, earlier used for two different purposes.
37890
37891 2009-11-21  Jim Meyering  <meyering@redhat.com>
37892
37893         diffseq: remove useless assignment to "best"
37894         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37895         assignment.  At that point "best" is already guaranteed to be zero.
37896
37897 2009-11-20  Eric Blake  <ebb9@byu.net>
37898
37899         build: mention ftp redirector in release announcements
37900         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37901         values that used to come from cfg.mk; mention FTP redirect URL.
37902         * build-aux/announce-gen: Mention the mirror list.
37903         Suggested by Karl Berry.
37904
37905         nanosleep: improve port to mingw
37906         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37908         LIB_NANOSLEEP, but only when needed.
37909         * modules/select (Link): Document LIBSOCKET.
37910         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37911         enough.
37912
37913         nanosleep: work around cygwin bug
37914         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37915         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37916         bug.
37917         (getnow): Delete, not needed.
37918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37919         LIB_CLOCK_GETTIME.
37920         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37921         clock-time, gettime.
37922         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37923         bug.
37924         * modules/nanosleep-tests: New test.
37925         * tests/test-nanosleep.c: New file.
37926
37927         sleep: work around cygwin bug
37928         * lib/sleep.c (rpl_sleep): Work around the bug.
37929         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37930         (gl_PREREQ_SLEEP): Delete unused macro.
37931         * modules/sleep (Depends-on): Add verify.
37932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37933         * modules/unistd (Makefile.am): Substitute witness.
37934         * lib/unistd.in.h (sleep): Update prototype.
37935         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37936         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37937         * modules/sleep-tests (Depends-on): Check for alarm.
37938
37939 2009-11-20  Jim Meyering  <meyering@redhat.com>
37940
37941         maint.mk: improve sc_prohibit_magic_number_exit
37942         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37943         so it does not match uses like System.exit(1).
37944         Add comments showing how to correct all offenders.
37945
37946 2009-11-19  Eric Blake  <ebb9@byu.net>
37947
37948         xalloc-die-tests: add missing library
37949         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37950
37951         test-xvasprintf: silence compiler warnings
37952         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37953         empty string from gcc.
37954
37955 2009-11-19  Jim Meyering  <meyering@redhat.com>
37956
37957         xfreopen: new module, from coreutils
37958         * modules/xfreopen: New module.
37959         * lib/xfreopen.c: New file.
37960         * lib/xfreopen.h: New file.
37961         * MODULES.html.sh (File stream based Input/Output"): Add it.
37962
37963 2009-11-19  Eric Blake  <ebb9@byu.net>
37964
37965         manywarnings: depend on warnings
37966         * modules/manywarnings (Depends-on): Add warnings.
37967
37968         build: avoid compiler warnings
37969         * lib/select.c (rpl_select): Delete unused variable.
37970         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37971
37972 2009-11-18  Eric Blake  <ebb9@byu.net>
37973
37974         tests: avoid false negative with --with-packager
37975         * tests/test-version-etc.sh: Discard packager information.
37976         * tests/test-argp-version-etc-1.sh: Likewise.
37977         Reported by Mike Frysinger.
37978
37979         utimens: fix regression on Solaris
37980         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37981         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37982         can only change fd timestamps via futimesat.  Instead, use an
37983         additional witness macro to avoid BSD bug.
37984         Reported by Jim Meyering.
37985
37986 2009-11-17  Eric Blake  <ebb9@byu.net>
37987
37988         usleep: use it to simplify tests
37989         * modules/stat-time-tests (Depends-on): Add usleep.
37990         (configure.ac): Drop usleep check.
37991         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37992         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37993         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37994         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37995         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37996         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37997         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37998         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37999         Likewise.
38000         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38001         * tests/test-lchown.h (nap): Likewise.
38002         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38003         * tests/test-stat-time.c (nap): Likewise.
38004         * tests/test-utimens-common.h (nap): Update comments.
38005
38006         usleep: new module
38007         * modules/usleep: New file.
38008         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38009         * lib/usleep.c (usleep): Likewise.
38010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38011         * modules/unistd (Makefile.am): Substitute witnesses.
38012         * lib/unistd.in.h (usleep): Add declaration.
38013         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38014         * MODULES.html.sh (Date and time): Likewise.
38015         * modules/usleep-tests (Depends-on): New test.
38016         * tests/test-usleep.c: New file.
38017
38018         chown: work around OpenBSD bug
38019         * lib/chown.c (rpl_chown): Work around the bug.
38020         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38021         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38022         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38023         * modules/chown (Depends-on): Add stdbool.
38024         * modules/lchown (Depends-on): Likewise.
38025         * doc/posix-functions/chown.texi (chown): Document the bug.
38026         * doc/posix-functions/lchown.texi (lchown): Likewise.
38027         * tests/test-lchown.h (test_chown): Relax test.
38028
38029         mkstemp: avoid conflict with C++ keyword template
38030         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38031         * lib/mkostemp.c (mkostemp): Likewise.
38032         * lib/mkostemps.c (mkostemps): Likewise.
38033         * lib/mkstemp.c (mkstemp): Likewise.
38034         * lib/mkstemps.c (mkstemps): Likewise.
38035
38036         xalloc-die-tests: optimize
38037         * tests/test-xalloc-die.sh: Reduce number of processes.
38038
38039 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38040
38041         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38042         patch from ludo@gnu.org (Ludovic Courtès).
38043
38044 2009-11-17  Jim Meyering  <meyering@redhat.com>
38045
38046         version-etc: use proper license string
38047         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38048         * modules/version-etc-fsf: Likewise.
38049
38050 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38051
38052         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38053         printed to stdout.  Deal with EOL differences.
38054
38055 2009-11-17  Eric Blake  <ebb9@byu.net>
38056
38057         unsetenv: work around Solaris bug
38058         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38059         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38060         Reported by Jim Meyering.
38061
38062         vasnprintf: avoid compiler warnings
38063         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38064         variables.
38065         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38066
38067 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38068
38069         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38070         settings since xalloc-die is no longer the self test,
38071         xalloc-die.sh is.
38072
38073 2009-11-17  Jim Meyering  <meyering@redhat.com>
38074
38075         test-xalloc-die.sh: make the code agree with the commit log
38076         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38077         at the end, just in case you happen to have a test-xalloc-die
38078         program in some other PATH directory.
38079
38080         test-xalloc-die.sh: fix a portability bug
38081         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38082         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38083         Otherwise, argv[0] (as often seen in diagnostics) would be too
38084         system-dependent, sometimes with, and sometimes without the leading "./".
38085
38086         version-etc-fsf: relax license to LGPLv3+
38087         * modules/version-etc-fsf (License): Relax license.
38088
38089 2009-11-16  Eric Blake  <ebb9@byu.net>
38090
38091         xalloc-die-tests: avoid printing null pointer
38092         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38093         shell script.
38094         * tests/test-xalloc-die.c (program_name): Declare.
38095         * tests/test-xalloc-die.sh (tmpfiles): New file.
38096
38097         setenv, unsetenv: work around various bugs
38098         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38099         (setenv) [HAVE_SETENV]: Work around bugs.
38100         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38102         for bugs.
38103         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38104         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38106         * modules/stdlib (Makefile.am): Update substitutions.
38107         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38108         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38109         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38110         * modules/setenv-tests: New test.
38111         * modules/unsetenv-tests: Likewise.
38112         * tests/test-setenv.c: New file.
38113         * tests/test-unsetenv.c: Likewise.
38114
38115 2009-11-16  Jim Meyering  <meyering@redhat.com>
38116
38117         version-etc: relax license to LGPLv3+
38118         * modules/version-etc (License): Relax license.
38119
38120         better AC_REQUIRE expanded-before-required-warning avoidance
38121         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38122         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38123         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38124         which is no longer needed.
38125
38126 2009-11-16  Eric Blake  <ebb9@byu.net>
38127
38128         test-freading: clean up temporary file
38129         * tests/test-freading.c (main): Remove file on success, and use
38130         ASSERT more liberally.
38131         Reported by Jim Meyering.
38132
38133 2009-11-16  Jim Meyering  <meyering@redhat.com>
38134
38135         avoid new AC_REQUIRE expanded-before-required warnings
38136         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38137         merely using it.
38138         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38139         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38140
38141 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38142
38143         * tests/test-xalloc-die.c: New file.
38144         * modules/xalloc-die-tests: New file.
38145         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38146         XFAIL_TESTS so it can be appended by modules.
38147
38148 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38149
38150         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38151         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38152
38153 2009-11-14  Eric Blake  <ebb9@byu.net>
38154
38155         fnmatch: avoid compiler warning
38156         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38157         to silence compiler warning about mismatch signedness in ?:.
38158         Reported by Robert Millan.
38159
38160         intprops: add double-inclusion guard
38161         * lib/intprops.h: Allow idempotent includes.
38162         Suggested by Bruce Korb.
38163
38164         openat: detect Solaris fchownat bug
38165         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38166         penalizing glibc chownat when only lchownat is broken.
38167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38168         trailing slash bugs.
38169         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38170         * modules/openat-tests (Files): Include more files.
38171         (Depends-on): Add mgetgroups, sleep, stat-time.
38172         (configure.ac): Add additional checks.
38173         (Makefile.am): Build new test.
38174         * tests/test-fchownat.c: New file.
38175
38176         lchown: detect Solaris and FreeBSD bug
38177         * lib/lchown.c (rpl_lchown): Work around bug.
38178         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38180         * modules/unistd (Makefile.am): Populate it.
38181         * lib/unistd.in.h (lchown): Update declaration.
38182         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38183         * modules/lchown-tests: New file.
38184         * tests/test-lchown.h (test_lchown): Likewise.
38185         * tests/test-lchown.c (main): Likewise.
38186
38187         chown: detect Solaris and FreeBSD bug
38188         * lib/chown.c (rpl_chown): Work around bug.
38189         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38190         (gl_PREREQ_CHOWN): Delete.
38191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38192         * modules/unistd (Makefile.am): Populate it.
38193         * lib/unistd.in.h (chown): Update declaration.
38194         * lib/lchown.c (chown): Update client.
38195         * modules/lchown (Depends-on): Add lstat.
38196         * doc/posix-functions/chown.texi (chown): Document the bug.
38197         * doc/posix-functions/getgroups.texi (getgroups): Document
38198         getgroups pitfall.
38199         * modules/chown-tests: New file.
38200         * tests/test-chown.h (test_chown): Likewise.
38201         * tests/test-chown.c (main): Likewise.
38202
38203 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38204
38205         gnulib-tool: correctly detect absence of m4 directories
38206         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38207
38208 2009-11-14  Jim Meyering  <meyering@redhat.com>
38209
38210         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38211         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38212
38213 2009-11-14  John W. Eaton  <jwe@gnu.org>
38214
38215         strftime.h: wrap funtion declaration in extern "C" block
38216         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38217
38218 2009-11-13  Eric Blake  <ebb9@byu.net>
38219
38220         getgroups: avoid compiler warning
38221         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38222
38223         getgroups: work around FreeBSD bug
38224         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38225         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38226         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38227         * tests/test-getgroups.c (main): Fix buffer overrun.
38228
38229         getgroups: avoid compilation failure
38230         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38231         * modules/getgroups (Depends-on): Add stdint.
38232
38233 2009-11-13  Jim Meyering  <meyering@redhat.com>
38234
38235         test-getgroups: avoid compilation failure
38236         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38237
38238 2009-11-13  Eric Blake  <ebb9@byu.net>
38239
38240         mgetgroups: new module, taken from coreutils
38241         * modules/mgetgroups: New file.
38242         * lib/mgetgroups.h: Likewise.
38243         * lib/mgetgroups.c (mgetgroups): Likewise.
38244         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38245         * MODULES.html.sh (Users and groups): Mention it.
38246
38247         getgroups: don't expose GETGROUPS_T to user
38248         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38249         an element at a time if GETGROUPS_T is wrong size.
38250         * lib/getugroups.h (getugroups): Change signature.
38251         * lib/unistd.in.h (getgroups): Likewise.
38252         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38253         signature needs fixing.
38254         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38255         AC_TYPE_GETGROUPS.
38256         * modules/group-member (Depends-on): Add getgroups.
38257         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38258         (group_member): Rely on getgroups replacement.
38259         * lib/getugroups.c (getugroups): Use gid_t.
38260         * tests/test-getgroups.c (main): Likewise.
38261         * NEWS: Mention the signature change.
38262         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38263         problem with signature.
38264         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38265         GETGROUPS_T is still useful for setgroups.
38266
38267         getgroups, getugroups: provide stubs for mingw
38268         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38269         * lib/getugroups.c (getugroups): Likewise.
38270         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38271         function.  Modernize replacement scheme.
38272         (gl_PREREQ_GETGROUPS): Delete.
38273         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38274         * modules/getgroups (configure.ac): Declare witness.
38275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38276         * modules/unistd (Depends-on): Substitute witness.
38277         * lib/unistd.in.h (getgroups): Declare replacement.
38278
38279         getgroups: avoid calling exit
38280         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38281         drop xalloc.
38282         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38283         dependencies.
38284         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38285         exiting, in the rare case of malloc failure.
38286
38287         getgroups: fix logic error
38288         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38289         has more than 20 groups.
38290         * modules/getgroups-tests: New test.
38291         * tests/test-getgroups.c: New file.
38292
38293 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38294
38295         * tests/test-base64.c: Improve.
38296
38297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38298
38299         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38300         Blake <ebb9@byu.net>.
38301
38302 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38303
38304         * tests/test-xvasprintf.c: Add %s%s related checks.
38305
38306 2009-11-12  Eric Blake  <ebb9@byu.net>
38307
38308         version-etc: match standards.texi style
38309         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38310         and use <> only for URLs.
38311
38312 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38313
38314         fts: do not fail on a submount during traversal
38315         * lib/fts.c (fts_build): Read the stat info again after opening
38316         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38317         Original report at http://bugzilla.redhat.com/501848.
38318
38319 2009-11-12  Jim Meyering  <meyering@redhat.com>
38320
38321         bootstrap: sync from coreutils
38322         * build-aux/bootstrap (bootstrap_epilogue): New function.
38323         Use git_modules_config in one more place.  This make bootstrap's
38324         --gnulib-srcdir option more useful for testing.
38325
38326         bootstrap: generalize autoheader check
38327         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38328         AC_CONFIG_HEADERS.
38329
38330 2009-11-11  Eric Blake  <ebb9@byu.net>
38331
38332         mkfifoat: use new modules for Solaris and BSD bugs
38333         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38334         * lib/mkfifoat.c (mknodat): Split...
38335         * lib/mknodat.c (mknodat): ...into new file.
38336         * modules/mkfifoat (Files): Ship new file.
38337         (Depends-on): Add mkfifo, mknod.
38338         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38339         (Depends-on): Add symlink.
38340         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38341         redundant with test_mkfifo.h.
38342         (do_mkfifoat, do_mknodat): New helpers.
38343
38344         mknod: new module
38345         * modules/mknod: New file.
38346         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38347         * lib/mknod.c (mknod): Likewise.
38348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38349         defaults.
38350         * modules/sys_stat (Makefile.am): Substitute them.
38351         * lib/sys_stat.in.h (mknod): Declare replacement.
38352         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38353         Document it.
38354         * doc/posix-functions/mknod.texi (mknod): Likewise.
38355         * modules/mknod-tests: New test.
38356         * tests/test-mknod.c: Likewise.
38357
38358         mkfifo: new module
38359         * modules/mkfifo: New file.
38360         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38361         * lib/mkfifo.c (mkfifo): Likewise.
38362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38363         defaults.
38364         * modules/sys_stat (Makefile.am): Substitute them.
38365         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38366         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38367         Document it.
38368         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38369         * modules/mkfifo-tests: New test.
38370         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38371         from test-mkfifoat.c.
38372         * tests/test-mkfifo.c: New file.
38373
38374         readlink: detect FreeBSD bug
38375         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38376         slash on symlink.
38377         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38378         * tests/test-readlink.h (test_readlink): Enhance test.
38379
38380         symlink: detect FreeBSD bug
38381         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38382         slash on symlink.
38383         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38384         * tests/test-symlink.h (test_symlink): Enhance test.
38385
38386 2009-11-10  Eric Blake  <ebb9@byu.net>
38387
38388         link: detect FreeBSD bug
38389         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38390         symlink.
38391         * doc/posix-functions/link.texi (link): Document the bug.
38392         * tests/test-link.h (test_link): Enhance test.
38393         * tests/test-linkat.c (main): Update caller.
38394
38395         unlink, remove: detect FreeBSD bug
38396         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38397         slash on symlink.
38398         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38399         * doc/posix-functions/remove.texi (remove): Likewise.
38400         * tests/test-unlink.h (test_unlink): Enhance test.
38401         * tests/test-remove.c (main): Likewise.
38402
38403 2009-11-09  Eric Blake  <ebb9@byu.net>
38404
38405         rename: detect FreeBSD bug
38406         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38407         slash on symlink.
38408         * modules/renameat-tests (Depends-on): Add filenamecat.
38409         * tests/test-rename.h (test_rename): Allow one more errno.
38410         * tests/test-renameat.c (main): Likewise.
38411         * doc/posix-functions/rename.texi (rename): Document the bug.
38412
38413         open: detect FreeBSD bug
38414         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38415         symlink.
38416         * doc/posix-functions/open.texi (open): Document the bug.
38417         * doc/posix-functions/utimes.texi (utimes): Likewise.
38418         * tests/test-open.h (test_open): Add parameters, and test symlink
38419         handling.
38420         * tests/test-open.c (main): Adjust caller.
38421         * tests/test-fcntl-safer.c (main): Likewise.
38422         * modules/open-tests (Depends-on): Add stdbool, symlink.
38423         * modules/fcntl-safer-tests (Depends-on): Likewise.
38424         * tests/test-openat.c (main): Add test-open tests.
38425
38426         stat: detect FreeBSD bug
38427         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38428         symlink.
38429         * doc/posix-functions/stat.texi (stat): Document the bug.
38430         * tests/test-stat.h (test_stat_func): Add argument.
38431         * tests/test-stat.c (main): Adjust caller.
38432         * tests/test-fstatat.c (main): Likewise.
38433         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38434         Reported by Jim Meyering.
38435
38436 2009-11-09  James Youngman  <jay@gnu.org>
38437
38438         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38439         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38440
38441 2009-11-08  Jim Meyering  <meyering@redhat.com>
38442
38443         utimens: remove invalid futimesat call
38444         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38445         It used the file descriptor of the target file as the DIR_FD
38446         parameter and NULL as the file name.  That caused failure with
38447         errno == EFAULT on FreeBSD-8.0-rc2
38448
38449 2009-11-07  Eric Blake  <ebb9@byu.net>
38450
38451         fflush, freadseek: use fseeko, not fseek
38452         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38453         (clear_ungetc_buffer): Avoid potential problems on large files.
38454         * lib/freadseek.c (freadseek): Likewise.
38455         * modules/freadseek (Depends-on): Add fseeko.
38456         * modules/fseek (configure.ac): Set a witness.
38457         * tests/test-fflush.c (main): Use fseeko.
38458         * tests/test-fpurge.c (fseek): Disable link warning.
38459         * tests/test-freadable.c (fseek): Likewise.
38460         * tests/test-freading.c (fseek): Likewise.
38461         * tests/test-fseeko.c (fseek): Likewise.
38462         * tests/test-ftell.c (fseek): Likewise.
38463         * tests/test-ftello.c (fseek): Likewise.
38464         * tests/test-fwritable.c (fseek): Likewise.
38465         * tests/test-fwriting.c (fseek): Likewise.
38466
38467 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38468
38469         * modules/memchr (Depends-on): Drop getpagesize dependency.
38470
38471 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38472
38473         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38474         Reported by Ludovic Courtès.
38475         * build-aux/pmccabe2html: Improve example usage.
38476         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38477
38478 2009-11-06  Jim Meyering  <meyering@redhat.com>
38479
38480         do-release-commit-and-tag: New module.
38481         Automate the release-commit and tag process.
38482         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38483         * modules/do-release-commit-and-tag: New file.
38484         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38485
38486 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38487
38488         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38489         because test-select.c uses inet_pton.
38490
38491 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38492
38493         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38494         GETADDRINFO_LIB.  Bump serial number.
38495         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38496         Suggested by Eric Blake <ebb9@byu.net>.
38497
38498 2009-11-05  Eric Blake  <ebb9@byu.net>
38499
38500         strtod: detect darwin bug
38501         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38502         Reported by Leo Davis.
38503
38504         freopen-safer: new module
38505         * modules/freopen-safer: New module.
38506         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38507         * lib/freopen-safer.c (freopen_safer): New file.
38508         * lib/stdio-safer.h (freopen_safer): New declaration.
38509         * lib/stdio--.h (freopen): New override.
38510         * MODULES.html.sh (File stream based Input/Output): Mention it.
38511         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38512         freopen-safer module.
38513         * doc/posix-functions/stderr.texi (stderr): Likewise.
38514         * doc/posix-functions/stdin.texi (stdin): Likewise.
38515         * doc/posix-functions/stdout.texi (stdout): Likewise.
38516         * modules/freopen-safer-tests: New test.
38517         * tests/test-reopen-safer.c: New file.
38518
38519 2009-11-05  Jim Meyering  <meyering@redhat.com>
38520
38521         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38522         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38523
38524 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38525
38526         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38527
38528 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38529
38530         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38531
38532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38533
38534         Fix link error.
38535         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38536         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38537
38538 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38539
38540         * tests/test-func.c: Also test value of __func__.
38541
38542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38543
38544         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38545         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38546
38547 2009-11-05  Bruno Haible  <bruno@clisp.org>
38548
38549         Fix link error.
38550         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38551         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38552         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38553
38554 2009-11-05  Bruno Haible  <bruno@clisp.org>
38555
38556         Tests for module 'inet_pton'.
38557         * modules/inet_pton-tests: New file.
38558         * tests/test-inet_pton.c: New file.
38559
38560 2009-11-05  Bruno Haible  <bruno@clisp.org>
38561
38562         Tests for module 'inet_ntop'.
38563         * modules/inet_ntop-tests: New file.
38564         * tests/test-inet_ntop.c: New file.
38565
38566 2009-11-04  Eric Blake  <ebb9@byu.net>
38567
38568         stdlib-safer: wrap all mkstemp variants
38569         * modules/mkostemp (configure.ac): Set witness.
38570         * modules/mkostemps (configure.ac): Likewise.
38571         * modules/mkstemps (configure.ac): Likewise.
38572         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38573         (mkstemps_safer): Wrap more functions.
38574         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38575         wrapping.
38576         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38577         (mkstemps_safer): Implement the wrappers.
38578
38579         mkstemps, mkostemps: new modules
38580         * modules/mkostemps: New module.
38581         * modules/mkstemps: Likewise.
38582         * lib/mkostemps.c (mkostemps): New file.
38583         * lib/mkstemps.c (mkstemps): Likewise.
38584         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38585         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38587         * modules/stdlib (Makefile.am): Substitute them.
38588         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38589         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38590         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38591         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38592         * MODULES.html.sh (File system functions): Mention them.
38593
38594         tempname: resync from glibc
38595         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38596         same values for __GT_FILE as glibc.  Abort even when assertions
38597         are disabled.
38598         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38599         match its value otherwise.  Allow idempotent inclusion.
38600         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38601         * lib/mkostemp.c (mkostemp): Likewise.
38602         * lib/mkstemp.c (mkstemp): Likewise.
38603         * lib/tmpfile.c (tmpfile): Likewise.
38604         * NEWS: Document this.
38605
38606         utimens: fix use of futimens on older Linux
38607         * lib/utimens.c (fdutimens): Use updated, rather than original,
38608         timespec to avoid bug in older Linux kernel.
38609         Reported by Simon Josefsson.
38610
38611 2009-11-04  Bruno Haible  <bruno@clisp.org>
38612
38613         Make num_processors more flexible and consistent.
38614         * lib/nproc.h (enum nproc_query): New type.
38615         (num_processors): Add a 'query' argument.
38616         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38617         (num_processors): Add a 'query' argument. Test the value of the
38618         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38619         mingw, count the number of CPUs available for the current process.
38620         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38621         Check for sched_getaffinity and sched_getaffinity_np.
38622         * modules/nproc (Depends-on): Add c-ctype, extensions.
38623         * NEWS: Mention the change.
38624
38625 2009-11-03  Bruno Haible  <bruno@clisp.org>
38626
38627         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38628
38629 2009-11-03  Jim Meyering  <meyering@redhat.com>
38630
38631         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38632         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38633         if it is defined.
38634
38635 2009-11-02  Eric Blake  <ebb9@byu.net>
38636
38637         mktime, timegm: share common declaration
38638         * lib/mktime-internal.h: New file.
38639         * lib/mktime.c: Use it rather than open-coding a declaration.
38640         * lib/timegm.c: Likewise.
38641         * modules/mktime (Files): Ship it.
38642         * modules/timegm (Files): Likewise.
38643         Suggested by Bruno Haible.
38644
38645         test-update-copyright: update test to match script changes
38646         * tests/test-update-copyright.sh: Avoid hard-coding perl
38647         location.  Don't update *.bak created by earlier runs.
38648
38649 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38650             Simon Josefsson  <simon@josefsson.org>
38651             Bruno Haible  <bruno@clisp.org>
38652
38653         Fix link error on Solaris 8.
38654         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38655         also in libnsl. Define also INET_PTON_LIB.
38656         * modules/inet_pton (Link): New section.
38657
38658 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38659             Bruno Haible  <bruno@clisp.org>
38660
38661         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38662         * modules/inet_ntop (Link): New section.
38663         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38664
38665 2009-11-02  Eric Blake  <ebb9@byu.net>
38666
38667         maint: avoid compiler warnings in m4 macros
38668         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38669         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38670
38671 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38672
38673         * m4/pmccabe2html.m4: Remove file.
38674         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38675         function.  Change maintainer.
38676         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38677         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38678         Courtès).
38679
38680 2009-10-31  Eric Blake  <ebb9@byu.net>
38681
38682         fseeko: fix m4 regression
38683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38684         regression from 2009-10-27.
38685         Reported by Ralf Wildenhues.
38686
38687 2009-10-31  Jim Meyering  <meyering@redhat.com>
38688
38689         inttostr: aesthetics and improved (compile-time) safety
38690         Define inttype_is_signed rather than inttype_is_unsigned,
38691         since the sole use is via "#if inttype_is_signed".
38692         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38693         inttype_is_unsigned.
38694         * lib/offtostr.c (inttype_is_signed): Likewise.
38695         * lib/uinttostr.c (inttype_is_signed): Likewise.
38696         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38697         * lib/inttostr.c (inttostr): Use verify to cross-check the
38698         inttype_is_signed value and the signedness of the actual type.
38699         * modules/inttostr (Depends-on): Add verify.
38700
38701 2009-10-30  Eric Blake  <ebb9@byu.net>
38702
38703         build: avoid compiler warnings
38704         * lib/fchmodat.c (lchmod): Mark unused variables.
38705         * lib/getopt.c (_getopt_initialize): Likewise.
38706         * lib/mktime.c (__mktime_internal): Provide prototype.
38707         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38708         older gcc that do not understand #pragma GCC diagnostic.
38709         * lib/uinttostr.c (inttype_is_unsigned): Define.
38710         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38711
38712 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38713
38714         stat: fix compilation on AIX
38715         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38716         only see struct stat64.
38717
38718 2009-10-30  Eric Blake  <ebb9@byu.net>
38719
38720         exclude: make more robust
38721         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38722         rather than masking a coding bug.
38723         Suggested by Bruno Haible.
38724
38725 2009-10-30  Jim Meyering  <meyering@redhat.com>
38726
38727         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38728         Rather than putting #!/usr/bin/perl on the first line,
38729         start with a variant of what's recommended by "man perlrun" that
38730         invokes the first "perl" program from your shell's search path.
38731         * build-aux/gitlog-to-changelog: Replace #!... as above.
38732         Add a "Local Variables" perl mode setting.
38733         Prompted by a patch from Ludovic Courtès.
38734         Improved by Eric Blake.
38735         * build-aux/useless-if-before-free: Likewise.
38736         * build-aux/announce-gen: Likewise.
38737         * build-aux/update-copyright: Likewise.
38738
38739 2009-10-29  Eric Blake  <ebb9@byu.net>
38740
38741         filenamecat-lgpl: adjust clients
38742         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38743         filenamecat.
38744         * modules/renameat (Depends-on): Likewise.
38745
38746         filenamecat: split into filenamecat-lgpl
38747         * modules/filenamecat-lgpl: New module.
38748         * modules/filenamecat (Files): Move library-safe files into
38749         filenamecat-lgpl.
38750         (Depends-on): Add filenamecat-lgpl.
38751         (configure.ac): Declare witness.
38752         * lib/filenamecat.h (file_name_concat): Only declare when using
38753         GPL module.
38754         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38755         Move...
38756         * lib/filenamecat-lgpl.c: ...into new file.
38757         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38758         (gl_FILE_NAME_CONCAT): Use it.
38759         * MODULES.html.sh (File system functions): Mention new module.
38760
38761         argp: avoid memory leak
38762         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38763         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38764         base_name, since the latter malloc()s and can call exit().
38765         Leak introduced 2006-07-03.
38766
38767         dirname-lgpl: adjust clients that don't need full dirname
38768         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38769         * modules/filenamecat (Depends-on): Likewise.
38770         * modules/linkat (Depends-on): Likewise.
38771         * modules/mkancesdirs (Depends-on): Likewise.
38772         * modules/mkdir (Depends-on): Likewise.
38773         * modules/openat (Depends-on): Likewise.
38774         * modules/savewd (Depends-on): Likewise.
38775         * modules/rename (Depends-on): Likewise.
38776         (License): Relax license.
38777         * modules/mkdir-tests (Depends-on): Drop progname.
38778         (Makefile.am): Delete unneeded LDADD.
38779         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38780
38781         dirname: split into dirname-lgpl
38782         * modules/dirname-lgpl: New module.
38783         * modules/dirname (Files): Move library-safe files into
38784         dirname-lgpl.
38785         (Depends-on): Add dirname-lgpl.
38786         (configure.ac): Declare witness.
38787         * modules/double-slash-root (License): Relax license.
38788         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38789         module.
38790         * lib/dirname.c (dir_len, mdir_name): Move...
38791         * lib/dirname-lgpl.c: ...into new file.
38792         * lib/basename.c (last_component, base_len): Move...
38793         * lib/basename-lgpl.c: ...into new file.
38794         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38795         (gl_DIRNAME): Use it.
38796         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38797         Mention new module.
38798         * modules/dirname-tests (Depends-on): Add progname.
38799         * tests/test-dirname.c (program_name): Delete.
38800
38801         mkdir: make safe for libraries
38802         * modules/mkdir (Depends-on): Drop xalloc.
38803         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38804         exit.
38805
38806         tests: avoid some compiler warnings
38807         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38808         literals.
38809         * tests/test-memchr.c (main): Avoid type mismatch.
38810         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38811         * tests/test-base64.c (main): Likewise.
38812         * tests/test-getdelim.c (main): Likewise.
38813         * tests/test-gethostname.c (main): Likewise.
38814         * tests/test-getline.c (main): Likewise.
38815         * tests/test-netinet_in.c (main): Likewise.
38816         * tests/test-select.c (open_server_socket, main): Likewise.
38817         * tests/test-select-stdin.c (main): Likewise.
38818         * tests/test-sockets.c (main): Likewise.
38819         * tests/test-strsignal.c (main): Likewise.
38820         * tests/test-sys_select.c (main): Likewise.
38821         * tests/test-sys_socket.c (main): Likewise.
38822         * tests/test-u64.c (main): Likewise.
38823         * tests/test-xfprintf-posix.c (main): Likewise.
38824         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38825
38826         sockets: avoid compiler warning
38827         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38828
38829         maint: detect usage(1) and other suspicious exits
38830         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38831
38832 2009-10-29  Jim Meyering  <meyering@redhat.com>
38833
38834         timespec: long-to-int truncation could make timespec_cmp malfunction
38835         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38836         a multiple of 2^32 nanoseconds as no difference.
38837
38838 2009-10-28  Jim Meyering  <meyering@redhat.com>
38839
38840         fprintftime: wrap macro code argument in "do {...} while(0)"
38841         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38842         cpy macro must be a statement that can be followed by a semicolon.
38843         Now that the else clause contains a comment and is hence longer
38844         than one line, I require curly braces.  That in turn requires
38845         that we wrap this code block in the standard do...while(0).
38846
38847         fprintftime: remove stray semicolon from previous change
38848         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38849
38850         fprintftime: avoid a warning about ignored fwrite return value
38851         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38852         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38853         that is unsafe.
38854         * modules/fprintftime (Depends-on): Add ignore-value.
38855
38856         exclude: avoid an unwarranted warning
38857         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38858
38859 2009-10-27  Eric Blake  <ebb9@byu.net>
38860
38861         fseek: avoid compilation failure when fflush is replaced
38862         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38863         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38864         module is in use.
38865         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38866         module is not in use; since REPLACE_FSEEK worked otherwise.
38867         (GNULIB_FTELLO): Likewise for ftell.
38868         Reported by Ian Beckwith and others.
38869
38870 2009-10-27  Bruno Haible  <bruno@clisp.org>
38871
38872         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38873         Reported by Jim Meyering.
38874
38875 2009-10-27  Jim Meyering  <jim@meyering.net>
38876             Bruno Haible  <bruno@clisp.org>
38877
38878         Avoid warning despite dropping the return value of fwrite.
38879         * lib/unicodeio.c: Include ignore-value.h.
38880         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38881         * modules/unicodeio (Depends-on): Add ignore-value.
38882
38883 2009-10-26  Eric Blake  <ebb9@byu.net>
38884
38885         areadlinkat: fix fallback path
38886         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38887         pointer and zero.
38888
38889 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38890
38891         Use a better IO block size for modern systems
38892         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38893         * lib/md2.c: Likewise.
38894         * lib/md4.c: Likewise.
38895         * lib/md5.c: Likewise.
38896         * lib/sha1.c: Likewise.
38897         * lib/sha256.c: Likewise.
38898         * lib/sha512.c: Likewise.
38899
38900 2009-10-22  Eric Blake  <ebb9@byu.net>
38901
38902         tests: avoid several compiler warnings
38903         * tests/test-getcwd.c (main): Avoid buffer underflow.
38904         * tests/test-getdate.c (main): String literals are not safe with
38905         putenv, so use setenv.  Declare unused argument.
38906         * modules/getdate-tests (Depends-on): Add setenv.
38907         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38908         problems with string literals in char *.
38909         * tests/test-hash.c (main): Avoid shadowing declaration.
38910         (insert_new): Treat string literals as char const *.
38911         * tests/test-getopt.h (test_getopt): Likewise.
38912         (getopt_loop): Alter types to minimize casting elsewhere.
38913         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38914         (test_getopt_long_posix): Likewise.
38915         (do_getopt_long): Add wrapper to minimize casting.
38916         * tests/test-atexit.c (clear_temp_file): Use void.
38917         * tests/test-areadlink-with-size.c (main): Declare unused
38918         arguments.
38919         * tests/test-areadlink.c (main): Likewise.
38920         * tests/test-areadlinkat-with-size.c (main): Likewise.
38921         * tests/test-areadlinkat.c (main): Likewise.
38922         * tests/test-canonicalize-lgpl.c (main): Likewise.
38923         * tests/test-canonicalize.c (main): Likewise.
38924         * tests/test-dirent-safer.c (main): Likewise.
38925         * tests/test-dirname.c (main): Likewise.
38926         * tests/test-dup2.c (main): Likewise.
38927         * tests/test-fchdir.c (main): Likewise.
38928         * tests/test-fcntl-h.c (main): Likewise.
38929         * tests/test-fcntl-safer.c (main): Likewise.
38930         * tests/test-fdopendir.c (main): Likewise.
38931         * tests/test-fdutimensat.c (main): Likewise.
38932         * tests/test-fflush.c (main): Likewise.
38933         * tests/test-filenamecat.c (main): Likewise.
38934         * tests/test-filevercmp.c (main): Likewise.
38935         * tests/test-fopen-safer.c (main): Likewise.
38936         * tests/test-fopen.c (main): Likewise.
38937         * tests/test-fpending.c (main): Likewise.
38938         * tests/test-fpurge.c (main): Likewise.
38939         * tests/test-freading.c (main): Likewise.
38940         * tests/test-fstatat.c (main): Likewise.
38941         * tests/test-fsync.c (main): Likewise.
38942         * tests/test-futimens.c (main): Likewise.
38943         * tests/test-getndelim2.c (main): Likewise.
38944         * tests/test-gettimeofday.c (main): Likewise.
38945         * tests/test-getopt.c (main): Likewise.
38946         * tests/test-i-ring.c (main): Likewise.
38947         * tests/test-inttypes.c (main): Likewise.
38948         * tests/test-link.c (main): Likewise.
38949         * tests/test-lstat.c (main): Likewise.
38950         * tests/test-math.c (main): Likewise.
38951         * tests/test-md5.c (main): Likewise.
38952         * tests/test-memchr2.c (main): Likewise.
38953         * tests/test-memrchr.c (main): Likewise.
38954         * tests/test-mkdir.c (main): Likewise.
38955         * tests/test-mkdirat.c (main): Likewise.
38956         * tests/test-mkfifoat.c (main): Likewise.
38957         * tests/test-open.c (main): Likewise.
38958         * tests/test-openat-safer.c (main): Likewise.
38959         * tests/test-openat.c (main): Likewise.
38960         * tests/test-quotearg.c (main): Likewise.
38961         * tests/test-rawmemchr.c (main): Likewise.
38962         * tests/test-readlink.c (main): Likewise.
38963         * tests/test-remove.c (main): Likewise.
38964         * tests/test-rename.c (main): Likewise.
38965         * tests/test-renameat.c (main): Likewise.
38966         * tests/test-rmdir.c (main): Likewise.
38967         * tests/test-sha1.c (main): Likewise.
38968         * tests/test-signal.c (main): Likewise.
38969         * tests/test-sigaction.c (main): Likewise.
38970         * tests/test-stat.c (main): Likewise.
38971         * tests/test-stat-time.c (main): Likewise.
38972         * tests/test-stddef.c (main): Likewise.
38973         * tests/test-stdint.c (main): Likewise.
38974         * tests/test-stdio.c (main): Likewise.
38975         * tests/test-stdlib.c (main): Likewise.
38976         * tests/test-strchrnul.c (main): Likewise.
38977         * tests/test-strerror.c (main): Likewise.
38978         * tests/test-string.c (main): Likewise.
38979         * tests/test-strtod.c (main): Likewise.
38980         * tests/test-strverscmp.c (main): Likewise.
38981         * tests/test-symlink.c (main): Likewise.
38982         * tests/test-symlinkat.c (main): Likewise.
38983         * tests/test-sys_stat.c (main): Likewise.
38984         * tests/test-sys_time.c (main): Likewise.
38985         * tests/test-time.c (main): Likewise.
38986         * tests/test-unistd.c (main): Likewise.
38987         * tests/test-unlink.c (main): Likewise.
38988         * tests/test-unlinkat.c (main): Likewise.
38989         * tests/test-utimens.c (main): Likewise.
38990         * tests/test-utimensat.c (main): Likewise.
38991         * tests/test-version-etc.c (main): Likewise.
38992         * tests/test-wchar.c (main): Likewise.
38993         * tests/test-wctype.c (main): Likewise.
38994         * tests/test-xprintf-posix.c (main): Likewise.
38995         * tests/test-posixtm.c (main): Likewise.
38996         (STREQ): Delete unused macro.
38997         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38998         shadowed variables.
38999         * tests/test-memchr.c (main): Likewise.
39000
39001 2009-10-21  Eric Blake  <ebb9@byu.net>
39002
39003         areadlinkat: avoid failure on older glibc
39004         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39005         rather than mis-comparing 0 against FUNC_RESULT of char*.
39006
39007 2009-10-21  Bruno Haible  <bruno@clisp.org>
39008
39009         * modules/stpncpy (License): Relicense under LGPLv2+.
39010         Reported by David Lutterkort <lutter@redhat.com>.
39011
39012 2009-10-20  Eric Blake  <ebb9@byu.net>
39013
39014         utimensat: work around Solaris 9 bug
39015         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39016         has trailing slash bugs.
39017         * tests/test-lutimens.h (test_lutimens): Enhance test.
39018         * tests/test-utimens.h (test_utimens): Likewise.
39019         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39020         * doc/posix-functions/utimes.texi (utimes): Likewise.
39021         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39022         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39023         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39024         * doc/posix-functions/futimens.texi (futimens): Likewise.
39025
39026         fdutimensat: new module
39027         * modules/fdutimensat: New file.
39028         * lib/fdutimensat.c (fdutimensat): Likewise.
39029         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39030         * MODULES.html.sh (File system functions): Mention module.
39031         * modules/fdutimensat-tests: New test.
39032         * tests/test-fdutimensat.c: Likewise.
39033
39034         doc: regenerate INSTALL
39035         * doc/INSTALL: Reflect recent autoconf update.
39036         * doc/INSTALL.ISO: Likewise.
39037         * doc/INSTALL.UTF-8: Likewise.
39038
39039 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39040
39041         acl: warn if ACL support is not detected
39042         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39043
39044 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39045
39046         * lib/nproc.h: Add extern "C" block for C++.
39047
39048 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39049             Bruno Haible  <bruno@clisp.org>
39050
39051         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39052         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39053         * doc/posix-functions/isalpha.texi: Likewise.
39054         * doc/posix-functions/isblank.texi: Likewise.
39055         * doc/posix-functions/iscntrl.texi: Likewise.
39056         * doc/posix-functions/isdigit.texi: Likewise.
39057         * doc/posix-functions/isgraph.texi: Likewise.
39058         * doc/posix-functions/islower.texi: Likewise.
39059         * doc/posix-functions/isprint.texi: Likewise.
39060         * doc/posix-functions/ispunct.texi: Likewise.
39061         * doc/posix-functions/isspace.texi: Likewise.
39062         * doc/posix-functions/isupper.texi: Likewise.
39063         * doc/posix-functions/isxdigit.texi: Likewise.
39064
39065 2009-10-18  Bruno Haible  <bruno@clisp.org>
39066
39067         Tests for module 'isblank'.
39068         * modules/isblank-tests: New file.
39069         * tests/test-isblank.c: New file.
39070
39071         New module 'isblank'.
39072         * lib/isblank.c: New file.
39073         * m4/isblank.m4: New file.
39074         * modules/isblank: New file.
39075         * doc/posix-functions/isblank.texi: Mention the new module.
39076
39077 2009-10-18  Bruno Haible  <bruno@clisp.org>
39078
39079         New module 'ctype'.
39080         * lib/ctype.in.h: New file.
39081         * m4/ctype.m4: New file.
39082         * modules/ctype: New file.
39083         * doc/posix-headers/ctype.texi: Mention the new module.
39084
39085 2009-10-18  Jim Meyering  <meyering@redhat.com>
39086
39087         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39088         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39089         right after its initialization, rather than farther down.
39090         Keeping these in close proximity makes it easier to ensure
39091         that each such variable is initialized.  E.g.,
39092
39093             LIB_CLOCK_GETTIME=
39094             AC_SUBST([LIB_CLOCK_GETTIME])
39095
39096         This change also increments these serial numbers.
39097         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39098         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39100
39101 2009-10-18  Bruno Haible  <bruno@clisp.org>
39102
39103         Don't let environment variables perturb build.
39104         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39105         (gl_PREREQ_GETHRXTIME): ... not here.
39106
39107 2009-10-18  Bruno Haible  <bruno@clisp.org>
39108
39109         Avoid symlink attack in localcharset module.
39110         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39111         (O_NOFOLLOW): Define fallback.
39112         (get_charset_aliases): Don't open the file if it is a symbolic link.
39113         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39114         gl_FCNTL_H.
39115         (gl_FCNTL_H): Require it.
39116         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39117         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39118         Reported by Fergal Glynn <fglynn@veracode.com>.
39119
39120 2009-10-18  Bruno Haible  <bruno@clisp.org>
39121
39122         Implement nproc for mingw.
39123         * lib/nproc.c: Include <windows.h>
39124         (num_processors): On native Windows platforms, try GetSystemInfo.
39125
39126 2009-10-18  Bruno Haible  <bruno@clisp.org>
39127
39128         Implement nproc for IRIX.
39129         * lib/nproc.c: Include <sys/sysmp.h>.
39130         (num_processors): On IRIX systems, try sysmp.
39131         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39132
39133 2009-10-18  Bruno Haible  <bruno@clisp.org>
39134
39135         Implement nproc for HP-UX.
39136         * lib/nproc.c: Include <sys/pstat.h>
39137         (num_processors): On HP-UX systems, try pstat_getdynamic.
39138         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39139         pstat_getdynamic.
39140
39141 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39142             Bruno Haible  <bruno@clisp.org>
39143
39144         Implement nproc for NetBSD, OpenBSD.
39145         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39146         (ARRAY_SIZE): New macro.
39147         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39148         * m4/nproc.m4: New file.
39149         * modules/nproc (Files): Add m4/nproc.m4.
39150         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39151         (Makefile.am): Instead, augment lib_SOURCES.
39152
39153 2009-10-18  Bruno Haible  <bruno@clisp.org>
39154
39155         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39156         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39157         sys/param.h.
39158
39159 2009-10-16  Eric Blake  <ebb9@byu.net>
39160
39161         utimensat: new module
39162         * modules/utimensat: New file.
39163         * lib/utimensat.c (utimensat): Likewise.
39164         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39165         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39166         so we can work around Linux bugs.
39167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39168         * modules/sys_stat (Makefile.am): Substitute them.
39169         * lib/sys_stat.in.h (utimensat): Declare it.
39170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39171         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39172         * modules/utimensat-tests: New test.
39173         * tests/test-utimensat.c: Likewise.
39174
39175         utimens: let lutimens work on non-symlinks
39176         * lib/utimens.c (lutimens): Fall back to utimens rather than
39177         failing with ENOSYS, when file is not a symlink.
39178         (utimens): Reduce redirection.
39179         * tests/test-lutimens.h (test_lutimens): Update test to cover
39180         non-symlinks.
39181         * tests/test-utimens.h (test_utimens): Update test to cover
39182         symlinks.
39183         * tests/test-utimens.c (main): Update caller.
39184
39185         utimens: cache whether utimensat syscall works
39186         * lib/utimens.c (utimensat_works_really): New cache variable.
39187         (fdutimens, lutimens): Use it to avoid failing syscall.
39188
39189         test-stat-time, test-utimens: improve portability
39190         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39191         ext4 on alpha, and for cygwin.
39192         * tests/test-utimens-common.h: New file.
39193         (nap): Factor delays into single function.
39194         * tests/test-lutimens.h (test_lutimens): Use new header.
39195         * tests/test-futimens.h (test_futimens): Likewise.
39196         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39197         timestamps to occur from same machine, as was done previously for
39198         test_utimens.
39199         * modules/utimens-tests (Files): Ship new file.
39200         * modules/futimens-tests (Files): Likewise.
39201         Reported in part by Jim Meyering.
39202
39203         sys_stat: sort replacement declarations
39204         * lib/sys_stat.in.h: Sort declarations.
39205         * lib/futimens.c (futimens): Fix typo.
39206
39207 2009-10-15  Jim Meyering  <meyering@redhat.com>
39208
39209         don't let environment settings perturb build
39210         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39211         could cause a configure-time and/or build-time malfunction.
39212         Typically, a configure-time function-in-library test is performed
39213         via code like this:
39214
39215           LIB_VAR=
39216           AC_SUBST([LIB_VAR])
39217           prefix_saved_LIBS=$LIBS
39218             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39219                        [test "$ac_cv_search_FUNC" = "none required" ||
39220                         LIB_VAR=$ac_cv_search_FUNC])
39221           LIBS=$prefix_saved_LIBS
39222
39223         However, in each of the files affected by this change, the LIB_VAR=
39224         initialization was omitted.  Thus, when set in the environment, its
39225         value would propagate into generated Makefiles when FUNC is not found
39226         in LIB_NAME.
39227         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39228         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39230
39231 2009-10-14  Eric Blake  <ebb9@byu.net>
39232
39233         fchdir: avoid infinite recursion in mingw
39234         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39235         recursing.
39236
39237         test-stat-time: port to mingw
39238         * tests/test-stat-time.c (force_unlink): Return a value.
39239         (test_ctime) [W32]: Fix compilation error.
39240         (nap): Don't call usleep with too large an argument.  Use
39241         force_unlink.
39242         * doc/pastposix-functions/usleep.texi (usleep): Document the
39243         portability issue.
39244
39245 2009-10-13  Jim Meyering  <meyering@redhat.com>
39246
39247         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39248         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39249         * modules/pipe-filter-ii: Likewise.
39250         * modules/sys_socket-tests: Likewise.
39251         * modules/tsearch-tests: Likewise.
39252         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39253         (check): Depend on it.
39254
39255 2009-10-12  Eric Blake  <ebb9@byu.net>
39256
39257         utimens-tests: port to NFS file systems
39258         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39259         comparisons to avoid spurious failures from timestamp drift
39260         between NFS machines.
39261
39262 2009-10-12  Eric Blake  <ebb9@byu.net>
39263
39264         stat-time-tests: minor cleanups
39265         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39266         * tests/test-stat-time.c (nap): Separate assignment from call.
39267         Suggested by Paolo Bonzini and Bruno Haible.
39268
39269         sys_stat: guarantee struct timespec
39270         * lib/sys_stat.in.h (includes): Always include <time.h>
39271         * modules/sys_stat (Depends-on): Add time.
39272         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39273         mode_t permission values.
39274         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39275         get at subsecond timestamps.
39276
39277 2009-10-10  Eric Blake  <ebb9@byu.net>
39278
39279         futimens: new module
39280         * modules/futimens: New file.
39281         * lib/futimens.c (futimens): Likewise.
39282         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39283         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39284         we can work around Linux bugs.
39285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39286         * modules/sys_stat (Makefile.am): Substitute them.
39287         * lib/sys_stat.in.h (futimens): Declare it.
39288         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39289         * doc/posix-functions/futimens.texi (futimens): Likewise.
39290         * modules/futimens-tests: New test.
39291         * tests/test-futimens.c: Likewise.
39292
39293         utimens: introduce fdutimens
39294         * lib/utimens.h (fdutimens): New prototype.
39295         * lib/utimens.c (gl_futimens): Move guts...
39296         (fdutimens): ...to new interface.
39297         * tests/test-utimens.c (do_fdutimens): Use it.
39298
39299         utimens: add UTIME_NOW and UTIME_OMIT support
39300         * lib/utimens.c (validate_timespec, update_timespec): New helper
39301         functions.
39302         (gl_futimens, lutimens): Use them.
39303         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39304         stdbool, sys_stat.
39305         (Link): Mention resulting library dependency.
39306         * modules/utimecmp (Link): Likewise.
39307         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39308         (Makefile.am): Pick up library dependency.
39309         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39310         definition.
39311         * tests/test-sys_stat.c: Test the definitions.
39312         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39313         * NEWS: Document library dependency.
39314
39315         utimecmp: support symlink timestamps
39316         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39317         hashing when possible.  Use pathconf when available.
39318         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39319         * modules/utimecmp (Depends-on): Add lstat.
39320
39321         utimens: add lutimens interface
39322         * lib/utimens.c (lutimens): New function.
39323         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39324         * lib/utimens.h (lutimens): Declare new interface.
39325         * tests/test-utimens.c (main): Enhance test.
39326         * tests/test-lutimens.h (test_lutimens): New file.
39327         * modules/utimens-tests (Files): Distribute it.
39328         (Depends-on): Add symlink.
39329         (configure.ac): Check for usleep.
39330
39331         utimens: validate futimens usage
39332         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39333         fewer syscalls on failure later on.  Avoid compiler warning on
39334         mingw.
39335         * modules/utimens (Depends-on): Add dup2.
39336
39337         utimens: add test
39338         * modules/utimens-tests: New test.
39339         * tests/test-utimens.h: New file.
39340         * tests/test-futimens.h: Likewise.
39341         * tests/test-utimens.c: Likewise.
39342
39343         doc: mention timestamp portability issues
39344         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39345         instead.
39346         * doc/posix-functions/utime.texi (utime): Likewise.
39347         * doc/posix-functions/utimes.texi (utimes): Likewise.
39348         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39349         instead.
39350         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39351         module.
39352         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39353         Mention weakness with symlink timestamps.
39354         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39355         to utimensat/futimens instead.
39356         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39357
39358         test-dup2: enhance test
39359         * tests/test-dup2.c (main): Also check AT_FDCWD.
39360
39361         test-stat-time: avoid more spurious failures
39362         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39363         xfs; and avoid race if the two timestamps cross quantization edge.
39364
39365         relocatable: prefer 'file system' over 'filesystem'
39366         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39367         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39368         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39369         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39370         * lib/relocatable.c (compute_curr_prefix): Likewise.
39371
39372 2009-10-10  Jim Meyering  <meyering@redhat.com>
39373
39374         stat-time-tests: check for the usleep function
39375         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39376
39377 2009-10-10  Bruno Haible  <bruno@clisp.org>
39378
39379         * modules/xnanosleep: Put the Link section after the Include section.
39380
39381 2009-10-09  Eric Blake  <ebb9@byu.net>
39382
39383         dup2: work around FreeBSD 6.1 bug
39384         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39385         * doc/posix-functions/dup2.texi (dup2): Document it.
39386         Reported by Nelson H. F. Beebe and Jim Meyering.
39387
39388         test-stat-time: port to buggy NFS clients
39389         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39390         (test_ctime): Also skip test if mtime and ctime are skewed.
39391
39392         maint: prefer 'file system' over 'filesystem'
39393         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39394         * doc/posix-functions/lstat.texi (lstat): Likewise.
39395         * lib/file-has-acl.c (file_has_acl): Likewise.
39396         * lib/fwriteerror.c [TEST]: Likewise.
39397         * tests/test-areadlink.h (test_areadlink): Likewise.
39398         * tests/test-areadlinkat-with-size.c (main): Likewise.
39399         * tests/test-areadlinkat.c (main): Likewise.
39400         * tests/test-canonicalize-lgpl.c (main): Likewise.
39401         * tests/test-canonicalize.c (main): Likewise.
39402         * tests/test-fstatat.c (main): Likewise.
39403         * tests/test-linkat.c (main): Likewise.
39404         * tests/test-lstat.h (test_lstat_func): Likewise.
39405         * tests/test-mkdir.h (test_mkdir): Likewise.
39406         * tests/test-readlink.h (test_readlink): Likewise.
39407         * tests/test-remove.c (main): Likewise.
39408         * tests/test-rename.h (test_rename): Likewise.
39409         * tests/test-renameat.c (main): Likewise.
39410         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39411         * tests/test-symlink.h (test_symlink): Likewise.
39412         * tests/test-symlinkat.c (main): Likewise.
39413         * tests/test-unlink.h (test_unlink_func): Likewise.
39414         * tests/test-unlinkat.c (main): Likewise.
39415
39416         maint: make realtime library usage explicit
39417         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39418         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39419         * modules/settime (Link): Likewise.
39420         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39421
39422         test-stat-time: speed up execution
39423         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39424         warning on mingw.
39425         (nap): New helper function.
39426         (prepare_test): Use it to reduce sleep time.
39427         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39428         execution.
39429         * modules/stat-time-tests (configure.ac): Check for usleep.
39430
39431 2009-10-09  Jim Meyering  <meyering@redhat.com>
39432
39433         selinux-h: always use getfilecon wrappers
39434         * lib/getfilecon.c: New file.
39435         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39436         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39437         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39438         (fgetfilecon): Provide a stub.
39439         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39440         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39441         file unconditionally.
39442         When <selinux/selinux.h> is found, arrange to use wrappers.
39443         * modules/selinux-h (Files): Add getfilecon.c.
39444         (Makefile.am): Substitute include-next-related bits
39445         into the now-always-generated selinux/selinux.h file.
39446         * doc/glibc-functions/lgetfilecon.texi: New file.
39447         * doc/glibc-functions/fgetfilecon.texi: New file.
39448         * doc/glibc-functions/getfilecon.texi: New file.
39449         * doc/glibc-functions/getfilecon-desc.texi: New file.
39450         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39451         which to pull in the new files.
39452         * MODULES.html.sh (Misc): Add selinux-h.
39453
39454 2009-10-08  Jim Meyering  <meyering@redhat.com>
39455
39456         unistd: fix comment typo
39457         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39458
39459 2009-10-08  Eric Blake  <ebb9@byu.net>
39460
39461         areadlink: use SIZE_MAX consistently
39462         * modules/areadlink (Depends-on): Add stdint.
39463         * modules/areadlink-with-size (Depends-on): Likewise.
39464         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39465         gives NULL; drop sys/types, since unistd gives size_t; and add
39466         stdint for SIZE_MAX.
39467         (SIZE_MAX): Rely on headers.
39468         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39469         and add stdint.
39470         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39471         (SIZE_MAX): Likewise.
39472         (INITIAL_BUF_SIZE): Turn into enum.
39473         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39474
39475 2009-10-08  Jim Meyering  <meyering@redhat.com>
39476
39477         areadlinkat: avoid compilation failure
39478         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39479         Fix typo in comment.
39480
39481 2009-10-07  Eric Blake  <ebb9@byu.net>
39482
39483         areadlinkat-with-size: new module
39484         * modules/areadlinkat-with-size: New module.
39485         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39486         * lib/areadlink.h (areadlinkat): Declare it.
39487         * MODULES.html.sh (File system functions): Mention it.
39488         * modules/areadlinkat-with-size-tests: New test.
39489         * tests/test-areadlinkat-with-size.c: New file.
39490
39491         xreadlinkat: new module
39492         * modules/xreadlinkat: New module.
39493         * lib/xreadlinkat.c (xreadlinkat): New file.
39494         * lib/xreadlink.h (xreadlinkat): Declare it.
39495         * MODULES.html.sh (File system functions): Mention it.
39496
39497         areadlinkat: new module
39498         * lib/at-func.c (FUNC_FAIL): New define.
39499         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39500         * modules/areadlinkat: New module.
39501         * lib/linkat.c (areadlinkat): Move...
39502         * lib/areadlinkat.c (areadlinkat): ...to new file.
39503         * lib/areadlink.h (areadlinkat): Declare it.
39504         * modules/linkat (Depends-on): Add areadlinkat.
39505         * MODULES.html.sh (File system functions): Mention it.
39506         * modules/areadlinkat-tests: New test.
39507         * tests/test-areadlinkat.c: New file.
39508
39509         areadlink, areadlink-with-size: add tests
39510         * modules/areadlink-tests: New test.
39511         * modules/areadlink-with-size-tests: Likewise.
39512         * tests/test-areadlink.h: New file.
39513         * tests/test-areadlink.c: Likewise.
39514         * tests/test-areadlink-with-size.c: Likewise.
39515
39516         maint: minor cleanups
39517         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39518         _UNUSED_PARAMETER_ instead.
39519         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39520         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39521         * modules/linkat-tests (Files): Distribute test-link.h.
39522
39523         openat, utimens: whitespace cleanup
39524         * lib/openat.c: Prefer space throughout, rather than mix of 8
39525         spaces vs. tabs.
39526         * lib/at-func.c: Likewise.
39527         * lib/utimens.c: Likewise.
39528
39529         openat: avoid using wrong fd
39530         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39531         working directory chooses same fd.
39532         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39533
39534         mkdir, mkdirat: fix cygwin 1.5.x bug
39535         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39536         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39537         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39538         bug.
39539         (gl_PREREQ_MKDIR): Delete unused macro.
39540         * modules/mkdir (Files): Track file rename.
39541         (configure.ac): Update macro name.
39542         * modules/openat (Depends-on): Add mkdir.
39543         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39544
39545         mkdir, mkdirat: add tests
39546         * modules/mkdir-tests: New test.
39547         * tests/test-mkdir.h: New file.
39548         * tests/test-mkdir.c: Likewise.
39549         * tests/test-mkdirat.c: Likewise.
39550         * modules/openat-tests (Files): Add new files.
39551         (Makefile.am): Run new test.
39552
39553 2009-10-06  Eric Blake  <ebb9@byu.net>
39554
39555         doc: tweak *at function documentation
39556         * doc/posix-functions/faccessat.texi (faccessat): Mention
39557         known issue with replacement.
39558         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39559         * doc/posix-functions/linkat.texi (linkat): Likewise.
39560         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39561         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39562         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39563         * doc/posix-functions/renameat.texi (renameat): Likewise.
39564         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39565
39566         openat: fix GNU/Hurd bug in unlinkat
39567         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39568         broken.
39569         * doc/posix-functions/unlink.texi (unlink): Document this.
39570         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39571
39572         fdopendir: fix GNU/Hurd bug
39573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39574         allowing non-directory fds.
39575         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39577         * modules/dirent (Makefile.am): Substitute it.
39578         * lib/dirent.in.h (fdopendir): Declare replacement.
39579         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39580         * tests/test-fdopendir.c (main): Test something other than
39581         /dev/null, since on Hurd that behaves like a directory.
39582
39583         test-symlink: port to GNU/Hurd
39584         * tests/test-symlink.h (test_symlink): Relax expected errno.
39585
39586         doc: tweak more cygwin information
39587         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39588         now compatible with glibc.
39589         * doc/posix-functions/getopt.texi (getopt): Likewise.
39590
39591         getopt-gnu: add another test
39592         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39593         guarantee behavior relied on by m4.
39594         * tests/test-getopt.c (main): Use it.
39595         * modules/getopt-posix-tests (Depends-on): Add setenv.
39596         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39597
39598         getopt: fix compilation on darwin
39599         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39600         include.
39601         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39602         Reported by Ludovic Courtès.
39603
39604 2009-10-06  Bruno Haible  <bruno@clisp.org>
39605
39606         * modules/size_max (Description): Discourage its use.
39607         Reported by Simon Josefsson.
39608
39609 2009-10-06  Jim Meyering  <meyering@redhat.com>
39610
39611         linkat: avoid compilation failure
39612         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39613
39614 2009-10-05  Eric Blake  <ebb9@byu.net>
39615
39616         linkat: support Linux 2.6.17
39617         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39618         linkat on Linux, but allow cache variable override.
39619         * lib/linkat.c (rpl_linkat): Define override.
39620         * modules/linkat (Depends-on): Add symlinkat.
39621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39622         * modules/unistd (Makefile.am): Substitute it.
39623         * lib/unistd.in.h (linkat): Declare replacement.
39624         Reported by Pádraig Brady.
39625
39626         quotearg: port test to systems with C.UTF-8 locale
39627         * tests/test-quotearg.c (struct result_strings): Add another
39628         member, differentiating between C.ASCII and C.UTF-8 handling.
39629         (compare_strings): Add parameter.
39630         (main): Adjust all callers.
39631
39632         getopt: avoid clash with FreeBSD _getopt_internal
39633         * lib/getopt.in.h (_getopt_internal): Override the name.
39634         * lib/getopt_int.h (includes): Pick up any overrides.
39635         Reported by Reuben Thomas.
39636
39637         hash: allow C89 compilation
39638         * lib/hash.c (check_tuning): Move declaration before statement.
39639         Reported by Reuben Thomas.
39640
39641 2009-10-05  Karl Berry  <karl@gnu.org>
39642
39643         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39644
39645 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39646             Bruno Haible  <bruno@clisp.org>
39647
39648         * lib/uname.c (uname): Use a table-driven algorithm to compute
39649         Windows NT versions.
39650
39651 2009-10-04  Bruno Haible  <bruno@clisp.org>
39652
39653         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39654         program_invocation_short_name.
39655         * modules/progname (configure.ac): Test for presence of
39656         program_invocation_short_name.
39657         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39658
39659 2009-10-04  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/progname.c (set_program_name): Fix comment.
39662         Reported by Jim Meyering.
39663
39664 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39665             Bruno Haible  <bruno@clisp.org>
39666
39667         * lib/uname.c: Include <string.h>.
39668         (uname): Do only one call to GetVersionEx in the common case.
39669
39670 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39671             Bruno Haible  <bruno@clisp.org>
39672
39673         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39674         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39675         (uname): Add support for Windows CE and various non-x86 CPU types.
39676
39677 2009-10-03  Bruno Haible  <bruno@clisp.org>
39678
39679         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39680         invocation to tests/configure.ac.
39681         Reported by Ian Beckwith <ianb@erislabs.net>.
39682
39683 2009-10-02  Eric Blake  <ebb9@byu.net>
39684
39685         fchdir: avoid compiler warning
39686         * lib/fchdir.c (canonicalize_file_name)
39687         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39688
39689         test-open: support mingw errno values
39690         * tests/test-open.h (test_open): Relax test.
39691         * tests/test-fopen.h (test_fopen): Likewise.
39692         * tests/test-openat-safer.c (main): Likewise.
39693
39694         open: fix opening directory on mingw
39695         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39696
39697         test-open: on GNU/Hurd, /dev/null is a directory
39698         * tests/test-fopen.h (main): Rename...
39699         (test_fopen): ...to this.  Use a guaranteed non-directory when
39700         confirming open behavior on trailing slash.
39701         * tests/test-openat-safer.c (main): Likewise.
39702         * tests/test-open.h (main): Likewise....
39703         (test_open): ...to this.
39704         * tests/test-fopen.c (main): Adjust caller.
39705         * tests/test-fopen-safer.c (main): Likewise.
39706         * tests/test-open.c (main): Likewise.
39707         * tests/test-fcntl-safer.c (main): Likewise.
39708         Reported by Samuel Thibault.
39709
39710         rename, fchdir: don't ignore chdir failure
39711         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39712         * lib/rename.c (rpl_rename) [W32]: Likewise.
39713         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39714         an empty destination directory if source cannot be renamed,
39715         although there is still possibility for failure.
39716         * doc/posix-functions/rename.texi (rename): Document the race.
39717         Reported by Jim Meyering.
39718
39719         maint: cleanup whitespace in recent commits
39720         * lib/rename.c (rpl_rename): Remove tabs.
39721         * tests/test-link.h (test_link): Likewise.
39722         * lib/fchdir.c (get_name): Likewise.
39723         Reported by Jim Meyering.
39724
39725 2009-10-02  Ben Pfaff  <blp@gnu.org>
39726
39727         relocatable-prog-wrapper: Add missing dependency on
39728         double-slash-root.
39729         * modules/relocatable-prog-wrapper: Add dependency.
39730         Reported by Ian Beckwith <ianb@erislabs.net>.
39731
39732 2009-10-02  Eric Blake  <ebb9@byu.net>
39733
39734         renameat: fix Solaris bugs
39735         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39736         needed fixing.
39737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39738         * modules/stdio (Makefile.am): Substitute it.
39739         * lib/stdio.in.h (renameat): Declare replacement.
39740         * lib/renameat.c (rpl_renameat): Implement fix.
39741
39742         renameat: new module
39743         * modules/renameat: New file.
39744         * lib/renameat.c (renameat): Likewise.
39745         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39747         * modules/stdio (Makefile.am): Substitute them.
39748         * lib/stdio.in.h (renameat): Declare it.
39749         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39750         * doc/posix-functions/renameat.texi (renameat): Likewise.
39751         * modules/renameat-tests: New test.
39752         * tests/test-renameat.c: Likewise.
39753
39754         rename: fix mingw bugs
39755         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39756         directory overwrite bugs.
39757
39758         rename: fix another cygwin 1.5 bug
39759         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39760         checks.
39761         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39762         unnecessary cygwin workarounds.  Also work around bug with moving
39763         full directory onto an empty one.
39764         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39765
39766         rename-dest-slash: merge into rename module
39767         * modules/rename-dest-slash (Status): Mark obsolete.
39768         (Depends-on): Add rename.
39769         (Files): Let rename do it all.
39770         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39771         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39772         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39773         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39774         * lib/rename.c (rpl_rename): Update comments.
39775
39776         rename: fix cygwin 1.5.x bugs
39777         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39778         * lib/rename.c (rpl_rename): Work around them.
39779         * modules/rename (Depends-on): Add same-inode.
39780
39781         rename: fix Solaris 10 bug
39782         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39783         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39784         was the only bug.
39785
39786         rename: fix Solaris 9 bug
39787         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39788         on non-directory.  Avoid calling exit.
39789         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39790         strdup.
39791         * modules/rename-tests (Depends-on): Drop lstat.
39792         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39793         (gl_PREREQ_RENAME): Delete unused macro.
39794
39795         rename-dest-slash: fix NetBSD bug
39796         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39797         links.
39798         * modules/rename-dest-slash (Depends-on): Add same-inode.
39799
39800         rename-tests: new test, exposes several platform bugs
39801         * modules/rename-tests: New file.
39802         * tests/test-rename.h: Likewise.
39803         * tests/test-rename.c: Likewise.
39804         * doc/posix-functions/rename.texi (rename): Improve documentation,
39805         including bugs that will eventually be fixed in gnulib.
39806
39807 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39808
39809         * lib/uname.c: Include <stdlib.h>
39810         (uname): Assume version info is available.
39811
39812 2009-10-02  Jim Meyering  <meyering@redhat.com>
39813
39814         gnu-web-doc-update: correct --help output
39815         * build-aux/gnu-web-doc-update: Make --help output relevant.
39816
39817         gnu-web-doc-update: add standard options
39818         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39819
39820         gnu-web-doc-update: New module.
39821         Use this script to automatically update the on-line web documentation
39822         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39823         * modules/gnu-web-doc-update: New file, from coreutils.
39824         * build-aux/gnu-web-doc-update: New script.
39825
39826 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39827
39828         link: LoadLibrary is not needed.
39829         * lib/link.c: Use GetModuleHandle.
39830
39831 2009-10-01  Eric Blake  <ebb9@byu.net>
39832
39833         getopt: bump serial number
39834         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39835         change.
39836
39837         tests: tighten link, rmdir, and remove tests
39838         * tests/test-link.h (includes): No need to use <config.h> here.
39839         Clean up if directory hard link was created, otherwise test for
39840         trailing '.'.
39841         * tests/test-linkat.c (main): Simplify.
39842         * tests/test-remove.c (main): Enhance test for trailing '.'.
39843         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39844
39845 2009-10-01  Jim Meyering  <meyering@redhat.com>
39846
39847         maint.mk: requiring "make major" was annoying, for a "minor" release.
39848         What is intended is "stable", to contrast with alpha and beta,
39849         so require "make stable", not "make major".
39850         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39851         (get_tool_versions): Likewise.
39852         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39853
39854 2009-09-30  Ben Pfaff  <blp@gnu.org>
39855
39856         Fix broken build of replacement for Windows tmpfile().
39857         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39858         flags argument added along with the 'mkostemp' module.
39859
39860 2009-09-28  Bruno Haible  <bruno@clisp.org>
39861
39862         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39863         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39864         to 'remove_elt'.
39865         (gl_list_remove): Update.
39866         * lib/gl_list.c (gl_list_remove): Update.
39867         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39868         to 'remove_elt'.
39869         (gl_oset_remove): Update.
39870         * lib/gl_list.c (gl_oset_remove): Update.
39871         Reported by Eric Blake.
39872
39873 2009-09-28  Eric Blake  <ebb9@byu.net>
39874
39875         doc: mention yet more cygwin 1.7 status
39876         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39877         cygwin.
39878         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39879         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39880
39881         argp: fix test failure
39882         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39883         that are not upper-case.  Pass correct range to tolower.
39884
39885 2009-09-27  Jim Meyering  <meyering@redhat.com>
39886
39887         test-yesno: work around sparc-dash here-document infelicity
39888         Without this change, the literal \177 byte in a here document
39889         would make dash 0.5.5.1-3 access uninitialized memory.
39890         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39891         Instead, use a marker, "@", and filter through tr to create the desired
39892         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39893
39894 2009-09-27  Bruno Haible  <bruno@clisp.org>
39895
39896         Disable untested support for new flavours of ACLs on AIX.
39897         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39898         progress.
39899         * lib/set-mode-acl.c (qset_acl): Likewise.
39900
39901 2008-12-07  Bruno Haible  <bruno@clisp.org>
39902
39903         Add support for new flavours of ACLs on AIX. (Untested.)
39904         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39905         (file_has_acl): Add support for newer AIX.
39906         * lib/set-mode-acl.c (qset_acl): Likewise.
39907         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39908         Rainer Tammer <tammer@tammer.net>.
39909
39910 2009-09-26  Eric Blake  <ebb9@byu.net>
39911
39912         argp: fix compilation of getopt
39913         * lib/getopt.in.h (includes): Use different guard than glibc.
39914         Reported by Sergey Poznyakoff.
39915
39916         doc: mention more cygwin 1.7 status
39917         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39918         bug.
39919         * doc/posix-functions/execl.texi (execl): Likewise.
39920         * doc/posix-functions/execle.texi (execle): Likewise.
39921         * doc/posix-functions/execlp.texi (execlp): Likewise.
39922         * doc/posix-functions/execv.texi (execv): Likewise.
39923         * doc/posix-functions/execve.texi (execve): Likewise.
39924         * doc/posix-functions/execvp.texi (execvp): Likewise.
39925         * doc/glibc-functions/canonicalize_file_name.texi
39926         (canonicalize_file_name): Cygwin 1.7 now provides this.
39927         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39928         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39929         on AT_SYMLINK_NOFOLLOW.
39930
39931 2009-09-24  Eric Blake  <ebb9@byu.net>
39932
39933         test-linkat: make test more robust
39934         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39935
39936         getopt: fix inclusion guards for cygwin
39937         * modules/getopt-posix (Depends-on): Add include-next.
39938         (Makefile.am): Substitute more items in replacement header.
39939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39940         <getopt.h>.
39941         * lib/getopt.in.h (includes): Use split inclusion guard, and
39942         prefer <getopt.h> over include <unistd.h> when one is present.
39943         (option): Also override name of 'struct option'.
39944
39945         same-inode: revert prior change; it is not yet ready
39946         * NEWS: Undo mention of this change.
39947         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39949         * lib/cycle-check.c (cycle_check): Likewise.
39950         * lib/same.c (same_name): Likewise.
39951         * lib/at-func2.c (at_func2): Likewise.
39952
39953 2009-09-23  Eric Blake  <ebb9@byu.net>
39954
39955         linkat: new module
39956         * modules/linkat: New file.
39957         * lib/at-func2.c (at_func2): Likewise.
39958         * lib/linkat.c (linkat): Likewise.
39959         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39960         * lib/openat-priv.h (at_func2): Add declaration.
39961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39962         * modules/unistd (Makefile.am): Substitute them.
39963         * lib/unistd.in.h (linkat): Declare it.
39964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39965         * doc/posix-functions/linkat.texi (linkat): Likewise.
39966         * doc/posix-functions/link.texi (link): Tweak wording.
39967         * tests/test-link.c (main): Move guts...
39968         * tests/test-link.h (test_link): ...into new file.
39969         * modules/linkat-tests: New test.
39970         * tests/test-linkat.c: Likewise.
39971         * modules/link-tests (Files): Ship new file.
39972         (Depends-on): Add stdbool.
39973
39974         dirname: add library-safe mdir_name
39975         * lib/dirname.h (mdir_name): New prototype.
39976         * lib/dirname.c (dir_name): Move guts...
39977         (mdir_name): ...to new function that avoids xalloc_die.
39978
39979         fchdir: another mingw fix
39980         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39981         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39982         on mingw (where it has not yet been ported), and make it optional
39983         elsewhere.
39984         (_gl_register_fd): Use it.
39985
39986         same-inode: make SAME_INODE tri-state, to port to mingw
39987         * NEWS: Mention this change.
39988         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39989         st_ino always being 0.
39990         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39991         * lib/cycle-check.c (cycle_check): Likewise.
39992         * lib/same.c (same_name): Likewise.
39993
39994         lstat: avoid mingw compilation error
39995         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39996         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39997         lstat ourselves.
39998         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39999         was adequate.
40000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40001         the checks for lstat.
40002         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40003
40004         link: fix test failure on Solaris 9
40005         * lib/link.c (rpl_link): Don't assume link will catch bogus
40006         trailing slash on source.
40007
40008         test-symlinkat: enhance test
40009         * tests/test-readlink.c (main): Move guts...
40010         * tests/test-readlink.h (test_readlink): ...into new file.
40011         * tests/test-symlink.c (main): Move guts...
40012         * tests/test-symlink.h (test_symlink): ...into new file.
40013         * tests/test-symlinkat.c (main): Use new files for further
40014         coverage.
40015         (do_symlink, do_readlink): New helper functions.
40016         * modules/symlink-tests (Files): Ship new file.
40017         (Depends-on): Add stdbool.
40018         * modules/readlink-tests (Files): Ship new file.
40019         (Depends-on): Add stdbool.
40020         * modules/symlinkat-tests (Files): Use new files.
40021
40022 2009-09-23  Eric Blake  <ebb9@byu.net>
40023
40024         readlink: document portability issue with symlink length
40025         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40026         systems have bogus st_size on symlinks, and mention the
40027         areadlink-with-size module.
40028         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40029         * doc/posix-functions/readlink.texi (readlink): Mention the
40030         areadlink module, and ERANGE failure.
40031         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40032         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40033
40034         readlink: fix Solaris 9 bug with trailing slash
40035         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40036         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40037         * doc/posix-functions/readlink.texi (readlink): Document this.
40038         * modules/readlink-tests: New test.
40039         * tests/test-readlink.c: Likewise.
40040
40041         readlink: fix cygwin 1.5.x bug with return type
40042         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40043         * lib/unistd.in.h (readlink): Use ssize_t.
40044         * lib/readlink.c (readlink): Likewise.
40045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40046         * modules/unistd (Makefile.am): Substitute it.
40047         * lib/unistd.in.h (readlink): Declare replacement.
40048         * doc/posix-functions/readlink.texi (readlink): Document this.
40049
40050         symlink: use throughout gnulib
40051         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40052         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40053         symlink is not used.
40054         * modules/symlinkat (Depends-on): Add symlink.
40055         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40056         * modules/canonicalize-tests (Depends-on): Likewise.
40057         * modules/lstat-tests (Depends-on): Likewise.
40058         * modules/openat-tests (Depends-on): Likewise.
40059         * modules/remove-tests (Depends-on): Likewise.
40060         * modules/rmdir-tests (Depends-on): Likewise.
40061         * modules/unlink-tests (Depends-on): Likewise.
40062         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40063         * tests/test-canonicalize.c (symlink): Likewise.
40064         * tests/test-fstatat.c (symlink): Likewise.
40065         * tests/test-lstat.c (symlink): Likewise.
40066         * tests/test-remove.c (symlink): Likewise.
40067         * tests/test-rmdir.c (symlink): Likewise.
40068         * tests/test-unlink.c (symlink): Likewise.
40069         * tests/test-unlinkat.c (symlink): Likewise.
40070
40071         symlink: new module, for Solaris 9 bug
40072         * modules/symlink: New file.
40073         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40074         * lib/symlink.c: Likewise.
40075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40076         * modules/unistd (Makefile.am): Substitute them.
40077         * lib/unistd.in.h (symlink): Declare replacement.
40078         * MODULES.html.sh (File system functions): Mention it.
40079         * doc/posix-functions/symlink.texi (symlink): Likewise.
40080         * modules/symlink-tests: New test.
40081         * tests/test-symlink.c: Likewise.
40082
40083 2009-09-23  Bruno Haible  <bruno@clisp.org>
40084
40085         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40086         when needed.
40087         Test case: gnulib-tool --import --with-tests atexit inttypes.
40088         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40089
40090 2009-09-23  Bruno Haible  <bruno@clisp.org>
40091
40092         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40093         subcommand, not in a subshell.
40094
40095 2009-09-22  Eric Blake  <ebb9@byu.net>
40096
40097         unistd: sort replacement declarations
40098         * lib/unistd.in.h: Sort declarations.
40099
40100         open, openat: minor optimization
40101         * lib/open.c (open): If open succeeded, len is non-zero.
40102         * lib/openat.c (rpl_openat): Likewise.
40103
40104         link-follow: ensure correct result
40105         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40106         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40107         distinguish between possible failures.
40108
40109 2009-09-21  Eric Blake  <ebb9@byu.net>
40110
40111         fts: avoid compiler warning
40112         * lib/fts.c (dirent_inode_sort_may_be_useful)
40113         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40114
40115 2009-09-19  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/progreloc.c (canonicalize_file_name): New declaration.
40118
40119 2009-09-19  Eric Blake  <ebb9@byu.net>
40120
40121         link: fix quoting
40122         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40123
40124         openat: fix openat bugs on Solaris 9
40125         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40126         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40127         * modules/openat (Depends-on): Add open.
40128         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40129         * modules/fcntl-h (Makefile.am): Substitute it.
40130         * lib/fcntl.in.h (openat): Declare replacement.
40131         * doc/posix-functions/openat.texi (openat): Document this.
40132
40133         openat: move fstatat and unlinkat into correct files
40134         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40135         compiled.
40136         * lib/openat.c (fstatat, unlinkat): Move...
40137         * lib/fstatat.c (fstatat): ...into correct files.
40138         * lib/unlinkat.c (unlinkat): Likewise.
40139
40140         openat: fix unlinkat bugs on Solaris 9
40141         * lib/unlinkat.c (unlinkat): New file.
40142         * modules/openat (Depends-on): Add unlink.
40143         (Files): Distribute it.
40144         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40145         trailing slash behavior is broken.
40146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40147         * modules/unistd (Makefile.am): Substitute it.
40148         * lib/unistd.in.h (unlinkat): Declare replacement.
40149         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40150
40151         openat: fix fstatat bugs on Solaris 9
40152         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40153         stat.
40154         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40155
40156         test-unlinkat: enhance test, to expose Solaris 9 bug
40157         * tests/test-unlink.c (main): Factor guts...
40158         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40159         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40160         * tests/test-rmdir.c (main): Adjust caller.
40161         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40162         (unlinker): New helper function.
40163         (rmdirat): Enhance check.
40164         * modules/rmdir-tests (Depends-on): Add stdbool.
40165         * modules/unlink-tests (Depends-on): Likewise.
40166         (Files): Add test-unlink.h.
40167         * modules/openat-tests (Files): Likewise.
40168         (Depends-on): Add unlinkdir.
40169
40170         test-fstatat: new test, to expose Solaris 9 bugs
40171         * tests/test-stat.c (main): Factor guts...
40172         * tests/test-stat.h (test_stat_func): ...into new file.
40173         * tests/test-lstat.c (main): Factor guts...
40174         * tests/test-lstat.h (test_lstat_func): ...into new file.
40175         * tests/test-fstatat.c: New file.
40176         * modules/stat-tests (Files): Add test-stat.h.
40177         * modules/lstat-tests (Files): Add test-lstat.h.
40178         (Depends-on): Add stdbool.
40179         * modules/openat-tests (Depends-on): Add pathmax.
40180         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40181         (Makefile.am): Run new test.
40182
40183         remove: new module, for mingw and Solaris 9 bugs
40184         * modules/remove: New file.
40185         * lib/remove.c: Likewise.
40186         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40188         * modules/stdio (Makefile.am): Use them.
40189         * lib/stdio.in.h (remove): Declare replacement.
40190         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40191         * doc/posix-functions/remove.texi (remove): Likewise.
40192         * modules/remove-tests: New test.
40193         * tests/test-remove.c: Likewise.
40194
40195         unlink: new module, for Solaris 9 bug
40196         * modules/unlink: New file.
40197         * lib/unlink.c: Likewise.
40198         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40200         * modules/unistd (Makefile.am): Use them.
40201         * lib/unistd.in.h (stat): Declare replacement.
40202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40203         * doc/posix-functions/unlink.texi (unlink): Likewise.
40204         * modules/unlink-tests: New test.
40205         * tests/test-unlink.c: Likewise.
40206
40207         lstat: fix Solaris 9 bug
40208         * lib/lstat.c (lstat): Also check for trailing slash on
40209         non-symlink, non-directories.  Use stat module to simplify logic.
40210         * doc/posix-functions/lstat.texi (lstat): Document it.
40211         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40212         (configure.ac): Check for symlink.
40213         * tests/test-lstat.c (main): Add more tests.
40214
40215         stat: add as dependency to other modules
40216         * modules/chown (Depends-on): Add stat.
40217         * modules/euidaccess (Depends-on): Likewise.
40218         * modules/fchdir (Depends-on): Likewise.
40219         * modules/isdir (Depends-on): Likewise.
40220         * modules/link (Depends-on): Likewise.
40221         * modules/lstat (Depends-on): Likewise.
40222         * modules/mkdir-p (Depends-on): Likewise.
40223         * modules/modechange (Depends-on): Likewise.
40224         * modules/open (Depends-on): Likewise.
40225         * modules/readlink (Depends-on): Likewise.
40226         * modules/same (Depends-on): Likewise.
40227
40228         stat: fix Solaris 9 bug
40229         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40230         slash.
40231         * lib/stat.c (rpl_stat): Work around it.
40232         * doc/posix-functions/stat.texi (stat): Update documentation.
40233
40234         stat: new module, for mingw bug
40235         * modules/stat: New file.
40236         * lib/stat.c: Likewise.
40237         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40239         * modules/sys_stat (Makefile.am): Use them.
40240         * lib/sys_stat.in.h (stat): Declare replacement.
40241         * lib/openat.c (fstatat): Deal with lstat and stat being function
40242         macros.
40243         * modules/openat (Depends-on): Add inline.
40244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40245         * doc/posix-functions/stat.texi (stat): Likewise.
40246         * modules/stat-tests: New test.
40247         * tests/test-stat.c: Likewise.
40248
40249 2009-09-19  Jim Meyering  <meyering@redhat.com>
40250
40251         syntax-check: detect unnecessary inclusion of canonicalize.h
40252         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40253
40254 2009-09-19  Eric Blake  <ebb9@byu.net>
40255
40256         canonicalize-lgpl: adjust clients to use correct header
40257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40258         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40259         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40260         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40261         * lib/progreloc.c (includes): Likewise.
40262
40263 2009-09-19  Jim Meyering  <meyering@redhat.com>
40264
40265         test-posixtm.c: correct a comment
40266         * tests/test-posixtm.c: Correct first-line comment.
40267         Spotted by Eric Blake.
40268
40269 2009-09-16  Jim Meyering  <meyering@redhat.com>
40270
40271         posixtm-tests: make T const-correct; add a test case
40272         * tests/test-posixtm.c (T): Declare const.
40273         Add a test for -(2^31+1).
40274         Remove useless can-succeed-only-in-2002 test.
40275
40276         posixtm-tests: adjust the sole failing test
40277         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40278         expected output matches what mktime now produces.  Cross-checked via
40279         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40280
40281         posixtm: move #ifdef'd tests into a new module
40282         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40283         * tests/test-posixtm.c: ... this new file.
40284         * modules/posixtm-tests: New module.
40285
40286 2009-09-19  Eric Blake  <ebb9@byu.net>
40287
40288         openat: simplify use of at-func.c
40289         * lib/at-func.c (includes): Include prerequisites here, to
40290         simplify requirements on client files.
40291         * lib/openat-priv.h: Add double-inclusion guard.
40292         * lib/faccessat.c (includes): Simplify.
40293         * lib/fchmodat.c (includes): Likewise.
40294         * lib/fchownat.c (includes): Likewise.
40295         * lib/mkdirat.c (includes): Likewise.
40296         * lib/mkfifoat.c (includes): Likewise.
40297         * lib/symlinkat.c (includes): Likewise.
40298
40299         openat: allow return of fd 0
40300         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40301         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40302         unistd-safer.
40303         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40304         <fcntl.h>; this module does not leak fds.
40305         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40306         must be allowed to return 0, leaving openat_safer to add the
40307         safety.
40308         (openat_permissive): Avoid writing to just-opened fd 2 if
40309         restoring the current directory fails.
40310         * lib/openat-die.c (openat_restore_fail): Add comment.
40311         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40312         (save_cwd): Guarantee safe fd, but without use of open_safer.
40313         * tests/test-openat.c: New test.
40314         * modules/openat-tests (Files, Makefile.am): Distribute and build
40315         new file.
40316
40317         relocatable-prog-wrapper: fix build
40318         * modules/relocatable-prog-wrapper (Files): Update name of
40319         canonicalize m4 file, broken on 2009-09-17.
40320         Reported by emad hajjar <aleppos@hotmail.com>.
40321
40322 2009-09-19  Bruno Haible  <bruno@clisp.org>
40323
40324         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40325         * lib/safe-alloc.c: Likewise.
40326         Reported by Ian Beckwith <ianb@erislabs.net>.
40327
40328 2009-09-18  Bruno Haible  <bruno@clisp.org>
40329
40330         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40331         Reported by <erobles@sensacd.com.mx>.
40332
40333 2009-09-17  Eric Blake  <ebb9@byu.net>
40334
40335         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40336         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40337         slashes when checking if last component is missing.
40338         * tests/test-canonicalize.c (main): Test this.
40339
40340         canonicalize, canonicalize-lgpl: honor // if distinct from /
40341         * modules/canonicalize (Files): Add double-slash-root.m4.
40342         * modules/canonicalize-lgpl (Files): Likewise.
40343         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40344         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40345         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40346         fallback definition.
40347         (canonicalize_filename_mode): Use it to protect //.
40348         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40349         (__realpath): Likewise.
40350         * tests/test-canonicalize.c (main): Test this.
40351         * tests/test-canonicalize-lgpl.c (main): Likewise.
40352         * modules/canonicalize-tests (Depends-on): Add same-inode.
40353         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40354
40355         canonicalize-lgpl: fix glibc bug with trailing slash
40356         * m4/canonicalize-lgpl.m4: Move contents...
40357         * m4/canonicalize.m4: ...here.
40358         (gl_CANONICALIZE_LGPL): Factor realpath check...
40359         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40360         glibc 2.3.5 bug, fixed 2005-04-27.
40361         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40362         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40363         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40364         * modules/canonicalize-lgpl (Files): Manage file rename.
40365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40366         * modules/stdlib (Makefile.am): Substitute witness.
40367         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40368         is needed.
40369         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40370         replacement is required.
40371         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40372         * doc/glibc-functions/canonicalize_file_name.texi
40373         (canonicalize_file_name): Document this.
40374         * doc/posix-functions/realpath.texi (realpath): Likewise.
40375
40376         canonicalize-lgpl: reject non-directory with trailing slash
40377         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40378         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40379         catches failures in glibc 2.3.5.
40380         * tests/test-canonicalize.c (main): Likewise.
40381
40382         canonicalize-lgpl: use native realpath if it works
40383         * lib/canonicalize-lgpl.c (realpath): Guard with
40384         FUNC_REALPATH_WORKS.
40385         * lib/stdlib.in.h (realpath): Make declaration optional based on
40386         HAVE_REALPATH.
40387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40388         native realpath works.
40389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40390         * modules/stdlib (Makefile.am): Substitute witness.
40391
40392         canonicalize, canonicalize-lgpl: use <stdlib.h>
40393         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40394         (Include): Mention <stdlib.h>.
40395         (configure.ac): Mention functions we provide.
40396         * modules/canonicalize (configure.ac): Likewise.
40397         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40398         realpath if canonicalize_file_name is missing.
40399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40400         * modules/stdlib (Makefile.am): Substitute witnesses.
40401         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40402         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40403         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40404         * NEWS: Document this.
40405         * doc/glibc-functions/canonicalize_file_name.texi
40406         (canonicalize_file_name): Likewise.
40407         * doc/posix-functions/realpath.texi (realpath): Likewise.
40408         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40409
40410         test-canonicalize: consolidate into single C program
40411         * tests/test-canonicalize.sh: Delete; move setup into...
40412         * tests/test-canonicalize.c (main): ...the program, making it
40413         easier to run in debugger.  Add some tests.
40414         * modules/canonicalize-tests (Files): Remove unused file.
40415         (Depends-on): Add progname.
40416         (configure.ac, Makefile.am): Simplify.
40417
40418         test-canonicalize-lgpl: consolidate into single C program
40419         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40420         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40421         easier to run in debugger.  Add some tests.
40422         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40423         (configure.ac, Makefile.am): Simplify.
40424
40425         canonicalize: avoid resolvepath
40426         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40427         unnecessary checks.
40428         * lib/canonicalize.c (includes): Simplify.
40429         (canonicalize_file_name): Drop resolvepath implementation.
40430         * modules/canonicalize (Depends-on): Drop filenamecat.
40431
40432         canonicalize: don't lose errno
40433         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40434         over calls to free.
40435
40436         canonicalize: simplify errno handling
40437         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40438         assignment.
40439
40440         canonicalize, canonicalize-lgpl: update module dependencies
40441         * modules/canonicalize (Depends-on): Add extensions, lstat,
40442         pathmax, stdlib.
40443         (Files): Drop pathmax.h.
40444         (configure.ac): Adjust macro name.
40445         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40446         lstat, stdlib, sys_stat.
40447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40448         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40449         extensions.
40450         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40451         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40452         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40453         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40454         declaration, if available.
40455         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40456         we can rely on the readlink module.
40457         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40458         (includes): Use <unistd.h> unconditionally.
40459
40460 2009-09-17  Eric Blake  <ebb9@byu.net>
40461
40462         maint: make Include sections of modules consistent
40463         * modules/alloca: Use only header name; no need to list #include.
40464         * modules/alloca-opt: Likewise.
40465         * modules/arpa_inet: Likewise.
40466         * modules/canon-host: Likewise.
40467         * modules/configmake: Likewise.
40468         * modules/dirent: Likewise.
40469         * modules/eealloc: Likewise.
40470         * modules/environ: Likewise.
40471         * modules/fchdir: Likewise.
40472         * modules/fcntl: Likewise.
40473         * modules/fcntl-h: Likewise.
40474         * modules/gethrxtime: Likewise.
40475         * modules/gettime: Likewise.
40476         * modules/ignore-value: Likewise.
40477         * modules/inet_ntop: Likewise.
40478         * modules/inet_pton: Likewise.
40479         * modules/inttypes: Likewise.
40480         * modules/isnand-nolibm: Likewise.
40481         * modules/isnanf-nolibm: Likewise.
40482         * modules/mbchar: Likewise.
40483         * modules/mbfile: Likewise.
40484         * modules/mbiter: Likewise.
40485         * modules/mbuiter: Likewise.
40486         * modules/netdb: Likewise.
40487         * modules/netinet_in: Likewise.
40488         * modules/nproc: Likewise.
40489         * modules/pagealign_alloc: Likewise.
40490         * modules/poll: Likewise.
40491         * modules/printf-frexp: Likewise.
40492         * modules/pthread: Likewise.
40493         * modules/putenv: Likewise.
40494         * modules/random_r: Likewise.
40495         * modules/relocatable-prog: Likewise.
40496         * modules/search: Likewise.
40497         * modules/select: Likewise.
40498         * modules/selinux-h: Likewise.
40499         * modules/settime: Likewise.
40500         * modules/signal: Likewise.
40501         * modules/size_max: Likewise.
40502         * modules/socklen: Likewise.
40503         * modules/ssize_t: Likewise.
40504         * modules/stdarg: Likewise.
40505         * modules/stdbool: Likewise.
40506         * modules/stddef: Likewise.
40507         * modules/stdint: Likewise.
40508         * modules/stdio: Likewise.
40509         * modules/stdlib: Likewise.
40510         * modules/string: Likewise.
40511         * modules/strings: Likewise.
40512         * modules/sys_file: Likewise.
40513         * modules/sys_ioctl: Likewise.
40514         * modules/sys_select: Likewise.
40515         * modules/sys_socket: Likewise.
40516         * modules/sys_stat: Likewise.
40517         * modules/sys_time: Likewise.
40518         * modules/sys_times: Likewise.
40519         * modules/sys_utsname: Likewise.
40520         * modules/sys_wait: Likewise.
40521         * modules/sysexits: Likewise.
40522         * modules/time: Likewise.
40523         * modules/times: Likewise.
40524         * modules/tmpfile: Likewise.
40525         * modules/trim: Likewise.
40526         * modules/unistd: Likewise.
40527         * modules/wchar: Likewise.
40528         * modules/wctype: Likewise.
40529
40530 2009-09-17  Bruno Haible  <bruno@clisp.org>
40531
40532         Make getdate.y compile on QNX and NetBSD 5 / i386.
40533         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40534         TIME_T_FITS_IN_LONG_INT.
40535         * lib/getdate.y (long_time_t): New type.
40536         (relative_time): Change type of 'seconds' field to long_time_t.
40537         (get_date): Update types of local variables. Check against overflow
40538         during conversion from long_time_t to time_t.
40539         Reported by Matt Kraai <kraai@ftbfs.org>
40540         and Hasso Tepper <hasso@netbsd.org>.
40541
40542 2009-09-17  Bruno Haible  <bruno@clisp.org>
40543
40544         * modules/COPYING: Update copyright years.
40545         * modules/README: Likeiwse.
40546         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40547         Reported by Ian Beckwith <ianb@erislabs.net>.
40548
40549 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40550
40551         * users.txt: Update references for gnuit package.
40552
40553 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40554
40555         * m4/getdelim.m4: Fix typo in copyright line.
40556
40557 2009-09-17  Bruno Haible  <bruno@clisp.org>
40558
40559         * lib/atoll.c: Use the standard header with GPL copyright.
40560         * lib/argz.in.h: Likewise.
40561         * lib/glob.c: Likewise.
40562         * lib/glob-libc.h: Likewise.
40563         * lib/random_r.c: Likewise.
40564         * lib/siglist.h: Likewise.
40565         * lib/strsignal.c: Likewise.
40566         Reported by Ian Beckwith <ianb@erislabs.net>.
40567
40568 2009-09-17  Eric Blake  <ebb9@byu.net>
40569
40570         rmdir: ensure correct dependency order
40571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40572
40573 2009-09-17  Bruno Haible  <bruno@clisp.org>
40574
40575         Disable assertion that fails on NetBSD 5 / i386.
40576         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40577         Reported by Sam Steingold <sds@gnu.org>
40578         and Hasso Tepper <hasso@netbsd.org>.
40579
40580 2009-09-16  Eric Blake  <ebb9@byu.net>
40581
40582         unlinkdir: port to mingw
40583         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40584         on which no one can unlink a directory.
40585
40586         stdlib: sort witness names
40587         * modules/stdlib (Makefile.am): Sort replacements.
40588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40589         * lib/stdlib.in.h: Likewise.
40590
40591         parse-duration-tests: avoid link failure
40592         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40593         LIBINTL.
40594         Reported by Tom G. Christensen.
40595
40596         openat-tests: ensure unlinkat behaves like rmdir
40597         * tests/test-rmdir.c (main): Factor guts...
40598         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40599         * modules/rmdir-tests (Files): Ship new file.
40600         * modules/openat-tests: New test.
40601         * tests/test-unlinkat.c: Likewise.
40602
40603         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40604         * modules/rmdir-errno (Status, Notice): Now obsolete.
40605
40606         rmdir: work around cygwin 1.5.x and mingw bugs
40607         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40608         * lib/rmdir.c (rmdir): Work around it.
40609         * modules/rmdir (Status, Notice): No longer obsolete.
40610         (Files): Add dos.m4.
40611         (Depends-on): Add unistd.
40612         (configure.ac): Set witnesses.
40613         (License): Relax to LGPLv2+.
40614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40615         * modules/unistd (Makefile.am): Substitute witnesses.
40616         * lib/unistd.in.h (rmdir): Declare replacement.
40617         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40618         * modules/rmdir-tests: New tests.
40619         * tests/test-rmdir.c: Likewise.
40620
40621 2009-09-15  Eric Blake  <ebb9@byu.net>
40622
40623         fchdir: improve use of replacement functions
40624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40626         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40627         REPLACE_CLOSEDIR.
40628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40629         * modules/sys_stat (Makefile.am): Substitute correct witness.
40630         * modules/dirent (Makefile.am): Likewise.
40631         * modules/unistd (Makefile.am): Likewise.
40632         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40633         * lib/unistd.in.h (dup): Likewise.
40634         * lib/sys_stat.in.h (fstat): Likewise.
40635
40636         maint: ignore gnulib-tool temp files
40637         * .gitignore: Ignore files created during gnulib-tool --test.
40638
40639 2009-09-13  Jim Meyering  <meyering@redhat.com>
40640
40641         posixtm: don't reject a time that specify "60" as the number of seconds
40642         * lib/posixtm.c (posixtime): The code to reject invalid dates
40643         would also reject a time specified with the .60 suffix.
40644         But POSIX allows that, in order to accommodate leap seconds.
40645         So don't reject it.
40646         (main): Adjust tests accordingly.
40647         * modules/posixtm (Depends-on): Add stpcpy.
40648
40649 2009-09-11  Jim Meyering  <meyering@redhat.com>
40650
40651         announce-gen: include [$release_type] in emitted Subject:
40652         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40653         e.g., [stable] in the emitted Subject: line.
40654
40655 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40656
40657         Remove obsolete macros from several modules.
40658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40659         obsolete Autoconf macros with their modern counterparts.
40660         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40661         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40663         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40664         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40665         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40668         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40669         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40670         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40672         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40673         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40674         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40675         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40676         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40677         * m4/time_r.m4 (gl_TIME_R): Likewise.
40678         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40679         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40680         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40681
40682         Fix copyright header in build-aux scripts.
40683         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40684         recommendation.
40685         * build-aux/ncftpput-ftp: Likewise.
40686         * build-aux/update-copyright: Likewise.
40687
40688 2009-09-09  Eric Blake  <ebb9@byu.net>
40689
40690         test-link: allow Linux choice of errno
40691         * tests/test-link.c (main): Relax test for alternate error.
40692
40693         strndup: fix improper m4 caching
40694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40695         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40696         (gl_PREREQ_STRNDUP): Delete.
40697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40698         * modules/string (Makefile.am): Substitute it.
40699         * lib/string.in.h (strndup): Modernize prototype.
40700
40701         getcwd: port to mingw
40702         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40703         different from the POSIX assumptions made throughout the getcwd
40704         module; fortunately, the mingw getcwd does not need replacement.
40705         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40706         * modules/getcwd-tests: New test.
40707         * tests/test-getcwd.c: Likewise.
40708
40709         link: fix platform bugs
40710         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40711         * lib/link.c (link): Work around them.  Fix related mingw bug.
40712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40713         * modules/unistd (Makefile.am): Substitute it.
40714         * lib/unistd.in.h (link): Declare replacement.
40715         * doc/posix-functions/link.texi (link): Document this.
40716         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40717
40718         test-link: consolidate into single C program, test more cases
40719         * tests/test-link.sh: Delete.
40720         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40721         at least Cygwin and Solaris.
40722         * modules/link-tests (Files): Remove unused file.
40723         (Depends-on): Add errno, sys_stat.
40724         (Makefile.am): Simplify.
40725
40726 2009-09-08  Bruno Haible  <bruno@clisp.org>
40727
40728         Work around towlower, towupper bug on mingw.
40729         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40730         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40731         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40732         * doc/posix-functions/towupper.texi: Likewise.
40733         Reported by Eric Blake.
40734
40735 2009-09-08  Jim Meyering  <meyering@redhat.com>
40736
40737         build: don't try to run autoheader if we don't use it
40738         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40739         is not used in configure.ac.
40740
40741 2009-09-08  Eric Blake  <ebb9@byu.net>
40742
40743         euidaccess: fix compilation error
40744         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40745
40746         rawmemchr: relax license
40747         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40748         okay.
40749         Reported by Jim Meyering.
40750
40751         mkfifoat: new module
40752         * modules/mkfifoat: New file.
40753         * lib/mkfifoat.c: Likewise.
40754         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40756         * modules/sys_stat (Makefile.am): Use them.
40757         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40758         * MODULES.html.sh (File system functions): Mention module.
40759         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40760         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40761         * modules/mkfifoat-tests: New test.
40762         * tests/test-mkfifoat.c: Likewise.
40763
40764         strchrnul: relax license
40765         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40766         okay.
40767         Reported by Jim Meyering.
40768
40769 2009-09-08  Eric Blake  <ebb9@byu.net>
40770
40771         fstatat: fix compilation on Solaris
40772         * lib/fstatat.c (includes): Add fcntl.h.
40773         Reported by Pádraig Brady.
40774
40775 2009-09-07  Eric Blake  <ebb9@byu.net>
40776
40777         rename: modernize replacement
40778         * modules/rename (Depends-on): Add stdio.
40779         (configure.ac): Declare witness.
40780         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40781         stdio take care of replacement.
40782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40783         * modules/stdio (Makefile.am): Substitute them.
40784         * lib/stdio.in.h (rename): Declare replacement.
40785         * lib/rename.c (includes): Allow cross-compilation to non-windows
40786         machines.
40787         * doc/posix-functions/rename.texi (rename): Improve
40788         documentation.
40789
40790         stdio: sort witness names
40791         * modules/stdio (Makefile.am): Sort replacements.
40792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40793         * lib/stdio.in.h: Likewise.
40794
40795         getcwd: minor cleanups
40796         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40797         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40798
40799         openat: provide more convenience names
40800         * modules/faccessat (configure.ac): Add C witness.
40801         * lib/unistd.in.h (readlinkat): Fix typo.
40802         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40803         convenience wrappers.
40804         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40805         wrappers in syntax checks.
40806
40807 2009-09-06  Eric Blake  <ebb9@byu.net>
40808
40809         doc: fix comments in recent patches
40810         * lib/faccessat.c: Mention correct function.
40811         * lib/fchmodat.c: Likewise.
40812         * lib/fchownat.c: Likewise.
40813         * lib/symlinkat.c: Likewise.
40814         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40815         constants.
40816
40817         faccessat, symlinkat: continue cleanup of previous patch
40818         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40819         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40820         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40822         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40823         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40824         set.
40825
40826 2009-09-06  Bruno Haible  <bruno@clisp.org>
40827
40828         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40829         (fstatat): Declare if GNULIB_FSTATAT is set.
40830         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40831         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40832         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40833         * modules/fcntl-h (Files): Remove m4/openat.m4.
40834         * modules/sys_stat (Files): Remove m4/openat.m4.
40835         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40836         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40837         * modules/unistd (Files): Remove m4/openat.m4.
40838         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40839         GNULIB_OPENAT.
40840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40841         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40843         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40844         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40845         gl_OPENAT_DEFAULTS.
40846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40847         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40848         Don't require gl_OPENAT_DEFAULTS.
40849         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40850         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40851         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40852         (gl_OPENAT_DEFAULTS): Remove macro.
40853
40854 2009-09-06  Bruno Haible  <bruno@clisp.org>
40855
40856         * modules/openat (configure.ac): Remove unneeded witness.
40857
40858 2009-09-06  Bruno Haible  <bruno@clisp.org>
40859
40860         Set errno to ENOSYS when a function is entirely unsupported.
40861         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40862         EOPNOTSUPP.
40863         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40864         * modules/chown (Depends-on): Remove errno.
40865
40866 2009-09-06  Bruno Haible  <bruno@clisp.org>
40867
40868         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40869
40870 2009-09-06  Bruno Haible  <bruno@clisp.org>
40871
40872         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40873
40874 2009-09-06  Ben Pfaff  <blp@gnu.org>
40875             Bruno Haible  <bruno@clisp.org>
40876
40877         Work around a glibc bug in strtok_r.
40878         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40879         Undefine if UNDEFINE_STRTOK_R is set.
40880         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40882         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40884         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40885         UNDEFINE_STRTOK_R.
40886         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40887
40888 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40889
40890         exclude: minor fix
40891         * lib/exclude.c: Include wctype.h
40892
40893 2009-09-06  Akim Demaille  <demaille@gostai.com>
40894
40895         bootstrap: improve error message
40896         * build-aux/bootstrap (find_tool): Upon failure, report the list
40897         of candidates.
40898         Honor the initial value of the envvar.
40899
40900 2009-09-05  Eric Blake  <ebb9@byu.net>
40901
40902         symlinkat: new module
40903         * modules/symlinkat: New file.
40904         * lib/symlinkat.c: Likewise.
40905         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40907         * modules/unistd (Makefile.am): Use them.
40908         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40909         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40910         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40911         * MODULES.html.sh (File system functions): Mention module.
40912         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40913         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40914         * modules/symlinkat-tests: New test.
40915         * tests/test-symlinkat.c: Likewise.
40916
40917         test-openat-safer: add more checks
40918         * tests/test-openat-safer.c (main): Check more code paths.
40919
40920 2009-09-05  Jim Meyering  <meyering@redhat.com>
40921
40922         syntax-check: detect unnecessary inclusion of openat.h
40923         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40924
40925 2009-09-05  Bruno Haible  <bruno@clisp.org>
40926
40927         Support towlower, towupper.
40928         * doc/posix-functions/towlower.texi: Mention module wctype.
40929         * doc/posix-functions/towupper.texi: Likewise.
40930         * lib/wctype.in.h (towlower, towupper): New functions.
40931         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40932         (ASSERT): New macro.
40933         (e): New variable.
40934         (main): Test also towlower, towupper. Test WEOF argument.
40935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40936
40937 2009-09-05  Bruno Haible  <bruno@clisp.org>
40938
40939         Fix conversion behaviour when the input is invalid.
40940         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40941         mark occurring in first pass of indirect conversion.
40942         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40943         input.
40944         Found by clang's static analyzer.
40945
40946 2009-09-05  Bruno Haible  <bruno@clisp.org>
40947
40948         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40949         where direct conversion is possible.
40950
40951 2009-09-04  Eric Blake  <ebb9@byu.net>
40952
40953         openat: fail with ENOENT on empty name
40954         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40955         buffer.
40956
40957         link-follow: fix logic bug in prior patch
40958         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40959         reversed sense of yes and no in prior patch.  Avoid confusing
40960         compilation failure with desired semantics.
40961
40962         link-follow: accomodate mingw and cross-compilation
40963         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40964         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40965         cross-compilation results to -1, to make linkat easier to
40966         implement when cross-compiling.  Trivially support mingw.
40967         * modules/link-follow (configure.ac): Call new name.
40968         * NEWS: Mention this.
40969
40970 2009-09-03  Eric Blake  <ebb9@byu.net>
40971
40972         faccessat: compile replacement
40973         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40974         needed.
40975
40976         fts: fix compilation error
40977         * lib/fts.c (includes): Re-add "openat.h", for
40978         openat_needs_fchdir.
40979
40980         faccessat: new module
40981         * modules/faccessat: New file.
40982         * lib/faccessat.c: Likewise.
40983         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40985         * modules/unistd (Makefile.am): Use it.
40986         * lib/unistd.in.h (faccessat): Declare it.
40987         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40988         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40989         * MODULES.html.sh (File system functions): Mention it.
40990         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40991         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40992
40993         euidaccess: prefer POSIX over non-standard implementation
40994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40995         * lib/euidaccess.c (euidaccess): Use it if available.
40996
40997         openat: make template easier to use
40998         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40999         AT_FUNC_F2 to be undefined.
41000         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41001         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41002         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41003         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41004         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41005         Likewise.
41006         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41007         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41008         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41009         Likewise.
41010
41011         openat: declare in POSIX headers
41012         * NEWS: Mention this.
41013         * modules/openat (configure.ac): Declare witnesses.
41014         (Depends-on): Add fcntl-h, sys_stat, unistd.
41015         (Include): Mention correct headers.
41016         * modules/fcntl-h (Depends-on): Add link-warning.
41017         (Files): Add openat.m4.
41018         (Makefile.am): Substitute witnesses.
41019         * modules/sys_stat (Files, Makefile.am): Likewise.
41020         * modules/unistd (Files, Makefile.am): Likewise.
41021         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41022         (gl_OPENAT_DEFAULTS): New macro.
41023         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41026         (SYS_STAT_H): Remove unused variable.
41027         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41028         * lib/fcntl--.h (includes): Remove unneeded header.
41029         * lib/openat-safer.c (includes): Likewise.
41030         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41031         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41032         appropriate headers.
41033         (__OPENAT_PREFIX): Delete.
41034         * lib/fcntl.in.h (openat): Provide declaration.
41035         (AT_FDCWD): Fix Solaris bug.
41036         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41037         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41038         * lib/fchmodat.c (includes):  Adjust to find declaration.
41039         * lib/fchownat.c (includes): Likewise.
41040         * lib/mkdirat.c (includes): Likewise.
41041         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41042         still visible.
41043
41044 2009-09-02  Eric Blake  <ebb9@byu.net>
41045
41046         errno: use consistently
41047         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41048         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41049         * lib/canonicalize.c (ELOOP): Likewise.
41050         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41051         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41052         * lib/lchown.c (EOPNOTSUPP): Likewise.
41053         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41054         * lib/savewd.c (ESTALE): Likewise.
41055         * lib/settime.c (ENOSYS): Likewise.
41056         * lib/utimens.c (ENOSYS): Likewise.
41057         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41058         * lib/chdir-safer.c (ELOOP): Likewise.
41059         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41060         * modules/c-stack (Depends-on): Add errno.
41061         * modules/canonicalize (Depends-on): Likewise.
41062         * modules/chdir-safer (Depends-on): Likewise.
41063         * modules/fdopendir (Depends-on): Likewise.
41064         * modules/inet_ntop (Depends-on): Likewise.
41065         * modules/inet_pton (Depends-on): Likewise.
41066         * modules/lchown (Depends-on): Likewise.
41067         * modules/openat (Depends-on): Likewise.
41068         * modules/savewd (Depends-on): Likewise.
41069         * modules/settime (Depends-on): Likewise.
41070         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41071
41072         fts: avoid leaking fds
41073         * modules/fts (Depends-on): Add cloexec.
41074         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41075         flag.
41076
41077         fts: make directory fds more robust
41078         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41079         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41080
41081         backupfile, chdir-long, fts, savedir: make safer
41082         * lib/backupfile.c (includes): Use "dirent--.h", since
41083         numbered_backup can write to stderr during readdir.
41084         * lib/savedir.c (includes): Likewise.
41085         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41086         emulation can write to stderr on failure.
41087         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41088         * lib/getcwd.c: Document why opendir_safer is unused.
41089         * lib/glob.c: Likewise.
41090         * lib/scandir.c: Likewise.
41091         * lib/openat-proc.c: Likewise, for open_safer.
41092         * modules/backupfile (Depends-on): Add dirent-safer.
41093         * modules/savedir (Depends-on): Likewise.
41094         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41095         * modules/chdir-long (Depends-on): Add openat-safer.
41096
41097         openat-safer: new module
41098         * modules/openat-safer: New file.
41099         * lib/openat-safer.c: Likewise.
41100         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41101         * lib/fcntl-safer.h (openat_safer): Declare.
41102         * lib/fcntl--.h (openat): Override.
41103         * MODULES.html.sh (File descriptor based I/O): Mention it.
41104         * lib/openat.h: Add double-inclusion guards.
41105         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41106         "fcntl--.h", so we can implement openat.
41107         * modules/openat-safer-tests: New test.
41108         * tests/test-openat-safer.c: New file.
41109
41110         dirent-safer: new module
41111         * modules/dirent-safer: New file.
41112         * lib/dirent--.h: Likewise.
41113         * lib/dirent-safer.h: Likewise.
41114         * lib/opendir-safer.c: Likewise.
41115         * m4/dirent-safer.m4: Likewise.
41116         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41117         * modules/dirent-safer-tests: New test.
41118         * tests/test-dirent-safer.c: New file.
41119         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41120
41121         fdopendir: optimize on mingw
41122         * lib/unistd.in.h (_gl_directory_name): New prototype.
41123         * lib/fchdir.c (_gl_directory_name): Implement it.
41124         (fchdir): Use it to simplify implementation.
41125         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41126         fchdir, when available, to avoid calling [f]chdir().
41127
41128         fdopendir: split into its own module
41129         * lib/openat.c (fdopendir): Move...
41130         * lib/fdopendir.c: ...into new file.
41131         * modules/fdopendir: New module.
41132         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41133         * modules/openat (Depends-on): Add fdopendir.
41134         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41135         fdopendir here.
41136         * modules/savedir (Depends-on): Only need fdopendir, not full
41137         openat.
41138         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41139         * lib/openat.h (fdopendir): Drop prototype.
41140         * lib/dirent.in.h (fdopendir): Provide prototype.
41141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41142         * modules/dirent (Makefile.am): Substitute them.
41143         * MODULES.html.sh (File system functions): Mention it.
41144         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41145         * modules/fdopendir-tests: New file.
41146         * tests/test-fdopendir.c: Likewise.
41147
41148         fchdir: use more consistent macro convention
41149         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41150         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41151         REPLACE_FCHDIR, rather than relying on config.h macros.
41152         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41153         inside a single make-time REPLACE_FCHDIR block, rather than using
41154         the config.h FCHDIR_REPLACEMENT.
41155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41156         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41157         Manage fstat replacement.
41158         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41159         REPLACE_FCHDIR.
41160         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41161         (Makefile.am): Substitute REPLACE_FCHDIR.
41162         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41163         FCHDIR_REPLACEMENT.
41164         * lib/dup-safer.c (dup_safer): Likewise.
41165         * lib/dup2.c (rpl_dup2): Likewise.
41166         * lib/dup3.c (rpl_dup3): Likewise.
41167         * lib/open.c (rpl_open): Likewise.
41168
41169         fchdir: simplify error handling, and support dup3
41170         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41171         stdbool, malloc-posix, realloc-posix.
41172         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41173         (ensure_dirs_slot): Return false on allocation failure.
41174         (rpl_dup2): Delete.
41175         (_gl_register_dup): New function.
41176         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41177         (_gl_register_fd): Close fd on allocation failure.
41178         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41179         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41180         prototype.
41181         (rpl_dup2_fchdir): Delete prototype.
41182         * lib/open.c (open): Update caller.
41183         * lib/dup2.c (dup2): Track fchdir metadata.
41184         * lib/dup3.c (dup3): Likewise.
41185         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41187
41188 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41189
41190         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41191         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41192         don't pass arguments to AC_OUTPUT.
41193
41194 2009-09-02  Bruno Haible  <bruno@clisp.org>
41195
41196         * modules/mkdtemp (License): Relicense under LGPLv2+.
41197         Reported by Paolo Bonzini.
41198
41199 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41200
41201         Replace uses of obsolete autoconf macros in Jim's modules.
41202         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41203         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41204         can evoke a warning from autoconf when run with -Wobsolete
41205         enabled.  They were declared obsolete for good reasons (see
41206         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41207         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41208         should not continue using the deprecated macros.
41209         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41210         obsolete Autoconf macros with modern counterparts.
41211         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41212         * m4/dos.m4 (gl_AC_DOS): Likewise.
41213         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41214         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41215         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41216         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41217         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41219         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41220         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41221         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41222         Likewise.
41223         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41224         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41225         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41226         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41227         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41228         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41229
41230 2009-09-01  Eric Blake  <ebb9@byu.net>
41231
41232         fchdir: fix off-by-one bug in previous patch
41233         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41234         (_gl_unregister_fd): Delete useless if.
41235
41236 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41237
41238         maint.mk: sort the list of syntax-check rules
41239         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41240         easier to get a sense of progress when the rules are run sequentially
41241         and take a long time.
41242
41243 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41244
41245         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41246         * modules/netinet_in: Likewise.
41247         * modules/sys_file: Likewise.
41248         * modules/sys_ioctl: Likewise.
41249         * modules/sys_select: Likewise.
41250         * modules/sys_socket: Likewise.
41251         * modules/sys_stat: Likewise.
41252         * modules/sys_time: Likewise.
41253         * modules/sys_times: Likewise.
41254         * modules/sys_utsname: Likewise.
41255         * modules/sys_wait: Likewise.
41256
41257 2009-09-01  Jim Meyering  <meyering@redhat.com>
41258
41259         fts: help ensure that return values are not ignored
41260         * lib/fts_.h (__GNUC_PREREQ): Define.
41261         (__attribute_warn_unused_result__): Define.
41262         (fts_children, fts_close, fts_open, fts_read): Declare with
41263         __attribute_warn_unused_result__.
41264
41265         fts: fts_close now fails also when closing a dir file descriptor fails
41266         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41267         and propagate to caller, along with errno.
41268
41269         announce-gen: correct formatting in --help output
41270         * build-aux/announce-gen (usage): Move the one-line description in
41271         --help output "up", to where it belongs, just after Usage:.
41272
41273 2009-08-31  Eric Blake  <ebb9@byu.net>
41274
41275         fchdir: port to mingw
41276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41277         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41278         opened, then use a substitute.
41279         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41280         replacement.
41281         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41282         (_gl_register_fd): No need to check stat if open already filters
41283         all directories.
41284         (fchdir): Fix error condition to match POSIX.
41285         * modules/fchdir (Depends-on): Add sys_stat.
41286         * doc/posix-functions/open.texi (open): Document the limitation.
41287         * modules/fchdir-tests: New file.
41288         * tests/test-fchdir.c: Likewise.
41289
41290         canonicalize: allow cross-testing from cygwin to mingw
41291         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41292         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41293         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41294         Likewise.
41295         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41296         target does not support symlinks.
41297         * tests/test-canonicalize-lgpl.sh: Likewise.
41298
41299         chown: avoid compilation warning on mingw
41300         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41301         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41302         mingw.
41303         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41304         * modules/chown (Depends-on): Add errno.
41305
41306 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41307
41308         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41309         command.
41310
41311 2009-08-31  Jim Meyering  <meyering@redhat.com>
41312
41313         canonicalize: remove useless initialization
41314         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41315         initialization of local, "end".
41316
41317 2009-08-30  Bruno Haible  <bruno@clisp.org>
41318
41319         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41320         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41321         ENOSYS.
41322
41323 2009-08-30  Bruno Haible  <bruno@clisp.org>
41324
41325         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41326         /usr/xpg4/bin/tr when it exists.
41327         * tests/test-pipe-filter-gi1.sh: Likewise.
41328
41329 2009-08-30  Bruno Haible  <bruno@clisp.org>
41330
41331         Work around deficient /usr/bin/id program on Solaris.
41332         * tests/test-file-has-acl.sh (ID): New variable.
41333         * tests/test-set-mode-acl.sh (ID): Likewise.
41334         * tests/test-copy-acl.sh (ID): Likewise.
41335         * tests/test-copy-file.sh (ID): Likewise.
41336
41337 2009-08-30  Bruno Haible  <bruno@clisp.org>
41338
41339         New module 'xstriconveh'.
41340         * lib/xstriconveh.h: New file.
41341         * lib/xstriconveh.c: New file.
41342         * modules/xstriconveh: New file.
41343
41344 2009-08-30  Bruno Haible  <bruno@clisp.org>
41345
41346         Make it easier to use mem_cd_iconveh.
41347         * lib/striconveh.h (iconveh_t): New type.
41348         (iconveh_open, iconveh_close): New declarations.
41349         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41350         with a single 'const iconveh_t *' argument.
41351         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41352         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41353         with a single 'const iconveh_t *' argument.
41354         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41355         * tests/test-striconveh.c (main): Update.
41356         * NEWS: Mention the change.
41357
41358 2009-08-30  Bruno Haible  <bruno@clisp.org>
41359
41360         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41361         problem.
41362
41363 2009-08-30  Bruno Haible  <bruno@clisp.org>
41364
41365         Work around iconv_open problem on Solaris.
41366         * lib/iconv_open-solaris.gperf: New file.
41367         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41369         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41370         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41371         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41372         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41373
41374 2009-08-29  Jim Meyering  <meyering@redhat.com>
41375
41376         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41377         * top/maint.mk (cvs-check): Remove target; it was just an alias
41378         to the better-named vc-diff-check.
41379         (maintainer-distcheck): Remove rule.  It was used only from
41380         the (alpha/beta/major) target, and all of its commands but one
41381         were coreutils-specific.
41382         (vc-dist): Remove rule.
41383         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41384         Run vc-diff-check, not vc-dist.
41385         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41386
41387 2009-08-27  Bruno Haible  <bruno@clisp.org>
41388
41389         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41390         of 0.
41391
41392 2009-08-27  Bruno Haible  <bruno@clisp.org>
41393
41394         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41395         compilers.
41396         * doc/func.texi: Document the SunPRO C bug.
41397
41398 2009-08-27  Bruno Haible  <bruno@clisp.org>
41399
41400         Fix link error on Solaris.
41401         * tests/test-parse-duration.c (xstrdup): Remove function.
41402
41403 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41404
41405         ignore-value: handle pointer types, too
41406         * lib/ignore-value.h (__attribute__): Remove definition.
41407         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41408         of a more concise and more-often effective "(void) i" statement.
41409         (ignore_ptr): New function to suppress warnings from functions that
41410         return pointers, and to make it explicit that one function doesn't
41411         handle all cases.
41412
41413 2009-08-25  Bruno Haible  <bruno@clisp.org>
41414
41415         dup2: work around a Linux bug.
41416         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41417         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41418         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41419         Reported by Simon Josefsson.
41420
41421 2009-08-25  Jim Meyering  <meyering@redhat.com>
41422
41423         libguestfs uses gnulib
41424         * users.txt: Add libguestfs.
41425
41426 2009-08-24  Eric Blake  <ebb9@byu.net>
41427
41428         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41429         * lib/pipe2.c (includes): Add binary-io.h.
41430         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41431
41432 2009-08-24  Bruno Haible  <bruno@clisp.org>
41433
41434         Tolerate declared but missing accept4 syscall.
41435         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41436         available.
41437         * lib/sys_socket.in.h (accept4): If the function is already present,
41438         override it.
41439         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41440         * modules/accept4 (Makefile.am): Compile accept4.c always.
41441         Reported by Paolo Bonzini and Eric Blake.
41442
41443 2009-08-23  Bruno Haible  <bruno@clisp.org>
41444
41445         New module 'accept4'.
41446         * lib/sys_socket.in.h (accept4): New declaration.
41447         * lib/accept4.c: New file.
41448         * m4/accept4.m4: New file.
41449         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41450         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41451         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41452         HAVE_ACCEPT4.
41453         * modules/accept4: New file.
41454         * doc/glibc-functions/accept4.texi: Mention the new module.
41455
41456 2009-08-24  Jim Meyering  <meyering@redhat.com>
41457
41458         progname: also set global program_invocation_name, when possible
41459         Before this change, a libtool-enabled program that calls glibc's
41460         error function would report the program name as
41461         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41462         * modules/progname (configure.ac): Check for a declaration of
41463         program_invocation_name.
41464         * lib/progname.c:  Include <errno.h>.
41465         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41466         Set program_invocation_name.
41467
41468 2009-08-23  Bruno Haible  <bruno@clisp.org>
41469
41470         * lib/dup3.c: Include <string.h>.
41471
41472 2009-08-23  Bruno Haible  <bruno@clisp.org>
41473
41474         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41475         * lib/pipe2.c (pipe2): Likewise.
41476         Suggested by Eric Blake.
41477
41478 2009-08-23  Bruno Haible  <bruno@clisp.org>
41479
41480         Tolerate declared but missing dup3 syscall.
41481         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41482         * lib/unistd.in.h (dup3): If the function is already present,
41483         override it.
41484         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41485         * modules/dup3 (Makefile.am): Compile dup3.c always.
41486         Reported by Paolo Bonzini.
41487
41488 2009-08-23  Bruno Haible  <bruno@clisp.org>
41489
41490         Tolerate declared but missing pipe2 syscall.
41491         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41492         available.
41493         * lib/unistd.in.h (pipe2): If the function is already present,
41494         override it.
41495         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41496         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41497         Reported by Paolo Bonzini.
41498
41499 2009-08-23  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/pipe2.c (pipe2): Move #ifs inside function.
41502
41503 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41504
41505         quotearg: document limitations of quote_these_too
41506         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41507         those limitations are created.
41508         * lib/quotearg.h (set_char_quoting): Document that digits and
41509         letters that are special after backslash are not permitted.
41510         (quotearg_char): Cross-reference set_char_quoting documentation.
41511
41512 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41513
41514         quotearg: implement custom_quoting_style
41515         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41516         right_quote fields.
41517         (set_custom_quoting): New public function.
41518         (quotearg_buffer_restyled): Add left_quote and right_quote
41519         arguments, handle them very much like locale quoting, and update
41520         all uses.
41521         (quotearg_n_custom): New public function.
41522         (quotearg_n_custom_mem): New public function.
41523         (quotearg_custom): New public function.
41524         (quotearg_custom_mem): New public function.
41525         * lib/quotearg.h: Prototype and document new public functions.
41526         (enum quoting_style): For escape_quoting_style and
41527         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41528         ignored even though they're otherwise like c_quoting_style.
41529         Add custom_quoting_style member and document with comparison to
41530         clocale_quoting_style.
41531         * tests/test-quotearg.c (custom_quotes): New array.
41532         (custom_results): New array.
41533         (main): Extend to test custom quoting.
41534
41535 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41536
41537         quotearg: fix right quote escaping when it's in quote_these_too
41538         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41539         quote, be sure to prepend only one backslash.
41540         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41541         (main): Test it.
41542
41543 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41544
41545         quotearg-tests: test escaping of embedded locale quotes
41546         * tests/test-quotearg.c (struct result_strings): Add member for
41547         new input.
41548         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41549         (inputs): Add new input.
41550         (results_g): Add expected results.
41551         (flag_results): Likewise.
41552         (locale_results): Likewise.
41553         (compare_strings): Check those.
41554
41555 2009-08-23  Bruno Haible  <bruno@clisp.org>
41556
41557         Tests for module 'dup3'.
41558         * modules/dup3-tests: New file.
41559         * tests/test-dup3.c: New file.
41560
41561         New module 'dup3'.
41562         * lib/unistd.in.h (dup3): New declaration.
41563         * lib/dup3.c: New file.
41564         * m4/dup3.m4: New file.
41565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41566         HAVE_DUP3.
41567         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41568         * modules/dup3: New file.
41569         * doc/glibc-functions/dup3.texi: Mention the new module.
41570
41571 2009-08-23  Bruno Haible  <bruno@clisp.org>
41572
41573         Tweak the dup2 test.
41574         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41575         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41576         the test file is still empty. Fix argument order of lseek.
41577
41578 2009-08-23  Bruno Haible  <bruno@clisp.org>
41579
41580         Avoid test link errors when the modules getopt-gnu, gettext are used.
41581         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41583
41584 2009-08-23  Bruno Haible  <bruno@clisp.org>
41585
41586         Fix getdtablesize() on mingw.
41587         * lib/getdtablesize.c (getdtablesize): Implement differently.
41588         * lib/unistd.in.h (getdtablesize): Improve comment.
41589
41590 2009-08-23  Bruno Haible  <bruno@clisp.org>
41591
41592         New module 'mkostemp'.
41593         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41594         * lib/stdlib.in.h (mksotemp): New declaration.
41595         * lib/mkostemp.c: New file, from glibc with modifications.
41596         * lib/tempname.h (GT_FILE): Remove outdated comment.
41597         (gen_tempname): Add flags argument.
41598         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41599         (__GT_FILE): Map to 1.
41600         (small_open, large_open): Remove macros.
41601         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41602         * lib/mkstemp.c (mkstemp): Update.
41603         * lib/mkdtemp.c (mkdtemp): Likewise.
41604         * m4/mkostemp.m4: New file.
41605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41606         HAVE_MKOSTEMP.
41607         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41608         HAVE_MKOSTEMP.
41609         * modules/mkostemp: New file, based on modules/mkstemp.
41610         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41611         * NEWS: Mention the change.
41612
41613 2009-08-23  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41616         Reported by Eric Blake.
41617
41618 2009-08-23  Bruno Haible  <bruno@clisp.org>
41619
41620         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41621         Reported by Eric Blake.
41622
41623 2009-08-23  Bruno Haible  <bruno@clisp.org>
41624
41625         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41626         * modules/pipe2 (Depends-on): Likewise.
41627
41628 2009-08-23  Eric Blake  <ebb9@byu.net>
41629
41630         fcntl-h: add O_TTY_INIT support
41631         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41632         * tests/test-fcntl-h.c (o): Test it.
41633         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41634
41635         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41636         * modules/fcntl: Move <fcntl.h> header replacement...
41637         * modules/fcntl-h: ...to new name, so as not to collide with
41638         like-named function.
41639         * tests/test-fcntl.c: Rename...
41640         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41641         * modules/fcntl-tests: Rename...
41642         * modules/fcntl-h-tests: ...to this.  Update test file name.
41643         * modules/chdir-long (Depends-on): Update clients.
41644         * modules/chdir-safer (Depends-on): Likewise.
41645         * modules/fcntl-safer (Depends-on): Likewise.
41646         * modules/fts (Depends-on): Likewise.
41647         * modules/mkancesdirs (Depends-on): Likewise.
41648         * modules/mkdir-p (Depends-on): Likewise.
41649         * modules/open (Depends-on): Likewise.
41650         * modules/savewd (Depends-on): Likewise.
41651         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41652         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41653
41654 2009-08-22  Bruno Haible  <bruno@clisp.org>
41655
41656         * modules/binary-io (License): Relicense under LGPL.
41657         * modules/pipe2 (License): Likewise.
41658
41659 2009-08-22  Bruno Haible  <bruno@clisp.org>
41660
41661         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41662         return value.
41663         * lib/pipe-filter-gi.c (filter_init): Likewise.
41664         Reported by Eric Blake.
41665
41666 2009-08-22  Bruno Haible  <bruno@clisp.org>
41667
41668         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41669         * modules/pipe (Depends-on): Add pipe2.
41670
41671 2009-08-22  Bruno Haible  <bruno@clisp.org>
41672
41673         Tests for module 'pipe2'.
41674         * modules/pipe2-tests: New file.
41675         * tests/test-pipe2.c: New file.
41676
41677         New module 'pipe2'.
41678         * lib/unistd.in.h (pipe2): New declaration.
41679         * lib/pipe2.c: New file.
41680         * m4/pipe2.m4: New file.
41681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41682         HAVE_PIPE2.
41683         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41684         * modules/pipe2: New file.
41685         * doc/glibc-functions/pipe2.texi: Mention the new module.
41686
41687 2009-08-22  Bruno Haible  <bruno@clisp.org>
41688
41689         Reference some new glibc functions.
41690         * doc/glibc-functions/accept4.texi: New file.
41691         * doc/glibc-functions/dup3.texi: New file.
41692         * doc/glibc-functions/mkostemp.texi: New file.
41693         * doc/glibc-functions/pipe2.texi: New file.
41694         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41695         (Glibc sys/socket.h): Refer to accept4.
41696         (Glibc unistd.h): Refer to dup3, pipe2.
41697         Reported by Eric Blake.
41698
41699 2009-08-22  Jim Meyering  <meyering@redhat.com>
41700             Bruno Haible  <bruno@clisp.org>
41701
41702         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41703         This makes it so packages using automake-1.11's silent-rules option
41704         can print e.g., a single "GEN    configmake.h" line, rather than
41705         the 30+ statements that perform the job.  If you want to see the
41706         actual commands, you can still run "make V=1".
41707         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41708         so that make output is abbreviated when those variables are defined
41709         appropriately.
41710         * modules/argz: Likewise.
41711         * modules/arpa_inet: Likewise.
41712         * modules/byteswap: Likewise.
41713         * modules/configmake: Likewise.
41714         * modules/dirent: Likewise.
41715         * modules/errno: Likewise.
41716         * modules/fcntl: Likewise.
41717         * modules/float: Likewise.
41718         * modules/fnmatch: Likewise.
41719         * modules/getopt-posix: Likewise.
41720         * modules/glob: Likewise.
41721         * modules/iconv_open: Likewise.
41722         * modules/inttypes: Likewise.
41723         * modules/localcharset: Likewise.
41724         * modules/locale: Likewise.
41725         * modules/math: Likewise.
41726         * modules/netdb: Likewise.
41727         * modules/netinet_in: Likewise.
41728         * modules/poll: Likewise.
41729         * modules/posix_spawnp-tests: Likewise.
41730         * modules/sched: Likewise.
41731         * modules/search: Likewise.
41732         * modules/selinux-h: Likewise.
41733         * modules/signal: Likewise.
41734         * modules/spawn: Likewise.
41735         * modules/stdarg: Likewise.
41736         * modules/stdbool: Likewise.
41737         * modules/stddef: Likewise.
41738         * modules/stdint: Likewise.
41739         * modules/stdio: Likewise.
41740         * modules/stdlib: Likewise.
41741         * modules/string: Likewise.
41742         * modules/strings: Likewise.
41743         * modules/sys_file: Likewise.
41744         * modules/sys_ioctl: Likewise.
41745         * modules/sys_select: Likewise.
41746         * modules/sys_socket: Likewise.
41747         * modules/sys_stat: Likewise.
41748         * modules/sys_time: Likewise.
41749         * modules/sys_times: Likewise.
41750         * modules/sys_utsname: Likewise.
41751         * modules/sys_wait: Likewise.
41752         * modules/sysexits: Likewise.
41753         * modules/time: Likewise.
41754         * modules/unistd: Likewise.
41755         * modules/wchar: Likewise.
41756         * modules/wctype: Likewise.
41757
41758 2009-08-22  Jim Meyering  <meyering@redhat.com>
41759
41760         announce-gen: detect write failure
41761         * build-aux/announce-gen: Add Coda at end.
41762         Remove equivalent-but-more-verbose block at top.
41763
41764 2009-08-19  Akim Demaille  <demaille@gostai.com>
41765
41766         bootstrap: --help to stdout.
41767         * bootstrap (usage): Don't send --help to stderr.
41768         Use a here doc instead of a long string.
41769
41770 2009-08-21  Eric Blake  <ebb9@byu.net>
41771
41772         test-popen-safer: split from test-popen
41773         * tests/test-popen.c (main): Move...
41774         * tests/test-popen.h: ...into new file.
41775         * tests/test-popen-safer2.c: New file.
41776         * modules/popen-tests (Files): Add test-popen.h.
41777         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41778         Suggested by Bruno Haible.
41779
41780         test-fcntl-safer: split from test-open
41781         * tests/test-open.c (main): Move...
41782         * tests/test-open.h: ...into new file.
41783         * tests/test-fcntl-safer.c: New file.
41784         * modules/open-tests (Files): Add test-open.h.
41785         * modules/fcntl-safer-tests: New file.
41786         Suggested by Bruno Haible.
41787
41788         test-fopen-safer: split from test-fopen
41789         * tests/test-fopen.c (main): Move...
41790         * tests/test-fopen.h: ...into new file.
41791         * tests/test-fopen-safer.c: New file.
41792         * modules/fopen-tests (Files): Add test-fopen.h.
41793         * modules/fopen-safer-tests: New file.
41794         Suggested by Bruno Haible.
41795
41796 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41797
41798         popen-safer: test O_CLOEXEC at run-time.
41799         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41800
41801 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41802
41803         fcntl: move more flags to the header
41804         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41805         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41806         * lib/fcntl.in.h: Do both things here.
41807
41808 2009-08-21  Jim Meyering  <meyering@redhat.com>
41809
41810         consistently remove $@-t before redirecting to it
41811         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41812         * modules/alloca-opt: Likewise.
41813         * modules/byteswap: Likewise.
41814         * modules/fnmatch: Likewise.
41815         * modules/getopt-posix: Likewise.
41816         * modules/glob: Likewise.
41817         * modules/poll: Likewise.
41818         * modules/posix_spawnp-tests: Likewise.
41819         * modules/sys_socket: Likewise.
41820         * modules/sysexits: Likewise.
41821
41822 2009-08-21  Eric Blake  <ebb9@byu.net>
41823
41824         popen: simplify access to original popen
41825         * lib/popen.c (rpl_popen): No need to worry about popen being a
41826         macro.
41827         Reported by Bruno Haible.
41828
41829 2009-08-20  Eric Blake  <ebb9@byu.net>
41830
41831         build: avoid some compiler warnings
41832         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41833         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41834         type.
41835         (new_exclude_segment, excluded_file_pattern_p)
41836         (excluded_file_name_p): Reduce scope.
41837         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41838         old-style declaration.
41839
41840 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41841
41842         * tests/test-exclude1.sh: Handle Windows EOL.
41843         * tests/test-exclude2.sh: Likewise.
41844         * tests/test-exclude3.sh: Likewise.
41845         * tests/test-exclude4.sh: Likewise.
41846         * tests/test-exclude5.sh: Likewise.
41847         * tests/test-exclude6.sh: Likewise.
41848         * tests/test-exclude7.sh: Likewise.
41849
41850 2009-08-19  Akim Demaille  <demaille@gostai.com>
41851
41852         bootstrap: find sha1sum when named gsha1sum.
41853         * bootstrap (find_tool): New.
41854         ($SHA1SUM): New.
41855         Use it.
41856
41857 2009-08-20  Jim Meyering  <meyering@redhat.com>
41858
41859         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41860         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41861         expression that converts "." in a file name to "\." in the resulting
41862         regexp.  Start with a dummy statement, so that prior shell variable
41863         definitions are expanded portably.  Reported by Simon Josefsson.
41864
41865 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41866
41867         Fix polling for writeability of a screen buffer.
41868         * lib/poll.c: Distinguish input and screen buffers for the
41869         Win32 implementation.
41870         * lib/select.c: Likewise.
41871
41872 2009-08-19  Eric Blake  <ebb9@byu.net>
41873
41874         popen-safer: prevent popen from clobbering std descriptors
41875         * modules/popen-safer: New file.
41876         * lib/popen-safer.c: Likewise.
41877         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41878         * lib/stdio--.h (popen): Provide override.
41879         * lib/stdio-safer.h (popen_safer): Provide declaration.
41880         * tests/test-popen.c (includes): Partially test this.
41881         * modules/popen-safer-tests: New file, for more tests.
41882         * tests/test-popen-safer.c: Likewise.
41883         * MODULES.html.sh (file stream based Input/Output): Mention it.
41884
41885         tests: test some of the *-safer modules
41886         * modules/fopen-safer (Depends-on): Add fopen.
41887         * modules/fcntl-safer (Depends-on): Add fcntl.
41888         * modules/stdlib-safer (Depends-on): Add stdlib.
41889         (configure.ac): Set indicator.
41890         * modules/unistd-safer (configure.ac): Likewise.
41891         * modules/tmpfile-safer (configure.ac): Likewise.
41892         (Depends-on): Add tmpfile.
41893         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41894         active.
41895         * tests/test-fopen.c (includes): Test safer versions when they are
41896         in use.
41897         * tests/test-open.c (includes): Likewise.
41898
41899         popen: fix cygwin 1.5 bug when stdin closed
41900         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41901         * modules/popen: New file.
41902         * modules/popen-tests: Likewise.
41903         * tests/test-popen.c: Likewise.
41904         * m4/popen.m4: Likewise.
41905         * lib/popen.c: Likewise.
41906         * lib/stdio.in.h (popen): New declaration.
41907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41908         * modules/stdio (Makefile.am): Likewise.
41909         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41910
41911 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41912
41913         maint.mk: give full control over update-copyright exclusions
41914         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41915         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41916         (update-copyright): Don't force inclusion of top-level
41917         ChangeLog.  Don't force exclusion of all COPYING files, but make
41918         them the default exclusion instead.
41919
41920 2009-08-16  Bruno Haible  <bruno@clisp.org>
41921
41922         Fix test failures on Solaris 10.
41923         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41924         tests when Solaris iconv() is used.
41925         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41926         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41927         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41928         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41929         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41930
41931 2009-08-16  Bruno Haible  <bruno@clisp.org>
41932
41933         Fix test failures on Solaris 10.
41934         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41935         'tr' program and pass it as first argument.
41936         * tests/test-pipe-filter-gi1.sh: Likewise.
41937         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41938         program as first argument.
41939         * tests/test-pipe-filter-gi1.c (main): Likewise.
41940
41941 2009-08-16  Eric Blake  <ebb9@byu.net>
41942
41943         fpurge: fix previous commits
41944         * modules/fpurge (Makefile.am): Make replacement conditional,
41945         partially reverting 2007-04-29 change; missed in previous
41946         attempt.
41947         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41948         is missing.
41949
41950 2009-08-16  Bruno Haible  <bruno@clisp.org>
41951
41952         Clarify fpurge's effect on the file position.
41953         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41954         * tests/test-fpurge.c (main): Make a second pass for checking the file
41955         position.
41956
41957 2009-08-16  Bruno Haible  <bruno@clisp.org>
41958
41959         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41960         declaration of fpurge is missing.
41961         * tests/test-fpurge.c (main): Check that the file has not more contents
41962         than expected. Close the file before removing it.
41963
41964 2009-08-15  Eric Blake  <ebb9@byu.net>
41965
41966         fpurge: don't wrap working cygwin implementation
41967         * lib/fpurge.c (fpurge): Fix comment typo.
41968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41969         1.7 to avoid replacement.
41970         * tests/test-fpurge.c (main): Enhance test.
41971
41972 2009-08-15  Eric Blake  <ebb9@byu.net>
41973         and Jim Meyering  <meyering@redhat.com>
41974
41975         test-update-copyright: skip if perl is insufficient
41976         * tests/test-update-copyright.sh: Failure to run maintainer tool
41977         should not cause testsuite failure on cygwin 1.5.
41978
41979 2009-08-14  Eric Blake  <ebb9@byu.net>
41980
41981         doc: mention more functions added in cygwin 1.7.0
41982         * doc/posix-headers/limits.texi (limits.h): Update for recent
41983         cygwin additions.
41984         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41985         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41986         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41987         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41988         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41989
41990 2009-08-14  Eric Blake  <ebb9@byu.net>
41991
41992         maint.mk: simplify update-copyright rule
41993         * top/maint.mk (update-copyright-local): Delete, and document how
41994         to do it in cfg.mk instead.
41995         (update-copyright-exclude-regexp): Delete, and document how to do
41996         it in .x-update-copyright instead.
41997         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41998         exclude ChangeLog.
41999
42000 2009-08-14  Bruno Haible  <bruno@clisp.org>
42001
42002         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42003
42004 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42005
42006         maint.mk: support update-copyright-env
42007         * top/maint.mk (update-copyright-env): Define place-holder.
42008         (update-copyright): Expand $(update-copyright-env) before
42009         invoking update-copyright.
42010
42011 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42012
42013         update-copyright: implement forced reformatting
42014         * build-aux/update-copyright: Implement and document
42015         UPDATE_COPYRIGHT_FORCE.
42016         * tests/test-update-copyright.sh: Test it.
42017
42018 2009-08-14  Eric Blake  <ebb9@byu.net>
42019         and Bruno Haible  <bruno@clisp.org>
42020
42021         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42022         * tests/test-locale.c: Revert previous patch related to NULL.
42023         * tests/test-stdio.c: Likewise.
42024         * tests/test-stdlib.c: Likewise.
42025         * tests/test-string.c: Likewise.
42026         * tests/test-unistd.c: Likewise.
42027         * modules/time-tests (Depends-on): Add verify.
42028         * modules/wchar-tests (Depends-on): Likewise.
42029         * tests/test-time.c: Test for NULL compliance.
42030         * tests/test-wchar.c: Likewise.
42031         * modules/locale (Depends-on): Add stddef.
42032         * modules/stdio (Depends-on): Likewise.
42033         * modules/stdlib (Depends-on): Likewise.
42034         * modules/string (Depends-on): Likewise.
42035         * modules/time (Depends-on): Likewise.
42036         * modules/unistd (Depends-on): Likewise.
42037         * modules/wchar (Depends-on): Likewise.
42038         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42039         * lib/stdlib.in.h (includes): Likewise.
42040         * lib/string.in.h (includes): Likewise.
42041         * lib/time.in.h (includes): Likewise.
42042         * lib/unistd.in.h (includes): Likewise.
42043         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42044         replaced.
42045         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42046         * m4/stddef_h.m4: New file.
42047         * modules/stddef: Likewise.
42048         * lib/stddef.in.h: Likewise.
42049         * modules/stddef-tests: Likewise.
42050         * tests/test-stddef.c: Likewise.
42051         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42052         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42053         * doc/posix-headers/locale.texi (locale.h): Likewise.
42054         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42055         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42056         * doc/posix-headers/string.texi (string.h): Likewise.
42057         * doc/posix-headers/time.texi (time.h): Likewise.
42058         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42059         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42060
42061 2009-08-14  Eric Blake  <ebb9@byu.net>
42062
42063         doc: improve git diff of texinfo files
42064         * .gitattributes: Add rule for *.texi files, with hint on how to
42065         use it.
42066         Copied from m4, and based on a report by Bruno Haible.
42067
42068 2009-08-14  Bruno Haible  <bruno@clisp.org>
42069
42070         Disable multithread support by default on Cygwin 1.5.x for real.
42071         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42072
42073 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42074
42075         update-copyright: much ado about intervals
42076         * build-aux/update-copyright: Implement and document
42077         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42078         of copyright year intervals.
42079         Also, document UPDATE_COPYRIGHT_YEAR.
42080         * tests/test-update-copyright.sh: Test it.
42081
42082         update-copyright: convert 2-digit to 4-digit years
42083         * build-aux/update-copyright: Implement and document.
42084         * tests/test-update-copyright.sh: Update.
42085
42086 2009-08-14  Jim Meyering  <meyering@redhat.com>
42087
42088         test-exclude: avoid coreutils "make check" failure
42089         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42090         just as in test-argmatch.c.
42091
42092 2009-08-13  Eric Blake  <ebb9@byu.net>
42093
42094         test-dup2: fix bad assumption
42095         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42096         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42097
42098         test-version-etc: fix CRLF portability issue
42099         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42100         recognize \r.
42101         * tests/test-argp-version-etc-1.sh: Likewise.
42102
42103         getopt: update client modules
42104         * modules/argp (Depends-on): Use getopt-gnu.
42105         * modules/git-merge-changelog (Depends-on): Likewise.
42106         * modules/long-options (Depends-on): Likewise.
42107         * modules/xstrtol (Depends-on): Likewise.
42108
42109 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42110
42111         * tests/test-version-etc.sh: Don't fail on different
42112         project/version.  Don't fail on CRLF differences.  Rewrite to use
42113         multiple -e instead of multiple sed forks, suggested by Eric Blake
42114         <ebb9@byu.net>.
42115         * tests/test-argp-version-etc-1.sh: Likewise.
42116
42117 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42118
42119         * tests/test-version-etc.sh: Don't fail on different
42120         project/version.
42121
42122 2009-08-12  Bruno Haible  <bruno@clisp.org>
42123
42124         Tests for modules 'getopt-posix', 'getopt-gnu'.
42125         * modules/getopt-posix-tests: New file.
42126         * tests/test-getopt.c: New file.
42127         * tests/test-getopt.h: New file.
42128         * tests/test-getopt_long.h: New file.
42129
42130         New modules 'getopt-posix', 'getopt-gnu'.
42131         * modules/getopt-gnu: New file, renamed from modules/getopt.
42132         * modules/getopt-posix: New file.
42133         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42134         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42135         (gl_GETOPT): Remove macro.
42136         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42137         Disable the test against BSD systems that declare optreset. Test
42138         against mingw bug. Test against lack of support of optional arguments
42139         on many platforms.
42140         * doc/glibc-headers/getopt.texi: Update module name and list of
42141         relevant platforms.
42142         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42143         'getopt-gnu' and more portability problems.
42144         * NEWS: Mention the changes.
42145
42146 2009-08-12  Bruno Haible  <bruno@clisp.org>
42147
42148         Ensure that optarg etc. get declared by <unistd.h>.
42149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42150         AC_USE_SYSTEM_EXTENSIONS.
42151         * modules/getopt (Depends-on): Add 'extensions'.
42152
42153 2009-08-12  Bruno Haible  <bruno@clisp.org>
42154
42155         Avoid test link errors.
42156         * modules/pipe-filter-ii-tests (Makefile.am): Define
42157         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42158         * modules/pipe-filter-gi-tests (Makefile.am): Define
42159         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42161
42162 2009-08-12  Bruno Haible  <bruno@clisp.org>
42163
42164         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42165         gl_GETOPT_SUBSTITUTE before.
42166         (gl_GETOPT): Use it.
42167         * m4/argp.m4 (gl_ARGP): Update.
42168         Reported by Sergey Poznyakoff.
42169
42170         * m4/getopt.m4: Reorder macros.
42171         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42172         (gl_GETOPT_SUBSTITUTE): Remove macro.
42173
42174 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42175
42176         Minor improvement in gitlog-to-changelog
42177
42178         * build-aux/gitlog-to-changelog: New option `--format' makes
42179         output format string configurable.
42180
42181 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42182
42183         Optimize exclude: use hash tables for non-wildcard patterns.
42184
42185         * lib/exclude.c: Include hash.h and mbuiter.h
42186         (struct exclude_pattern, exclude_segment): New data types.
42187         (struct exclude): Rewrite.
42188         (fnmatch_pattern_has_wildcards): New function.
42189         (new_exclude_segment, free_exclude_segment): New functions.
42190         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42191         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42192         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42193         * modules/exclude: Depend on hash and mbuiter.
42194
42195         * modules/exclude-tests: New file.
42196         * tests/test-exclude.c: New file.
42197         * tests/test-exclude1.sh: New file.
42198         * tests/test-exclude2.sh: New file.
42199         * tests/test-exclude3.sh: New file.
42200         * tests/test-exclude4.sh: New file.
42201         * tests/test-exclude5.sh: New file.
42202         * tests/test-exclude6.sh: New file.
42203         * tests/test-exclude7.sh: New file.
42204
42205 2009-08-12  Bruno Haible  <bruno@clisp.org>
42206
42207         Ensure that getopt() gets declared by <unistd.h>.
42208         * lib/unistd.in.h: Conditionally include getopt.h.
42209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42210         Set GNULIB_UNISTD_H_GETOPT.
42211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42212         GNULIB_UNISTD_H_GETOPT.
42213         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42214
42215 2009-08-12  Bruno Haible  <bruno@clisp.org>
42216
42217         Clarify logic.
42218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42219         gl_replace_getopt instead of GETOPT_H.
42220
42221 2009-08-12  Bruno Haible  <bruno@clisp.org>
42222
42223         * m4/getopt.m4: Add comments.
42224
42225 2009-08-12  Bruno Haible  <bruno@clisp.org>
42226
42227         Disable multithread support by default on Cygwin 1.5.x.
42228         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42229         set gl_use_threads=no if not specified otherwise.
42230
42231 2009-08-11  Bruno Haible  <bruno@clisp.org>
42232
42233         Avoid compilation error on NetBSD 5.0.
42234         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42235         * tests/test-stdio.c: Likewise.
42236         * tests/test-stdlib.c: Likewise.
42237         * tests/test-string.c: Likewise.
42238         * tests/test-unistd.c: Likewise.
42239         Reported by Greg Troxel <gdt@ir.bbn.com>
42240         at <https://savannah.gnu.org/support/?106973>.
42241
42242 2009-08-11  Bruno Haible  <bruno@clisp.org>
42243
42244         * modules/dup2-tests (Depends-on): Remove close.
42245
42246         Undo 2009-07-19 commit.
42247         * modules/acl-tests (Depends-on): Remove close.
42248         * modules/binary-io-tests (Depends-on): Likewise.
42249         * modules/closein-tests (Depends-on): Likewise.
42250         * modules/flock-tests (Depends-on): Likewise.
42251         * modules/fsync-tests (Depends-on): Likewise.
42252         * modules/lseek-tests (Depends-on): Likewise.
42253         * modules/pipe-tests (Depends-on): Likewise.
42254         * modules/posix_spawn-tests (Depends-on): Likewise.
42255         * modules/posix_spawnp-tests (Depends-on): Likewise.
42256         * modules/stat-time-tests (Depends-on): Likewise.
42257         * modules/yesno-tests (Depends-on): Likewise.
42258
42259 2009-08-10  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42262
42263 2009-08-10  Bruno Haible  <bruno@clisp.org>
42264
42265         Fix a gcc warning.
42266         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42267
42268 2009-08-10  Bruno Haible  <bruno@clisp.org>
42269
42270         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42271         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42272         not only the first time.
42273         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42274         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42275         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42276         is 1, not only the the first time.
42277
42278 2009-08-10  Bruno Haible  <bruno@clisp.org>
42279
42280         Make it possible to use module 'gethostname' without module 'close'.
42281         * lib/unistd.in.h (close): Evoke a link error only if
42282         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42284         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42285         * modules/unistd (Makefile.am): Substitute
42286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42287         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42288         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42289         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42290         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42291         * modules/sys_ioctl (Makefile.am): Substitute
42292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42293         * modules/socket (configure.ac): On native Windows, set
42294         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42295         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42296         Reported by Sam Steingold <sds@gnu.org>.
42297
42298 2009-08-10  Bruno Haible  <bruno@clisp.org>
42299
42300         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42301         * modules/ioctl (configure.ac): Likewise.
42302
42303 2009-08-10  Bruno Haible  <bruno@clisp.org>
42304
42305         Avoid collision between gnulib wrapper and libintl wrapper.
42306         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42307         already defined in intl/printf.c.
42308         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42309         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42310
42311 2009-08-09  Bruno Haible  <bruno@clisp.org>
42312
42313         Make <sys/select.h> really self-contained, also on Solaris 10.
42314         * lib/sys_select.in.h: Include <string.h>.
42315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42316         Solaris 10 problem.
42317         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42318         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42319         Reported by Jim Meyering.
42320
42321 2009-08-09  Bruno Haible  <bruno@clisp.org>
42322
42323         Avoid warnings from 'aclocal' that are due to a use of macro name
42324         AM_XGETTEXT_OPTION that is not defined in automake.
42325         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42326         automake.
42327         * modules/error (configure.ac): Likewise.
42328         * modules/propername (configure.ac): Likewise.
42329         * modules/vasprintf (configure.ac): Likewise.
42330         * modules/verror (configure.ac): Likewise.
42331         * modules/xprintf (configure.ac): Likewise.
42332         * modules/xvasprintf (configure.ac): Likewise.
42333
42334 2009-08-08  Bruno Haible  <bruno@clisp.org>
42335
42336         Avoid compilation error in C++ mode.
42337         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42338         Reported by Sam Steingold <sds@gnu.org>.
42339
42340 2009-08-08  Bruno Haible  <bruno@clisp.org>
42341
42342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42343         for the various Unix platforms.
42344         * doc/posix-headers/limits.texi: Update platforms list regarding
42345         HOST_NAME_MAX.
42346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42347
42348 2009-08-07  Jim Meyering  <meyering@redhat.com>
42349
42350         selinux-at: fix typo in a comment
42351         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42352         Spotted by Paolo Bonzini.
42353
42354         selinux-at: remove redundant m4 code, add documentation
42355         * modules/selinux-at (configure.ac): Remove redundant code.
42356         LIB_SELINUX is already set via the dependent module, selinux-h.
42357         (Include): Add quotes around selinux-at.h.
42358         * lib/selinux-at.h: Add documentation.
42359         Reported by Bruno Haible in
42360         http://marc.info/?l=gnulib-bug&m=124958988300749
42361
42362 2009-08-07  Bruno Haible  <bruno@clisp.org>
42363
42364         Avoid link error on MacOS X 10.3 and 10.4.
42365         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42366         on non-ELF systems.
42367         * lib/argp-pv.c (argp_program_version): Likewise.
42368         Reported by Simon Josefsson.
42369
42370 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42371
42372         * tests/test-version-etc.sh: Use $EXEEXT.
42373
42374 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42375
42376         update-copyright: update documentation to point to maint.mk
42377         * build-aux/update-copyright: Here.
42378
42379 2009-08-06  Jim Meyering  <meyering@redhat.com>
42380
42381         maint.mk: support update-copyright-local
42382         * top/maint.mk (update-copyright-local): Define place-holder.
42383         (update-copyright): Depend on $(update-copyright-local).
42384
42385 2009-08-06  Jim Meyering  <meyering@redhat.com>
42386
42387         selinux-at: new module
42388         Initially written for coreutils, this module will soon be
42389         used by findutils, too.
42390         * MODULES.html.sh [Misc]: Add selinux-at.
42391         * lib/selinux-at.h: New file, from coreutils.
42392         * lib/selinux-at.c: Likewise.
42393         * modules/selinux-at: Likewise.
42394         (License): Change from LGPL to GPL, since it depends
42395         on the GPL'd openat module.
42396
42397         doc: update README
42398         * README: Remove references to cogito.
42399         Remove cvs-repo-updating instructions from 2007.
42400         Don't imply that CVS is better if you have limited disk space.
42401
42402 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42403
42404         update-copyright: support C-style comments
42405         * build-aux/update-copyright: Implement and document.
42406         * tests/test-update-copyright.sh: Test.
42407
42408 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42409
42410         update-copyright: support omitted "(C)"
42411         * build-aux/update-copyright: Implement and document.  Also,
42412         allow variable whitespace before "(C)".
42413         * tests/test-update-copyright.sh: Test.
42414
42415 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42416
42417         update-copyright: don't trip on non-FSF copyright statements
42418         * build-aux/update-copyright: Fix so that the first correctly
42419         formatted FSF copyright statement is recognized no matter what
42420         appears before it.  Update documentation.
42421         * tests/test-update-copyright.sh: Test that.
42422
42423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42424
42425         update-copyright: clean up code a little
42426         * build-aux/update-copyright: Append "_re" to the name of any
42427         variable holding a regular expression.
42428         Replace "old" and "new" with "stmt" in variable names.
42429         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42430         handled correctly.
42431         Format code more consistently.
42432
42433 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42434
42435         update-copyright-tests: improve portability
42436         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42437         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42438
42439 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42440
42441         update-copyright: support @copyright{} and &copy;
42442         * build-aux/update-copyright: Implement and document.
42443         * tests/test-update-copyright.sh: Test.
42444
42445 2009-08-04  Jim Meyering  <meyering@redhat.com>
42446
42447         update-copyright-tests: correctly test EOL=\r\n handling
42448         * tests/test-update-copyright.sh: Put \r at the end of some lines
42449         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42450
42451         maint.mk: make update-copyright exclusion list more configurable
42452         * top/maint.mk (update-copyright): Default to excluding COPYING,
42453         but allow an override, in case someone does want to update that file.
42454
42455         maint.mk: don't update copyright date in COPYING
42456         * top/maint.mk (update-copyright): Exclude COPYING.
42457
42458         maint.mk: add a copyright-updating rule
42459         * top/maint.mk (update-copyright): New rule.
42460         Derived from coreutils/Makefile.am.
42461
42462         update-copyright: rename some variables
42463         * build-aux/update-copyright: Rename a few variables for clarity.
42464         Tweak syntax.  List Joel E. Denny as coauthor.
42465
42466 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42467
42468         update-copyright: fix bug for 2-digit last year and add tests
42469         * build-aux/update-copyright: Fix bug.
42470         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42471         specified.
42472         * modules/update-copyright-tests: New
42473         * tests/test-update-copyright.sh: New.
42474
42475 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42476
42477         update-copyright: handle leading tabs in line prefix
42478         * build-aux/update-copyright: Count leading tabs as 8 spaces
42479         when computing margin.  This helps with the formatting of
42480         ChangeLogs, for example.
42481         Fix documentation a little.
42482
42483 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42484
42485         update-copyright: support EOL=\r\n
42486         * build-aux/update-copyright: Implement that.
42487
42488 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42489
42490         update-copyright: automatically format copyright statements
42491         * build-aux/update-copyright: Implement that.
42492         Also, be a little more predictable and safer by always failing
42493         when the full copyright format is not perfectly recognized as an
42494         unbroken whole.  Discussed at
42495         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42496         Rewrite documentation.
42497
42498 2009-08-03  Bruno Haible  <bruno@clisp.org>
42499
42500         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42501
42502 2009-08-02  Bruno Haible  <bruno@clisp.org>
42503
42504         Tests for module 'uname'.
42505         * modules/uname-tests: New file.
42506         * tests/test-uname.c: New file.
42507
42508         New module 'uname'.
42509         * lib/uname.c: New file.
42510         * m4/uname.m4: New file.
42511         * modules/uname: New file.
42512         * doc/posix-functions/uname.texi: Mention the new module.
42513
42514 2009-08-02  Bruno Haible  <bruno@clisp.org>
42515
42516         Tests for module 'sys_utsname'.
42517         * modules/sys_utsname-tests: New file.
42518         * tests/test-sys_utsname.c: New file.
42519
42520         New module 'sys_utsname'.
42521         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42522         * m4/sys_utsname_h.m4: New file.
42523         * modules/sys_utsname: New file.
42524         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42525
42526 2009-08-02  Bruno Haible  <bruno@clisp.org>
42527
42528         Implicitly initialize the sockets library.
42529         * lib/gethostname.c: Include sockets.h.
42530         (rpl_gethostname): Invoke gl_sockets_startup.
42531         * lib/socket.c: Include sockets.h.
42532         (rpl_socket): Invoke gl_sockets_startup.
42533         * modules/gethostname (Depends-on): Add sockets.
42534         * modules/socket (Depends-on): Likewise.
42535         * tests/test-poll.c: Don't include sockets.h.
42536         (main): Don't invoke gl_sockets_startup.
42537         * tests/test-select.c: Don't include sockets.h.
42538         (main): Don't invoke gl_sockets_startup.
42539
42540 2009-08-02  Bruno Haible  <bruno@clisp.org>
42541
42542         Allow multiple calls to gl_sockets_startup.
42543         * lib/sockets.c (initialized_sockets_version): New variable.
42544         (gl_sockets_startup): Do nothing if already called for this or a higher
42545         version.
42546         (gl_sockets_cleanup): Reset initialized_sockets_version.
42547
42548 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42549
42550         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42551         different project/version.
42552
42553 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42554             Bruno Haible  <bruno@clisp.org>
42555
42556         Tests for module 'pipe-filter-gi'.
42557         * modules/pipe-filter-gi-tests: New file.
42558         * tests/test-pipe-filter-gi1.sh: New file.
42559         * tests/test-pipe-filter-gi1.c: New file.
42560         * tests/test-pipe-filter-gi2.sh: New file.
42561         * tests/test-pipe-filter-gi2-main.c: New file.
42562         * tests/test-pipe-filter-gi2-child.c: New file.
42563
42564         New module 'pipe-filter-gi'.
42565         * lib/pipe-filter-gi.c: New file.
42566         * modules/pipe-filter-gi: New file.
42567
42568 2009-08-02  Bruno Haible  <bruno@clisp.org>
42569             Paolo Bonzini  <bonzini@gnu.org>
42570
42571         Tests for module 'pipe-filter-ii'.
42572         * modules/pipe-filter-ii-tests: New file.
42573         * tests/test-pipe-filter-ii1.sh: New file.
42574         * tests/test-pipe-filter-ii1.c: New file.
42575         * tests/test-pipe-filter-ii2.sh: New file.
42576         * tests/test-pipe-filter-ii2-main.c: New file.
42577         * tests/test-pipe-filter-ii2-child.c: New file.
42578
42579         New module 'pipe-filter-ii'.
42580         * lib/pipe-filter.h: New file.
42581         * lib/pipe-filter-ii.c: New file.
42582         * lib/pipe-filter-aux.h: New file.
42583         * modules/pipe-filter-ii: New file.
42584
42585 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42586
42587         * lib/gc-libgcrypt.c: Change copyright to FSF.
42588         * lib/gc-gnulib.c: Likewise.
42589
42590 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42591
42592         * lib/gethostname.c: Include limits.h.
42593
42594 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42595             Bruno Haible  <bruno@clisp.org>
42596
42597         Ensure HOST_NAME_MAX as part of the gethostname module.
42598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42599         define also HOST_NAME_MAX.
42600         * tests/test-gethostname.c: Include <limits.h>.
42601         (main): Check also HOST_NAME_MAX.
42602         * doc/posix-headers/limits.texi: Document the mingw problem.
42603
42604 2009-08-02  Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42607         Add comments.
42608
42609 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42610
42611         * lib/gethostname.c: Add Windows wrapper.
42612         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42613         * modules/gethostname: Depend on sys_socket & errno, for also
42614         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42615         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42616
42617 2009-07-31  Jim Meyering  <meyering@redhat.com>
42618
42619         getloadavg: fix symbol name in comment
42620         * lib/getloadavg.c: Correct a typo I introduced when adding
42621         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42622         Matt Kraai spotted the problem.
42623
42624 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42625
42626         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42627         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42628         code also if ! defined N_NAME_POINTER.
42629         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42630         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42631         but the n_name member is a 12-byte array.
42632
42633 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42634
42635         update-copyright: generalize comment handling
42636         * build-aux/update-copyright: Handle copyright statements
42637         within more comment styles.
42638         Document usage.
42639         Report any file with an external copyright holder or parse failure.
42640
42641 2009-07-29  Jim Meyering  <meyering@redhat.com>
42642
42643         mktime: correct setting of REPLACE_MKTIME
42644         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42645
42646         update-copyright: new module
42647         * modules/update-copyright: New file.
42648         * build-aux/update-copyright: New file.
42649         * MODULES.html.sh (maint+release support): Add update-copyright.
42650
42651 2009-07-27  Bruno Haible  <bruno@clisp.org>
42652
42653         Fix compilation error when <ctime> is used and mktime is replaced.
42654         * lib/time.in.h (mktime): New declaration.
42655         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42656         REPLACE_MKTIME instead of defining mktime in config.h.
42657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42658         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42659         Reported by Ross McFarland <rwmcfa1@neces.com>.
42660
42661 2009-07-27  Bruno Haible  <bruno@clisp.org>
42662
42663         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42664         Reported by Matt Kraai <mkraai@beckman.com>.
42665
42666 2009-07-25  Jim Meyering  <meyering@redhat.com>
42667
42668         maint.mk: avoid warnings about missing files
42669         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42670         diagnostic when .prev-version does not exist.
42671         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42672         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42673         nonexistent cfg.mk.
42674         Suggestions from Simon Josefsson.
42675
42676 2009-07-25  Bruno Haible  <bruno@clisp.org>
42677
42678         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42679         defined as macros. Needed on QNX 6.4.1.
42680         Reported by Matt Kraai <mkraai@beckman.com>.
42681
42682 2009-07-23  Jim Meyering  <meyering@redhat.com>
42683
42684         maint.mk: invoke "make dist" with a working value of XZ_OPT
42685         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42686
42687 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42688
42689         Make fseeko.c compile on QNX.
42690         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42691
42692 2009-07-22  Peter Simons  <simons@cryp.to>
42693
42694         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42695         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42696         * lib/md4.h: Likewise.
42697         * lib/md5.h: Likewise.
42698         * lib/sha1.h: Likewise.
42699         * lib/sha256.h: Likewise.
42700         * lib/sha512.h: Likewise.
42701
42702         tests-sha1: don't assign literal string to 'char *' variable
42703         * tests/test-sha1.c (main): Declare locals with "const" to match
42704         attributes of the right hand side.
42705
42706 2009-07-21  Eric Blake  <ebb9@byu.net>
42707
42708         dup2: fix more mingw problems
42709         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42710         fd to itself.
42711         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42712         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42713         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42714         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42715         care of mingw bugs.
42716
42717 2009-07-21  Jim Meyering  <meyering@redhat.com>
42718
42719         vc-list-files: avoid failure when /bin/sh is dash
42720         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42721         On some Debian based systems, /bin/sh is a symlink to dash, and running
42722         this command would omit the "/" following each 'tests' prefix:
42723           dash -x build-aux/vc-list-files -C . tests
42724         That is because bash and dash work differently:
42725           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42726           bash ok
42727           dash odd
42728
42729 2009-07-21  Eric Blake  <ebb9@byu.net>
42730
42731         dup2-tests: test previous patch
42732         * modules/dup2-tests: New file.
42733         * tests/test-dup2.c: Likewise.
42734         * tests/test-open.c (main): Avoid unspecified behavior.
42735         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42736         test.
42737
42738         dup2: work around mingw and cygwin 1.5 bug
42739         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42741         * modules/unistd (Makefile.am): Substitute it.
42742         * lib/unistd.in.h (dup2): Declare the replacement.
42743         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42744         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42745         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42746         * modules/execute (Depends-on): Add dup2.
42747         * modules/fseterr (Depends-on): Likewise.
42748         * modules/pipe (Depends-on): Likewise.
42749         * modules/posix_spawn-internal (Depends-on): Likewise.
42750
42751 2009-07-21  Bruno Haible  <bruno@clisp.org>
42752
42753         * modules/.gitattributes: New file.
42754
42755 2009-07-20  Bruno Haible  <bruno@clisp.org>
42756
42757         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42758         (main): Use it.
42759
42760 2009-07-20  Eric Blake  <ebb9@byu.net>
42761
42762         test-pipe: make a bit more robust.
42763         * tests/test-pipe.c (myerr): Allow error messages regardless of
42764         what we do to stderr.
42765         (test_pipe): Rearrange to avoid deadlock.
42766         (child_main): Try a larger read, to ensure we avoided deadlock.
42767         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42768         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42769         if misused.
42770
42771 2009-07-19  Jim Meyering  <meyering@redhat.com>
42772
42773         fts: avoid false-positive cycle-detection
42774         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42775         for each new command line argument.
42776
42777 2009-07-19  Bruno Haible  <bruno@clisp.org>
42778
42779         Fix build error on mingw with the modules sys_select and unistd.
42780         * modules/acl-tests (Depends-on): Add close.
42781         * modules/binary-io-tests (Depends-on): Likewise.
42782         * modules/closein-tests (Depends-on): Likewise.
42783         * modules/flock-tests (Depends-on): Likewise.
42784         * modules/fsync-tests (Depends-on): Likewise.
42785         * modules/lseek-tests (Depends-on): Likewise.
42786         * modules/pipe-tests (Depends-on): Likewise.
42787         * modules/posix_spawn-tests (Depends-on): Likewise.
42788         * modules/posix_spawnp-tests (Depends-on): Likewise.
42789         * modules/stat-time-tests (Depends-on): Likewise.
42790         * modules/yesno-tests (Depends-on): Likewise.
42791
42792 2009-07-19  Bruno Haible  <bruno@clisp.org>
42793
42794         Unify conditionals.
42795         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42796         macros, not at the compiler macros.
42797         * lib/pipe.c: Likewise.
42798         * lib/execute.c: Likewise.
42799         * lib/spawni.c: Likewise.
42800
42801 2009-07-19  Bruno Haible  <bruno@clisp.org>
42802
42803         Fix handling of closed stdin/stdout/stderr on mingw.
42804         * lib/w32spawn.h: Include unistd.h.
42805         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42806         file descriptor with O_NOINHERIT flag.
42807         (fd_safer_noinherit): New function, based on fd-safer.c.
42808         (dup_safer_noinherit): New function, based on dup-safer.c.
42809         (undup_safer_noinherit): New function.
42810         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42811         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42812         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42813         instead of fd_safer.
42814         * tests/test-pipe.c: Include <windows.h>.
42815         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42816         result.
42817
42818         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42819         from main.
42820         (test_pipe): Pass an extra argument for disambiguation.
42821         (main): Invoke parent_main or child_main.
42822
42823         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42824         consistently.
42825
42826 2009-07-18  Eric Blake  <ebb9@byu.net>
42827
42828         test-pipe: fix mingw build
42829         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42830
42831 2009-07-18  Bruno Haible  <bruno@clisp.org>
42832
42833         * modules/pipe-tests (Makefile.am): Fix typo.
42834
42835 2009-07-18  Eric Blake  <ebb9@byu.net>
42836
42837         error: fix mingw build
42838         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42839         Reported by Bruno Haible.
42840
42841         error: avoid undefined use of stdout
42842         * lib/error.c (error, error_at_line): Check that fd 1 is open
42843         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42844         is handling faults and the close_stdout module wants to report the
42845         detection of closed stdout as an error.
42846
42847 2009-07-17  Eric Blake  <ebb9@byu.net>
42848
42849         pipe: be robust in face of closed fds
42850         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42851         should cause child to misbehave.
42852         * modules/pipe-tests: New module.
42853         * tests/test-pipe.c: New file.
42854         * tests/test-pipe.sh: New file.
42855         Reported by Akim Demaille.
42856
42857 2009-07-14  Bruno Haible  <bruno@clisp.org>
42858
42859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42860         Reported by anonymous kc.
42861
42862 2009-07-07  Jim Meyering  <meyering@redhat.com>
42863
42864         maint.mk: don't look for translatable strings in *.m4 or *.mk
42865         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42866         when searching for translatable strings.
42867
42868 2009-07-05  Jim Meyering  <meyering@redhat.com>
42869
42870         remove superfluous parentheses in STREQ definition
42871         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42872         * lib/getugroups.c (STREQ): Likewise.
42873         * lib/fnmatch.c (STREQ): Likewise.
42874         Spotted by Bruno Haible.
42875
42876 2009-07-04  Jim Meyering  <meyering@redhat.com>
42877
42878         argv-iter: new module
42879         * MODULES.html.sh: Add argv-iter.
42880         * lib/argv-iter.c, lib/argv-iter.h: New files.
42881         * modules/argv-iter: New file.
42882         * modules/argv-iter-tests: New file.
42883         * tests/test-argv-iter.c: Test it.
42884
42885 2009-07-04  Bruno Haible  <bruno@clisp.org>
42886
42887         Fix assertion.
42888         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42889         contains more exact copies of a given entry than file2, leave the extra
42890         copies unpaired rather than aborting.
42891         Reported by Eric Blake.
42892
42893 2009-07-02  Bruno Haible  <bruno@clisp.org>
42894
42895         Speedup git-merge-changelog for git cherry-pick.
42896         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42897         (entries_mapping_get): New function, extracted from compute_mapping.
42898         (entries_mapping_reverse_get): New function.
42899         (compute_mapping): Add a 'full' argument. Return the result in a
42900         'struct entries_mapping'.
42901         (main): Update. Access the mappings through entries_mapping_get.
42902         Reported by Eric Blake.
42903
42904 2009-07-02  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42907         best_i.
42908
42909 2009-07-02  Bruno Haible  <bruno@clisp.org>
42910
42911         Speed up approximate search for matching ChangeLog entries.
42912         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42913         argument. Call fstrcmp_bounded instead of fstrcmp.
42914         (compute_mapping, try_split_merged_entry, main): Update callers.
42915
42916 2009-07-02  Bruno Haible  <bruno@clisp.org>
42917
42918         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42919
42920 2009-06-30  Bruno Haible  <bruno@clisp.org>
42921
42922         Reduce the number of uc_is_cased calls.
42923         * lib/unicase.h (casing_suffix_context_t): Add
42924         'first_char_except_ignorable' field.
42925         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42926         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42927         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42928         Update initializer.
42929         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42930         case-ignorable characters.
42931         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42932         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42933         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42934         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42935         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42936
42937 2009-06-30  Bruno Haible  <bruno@clisp.org>
42938
42939         Tests for module 'unicase/ignorable'.
42940         * modules/unicase/ignorable-tests: New file.
42941         * tests/unicase/test-ignorable.c: New file, generated by
42942         gen-uni-tables.
42943
42944         Tests for module 'unicase/cased'.
42945         * modules/unicase/cased-tests: New file.
42946         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42947         * tests/unicase/test-predicate-part1.h: New file, derived from
42948         tests/unictype/test-predicate-part1.h.
42949         * tests/unicase/test-predicate-part2.h: New file, same as
42950         tests/unictype/test-predicate-part2.h.
42951
42952         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42953         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42954         (output_casing_properties): New function.
42955         (main): Call it.
42956         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42957         * lib/unicase/cased.c: Include unictype/bitmap.h.
42958         (uc_is_cased): Define through a bitmap lookup.
42959         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42960         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42961         (uc_is_case_ignorable): Define through a bitmap lookup.
42962         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42963         lib/unictype/bitmap.h.
42964         (Depends-on): Add inline. Clean up.
42965         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42966         lib/unictype/bitmap.h.
42967         (Depends-on): Add inline. Clean up.
42968         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42969         recognition.
42970         * tests/unicase/test-u16-tolower.c (main): Likewise.
42971         * tests/unicase/test-u32-tolower.c (main): Likewise.
42972
42973 2009-06-30  Bruno Haible  <bruno@clisp.org>
42974
42975         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42976         * lib/unicase/u16-casemap.c: Likewise.
42977         * lib/unicase/u32-casemap.c: Likewise.
42978
42979 2009-06-29  Bruno Haible  <bruno@clisp.org>
42980
42981         Define u32_casefold as a wrapper around u32_ct_casefold.
42982         * lib/unicase/u32-casefold.c: Update.
42983         * modules/unicase/u32-casefold (Depends-on): Add
42984         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42985         unicase/empty-suffix-context. Clean up.
42986
42987         Define u16_casefold as a wrapper around u16_ct_casefold.
42988         * lib/unicase/u16-casefold.c: Update.
42989         * modules/unicase/u16-casefold (Depends-on): Add
42990         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42991         unicase/empty-suffix-context. Clean up.
42992
42993         Define u8_casefold as a wrapper around u8_ct_casefold.
42994         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42995         * lib/unicase/u8-casefold.c: Update.
42996         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42997         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42998
42999         Define u32_totitle as a wrapper around u32_ct_totitle.
43000         * lib/unicase/u32-totitle.c: Update.
43001         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43003
43004         Define u16_totitle as a wrapper around u16_ct_totitle.
43005         * lib/unicase/u16-totitle.c: Update.
43006         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43007         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43008
43009         Define u8_totitle as a wrapper around u8_ct_totitle.
43010         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43011         functions.
43012         (FUNC): Delegate to U_CT_TOTITLE.
43013         * lib/unicase/u8-totitle.c: Update.
43014         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43015         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43016
43017         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43018         invocation.
43019         * modules/unicase/u32-tolower (Depends-on): Add
43020         unicase/empty-prefix-context, unicase/empty-suffix-context.
43021
43022         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43023         invocation.
43024         * modules/unicase/u16-tolower (Depends-on): Add
43025         unicase/empty-prefix-context, unicase/empty-suffix-context.
43026
43027         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43028         * modules/unicase/u8-tolower (Depends-on): Add
43029         unicase/empty-prefix-context, unicase/empty-suffix-context.
43030
43031         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43032         invocation.
43033         * modules/unicase/u32-toupper (Depends-on): Add
43034         unicase/empty-prefix-context, unicase/empty-suffix-context.
43035
43036         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43037         invocation.
43038         * modules/unicase/u16-toupper (Depends-on): Add
43039         unicase/empty-prefix-context, unicase/empty-suffix-context.
43040
43041         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43042         * modules/unicase/u8-toupper (Depends-on): Add
43043         unicase/empty-prefix-context, unicase/empty-suffix-context.
43044
43045         New module 'unicase/u32-ct-casefold'.
43046         * lib/unicase/u32-ct-casefold.c: New file.
43047         * modules/unicase/u32-ct-casefold: New file.
43048
43049         New module 'unicase/u16-ct-casefold'.
43050         * lib/unicase/u16-ct-casefold.c: New file.
43051         * modules/unicase/u16-ct-casefold: New file.
43052
43053         New module 'unicase/u8-ct-casefold'.
43054         * lib/unicase/u8-ct-casefold.c: New file.
43055         * lib/unicase/u-ct-casefold.h: New file, derived from
43056         lib/unicase/u-casefold.h.
43057         * modules/unicase/u8-ct-casefold: New file.
43058
43059         New module 'unicase/u32-ct-totitle'.
43060         * lib/unicase/u32-ct-totitle.c: New file.
43061         * modules/unicase/u32-ct-totitle: New file.
43062
43063         New module 'unicase/u16-ct-totitle'.
43064         * lib/unicase/u16-ct-totitle.c: New file.
43065         * modules/unicase/u16-ct-totitle: New file.
43066
43067         New module 'unicase/u8-ct-totitle'.
43068         * lib/unicase/u8-ct-totitle.c: New file.
43069         * lib/unicase/u-ct-totitle.h: New file, derived from
43070         lib/unicase/u-totitle.h.
43071         * modules/unicase/u8-ct-totitle: New file.
43072
43073         New module 'unicase/u32-ct-tolower'.
43074         * lib/unicase/u32-ct-tolower.c: New file.
43075         * modules/unicase/u32-ct-tolower: New file.
43076
43077         New module 'unicase/u16-ct-tolower'.
43078         * lib/unicase/u16-ct-tolower.c: New file.
43079         * modules/unicase/u16-ct-tolower: New file.
43080
43081         New module 'unicase/u8-ct-tolower'.
43082         * lib/unicase/u8-ct-tolower.c: New file.
43083         * modules/unicase/u8-ct-tolower: New file.
43084
43085         New module 'unicase/u32-ct-toupper'.
43086         * lib/unicase/u32-ct-toupper.c: New file.
43087         * modules/unicase/u32-ct-toupper: New file.
43088
43089         New module 'unicase/u16-ct-toupper'.
43090         * lib/unicase/u16-ct-toupper.c: New file.
43091         * modules/unicase/u16-ct-toupper: New file.
43092
43093         New module 'unicase/u8-ct-toupper'.
43094         * lib/unicase/u8-ct-toupper.c: New file.
43095         * modules/unicase/u8-ct-toupper: New file.
43096
43097         Add context arguments to u*_casemap functions.
43098         * lib/unicase/unicasemap.h: Include unicase.h.
43099         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43100         suffix_context arguments.
43101         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43102         functions.
43103         (FUNC): Add prefix_context and suffix_context arguments. Use
43104         uc_is_cased and uc_is_case_ignorable.
43105         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43106         * lib/unicase/u16-casemap.c: Likewise.
43107         * lib/unicase/u32-casemap.c: Likewise.
43108         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43109         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43110         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43111         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43112         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43113         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43114
43115         New module 'unicase/u32-suffix-context'.
43116         * lib/unicase/u32-suffix-context.c: New file.
43117         * modules/unicase/u32-suffix-context: New file.
43118
43119         New module 'unicase/u16-suffix-context'.
43120         * lib/unicase/u16-suffix-context.c: New file.
43121         * modules/unicase/u16-suffix-context: New file.
43122
43123         New module 'unicase/u8-suffix-context'.
43124         * lib/unicase/u8-suffix-context.c: New file.
43125         * lib/unicase/u-suffix-context.h: New file.
43126         * modules/unicase/u8-suffix-context: New file.
43127
43128         New module 'unicase/empty-suffix-context'.
43129         * lib/unicase/empty-suffix-context.c: New file.
43130         * modules/unicase/empty-suffix-context: New file.
43131
43132         New module 'unicase/u32-prefix-context'.
43133         * lib/unicase/u32-prefix-context.c: New file.
43134         * modules/unicase/u32-prefix-context: New file.
43135
43136         New module 'unicase/u16-prefix-context'.
43137         * lib/unicase/u16-prefix-context.c: New file.
43138         * modules/unicase/u16-prefix-context: New file.
43139
43140         New module 'unicase/u8-prefix-context'.
43141         * lib/unicase/u8-prefix-context.c: New file.
43142         * lib/unicase/u-prefix-context.h: New file.
43143         * lib/unicase/context.h: New file.
43144         * modules/unicase/u8-prefix-context: New file.
43145
43146         New module 'unicase/empty-prefix-context'.
43147         * lib/unicase/empty-prefix-context.c: New file.
43148         * modules/unicase/empty-prefix-context: New file.
43149
43150         New module 'unicase/ignorable'.
43151         * lib/unicase/ignorable.c: New file.
43152         * modules/unicase/ignorable: New file.
43153
43154         New module 'unicase/cased'.
43155         * lib/unicase/caseprop.h: New file.
43156         * lib/unicase/cased.c: New file.
43157         * modules/unicase/cased: New file.
43158
43159         New functions for case mapping of substrings.
43160         * lib/unicase.h (casing_prefix_context_t): New type.
43161         (unicase_empty_prefix_context): New variable.
43162         (u8_casing_prefix_context, u16_casing_prefix_context,
43163         u32_casing_prefix_context, u8_casing_prefixes_context,
43164         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43165         declarations.
43166         (casing_suffix_context_t): New type.
43167         (unicase_empty_suffix_context): New variable.
43168         (u8_casing_suffix_context, u16_casing_suffix_context,
43169         u32_casing_suffix_context, u8_casing_suffixes_context,
43170         u16_casing_suffixes_context, u32_casing_suffixes_context,
43171         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43172         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43173         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43174         declarations.
43175
43176 2009-06-28  Jim Meyering  <meyering@redhat.com>
43177
43178         boostrap: indent only with spaces
43179         * build-aux/bootstrap: Indent only with spaces, never TABs.
43180
43181         bootstrap: split long lines
43182         * build-aux/bootstrap: Keep line length < 80.
43183
43184         bootstrap: sync from coreutils
43185         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43186         just as autoreconf does.  Verify a list of prerequisite
43187         package-name,version-number pairs if defined in bootstrap.conf.
43188         Refer to README-prereq, if prerequisites are not satisfied.
43189
43190 2009-06-27  Eric Blake  <ebb9@byu.net>
43191
43192         tests: add test for bogus NULL definition
43193         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43194         * tests/test-stdlib.c: Likewise.
43195         * tests/test-string.c: Likewise.
43196         * tests/test-locale.c: Likewise.
43197         * tests/test-unistd.c: Likewise.
43198         * modules/stdio-tests (Depends-on): Add verify.
43199         * modules/stdlib-tests (Depends-on): Likewise.
43200         * modules/string-tests (Depends-on): Likewise.
43201         * modules/locale-tests (Depends-on): Likewise.
43202         * modules/unistd-tests (Depends-on): Likewise.
43203
43204 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43205
43206         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43207         self-explaining comment.
43208         * m4/selinux-selinux-h: Update serial.
43209         (gl_LIBSELINUX): New macro, adding a warning for missing development
43210         packages to code extracted from...
43211         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43212         Add warning for missing development packages here, too.
43213
43214 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43215
43216         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43217
43218 2009-06-25  Eric Blake  <ebb9@byu.net>
43219
43220         version-etc: fix regression
43221         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43222         gcc.
43223         (version_etc): Use it, to catch bugs with trailing NULL.
43224         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43225         (version_etc_va): Fix logic bug.
43226         * modules/version-etc-tests: Add test.
43227         * tests/test-version-etc.c: New file.
43228         * tests/test-version-etc.sh: Likewise.
43229
43230 2009-06-25  Sam Steingold  <sds@gnu.org>
43231
43232         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43233         mbtowc declaration.
43234
43235 2009-06-25  Eric Blake  <ebb9@byu.net>
43236
43237         fpurge: migrate into <stdio.h>
43238         * lib/fpurge.h: Delete...
43239         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43240         * lib/fpurge.c (fpurge): Change declaring header.
43241         * modules/fpurge (Files): Drop deleted file.
43242         (Depends-on): Add stdio.
43243         (configure.ac): Set witness.
43244         * modules/stdio (Makefile.am): Support fpurge macros.
43245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43247         * lib/fflush.c: Update client.
43248         * tests/test-fpurge.c: Likewise.
43249         * NEWS: Mention the change.
43250
43251 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43252
43253         * lib/argp-version-etc.c (program_authors): Add const
43254         qualifier.
43255         * lib/version-etc.c: Fix typos in the comments.
43256         * modules/argp-version-etc: Depends on version-etc.
43257
43258 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43259
43260         argp-version-etc: new module.
43261
43262         * lib/argp-version-etc.c: New file.
43263         * lib/argp-version-etc.h: New file.
43264         * modules/argp-version-etc: New file.
43265         * modules/argp-version-etc-tests: New file.
43266         * tests/test-argp-version-etc.c: New test.
43267         * tests/test-argp-version-etc-1.sh: New test.
43268
43269 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43270
43271         Provide additional interfaces and documentation for version-etc
43272         module.
43273
43274         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43275         interfaces.
43276         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43277         prototypes.
43278
43279 2009-06-24  Bruno Haible  <bruno@clisp.org>
43280
43281         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43282         HAVE_LIB${NAME} macro.
43283         Reported by Sam Steingold <sds@gnu.org>.
43284
43285 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43286
43287         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43288         needed.
43289
43290 2009-06-21  Bruno Haible  <bruno@clisp.org>
43291
43292         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43293         work.
43294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43295         together with LIB${NAME}, LTLIB${NAME}.
43296         Reported by Sam Steingold <sds@gnu.org>.
43297
43298 2009-06-20  Jim Meyering  <meyering@redhat.com>
43299
43300         tests: make sc_require_test_exit_idiom more generic
43301         * top/maint.mk (Exit_witness_file): New overridable variable.
43302         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43303         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43304
43305 2009-06-19  Jim Meyering  <meyering@redhat.com>
43306
43307         hash: reverse order of src/dst parameters in an internal interface
43308         * lib/hash.c (transfer_entries): Reverse order of parameters to
43309         put DST before SRC.  Adjust callers.
43310
43311         tests: test-hash: avoid wholesale duplication
43312         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43313         Instead, use a loop and add a single conditional.
43314
43315         tests: test-hash: allow seed selection via a command line argument
43316         * tests/test-hash.c (get_seed): New function.
43317         (main): Use it.
43318
43319 2009-06-19  Eric Blake  <ebb9@byu.net>
43320
43321         hash: avoid memory leak on allocation failure
43322         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43323         failure.  Factor repeated algorithm...
43324         (transfer_entries): ...into new helper routine.
43325         (hash_delete): React to hash_rehash return value.
43326
43327         hash: reduce memory pressure in hash_rehash no-op case
43328         * lib/hash.c (next_prime): Avoid overflow.
43329         (hash_initialize): Factor bucket size computation...
43330         (compute_bucket_size): ...into new helper function.
43331         (hash_rehash): Use new function and open coding to reduce memory
43332         pressure, and avoid a memory leak in USE_OBSTACK code.
43333         Reported by Jim Meyering.
43334
43335 2009-06-18  Eric Blake  <ebb9@byu.net>
43336
43337         hash: make rotation more obvious
43338         * modules/hash (Depends-on): Add bitrotate and stdint.
43339         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43340         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43341         (SIZE_MAX): Rely on headers for definition.
43342         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43343         (raw_hasher): Use rotr_sz.
43344         Suggested by Jim Meyering.
43345
43346         hash: fix memory leak in last patch
43347         * lib/hash.c (hash_rehash): Avoid memory leak.
43348
43349         hash: avoid no-op rehashing
43350         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43351
43352         hash: provide default callback functions
43353         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43354         (hash_initialize): Use them as defaults.
43355         * tests/test-hash.c (main): Test this.
43356
43357         hash: minor optimization
43358         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43359         when possible.
43360         (hash_initialize): Document this promise.
43361         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43362         * tests/test-hash.c (hash_compare_strings): Test this.
43363
43364 2009-06-18  Bruno Haible  <bruno@clisp.org>
43365
43366         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43367         going to be replaced anyway.
43368
43369 2009-06-18  Bruno Haible  <bruno@clisp.org>
43370
43371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43372         in one place.
43373         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43374         be replaced anyway.
43375
43376 2009-06-18  Eric Blake  <ebb9@byu.net>
43377
43378         hash: check for resize before insertion
43379         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43380         threshold before insertion, so that a pathological hash_rehash
43381         that fills every bucket can still trigger another rehash.
43382
43383 2009-06-18  Jim Meyering  <meyering@redhat.com>
43384
43385         hash-tests: add a loop around the small tests
43386         * tests/test-hash.c (main): Repeat small tests with selected
43387         small initial table sizes.
43388
43389 2009-06-17  Eric Blake  <ebb9@byu.net>
43390
43391         hash: minor cleanups
43392         * lib/hash.h (hash_entry): Make opaque, by moving...
43393         * lib/hash.c (hash_entry): ...here.
43394         (hash_insert): Clarify restrictions on what can be inserted.
43395         (hash_get_next): Clarify when it is safe to remove an element
43396         during traversal.
43397         (check_tuning): Skip verification when tuning is known safe.
43398         (hash_initialize): Clarify restrictions on tuning.
43399
43400 2009-06-17  Jim Meyering  <jim@meyering.net>
43401         and Eric Blake  <ebb9@byu.net>
43402
43403         hash-tests: new module
43404         * modules/hash-tests: New file.
43405         * tests/test-hash.c: New file.
43406
43407 2009-06-17  Eric Blake  <ebb9@byu.net>
43408
43409         strstr-simple: document new module
43410         * MODULES.html.sh: Document new module.
43411
43412         strstr, strcasestr: replace on platforms with broken memchr
43413         * modules/strstr: Split into...
43414         * modules/strstr-simple: ...new module that does not care about
43415         performance, but does care about glibc bug.
43416         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43417         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43418         if platform memchr is broken, per Debian bug 521737.
43419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43420         memchr.
43421         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43422         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43423         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43424         * modules/mountlist (Depends-on): Add strstr-simple.
43425         * modules/gen-uni-tables (Depends-on): Likewise.
43426         * modules/argz (Depends-on): Add strstr.
43427
43428 2009-06-17  Bruno Haible  <bruno@clisp.org>
43429
43430         * modules/posix_spawn-internal (Depends-on): Add errno.
43431
43432 2009-06-17  Bruno Haible  <bruno@clisp.org>
43433
43434         Define missing ESTALE on Interix 3.5.
43435         * lib/errno.in.h (ESTALE): Assign a value if missing.
43436         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43437         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43438         missing.
43439         * doc/posix-headers/errno.texi: Mention the Interix bug.
43440         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43441
43442 2009-06-15  Eric Blake  <ebb9@byu.net>
43443
43444         memchr, memchr2: add valgrind exception
43445         * lib/memchr.valgrind: New file.
43446         * lib/memchr2.valgrind: New file.
43447         * modules/memchr (Files): Distribute valgrind file.
43448         * modules/memchr2 (Files): Likewise.
43449
43450         docs: memchr is no longer obsolete
43451         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43452         * lib/string.in.h (memchr): Simplify logic.
43453
43454 2009-06-14  Jim Meyering  <meyering@redhat.com>
43455
43456         link-follow: fix the "checking..." message to not mention trailing slash
43457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43458         never considered trailing slashes.
43459
43460 2009-06-14  Bruno Haible  <bruno@clisp.org>
43461
43462         * m4/memchr.m4: Mention also the bug on IA-64.
43463         * doc/posix-functions/memchr.texi: Likewise.
43464
43465 2009-06-12  Eric Blake  <ebb9@byu.net>
43466
43467         memchr: detect broken x86_64 and alpha implementations
43468         * modules/memchr-tests (Depends-on): Move mmap detection...
43469         * modules/memchr (Depends-on): ...here.
43470         (configure.ac): Set indicator.
43471         * lib/string.in.h (memchr): Declare replacement.
43472         * modules/string (Makefile.am): Trigger replacement.
43473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43475         bugs.
43476         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43477         * modules/getpagesize (License): Relax license.
43478
43479 2009-06-11  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/idpriv.h: Add more references.
43482
43483 2009-06-08  Bruno Haible  <bruno@clisp.org>
43484
43485         Tests for module 'idpriv-droptemp'.
43486         * modules/idpriv-droptemp-tests: New file.
43487         * tests/test-idpriv-droptemp.sh: New file.
43488         * tests/test-idpriv-droptemp.su.sh: New file.
43489         * tests/test-idpriv-droptemp.c: New file.
43490
43491         New module 'idpriv-droptemp'.
43492         * lib/idpriv-droptemp.c: New file.
43493         * modules/idpriv-droptemp: New file.
43494
43495 2009-06-08  Bruno Haible  <bruno@clisp.org>
43496
43497         Tests for module 'idpriv-drop'.
43498         * modules/idpriv-drop-tests: New file.
43499         * tests/test-idpriv-drop.sh: New file.
43500         * tests/test-idpriv-drop.su.sh: New file.
43501         * tests/test-idpriv-drop.c: New file.
43502
43503         New module 'idpriv-drop'.
43504         * lib/idpriv.h: New file.
43505         * lib-idpriv-drop.c: New file.
43506         * m4/idpriv.m4: New file.
43507         * modules/idpriv-drop: New file.
43508
43509 2009-06-08  Bruno Haible  <bruno@clisp.org>
43510
43511         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43512         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43513         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43514         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43515         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43516         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43517         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43518
43519 2009-06-08  Eric Blake  <ebb9@byu.net>
43520
43521         test-strstr: use memory fence, when possible
43522         * tests/test-strstr.c (main): Use memory fence, in order to be
43523         more likely to trigger Debian bug 521737.
43524         * modules/strstr-tests (Files): Pull in additional files.
43525
43526         memchr: no longer obsolete, for wider field testing
43527         * modules/memchr (Status, Notice): Delete, this module is no
43528         longer obsolete.
43529         * modules/vasnprintf (Depends-on): Add memchr.
43530
43531 2009-06-07  Jim Meyering  <meyering@redhat.com>
43532
43533         hash: declare some functions with the warn_unused_result attribute
43534         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43535
43536 2009-06-07  Bruno Haible  <bruno@clisp.org>
43537
43538         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43539         Reported by Eric Blake.
43540
43541 2009-06-06  Eric Blake  <ebb9@byu.net>
43542
43543         test-alignof: fix typo with long double
43544         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43545         compiler error.
43546
43547 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43548
43549         Escape non-texinfo { and }s.
43550         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43551         markup error.
43552
43553 2009-06-04  Jim Meyering  <meyering@redhat.com>
43554
43555         gitlog-to-changelog: don't infloop on an empty commit log
43556         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43557         Reported by Boris Petersen <transacid@centerim.org>.
43558
43559 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43560
43561         version-etc: extend for packagers
43562         Add three new configure options, intended for packagers:
43563           --with-packager="packager name"
43564           --with-packager-version="packager-specific version"
43565           --with-packager-bug-reports="packager bug reporting"
43566         An example with coreutils:
43567           $ ./configure \
43568             --with-packager=Gentoo \
43569             --with-packager-bug-report=http://bugs.gentoo.org/ \
43570             --with-packager-version="patchset 1.6"
43571           $ ./src/ls --version | head -n2
43572           ls (GNU coreutils) 7.1-dirty
43573           Packaged by Gentoo (patchset 1.6)
43574         Note that the bug reporting info via --help doesn't show up because
43575         coreutils uses its own custom emit_bug_reporting_address() implementation
43576         in src/system.h.  If it didn't, it'd look like:
43577           $ ./src/ls --help | tail -n4
43578           Report bugs to <bug-coreutils@gnu.org>.
43579           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43580           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43581           General help using GNU software: <http://www.gnu.org/gethelp/>.
43582         * lib/version-etc.c: Print new information, if provided.
43583         * m4/version-etc.m4: New file.
43584         * modules/version-etc (Files): Add m4/version-etc.m4.
43585         (configure.ac): Add gl_VERSION_ETC.
43586
43587 2009-05-31  Bruno Haible  <bruno@clisp.org>
43588
43589         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43590         and 'int64_t'.
43591         * modules/alignof-tests (Dependencies): Add stdint.
43592         Reported by Eric Blake.
43593
43594 2009-05-31  Bruno Haible  <bruno@clisp.org>
43595
43596         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43597         restriction due to compiler bugs.
43598         Reported by Eric Blake.
43599
43600 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43601             Bruno Haible  <bruno@clisp.org>
43602
43603         Fix test-alignof failure.
43604         * lib/alignof.h (alignof_slot): New macro.
43605         (alignof_type): New macro, with the same semantics as the previous
43606         'alignof'.
43607         (alignof): Alias to alignof_slot.
43608         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43609         check that the results are usable as constant expressions.
43610
43611 2009-05-31  Bruno Haible  <bruno@clisp.org>
43612
43613         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43614         * tests/test-memchr.c (main): Check that memchr does not read past the
43615         first occurrence of the byte.
43616         * tests/test-strstr.c (main): Update comment.
43617         Suggested by Eric Blake.
43618
43619 2009-05-30  Bruno Haible  <bruno@clisp.org>
43620
43621         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43622         detail how to use dumpbin.
43623         Reported by David Byron <dbyron@dbyron.com>.
43624
43625 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43626
43627         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43628
43629 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43630
43631         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43632
43633 2009-05-28  Bruno Haible  <bruno@clisp.org>
43634
43635         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43636         build-aux/ files.
43637
43638 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43639
43640         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43641
43642 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43643
43644         * gnulib-tool (sed_transform_main_lib_file)
43645         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43646         regexps.
43647
43648 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43649
43650         * tests/test-strstr.c: Add another self-test.
43651         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43652         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43653
43654 2009-05-23  Bruno Haible  <bruno@clisp.org>
43655
43656         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43657         change.
43658
43659 2009-05-21  Bruno Haible  <bruno@clisp.org>
43660
43661         Simplify use of mode_t varargs.
43662         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43663         uses 'mode_t' or 'int'.
43664         * lib/openat.c (openat): Likewise.
43665         * lib/open-safer.c (open_safer): Likewise.
43666         * m4/mode_t.m4: New file.
43667         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43668         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43669         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43670         * modules/open (Files): Add m4/mode_t.m4.
43671         * modules/openat (Files): Likewise.
43672         * modules/fcntl-safer (Files): Likewise.
43673         Suggested by Eric Blake.
43674
43675 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43676
43677         * doc/glibc-functions/fallocate.texi: New file.
43678         * doc/gnulib.texi: Include it.
43679
43680 2009-05-21  Eric Blake  <ebb9@byu.net>
43681             Bruno Haible  <bruno@clisp.org>
43682
43683         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43684         invocations.
43685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43686
43687 2009-05-21  Eric Blake  <ebb9@byu.net>
43688             Bruno Haible  <bruno@clisp.org>
43689
43690         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43691         include_next. Fix of 2008-11-20 commit.
43692         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43693         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43694         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43695         NEXT_MATH_H.
43696         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43697         instead of NEXT_MATH_H.
43698
43699 2009-05-21  Bruno Haible  <bruno@clisp.org>
43700
43701         Avoid redefinition warnings for SIZE_MAX.
43702         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43703         Reported by Simon Josefsson.
43704
43705 2009-05-21  Bruno Haible  <bruno@clisp.org>
43706
43707         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43708         AC_CACHE_VAL.
43709
43710 2009-05-20  Bruno Haible  <bruno@clisp.org>
43711
43712         Make zeroptr.h work on mingw.
43713         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43714         mprotect.
43715         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43716         * modules/memchr2-tests (configure.ac): Likewise.
43717         * modules/memcmp-tests (configure.ac): Likewise.
43718         * modules/memmem-tests (configure.ac): Likewise.
43719         * modules/memrchr-tests (configure.ac): Likewise.
43720         Reported by Simon Josefsson.
43721
43722 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43723
43724         * tests/test-glob.c: Include string.h for strcmp prototype.
43725
43726 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43727
43728         * modules/getdelim (Depends-on): Add explicit stdint, although it
43729         was implicitly already pulled in via realloc-posix.
43730         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43731
43732 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43733
43734         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43735         G. Christensen" <tgc@jupiterrise.com>.
43736         * m4/sys_socket_h.m4: Check for sa_family_t.
43737         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43738         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43739         * tests/test-sys_socket.c: Check that sa_family_t works.
43740
43741 2009-05-18  Eric Blake  <ebb9@byu.net>
43742
43743         maint.mk: allow gnulib_dir in VPATH build
43744         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43745
43746 2009-05-15  Jim Meyering  <meyering@redhat.com>
43747
43748         maint.mk: Give gnulib_dir a default definition.
43749         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43750         Thus, most packages no longer need to specify this variable in cfg.mk
43751
43752 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43753
43754         rename.m4: fix typos that would make non-mingw cross-configure fail
43755         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43756
43757 2009-05-13  Eric Blake  <ebb9@byu.net>
43758
43759         mmap-anon: avoid out-of-order autoconf expansion
43760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43761         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43762         * modules/memchr-tests (Depends-on): Add extensions.
43763         * modules/memchr2-tests (Depends-on): Add extensions.
43764         * modules/memcmp-tests (Depends-on): Add extensions.
43765         * modules/memmem-tests (Depends-on): Add extensions.
43766         * modules/memrchr-tests (Depends-on): Add extensions.
43767
43768 2009-05-13  Bruno Haible  <bruno@clisp.org>
43769
43770         Make some tests ISO C 99 compliant.
43771         * tests/zerosize-ptr.h: New file.
43772         * tests/test-memchr.c: Include zerosize-ptr.h.
43773         (main): Use a zero-size object pointer instead of NULL.
43774         * tests/test-memchr2.c: Include zerosize-ptr.h.
43775         (main): Use a zero-size object pointer instead of NULL.
43776         * tests/test-memcmp.c: Include zerosize-ptr.h.
43777         (main): Use a zero-size object pointer instead of NULL.
43778         * tests/test-memmem.c: Include zerosize-ptr.h.
43779         (main): Use a zero-size object pointer instead of NULL.
43780         * tests/test-memrchr.c: Include zerosize-ptr.h.
43781         (main): Use a zero-size object pointer instead of NULL.
43782         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43783         m4/mmap-anon.m4.
43784         (Depends-on): Add getpagesize.
43785         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43786         * modules/memchr2-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/memcmp-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/memmem-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/memrchr-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
43803 2009-05-12  Bruno Haible  <bruno@clisp.org>
43804
43805         Tests for module 'alignof'.
43806         * modules/alignof-tests: New file.
43807         * tests/test-alignof.c: New file.
43808
43809 2009-05-12  Bruno Haible  <bruno@clisp.org>
43810
43811         Fix alignof macro.
43812         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43813         vendor compilers that are always correct.
43814
43815 2009-05-12  Bruno Haible  <bruno@clisp.org>
43816
43817         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43819         not whether its fully works.
43820
43821 2009-05-12  Bruno Haible  <bruno@clisp.org>
43822
43823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43824
43825 2009-05-12  Jim Meyering  <meyering@redhat.com>
43826
43827         * top/maint.mk: Adjust backslash alignment.
43828
43829 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43830
43831         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43832
43833 2009-05-11  Eric Blake  <ebb9@byu.net>
43834
43835         argp: avoid undefined behavior
43836         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43837         macros.
43838
43839 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43840
43841         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43842         user.name to prevent git commit from complaining.
43843
43844 2009-05-10  Bruno Haible  <bruno@clisp.org>
43845
43846         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43847         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43848         it rewrites every file name only once.
43849         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43850
43851 2009-05-08  Bruno Haible  <bruno@clisp.org>
43852
43853         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43854         instead of 'max'.
43855
43856 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43857
43858         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43859         sockaddr_storage test.
43860
43861 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43862
43863         * modules/sys_socket (Makefile.am): Substitute
43864         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43865         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43866         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43867         * tests/test-sys_socket.c: Check sockaddr_storage.
43868
43869 2009-05-08  Bruno Haible  <bruno@clisp.org>
43870
43871         New module 'alignof'.
43872         * lib/alignof.h: New file.
43873         * modules/alignof: New file.
43874
43875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43876             Bruno Haible  <bruno@clisp.org>
43877
43878         Fix test-file-has-acl on FreeBSD.
43879         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43880         mask is implicitly added.
43881         * tests/test-file-has-acl.c: Include <signal.h>.
43882         (main): Terminate the test after 5 seconds.
43883         * modules/acl-tests (configure.ac): Check for alarm function.
43884
43885 2009-05-04  Bruno Haible  <bruno@clisp.org>
43886
43887         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43888         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43889         * modules/errno (configure.ac): Drop AC_REQUIRE.
43890         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43891         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43892
43893 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43894
43895         * modules/glob-tests: New module.
43896         * tests/test-glob.c: Add.
43897
43898 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43899
43900         * modules/fnmatch-tests: New module.
43901         * tests/test-fnmatch.c: Add.
43902
43903 2009-05-04  Eric Blake  <ebb9@byu.net>
43904
43905         maint: make the new no-submodule-changes rule VPATH-safe
43906         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43907
43908 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43909             Bruno Haible  <bruno@clisp.org>
43910
43911         acl: Fix infinite loop on FreeBSD.
43912         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43913         of return value from acl_get_entry.
43914         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43915         Likewise.
43916
43917 2009-05-03  Bruno Haible  <bruno@clisp.org>
43918
43919         * lib/acl-internal.h (acl_entries): Clarify return value.
43920         * lib/acl_entries.c (acl_entries): Likewise.
43921
43922 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43923
43924         Bug fix in acl module.
43925         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43926
43927 2009-05-03  Bruno Haible  <bruno@clisp.org>
43928
43929         Create gperf-generated file in the source dir, not in the build dir.
43930         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43931         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43932         * modules/unicase/locale-language (unicase/locale-languages.h):
43933         Likewise.
43934         * modules/unicase/special-casing (unicase/special-casing-table.h):
43935         Likewise.
43936         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43937         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43938         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43939         Reported by Ralf Wildenhues.
43940
43941 2009-05-03  Bruno Haible  <bruno@clisp.org>
43942
43943         * modules/fnmatch (Description, configure.ac): Taken from
43944         fnmatch-posix.
43945         * modules/fnmatch-posix: Turn into a symbolic reference to the
43946         'fnmatch' module, and deprecate.
43947         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43948
43949 2009-05-03  Bruno Haible  <bruno@clisp.org>
43950
43951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43952         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43953         Reported by Ralf Wildenhues.
43954
43955 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43956
43957         * m4/fnmatch.m4: Fix fnmatch re-define.
43958
43959 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43960
43961         priv-set: new module and tests; adapt write-any-file
43962         * lib/priv-set.c: New file.
43963         * lib/priv-set.h: New file.
43964         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43965         * lib/write-any-file.c: Simplify by using priv-set module.
43966         * m4/priv-set.m4: New file.
43967         * modules/priv-set: New file.
43968         * modules/unlinkdir: Add dependency on priv-set module.
43969         * modules/write-any-file: Likewise.
43970
43971         Tests for module 'priv-set'.
43972         * modules/priv-set-tests: New file.
43973         * tests/test-priv-set.c: New file.
43974
43975 2009-05-03  Jim Meyering  <meyering@redhat.com>
43976             Bruno Haible  <bruno@clisp.org>
43977
43978         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43979         use the converted UTF-8 variant of the name instead.
43980
43981 2009-05-03  Jim Meyering  <meyering@redhat.com>
43982
43983         tests: tighten some getdate tests
43984         * tests/test-getdate.c (main): Tighten tests: require equality,
43985         not just greater than.  Set TZ envvar to UTC0.
43986
43987 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43988
43989         getdate: correctly interpret "next monday" when run on a Monday
43990         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43991         that e.g., "next tues" (when run on a tuesday) results in a date
43992         that is one week in the future, and not today's date.
43993         I.e., add a week when the wday is the same as the current one.
43994         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43995         and earlier by Martin Bernreuther and Jan Minář.
43996         * tests/test-getdate.c (main): Check that "next DAY" is always in
43997         the future and that "last DAY" is always in the past.
43998
43999 2009-05-02  Jim Meyering  <meyering@redhat.com>
44000
44001         build: ensure that a release build fails when a submodule is unclean
44002         * top/maint.mk (no-submodule-changes): New rule.
44003         (alpha beta major): Depend on it.
44004
44005 2009-05-02  Bruno Haible  <bruno@clisp.org>
44006
44007         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44008         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44009         shell variable gl_fnmatch_required to detect which variant is
44010         requested.
44011         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44012         gl_FUNC_FNMATCH_POSIX.
44013         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44014         exclude fnmatch-posix.
44015
44016 2009-05-02  Bruno Haible  <bruno@clisp.org>
44017
44018         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44019         * modules/mbsrtowcs (License): Change to LGPLv2+.
44020         * modules/strnlen1 (License): Likewise.
44021         Reported by Simon Josefsson.
44022
44023 2009-05-02  Bruno Haible  <bruno@clisp.org>
44024
44025         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44026         "cross".
44027         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44028         gnulib-tool was called with option --source-base=lib.
44029
44030 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44031
44032         Use automake *-local hooks without commands, for extensibility.
44033         * modules/localcharset (Makefile.am): Rename install-exec-local
44034         rule to install-exec-localcharset, and make it a prerequisite of
44035         install-exec-local.  Likewise, rename the uninstall-local rule to
44036         uninstall-localcharset, and make it a prerequisite of the former.
44037
44038 2009-05-01  Bruno Haible  <bruno@clisp.org>
44039
44040         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44041         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44042         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44044         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44045         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44046         m4/locale-zh.m4, m4/codeset.m4.
44047
44048         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44049         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44050         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44051         m4/locale-zh.m4.
44052
44053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44054         REPLACE_WCRTOMB if mbstate_t must be replaced.
44055         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44056         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44057
44058 2009-05-01  Bruno Haible  <bruno@clisp.org>
44059
44060         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44061         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44062         dngettext, dcngettext, textdomain, bindtextdomain,
44063         bind_textdomain_codeset): Undefine before redefining.
44064
44065 2009-04-30  Bruno Haible  <bruno@clisp.org>
44066
44067         Fix bug introduced on 2009-04-25.
44068         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44069         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44070         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44071         is defined.
44072         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44073         is defined.
44074         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44075         is defined.
44076         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44077
44078 2009-04-28  Bruno Haible  <bruno@clisp.org>
44079
44080         Comment tweaks.
44081         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44082         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44083         * lib/unicase.h (u*_casexfrm): Likewise.
44084         Reported by Paolo Bonzini.
44085
44086 2009-04-28  Bruno Haible  <bruno@clisp.org>
44087
44088         Fix a compilation error.
44089         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44090         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44091         Reported by Jim Meyering.
44092
44093 2009-04-27  Bruno Haible  <bruno@clisp.org>
44094
44095         New module 'libunistring'.
44096         * modules/libunistring: New file.
44097         * m4/libunistring.m4: New file.
44098         * MODULES.html.sh (Unicode string functions): Add it.
44099
44100 2009-04-27  Eric Blake  <ebb9@byu.net>
44101
44102         maint.mk: allow package-specific header to provide <config.h>
44103         * top/maint.mk (sc_require_config_h): New variable.
44104         (sc_require_config_h, sc_require_config_h_first): Use it.
44105
44106 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44107
44108         * top/maint.mk (sc_avoid_if_before_free): Except
44109         useless-if-before-free script.
44110
44111 2009-04-27  Eric Blake  <ebb9@byu.net>
44112
44113         maintainer-makefile: depend on all required helper scripts
44114         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44115         useless-if-before-free.
44116         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44117         version, rather than assuming gnulib checkout is available.
44118         Reported by Simen Josefsson.
44119
44120 2009-04-26  Bruno Haible  <bruno@clisp.org>
44121
44122         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44123         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44124         "../" or "..".
44125
44126 2009-04-26  Bruno Haible  <bruno@clisp.org>
44127
44128         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44129         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44130         AC_LIB_HAVE_LINKFLAGS.
44131
44132 2009-04-26  Bruno Haible  <bruno@clisp.org>
44133
44134         Simplify calling convention of u*_conv_from_encoding.
44135         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44136         u32_conv_from_encoding): Expect a resultbuf argument and return the
44137         result directly as a pointer.
44138         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44139         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44140         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44141         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44142         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44143         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44144         Update.
44145         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44146         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44147         * lib/vasnprintf.c (VASNPRINTF): Update.
44148         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44149         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44150         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44151         * NEWS: Mention the change.
44152
44153 2009-04-26  Bruno Haible  <bruno@clisp.org>
44154
44155         Simplify calling convention of u*_conv_to_encoding.
44156         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44157         u32_conv_to_encoding): Expect a resultbuf argument and return the
44158         result directly as a pointer.
44159         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44160         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44161         freeing scaled_offsets if mem_iconveha failed.
44162         * lib/unicase/u-casexfrm.h (FUNC): Update.
44163         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44164         * lib/vasnprintf.c (VASNPRINTF): Update.
44165         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44166         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44167         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44168         * NEWS: Mention the change.
44169
44170 2009-04-26  Bruno Haible  <bruno@clisp.org>
44171
44172         Avoid test failures on AIX and OSF/1.
44173         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44174         malloc(0).
44175         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44176         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44177         Likewise.
44178         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44179         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44181         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44182         * doc/posix-functions/malloc.texi: Document the portability problem
44183         related to malloc(0).
44184
44185 2009-04-26  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44188         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44189         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44190
44191 2009-04-25  Bruno Haible  <bruno@clisp.org>
44192
44193         Avoid link error when creating a namespace clean library.
44194         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44195         as macro with arguments if already defined as an alias.
44196         * lib/signbitf.c (gl_signbitf): Don't undefine.
44197         * lib/signbitd.c (gl_signbitd): Don't undefine.
44198         * lib/signbitl.c (gl_signbitl): Don't undefine.
44199
44200 2009-04-25  Jim Meyering  <meyering@redhat.com>
44201
44202         vc-list-files: fix another quoting bug
44203         * build-aux/vc-list-files: Avoid sed backslash expansion
44204         of pathological directory names.
44205
44206 2009-04-25  Eric Blake  <ebb9@byu.net>
44207
44208         vc-list-files: fix shell quoting error
44209         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44210         timestamp.
44211
44212 2009-04-25  Jim Meyering  <meyering@redhat.com>
44213
44214         vc-list-files: restore lost functionality with subdir argument
44215         * build-aux/vc-list-files: When given a non-"." sub-directory
44216         argument, substitute the $dir/ prefix back onto each resulting name.
44217         Otherwise, coreutils' root_tests check would fail.
44218
44219 2009-04-24  Eric Blake  <ebb9@byu.net>
44220
44221         vc-list-files: ignore git symlinks
44222         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44223         than ls-files, to ignore git symlinks.
44224
44225         maint.mk: import improvements from m4
44226         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44227         (move_if_change): Delete unused macro.
44228         (news-date-check, vc-diff-check): Support VPATH builds.
44229         (announcement): Likewise.  Split --bootstrap-tools list...
44230         (boostrap-tools): ...into separate list, which can be overridden
44231         in cfg.mk.
44232         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44233         requiring dependency on useless-if-before-free module.
44234         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44235         Support VPATH builds.
44236
44237 2009-04-24  Jim Meyering  <meyering@redhat.com>
44238
44239         maint.mk: remove coreutils-specific rules and variables
44240         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44241         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44242         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44243
44244         maint.mk: remove obsolete rule
44245         * top/maint.mk (rel-check): Remove rule.
44246         (WGET, WGETFLAGS): Remove now-unused variables.
44247
44248 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44249
44250         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44251         consistency.
44252
44253         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44254         '$(PATH_SEPARATOR)' instead of ':'.
44255
44256 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44257
44258         * lib/getopt1.c (main): Use 'const' for static array.
44259
44260 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44261
44262         * top/maint.mk: Sync with coreutils.
44263         * NEWS: Explain incompatibilities.
44264
44265 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44266             Bruno Haible  <bruno@clisp.org>
44267
44268         Fix cross-compilation results.
44269         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44270         statement, as third argument of AC_TRY_RUN.
44271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44272         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44273         Likewise.
44274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44275         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44276         Likewise.
44277         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44278         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44279         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44280
44281 2009-04-20  Bruno Haible  <bruno@clisp.org>
44282
44283         Avoid test failure on mingw.
44284         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44285
44286 2009-04-20  Bruno Haible  <bruno@clisp.org>
44287
44288         Avoid compilation error on mingw.
44289         * modules/localename-tests (Depends-on): Add locale.
44290
44291 2009-04-19  Bruno Haible  <bruno@clisp.org>
44292
44293         Support for building a shared library on Windows platforms.
44294         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44295         (main): Test the presence of UNINORM_NFC here.
44296         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44297         (main): Test the presence of UNINORM_NFD here.
44298         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44299         (main): Test the presence of UNINORM_NFKC here.
44300         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44301         (main): Test the presence of UNINORM_NFKD here.
44302
44303 2009-04-19  Bruno Haible  <bruno@clisp.org>
44304
44305         Avoid a compiler warning.
44306         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44307         Change type of variable 'sequence'.
44308
44309 2009-04-19  Bruno Haible  <bruno@clisp.org>
44310
44311         * modules/configmake (Makefile.am): When the contents of configmake.h
44312         does not change, arrange to preserve its modification time.
44313
44314 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44315
44316         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44317         gettext domain.
44318
44319 2009-04-16  Jim Meyering  <meyering@redhat.com>
44320
44321         useless-if-before-free: improve conversion code
44322         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44323         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44324
44325 2009-04-14  Bruno Haible  <bruno@clisp.org>
44326
44327         * modules/fcntl (Depends-on): Add extensions.
44328         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44329
44330 2009-04-12  Ben Pfaff  <blp@gnu.org>
44331
44332         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44333         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44334
44335 2009-03-20  Ben Pfaff  <blp@gnu.org>
44336
44337         Make rename replace existing destinations on Windows.
44338         * m4/rename.m4: Add test for Mingw.
44339         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44340         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44341         * doc/posix-functions/rename.texi: Document.
44342
44343 2009-04-10  Bruno Haible  <bruno@clisp.org>
44344
44345         New include file "iconveh.h".
44346         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44347         * lib/striconveh.h: Include it.
44348         (enum iconv_ilseq_handler): Remove definition.
44349         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44350         striconveh.h.
44351         * lib/striconveha.c: Include striconveh.h.
44352         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44353         * modules/striconveh (Files): Add lib/iconveh.h.
44354         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44355         lib/striconveh.h.
44356
44357 2009-04-10  Bruno Haible  <bruno@clisp.org>
44358
44359         * lib/uniconv.h: Update comment.
44360
44361 2009-04-10  Bruno Haible  <bruno@clisp.org>
44362
44363         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44364         always.
44365         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44366         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44367         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44368         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44369         "unistring-notinline.h", so that the function gets defined always.
44370         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44371         * lib/unistr/u8-uctomb.c: Likewise.
44372         * lib/unistr/u16-mbtouc.c: Likewise.
44373         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44374         * lib/unistr/u16-uctomb.c: Likewise.
44375         * lib/unistr/u32-mbtouc.c: Likewise.
44376         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44377         * lib/unistr/u32-uctomb.c: Likewise.
44378
44379 2009-04-10  Bruno Haible  <bruno@clisp.org>
44380
44381         Mark 'utime' obsolete.
44382         * modules/utime (Status, Notice): New sections.
44383         Suggested by Jim Meyering.
44384
44385         Fix cross-compile guess for utime test.
44386         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44387         autoconf.
44388         * doc/posix-functions/utime.texi: Give more precisions.
44389         Reported by Jan <ipif@ymail.com>.
44390
44391 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44392
44393         filevercmp: correct today's change
44394         * lib/filevercmp.c: Also handle coreutils' test inputs.
44395         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44396
44397         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44398         for reporting it.
44399         * lib/filevercmp.c: Special handle for "", "." and "..".
44400         * tests/test-filevercmp.c: Enlarge the set suite.
44401
44402 2009-04-07  Jim Meyering  <meyering@redhat.com>
44403
44404         useless-if-before-free: show how to remove braced useless free, too
44405         * build-aux/useless-if-before-free: still only in a comment, though.
44406
44407 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44408
44409         maint.mk: import changes to syntax-check macros from coreutils
44410         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44411         Use them in the relevant macros.
44412
44413 2009-04-06  Bruno Haible  <bruno@clisp.org>
44414
44415         Fix unportable use of bit-fields.
44416         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44417         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44418         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44419
44420 2009-04-06  Bruno Haible  <bruno@clisp.org>
44421
44422         Avoid test failures on AIX and OSF/1.
44423         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44424         that malloc(0) = NULL.
44425         * tests/unicase/test-u8-tolower.c (check): Likewise.
44426         * tests/unicase/test-u8-totitle.c (check): Likewise.
44427         * tests/unicase/test-u8-toupper.c (check): Likewise.
44428         * tests/unicase/test-u16-casefold.c (check): Likewise.
44429         * tests/unicase/test-u16-tolower.c (check): Likewise.
44430         * tests/unicase/test-u16-totitle.c (check): Likewise.
44431         * tests/unicase/test-u16-toupper.c (check): Likewise.
44432         * tests/unicase/test-u32-casefold.c (check): Likewise.
44433         * tests/unicase/test-u32-tolower.c (check): Likewise.
44434         * tests/unicase/test-u32-totitle.c (check): Likewise.
44435         * tests/unicase/test-u32-toupper.c (check): Likewise.
44436         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44437         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44438         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44439         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44440         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44441         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44442         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44443         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44444         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44445         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44446         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44447         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44448
44449 2009-04-05  Bruno Haible  <bruno@clisp.org>
44450
44451         Work around an autoconf limitation.
44452         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44453         comment line if it would be longer than 3 KB.
44454
44455 2009-04-05  Bruno Haible  <bruno@clisp.org>
44456
44457         Avoid test failure with libiconv-1.13.
44458         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44459         of the expected test results.
44460
44461 2009-04-05  Bruno Haible  <bruno@clisp.org>
44462
44463         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44464         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44465         that it should be installed.
44466
44467 2009-04-05  Bruno Haible  <bruno@clisp.org>
44468
44469         * gnulib-tool: New option --copy-file.
44470         (func_usage): Document it.
44471         (func_dest_tmpfilename): Moved out of func_import.
44472         (func_add_file, func_update_file): New functions, extracted from
44473         func_import.
44474         (func_import): Update.
44475
44476 2009-04-05  Karl Berry  <karl@gnu.org>
44477
44478         * README: prominently mention gnulib-tool.
44479         Rearrange sections so getting the code is near the top.
44480
44481 2009-04-05  Bruno Haible  <bruno@clisp.org>
44482
44483         * lib/unicase.h: Mention u*_cmp2.
44484         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44485         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44486         * lib/unicase/ulc-casecmp.c: Likewise.
44487         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44488         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44489         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44490         unistr/u8-cmp.
44491         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44492         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44493         unistr/u16-cmp.
44494         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44495         unistr/u32-cmp.
44496
44497         * lib/uninorm.h: Mention u*_cmp2.
44498         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44499         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44500         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44501         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44502         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44503         unistr/u8-cmp.
44504         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44505         unistr/u16-cmp.
44506         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44507         unistr/u32-cmp.
44508
44509         New module 'unistr/u32-cmp2'.
44510         * lib/unistr/u32-cmp2.c: New file.
44511         * modules/unistr/u32-cmp2: New file.
44512
44513         New module 'unistr/u16-cmp2'.
44514         * lib/unistr/u16-cmp2.c: New file.
44515         * modules/unistr/u16-cmp2: New file.
44516
44517         New module 'unistr/u8-cmp2'.
44518         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44519         * lib/unistr/u8-cmp2.c: New file.
44520         * lib/unistr/u-cmp2.h: New file.
44521         * modules/unistr/u8-cmp2: New file.
44522
44523 2009-04-05  Bruno Haible  <bruno@clisp.org>
44524
44525         * lib/unictype.h (uc_property_is_valid): New macro.
44526         * tests/unictype/test-pr_byname.c (main): Use it.
44527
44528         * lib/unistr.h: Doc fixes.
44529         * lib/uniconv.h: Doc fixes.
44530         * lib/unictype.h: Doc fixes.
44531
44532 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         Port coreutils 7.2 to Solaris 8.
44535
44536         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44537         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44538         for Solaris 8.  This is a bit of a hack, as it means it's the
44539         caller's responsibility to add -lnsl if needed, but most likely it
44540         won't be needed since only getaddrinfo uses this and getaddrinfo
44541         isn't needed on Solaris 8.
44542
44543         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44544         problem to Solaris 8 encountered with coreutils 7.2, which
44545         resulted in a message "fnmatch.c:292: warning: passing argument 4
44546         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44547         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44548
44549 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44550
44551         * m4/ld-version-script.m4: Add FIXME comment.
44552
44553 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44554
44555         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44556         SOVERSION variable.
44557
44558 2009-04-02  Bruno Haible  <bruno@clisp.org>
44559
44560         * Makefile (info, html, dvi, pdf): Combine the rules.
44561         Suggested by Jim Meyering.
44562
44563 2009-04-01  Bruno Haible  <bruno@clisp.org>
44564
44565         * Makefile (info, html, dvi, pdf): New targets.
44566         Reported by Reuben Thomas <rrt@sc3d.org>.
44567
44568 2009-04-01  Bruno Haible  <bruno@clisp.org>
44569
44570         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44571         can be put into PATH.
44572         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44573
44574 2009-04-01  Bruno Haible  <bruno@clisp.org>
44575
44576         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44577
44578 2009-04-01  Bruno Haible  <bruno@clisp.org>
44579
44580         Rename module 'visibility'.
44581         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44582         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44583         * doc/gnulib.texi: Update.
44584         * MODULES.html.sh (Misc): Update.
44585         * NEWS: Mention the change.
44586
44587 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44588
44589         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44590         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44591         Eric Blake <ebb9@byu.net> for review.
44592         * MODULES.html.sh: Add lib-msvc-compat.
44593         * doc/gnulib.texi: Link to new section.
44594         * m4/ld-output-def.m4: New file.
44595         * doc/ld-output-def.texi: New file.
44596
44597 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44598
44599         Rename ld-version-script to lib-symbol-versions.  Suggested by
44600         Bruno Haible <bruno@clisp.org>.
44601         * modules/ld-version-script: Renamed to lib-symbol-versions.
44602         * doc/ld-version-script.texi: Fix module name.
44603         * MODULES.html.sh: Add lib-symbol-versions.
44604
44605 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44606
44607         * modules/u64-tests: New file.
44608         * tests/test-u64.c: New file.
44609
44610 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44611
44612         * MODULES.html.sh: Mention u64.
44613         * modules/u64: New module.
44614         * modules/crypto/sha512: Depend on u64 module instead of providing
44615         u64.h.
44616
44617 2009-03-27  Eric Blake  <ebb9@byu.net>
44618
44619         test-strerror: make debugging EAI_SYSTEM easier
44620         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44621         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44622         failure was EAI_SYSTEM.
44623
44624 2009-03-25  Bruno Haible  <bruno@clisp.org>
44625
44626         Fix a problem with --enable-relocatable on Solaris 7.
44627         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44628         since 2008-02-24.
44629
44630 2009-03-25  Eric Blake  <ebb9@byu.net>
44631
44632         test-sockets: avoid gcc warning
44633         * tests/test-sockets.c (main): Silence compiler warning.
44634
44635 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44636
44637         New modules nproc, pthread, contributed by Glen Lenker.
44638
44639         * MODULES.html.sh: Add pthread, nproc.
44640         * lib/nproc.c: New file.
44641         * lib/nproc.h: New file.
44642         * lib/pthread.in.h: New file.
44643         * m4/pthread.m4: New file.
44644         * modules/nproc: New file.
44645         * modules/pthread: New file.
44646
44647 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44648
44649         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44650         New variable.
44651
44652 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44653
44654         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44655         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44656         * tests/test-filevercmp.c: Add tests for backup suffixes.
44657
44658 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44659
44660         * modules/stdlib (Depends-on): Add stdint, needed when defining
44661         struct random_data on, for example, HP-UX 10.20.  Reported by
44662         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44663
44664 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44665
44666         * lib/readline.c (readline): Call fflush on stdout after printing
44667         prompt.
44668
44669 2009-03-20  Bruno Haible  <bruno@clisp.org>
44670
44671         Remove dependency from 'close' module to -lws2_32 on native Windows.
44672         * lib/close-hook.h: New file.
44673         * lib/close-hook.c: New file.
44674         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44675         w32sock.h.
44676         (_gl_close_fd_maybe_socket): Remove function.
44677         (rpl_close): Invoke execute_all_close_hooks instead of
44678         _gl_close_fd_maybe_socket.
44679         * lib/sockets.c: Include close-hook.h, w32sock.h.
44680         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44681         (close_sockets_hook): New variable.
44682         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44683         (gl_sockets_cleanup): Unregister it.
44684         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44685         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44686         * modules/close-hook: New file.
44687         * modules/close (Files): Remove lib/w32sock.h.
44688         (Depends-on): Add close-hook.
44689         (Link): Remove section.
44690         * modules/sockets (Files): Add lib/w32sock.h.
44691         (Depends-on): Add close-hook.
44692         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44693         invocation.
44694         * NEWS: Mention that LIB_CLOSE is gone.
44695
44696 2009-03-23  Eric Blake  <ebb9@byu.net>
44697
44698         signal-tests: test previous patch
44699         * tests/test-signal.c: New file.
44700         * modules/signal-tests: Likewise.
44701
44702         signal.h: always support 'volatile sig_atomic_t'
44703         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44704         (gl_SIGNAL_H_DEFAULTS): Add a default.
44705         * modules/signal (Makefile.am): Substitute if needed.
44706         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44707         users can blindly add volatile.
44708         * doc/posix-headers/signal.texi (signal.h): Document it.
44709         Reported by Matthew Woehlke.
44710
44711 2009-03-23  Jim Meyering  <meyering@redhat.com>
44712
44713         pathmax: PATH_MAX: use pathconf only when available
44714         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44715         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44716         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44717         This avoids a link failure in a PSP cross-compilation environment
44718         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44719
44720         * lib/vasnprintf.c (divide): Fix typo in comment.
44721
44722 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44723
44724         * gnulib-tool (func_filter_filelist): Fix comment.
44725
44726 2009-03-20  Bruno Haible  <bruno@clisp.org>
44727
44728         Make sockets.h self-contained.
44729         * lib/sockets.c: Include sockets.h first.
44730         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44731
44732 2009-03-19  Eric Blake  <ebb9@byu.net>
44733
44734         doc: mention more functions added in cygwin 1.7.0
44735         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44736         addition.
44737         * doc/posix-functions/log2f.texi: Likewise.
44738
44739 2009-03-19  Jim Meyering  <meyering@redhat.com>
44740
44741         fsusage: avoid syntax error due to statement-before-declaration
44742         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44743         after all declarations.  Reported by Matthew Woehlke in
44744         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44745
44746 2009-03-18  Eric Blake  <ebb9@byu.net>
44747
44748         build-aux/compile: sync from automake
44749         * build-aux/compile: New file, from automake.
44750         * config/srclist.txt: Mention build-aux/compile.
44751
44752 2009-03-17  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/git-merge-changelog.c: Fix typo in comment.
44755         Reported by Reuben Thomas <rrt@sc3d.org>.
44756
44757 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44758
44759         * m4/regex.m4: update and improve help for
44760         --without-included-regex.
44761
44762 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44763
44764         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44765         failure on missing include files.
44766
44767 2009-03-17  Eric Blake  <ebb9@byu.net>
44768
44769         doc: mention more functions added in cygwin 1.7.0
44770         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44771         addition.
44772         * doc/posix-functions/fwscanf.texi: Likewise.
44773         * doc/posix-functions/swprintf.texi: Likewise.
44774         * doc/posix-functions/swscanf.texi: Likewise.
44775         * doc/posix-functions/vfwprintf.texi: Likewise.
44776         * doc/posix-functions/vfwscanf.texi: Likewise.
44777         * doc/posix-functions/vswprintf.texi: Likewise.
44778         * doc/posix-functions/vswscanf.texi: Likewise.
44779         * doc/posix-functions/vwprintf.texi: Likewise.
44780         * doc/posix-functions/vwscanf.texi: Likewise.
44781         * doc/posix-functions/wcscasecmp.texi: Likewise.
44782         * doc/posix-functions/wcsdup.texi: Likewise.
44783         * doc/posix-functions/wcsftime.texi: Likewise.
44784         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44785         * doc/posix-functions/wprintf.texi: Likewise.
44786         * doc/posix-functions/wscanf.texi: Likewise.
44787         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44788
44789 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44790
44791         maint.mk: really add $(AM_MAKEFLAGS)
44792         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44793         was inadvertently omitted in the last commit.
44794         Spotted by Bruno Haible.
44795
44796         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44797         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44798         $(AM_MAKEFLAGS)' rather than plain `make'.
44799
44800         gnulib-tool: execute $MAKE not make
44801         * gnulib-tool: Default $MAKE to 'make'.
44802         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44803         than make.  Initialize $MAKE in the do-autobuild script.
44804
44805         gnulib-tool: use $MAKE not make in generated files
44806         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44807         make, in generated files.  Initialize $MAKE in the do-autobuild
44808         script.
44809
44810         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44811
44812         GNUmakefile: disable parallelism only for multiple, recursive targets
44813         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44814         additions in the Makefile.
44815         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44816         by Automake.
44817         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44818         are listed on the command line and at least one of them is
44819         listed in $(ALL_RECURSIVE_TARGETS).
44820
44821 2009-03-14  Bruno Haible  <bruno@clisp.org>
44822
44823         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44824         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44825         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44826         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44827         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44828         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44829         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44830         unistr/u8-uctomb.
44831         * modules/unistr/u8-strchr (Depends-on): Likewise.
44832         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44833         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44834         unistr/u16-uctomb.
44835         * modules/unistr/u16-strchr (Depends-on): Likewise.
44836         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44837
44838 2009-03-12  Bruno Haible  <bruno@clisp.org>
44839
44840         Work around select() bug on Interix 3.5.
44841         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44842         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44843         * m4/select.m4: New file.
44844         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44845         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44846         * modules/select (Files): Add m4/select.m4.
44847         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44848         * modules/nanosleep (Depends-on): Add select.
44849         * modules/poll (Depends-on): Likewise.
44850         * doc/posix-functions/select.texi: Mention the Interix bug.
44851         Reported by Markus Duft <mduft@gentoo.org>.
44852
44853         * lib/select.c: Renamed from lib/winsock-select.c.
44854         * modules/select (Files): Add lib/select.c, remove
44855         lib/winsock-select.c.
44856         (configure.ac): Update.
44857
44858 2009-03-12  Jim Meyering  <meyering@redhat.com>
44859
44860         avoid gcc warnings about unused macro definitions
44861         * lib/readtokens.c (STREQ): Remove unused definition.
44862         * lib/xmalloc.c (SIZE_MAX): Likewise.
44863         * lib/openat-die.c (N_): Likewise.
44864         * lib/mountlist.c (SIZE_MAX): Remove definition.
44865         Instead, include <stdint.h>.
44866         * lib/readutmp.c: Likewise.
44867         * modules/readutmp (Depends-on): Add stdint.
44868         * modules/mountlist (Depends-on): Add stdint.
44869         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44870
44871 2009-03-10  Bruno Haible  <bruno@clisp.org>
44872
44873         Tests for module 'mbmemcasecoll'.
44874         * modules/mbmemcasecoll-tests: New file.
44875         * tests/test-mbmemcasecoll1.sh: New file.
44876         * tests/test-mbmemcasecoll2.sh: New file.
44877         * tests/test-mbmemcasecoll3.sh: New file.
44878         * tests/test-mbmemcasecoll.c: New file.
44879
44880         New module 'mbmemcasecoll'.
44881         * lib/mbmemcasecoll.h: New file.
44882         * lib/mbmemcasecoll.c: New file.
44883         * modules/mbmemcasecoll: New file.
44884
44885         * tests/test-mbmemcasecmp.h: New file, extracted from
44886         tests/test-mbmemcasecmp.c.
44887         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44888         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44889         (main): Update.
44890         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44891
44892 2009-03-09  Bruno Haible  <bruno@clisp.org>
44893
44894         Tests for module 'mbmemcasecmp'.
44895         * modules/mbmemcasecmp-tests: New file.
44896         * tests/test-mbmemcasecmp1.sh: New file.
44897         * tests/test-mbmemcasecmp2.sh: New file.
44898         * tests/test-mbmemcasecmp3.sh: New file.
44899         * tests/test-mbmemcasecmp.c: New file.
44900
44901         New module 'mbmemcasecmp'.
44902         * lib/mbmemcasecmp.h: New file.
44903         * lib/mbmemcasecmp.c: New file.
44904         * modules/mbmemcasecmp: New file.
44905
44906 2009-03-09  Bruno Haible  <bruno@clisp.org>
44907
44908         Tests for module 'unicase/ulc-casecoll'.
44909         * modules/unicase/ulc-casecoll-tests: New file.
44910         * tests/unicase/test-ulc-casecoll1.sh: New file.
44911         * tests/unicase/test-ulc-casecoll2.sh: New file.
44912         * tests/unicase/test-ulc-casecoll.c: New file.
44913
44914         New module 'unicase/ulc-casecoll'.
44915         * lib/unicase.h (ulc_casecoll): New declaration.
44916         * lib/unicase/ulc-casecoll.c: New file.
44917         * modules/unicase/ulc-casecoll: New file.
44918
44919         New module 'unicase/ulc-casexfrm'.
44920         * lib/unicase.h (ulc_casexfrm): New declaration.
44921         * lib/unicase/ulc-casexfrm.c: New file.
44922         * modules/unicase/ulc-casexfrm: New file.
44923
44924 2009-03-09  Bruno Haible  <bruno@clisp.org>
44925
44926         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44927         invocations.
44928
44929         * m4/mbscasecmp.m4: Remove file.
44930         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44931         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44932
44933         * m4/mbscasestr.m4: Remove file.
44934         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44935         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44936
44937         * m4/mbschr.m4: Remove file.
44938         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44939         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44940
44941         * m4/mbscspn.m4: Remove file.
44942         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44943         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44944
44945         * m4/mbslen.m4: Remove file.
44946         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44947         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44948
44949         * m4/mbsncasecmp.m4: Remove file.
44950         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44951         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44952
44953         * m4/mbsnlen.m4: Remove file.
44954         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44955         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44956
44957         * m4/mbspbrk.m4: Remove file.
44958         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44959         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44960
44961         * m4/mbspcasecmp.m4: Remove file.
44962         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44963         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44964
44965         * m4/mbsrchr.m4: Remove file.
44966         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44967         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44968
44969         * m4/mbssep.m4: Remove file.
44970         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44971         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44972
44973         * m4/mbsspn.m4: Remove file.
44974         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44975         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44976
44977         * m4/mbsstr.m4: Remove file.
44978         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44979         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44980
44981         * m4/mbstok_r.m4: Remove file.
44982         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44983         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44984
44985         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44986
44987         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44988         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44989
44990         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44991
44992 2009-03-08  Bruno Haible  <bruno@clisp.org>
44993
44994         Tests for module 'unicase/ulc-casecmp'.
44995         * modules/unicase/ulc-casecmp-tests: New file.
44996         * tests/unicase/test-ulc-casecmp1.sh: New file.
44997         * tests/unicase/test-ulc-casecmp2.sh: New file.
44998         * tests/unicase/test-ulc-casecmp.c: New file.
44999
45000         New module 'unicase/ulc-casecmp'.
45001         * lib/unicase.h (ulc_casecmp): New declaration.
45002         * lib/unicase/ulc-casecmp.c: New file.
45003         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45004         'const SRC_UNIT *'.
45005         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45006         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45007         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45008         * modules/unicase/ulc-casecmp: New file.
45009
45010         Tests for module 'unicase/u32-is-cased'.
45011         * modules/unicase/u32-is-cased-tests: New file.
45012         * tests/unicase/test-u32-is-cased.c: New file.
45013
45014         Tests for module 'unicase/u16-is-cased'.
45015         * modules/unicase/u16-is-cased-tests: New file.
45016         * tests/unicase/test-u16-is-cased.c: New file.
45017
45018         Tests for module 'unicase/u8-is-cased'.
45019         * modules/unicase/u8-is-cased-tests: New file.
45020         * tests/unicase/test-u8-is-cased.c: New file.
45021         * tests/unicase/test-is-cased.h: New file.
45022
45023         New module 'unicase/u32-is-cased'.
45024         * lib/unicase/u32-is-cased.c: New file.
45025         * modules/unicase/u32-is-cased: New file.
45026
45027         New module 'unicase/u16-is-cased'.
45028         * lib/unicase/u16-is-cased.c: New file.
45029         * modules/unicase/u16-is-cased: New file.
45030
45031         New module 'unicase/u8-is-cased'.
45032         * lib/unicase/u8-is-cased.c: New file.
45033         * lib/unicase/u-is-cased.h: New file.
45034         * modules/unicase/u8-is-cased: New file.
45035
45036         Tests for module 'unicase/u32-is-casefolded'.
45037         * modules/unicase/u32-is-casefolded-tests: New file.
45038         * tests/unicase/test-u32-is-casefolded.c: New file.
45039
45040         Tests for module 'unicase/u16-is-casefolded'.
45041         * modules/unicase/u16-is-casefolded-tests: New file.
45042         * tests/unicase/test-u16-is-casefolded.c: New file.
45043
45044         Tests for module 'unicase/u8-is-casefolded'.
45045         * modules/unicase/u8-is-casefolded-tests: New file.
45046         * tests/unicase/test-u8-is-casefolded.c: New file.
45047         * tests/unicase/test-is-casefolded.h: New file.
45048
45049         New module 'unicase/u32-is-casefolded'.
45050         * lib/unicase/u32-is-casefolded.c: New file.
45051         * modules/unicase/u32-is-casefolded: New file.
45052
45053         New module 'unicase/u16-is-casefolded'.
45054         * lib/unicase/u16-is-casefolded.c: New file.
45055         * modules/unicase/u16-is-casefolded: New file.
45056
45057         New module 'unicase/u8-is-casefolded'.
45058         * lib/unicase/u8-is-casefolded.c: New file.
45059         * modules/unicase/u8-is-casefolded: New file.
45060
45061         Tests for module 'unicase/u32-is-titlecase'.
45062         * modules/unicase/u32-is-titlecase-tests: New file.
45063         * tests/unicase/test-u32-is-titlecase.c: New file.
45064
45065         Tests for module 'unicase/u16-is-titlecase'.
45066         * modules/unicase/u16-is-titlecase-tests: New file.
45067         * tests/unicase/test-u16-is-titlecase.c: New file.
45068
45069         Tests for module 'unicase/u8-is-titlecase'.
45070         * modules/unicase/u8-is-titlecase-tests: New file.
45071         * tests/unicase/test-u8-is-titlecase.c: New file.
45072         * tests/unicase/test-is-titlecase.h: New file.
45073
45074         New module 'unicase/u32-is-titlecase'.
45075         * lib/unicase/u32-is-titlecase.c: New file.
45076         * modules/unicase/u32-is-titlecase: New file.
45077
45078         New module 'unicase/u16-is-titlecase'.
45079         * lib/unicase/u16-is-titlecase.c: New file.
45080         * modules/unicase/u16-is-titlecase: New file.
45081
45082         New module 'unicase/u8-is-titlecase'.
45083         * lib/unicase/u8-is-titlecase.c: New file.
45084         * modules/unicase/u8-is-titlecase: New file.
45085
45086         Tests for module 'unicase/u32-is-lowercase'.
45087         * modules/unicase/u32-is-lowercase-tests: New file.
45088         * tests/unicase/test-u32-is-lowercase.c: New file.
45089
45090         Tests for module 'unicase/u16-is-lowercase'.
45091         * modules/unicase/u16-is-lowercase-tests: New file.
45092         * tests/unicase/test-u16-is-lowercase.c: New file.
45093
45094         Tests for module 'unicase/u8-is-lowercase'.
45095         * modules/unicase/u8-is-lowercase-tests: New file.
45096         * tests/unicase/test-u8-is-lowercase.c: New file.
45097         * tests/unicase/test-is-lowercase.h: New file.
45098
45099         New module 'unicase/u32-is-lowercase'.
45100         * lib/unicase/u32-is-lowercase.c: New file.
45101         * modules/unicase/u32-is-lowercase: New file.
45102
45103         New module 'unicase/u16-is-lowercase'.
45104         * lib/unicase/u16-is-lowercase.c: New file.
45105         * modules/unicase/u16-is-lowercase: New file.
45106
45107         New module 'unicase/u8-is-lowercase'.
45108         * lib/unicase/u8-is-lowercase.c: New file.
45109         * modules/unicase/u8-is-lowercase: New file.
45110
45111         Tests for module 'unicase/u32-is-uppercase'.
45112         * modules/unicase/u32-is-uppercase-tests: New file.
45113         * tests/unicase/test-u32-is-uppercase.c: New file.
45114
45115         Tests for module 'unicase/u16-is-uppercase'.
45116         * modules/unicase/u16-is-uppercase-tests: New file.
45117         * tests/unicase/test-u16-is-uppercase.c: New file.
45118
45119         Tests for module 'unicase/u8-is-uppercase'.
45120         * modules/unicase/u8-is-uppercase-tests: New file.
45121         * tests/unicase/test-u8-is-uppercase.c: New file.
45122         * tests/unicase/test-is-uppercase.h: New file.
45123
45124         New module 'unicase/u32-is-uppercase'.
45125         * lib/unicase/u32-is-uppercase.c: New file.
45126         * modules/unicase/u32-is-uppercase: New file.
45127
45128         New module 'unicase/u16-is-uppercase'.
45129         * lib/unicase/u16-is-uppercase.c: New file.
45130         * modules/unicase/u16-is-uppercase: New file.
45131
45132         New module 'unicase/u8-is-uppercase'.
45133         * lib/unicase/u8-is-uppercase.c: New file.
45134         * modules/unicase/u8-is-uppercase: New file.
45135
45136         New module 'unicase/u32-is-invariant'.
45137         * lib/unicase/u32-is-invariant.c: New file.
45138         * modules/unicase/u32-is-invariant: New file.
45139
45140         New module 'unicase/u16-is-invariant'.
45141         * lib/unicase/u16-is-invariant.c: New file.
45142         * modules/unicase/u16-is-invariant: New file.
45143
45144         New module 'unicase/u8-is-invariant'.
45145         * lib/unicase/u8-is-invariant.c: New file.
45146         * lib/unicase/invariant.h: New file.
45147         * lib/unicase/u-is-invariant.h: New file.
45148         * modules/unicase/u8-is-invariant: New file.
45149
45150         Tests for module 'unicase/u32-casecoll'.
45151         * modules/unicase/u32-casecoll-tests: New file.
45152         * tests/unicase/test-u32-casecoll.c: New file.
45153
45154         Tests for module 'unicase/u16-casecoll'.
45155         * modules/unicase/u16-casecoll-tests: New file.
45156         * tests/unicase/test-u16-casecoll.c: New file.
45157
45158         Tests for module 'unicase/u8-casecoll'.
45159         * modules/unicase/u8-casecoll-tests: New file.
45160         * tests/unicase/test-u8-casecoll.c: New file.
45161
45162         New module 'unicase/u32-casecoll'.
45163         * lib/unicase/u32-casecoll.c: New file.
45164         * modules/unicase/u32-casecoll: New file.
45165
45166         New module 'unicase/u16-casecoll'.
45167         * lib/unicase/u16-casecoll.c: New file.
45168         * modules/unicase/u16-casecoll: New file.
45169
45170         New module 'unicase/u8-casecoll'.
45171         * lib/unicase/u8-casecoll.c: New file.
45172         * lib/unicase/u-casecoll.h: New file.
45173         * modules/unicase/u8-casecoll: New file.
45174
45175         New module 'unicase/u32-casexfrm'.
45176         * lib/unicase/u32-casexfrm.c: New file.
45177         * modules/unicase/u32-casexfrm: New file.
45178
45179         New module 'unicase/u16-casexfrm'.
45180         * lib/unicase/u16-casexfrm.c: New file.
45181         * modules/unicase/u16-casexfrm: New file.
45182
45183         New module 'unicase/u8-casexfrm'.
45184         * lib/unicase/u8-casexfrm.c: New file.
45185         * lib/unicase/u-casexfrm.h: New file.
45186         * modules/unicase/u8-casexfrm: New file.
45187
45188         Tests for module 'unicase/u32-casecmp'.
45189         * modules/unicase/u32-casecmp-tests: New file.
45190         * tests/unicase/test-u32-casecmp.c: New file.
45191
45192         Tests for module 'unicase/u16-casecmp'.
45193         * modules/unicase/u16-casecmp-tests: New file.
45194         * tests/unicase/test-u16-casecmp.c: New file.
45195
45196         Tests for module 'unicase/u8-casecmp'.
45197         * modules/unicase/u8-casecmp-tests: New file.
45198         * tests/unicase/test-u8-casecmp.c: New file.
45199         * tests/unicase/test-casecmp.h: New file.
45200
45201         New module 'unicase/u32-casecmp'.
45202         * lib/unicase/u32-casecmp.c: New file.
45203         * modules/unicase/u32-casecmp: New file.
45204
45205         New module 'unicase/u16-casecmp'.
45206         * lib/unicase/u16-casecmp.c: New file.
45207         * modules/unicase/u16-casecmp: New file.
45208
45209         New module 'unicase/u8-casecmp'.
45210         * lib/unicase/u8-casecmp.c: New file.
45211         * lib/unicase/u-casecmp.h: New file.
45212         * modules/unicase/u8-casecmp: New file.
45213
45214         Tests for module 'unicase/u32-casefold'.
45215         * modules/unicase/u32-casefold-tests: New file.
45216         * tests/unicase/test-u32-casefold.c: New file.
45217
45218         Tests for module 'unicase/u16-casefold'.
45219         * modules/unicase/u16-casefold-tests: New file.
45220         * tests/unicase/test-u16-casefold.c: New file.
45221
45222         Tests for module 'unicase/u8-casefold'.
45223         * modules/unicase/u8-casefold-tests: New file.
45224         * tests/unicase/test-u8-casefold.c: New file.
45225
45226         New module 'unicase/u32-casefold'.
45227         * lib/unicase/u32-casefold.c: New file.
45228         * modules/unicase/u32-casefold: New file.
45229
45230         New module 'unicase/u16-casefold'.
45231         * lib/unicase/u16-casefold.c: New file.
45232         * modules/unicase/u16-casefold: New file.
45233
45234         New module 'unicase/u8-casefold'.
45235         * lib/unicase/u8-casefold.c: New file.
45236         * lib/unicase/u-casefold.h: New file.
45237         * modules/unicase/u8-casefold: New file.
45238
45239         New module 'unicase/tocasefold'.
45240         * lib/unicase/casefold.h: New file.
45241         * lib/unicase/tocasefold.c: New file.
45242         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45243         * modules/unicase/tocasefold: New file.
45244
45245         Tests for module 'unicase/u32-totitle'.
45246         * modules/unicase/u32-totitle-tests: New file.
45247         * tests/unicase/test-u32-totitle.c: New file.
45248
45249         Tests for module 'unicase/u16-totitle'.
45250         * modules/unicase/u16-totitle-tests: New file.
45251         * tests/unicase/test-u16-totitle.c: New file.
45252
45253         Tests for module 'unicase/u8-totitle'.
45254         * modules/unicase/u8-totitle-tests: New file.
45255         * tests/unicase/test-u8-totitle.c: New file.
45256
45257         New module 'unicase/u32-totitle'.
45258         * lib/unicase/u32-totitle.c: New file.
45259         * modules/unicase/u32-totitle: New file.
45260
45261         New module 'unicase/u16-totitle'.
45262         * lib/unicase/u16-totitle.c: New file.
45263         * modules/unicase/u16-totitle: New file.
45264
45265         New module 'unicase/u8-totitle'.
45266         * lib/unicase/u8-totitle.c: New file.
45267         * lib/unicase/u-totitle.h: New file.
45268         * modules/unicase/u8-totitle: New file.
45269
45270         Tests for module 'unicase/u32-tolower'.
45271         * modules/unicase/u32-tolower-tests: New file.
45272         * tests/unicase/test-u32-tolower.c: New file.
45273
45274         Tests for module 'unicase/u16-tolower'.
45275         * modules/unicase/u16-tolower-tests: New file.
45276         * tests/unicase/test-u16-tolower.c: New file.
45277
45278         Tests for module 'unicase/u8-tolower'.
45279         * modules/unicase/u8-tolower-tests: New file.
45280         * tests/unicase/test-u8-tolower.c: New file.
45281
45282         New module 'unicase/u32-tolower'.
45283         * lib/unicase/u32-tolower.c: New file.
45284         * modules/unicase/u32-tolower: New file.
45285
45286         New module 'unicase/u16-tolower'.
45287         * lib/unicase/u16-tolower.c: New file.
45288         * modules/unicase/u16-tolower: New file.
45289
45290         New module 'unicase/u8-tolower'.
45291         * lib/unicase/u8-tolower.c: New file.
45292         * modules/unicase/u8-tolower: New file.
45293
45294         Tests for module 'unicase/u32-toupper'.
45295         * modules/unicase/u32-toupper-tests: New file.
45296         * tests/unicase/test-u32-toupper.c: New file.
45297
45298         Tests for module 'unicase/u16-toupper'.
45299         * modules/unicase/u16-toupper-tests: New file.
45300         * tests/unicase/test-u16-toupper.c: New file.
45301
45302         Tests for module 'unicase/u8-toupper'.
45303         * modules/unicase/u8-toupper-tests: New file.
45304         * tests/unicase/test-u8-toupper.c: New file.
45305
45306         New module 'unicase/u32-toupper'.
45307         * lib/unicase/u32-toupper.c: New file.
45308         * modules/unicase/u32-toupper: New file.
45309
45310         New module 'unicase/u16-toupper'.
45311         * lib/unicase/u16-toupper.c: New file.
45312         * modules/unicase/u16-toupper: New file.
45313
45314         New module 'unicase/u8-toupper'.
45315         * lib/unicase/u8-toupper.c: New file.
45316         * modules/unicase/u8-toupper: New file.
45317
45318         New module 'unicase/u32-casemap'.
45319         * lib/unicase/u32-casemap.c: New file.
45320         * modules/unicase/u32-casemap: New file.
45321
45322         New module 'unicase/u16-casemap'.
45323         * lib/unicase/u16-casemap.c: New file.
45324         * modules/unicase/u16-casemap: New file.
45325
45326         New module 'unicase/u8-casemap'.
45327         * lib/unicase/unicasemap.h: New file.
45328         * lib/unicase/u8-casemap.c: New file.
45329         * lib/unicase/u-casemap.h: New file.
45330         * modules/unicase/u8-casemap: New file.
45331
45332         New module 'unicase/special-casing'.
45333         * lib/unicase/special-casing.h: New file.
45334         * lib/unicase/special-casing.c: New file.
45335         * lib/unicase/special-casing-table.gperf: New file, generated by
45336         gen-uni-tables.c.
45337         * modules/unicase/special-casing: New file.
45338
45339         Tests for module 'unicase/locale-language'.
45340         * modules/unicase/locale-language-tests: New file.
45341         * tests/unicase/test-locale-language.sh: New file.
45342         * tests/unicase/test-locale-language.c: New file.
45343
45344         New module 'unicase/locale-language'.
45345         * lib/unicase/locale-language.c: New file.
45346         * lib/unicase/locale-languages.gperf: New file.
45347         * modules/unicase/locale-language: New file.
45348
45349         Generate more tables for case conversion and case folding.
45350         * lib/gen-uni-tables.c (SCC_*): New enum items.
45351         (struct special_casing_rule): New type.
45352         (casing_rules, num_casing_rules, allocated_casing_rules): New
45353         variables.
45354         (add_casing_rule, fill_casing_rules): New functions.
45355         (struct casefold_rule): New type.
45356         (casefolding_rules, num_casefolding_rules,
45357         allocated_casefolding_rules): New variables.
45358         (fill_casefolding_rules): New function.
45359         (unicode_casefold): New variable.
45360         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45361         sort_casing_rules, output_casing_rules): New functions.
45362         (main): Accept to more arguments: SpecialCasing.txt and
45363         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45364         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45365         Output mapping for casefolding.
45366
45367         * lib/unicase.h: Include stdbool.h, uninorm.h.
45368         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45369         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45370         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45371         arguments.
45372         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45373         resultp arguments.
45374         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45375         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45376         resultp arguments.
45377         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45378         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45379         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45380         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45381         declarations.
45382         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45383
45384 2009-03-08  Bruno Haible  <bruno@clisp.org>
45385
45386         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45387         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45388         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45389         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45390
45391 2009-03-07  Bruno Haible  <bruno@clisp.org>
45392
45393         Adjust u*_normcmp, u*_normcoll API.
45394         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45395         u16_normcoll, u32_normcoll): Change failure conventions.
45396         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45397         errno and return -1.
45398         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45399
45400 2009-03-07  Bruno Haible  <bruno@clisp.org>
45401
45402         Tests for module 'uninorm/u32-normcoll'.
45403         * modules/uninorm/u32-normcoll-tests: New file.
45404         * tests/uninorm/test-u32-normcoll.c: New file.
45405
45406         Tests for module 'uninorm/u16-normcoll'.
45407         * modules/uninorm/u16-normcoll-tests: New file.
45408         * tests/uninorm/test-u16-normcoll.c: New file.
45409
45410         Tests for module 'uninorm/u8-normcoll'.
45411         * modules/uninorm/u8-normcoll-tests: New file.
45412         * tests/uninorm/test-u8-normcoll.c: New file.
45413
45414 2009-03-07  Bruno Haible  <bruno@clisp.org>
45415
45416         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45417         tests/uninorm/test-u32-normcmp.c.
45418         * tests/uninorm/test-u32-normcmp.c: Include it.
45419         (test_nonascii): New function, extracted from main. Add some more
45420         tests.
45421         (main): Invoke test_ascii and test_nonascii.
45422         * modules/uninorm/u32-normcmp-tests (Files): Add
45423         tests/uninorm/test-u32-normcmp.h.
45424         (Depends-on): Remove uninorm/u32-normcmp.
45425
45426         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45427         tests/uninorm/test-u16-normcmp.c.
45428         * tests/uninorm/test-u16-normcmp.c: Include it.
45429         (test_nonascii): New function, extracted from main. Add some more
45430         tests.
45431         (main): Invoke test_ascii and test_nonascii.
45432         * modules/uninorm/u16-normcmp-tests (Files): Add
45433         tests/uninorm/test-u16-normcmp.h.
45434         (Depends-on): Remove uninorm/u16-normcmp.
45435
45436         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45437         tests/uninorm/test-u8-normcmp.c.
45438         * tests/uninorm/test-u8-normcmp.c: Include it.
45439         (test_nonascii): New function, extracted from main. Add some more
45440         tests.
45441         (main): Invoke test_ascii and test_nonascii.
45442         * modules/uninorm/u8-normcmp-tests (Files): Add
45443         tests/uninorm/test-u8-normcmp.h.
45444         (Depends-on): Remove uninorm/u8-normcmp.
45445
45446 2009-03-07  Bruno Haible  <bruno@clisp.org>
45447
45448         New module 'uninorm/u32-normcoll'.
45449         * lib/uninorm/u32-normcoll.c: New file.
45450         * modules/uninorm/u32-normcoll: New file.
45451
45452         New module 'uninorm/u16-normcoll'.
45453         * lib/uninorm/u16-normcoll.c: New file.
45454         * modules/uninorm/u16-normcoll: New file.
45455
45456         New module 'uninorm/u8-normcoll'.
45457         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45458         declarations.
45459         * lib/uninorm/u8-normcoll.c: New file.
45460         * lib/uninorm/u-normcoll.h: New file.
45461         * modules/uninorm/u8-normcoll: New file.
45462
45463         New module 'uninorm/u32-normxfrm'.
45464         * lib/uninorm/u32-normxfrm.c: New file.
45465         * modules/uninorm/u32-normxfrm: New file.
45466
45467         New module 'uninorm/u16-normxfrm'.
45468         * lib/uninorm/u16-normxfrm.c: New file.
45469         * modules/uninorm/u16-normxfrm: New file.
45470
45471         New module 'uninorm/u8-normxfrm'.
45472         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45473         declarations.
45474         * lib/uninorm/u8-normxfrm.c: New file.
45475         * lib/uninorm/u-normxfrm.h: New file.
45476         * modules/uninorm/u8-normxfrm: New file.
45477
45478 2009-03-07  Bruno Haible  <bruno@clisp.org>
45479
45480         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45481         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45482         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45483
45484 2009-03-07  Bruno Haible  <bruno@clisp.org>
45485
45486         New module 'memxfrm'.
45487         * lib/memxfrm.h: New file.
45488         * lib/memxfrm.c: New file.
45489         * modules/memxfrm: New file.
45490
45491 2009-03-07  Bruno Haible  <bruno@clisp.org>
45492
45493         New module 'memcmp2'.
45494         * lib/memcmp2.h: New file.
45495         * lib/memcmp2.c: New file.
45496         * modules/memcmp2: New file.
45497
45498 2009-03-07  Bruno Haible  <bruno@clisp.org>
45499
45500         Tests for module 'uninorm/decomposing-form'.
45501         * modules/uninorm/decomposing-form-tests: New file.
45502         * tests/uninorm/test-decomposing-form.c: New file.
45503
45504         New module 'uninorm/decomposing-form'.
45505         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45506         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45507         Add 'decomposing_variant' field.
45508         * lib/uninorm/decomposing-form.c: New file.
45509         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45510         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45511         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45512         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45513         * modules/uninorm/decomposing-form: New file.
45514         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45515         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45516
45517 2009-03-07  Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45520         strings.
45521
45522 2009-03-06  Bruno Haible  <bruno@clisp.org>
45523
45524         Tests for module 'uninorm/u32-normcmp'.
45525         * tests/uninorm/test-u32-normcmp.c: New file.
45526         * modules/uninorm/u32-normcmp-tests: New file.
45527
45528         Tests for module 'uninorm/u16-normcmp'.
45529         * tests/uninorm/test-u16-normcmp.c: New file.
45530         * modules/uninorm/u16-normcmp-tests: New file.
45531
45532         Tests for module 'uninorm/u8-normcmp'.
45533         * tests/uninorm/test-u8-normcmp.c: New file.
45534         * modules/uninorm/u8-normcmp-tests: New file.
45535
45536         New module 'uninorm/u32-normcmp'.
45537         * lib/uninorm/u32-normcmp.c: New file.
45538         * modules/uninorm/u32-normcmp: New file.
45539
45540         New module 'uninorm/u16-normcmp'.
45541         * lib/uninorm/u16-normcmp.c: New file.
45542         * modules/uninorm/u16-normcmp: New file.
45543
45544         New module 'uninorm/u8-normcmp'.
45545         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45546         declarations.
45547         * lib/uninorm/u8-normcmp.c: New file.
45548         * lib/uninorm/u-normcmp.h: New file.
45549         * modules/uninorm/u8-normcmp: New file.
45550
45551 2009-03-06  Bruno Haible  <bruno@clisp.org>
45552
45553         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45554         Reported by Eric Blake.
45555
45556 2009-03-06  Eric Blake  <ebb9@byu.net>
45557             Bruno Haible  <bruno@clisp.org>
45558
45559         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45560         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45561         condition.
45562         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45563         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45564         condition.
45565         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45566
45567 2009-03-06  Eric Blake  <ebb9@byu.net>
45568
45569         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45570         to avoid compiler warnings.
45571         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45572
45573 2009-03-05  Bruno Haible  <bruno@clisp.org>
45574
45575         * tests/test-ftell.c (main): Disable test beyond end of file on
45576         FreeMiNT.
45577         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45578
45579 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45580
45581         * lib/filevercmp.c: Move hidden files up in ordering.
45582         * tests/test-filevercmp.c: Add tests for hidden files.
45583
45584 2009-03-04  Bruno Haible  <bruno@clisp.org>
45585
45586         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45587         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45588         AM_CFLAGS.
45589         Reported by Simon Josefsson.
45590
45591 2009-03-03  Bruno Haible  <bruno@clisp.org>
45592
45593         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45594         Reported by Simon Josefsson.
45595
45596         * doc/ld-version-script.texi: Update node reference.
45597
45598 2009-03-03  Bruno Haible  <bruno@clisp.org>
45599
45600         * modules/visibility (License): Change to 'unlimited'.
45601         Suggested by Simon Josefsson.
45602
45603 2009-03-03  Jim Meyering  <meyering@redhat.com>
45604
45605         unlinkdir: cannot_unlink_dir may modify process state
45606         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45607         it's neither thread-safe nor appropriate for use in a library.
45608
45609 2009-03-03  Eric Blake  <ebb9@byu.net>
45610
45611         test-closein: silence test under Darwin
45612         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45613         care if it dies from EPIPE or EBADF.
45614
45615 2009-03-03  Bruno Haible  <bruno@clisp.org>
45616
45617         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45618         earlier.
45619         * doc/visibility.texi: Fix @node and @section.
45620
45621 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45622
45623         * doc/gnulib.texi: Link to sections for ld version script and
45624         visibility.
45625         * doc/visibility.texi: Add @node and @section.
45626         * modules/ld-version-script: New module.
45627         * m4/ld-version-script.m4: New file.
45628         * doc/ld-version-script.texi: New file.
45629
45630 2009-03-02  David Lutterkort  <lutter@redhat.com>
45631
45632         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45634
45635 2009-03-02  Bruno Haible  <bruno@clisp.org>
45636
45637         * doc/visibility.texi: Mention libtool's -export-symbols option.
45638
45639 2009-03-02  Jim Meyering  <meyering@redhat.com>
45640
45641         announce-gen: new option: --no-print-checksums
45642         * build-aux/announce-gen (usage): Describe it.
45643         (print_checksums): Print a newline here, not in the [*] footnote.
45644         (main): Honor it.
45645
45646 2009-03-01  Bruno Haible  <bruno@clisp.org>
45647
45648         Use socklen_t in the native Windows replacements prototypes.
45649         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45650         instead of 'int'.
45651         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45652         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45653         * modules/getsockopt (Depends-on): Add socklen.
45654         * modules/setsockopt (Depends-on): Add socklen.
45655
45656 2009-03-01  Bruno Haible  <bruno@clisp.org>
45657
45658         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45659         least 4.2.
45660
45661 2009-03-01  Eric Blake  <ebb9@byu.net>
45662             Bruno Haible  <bruno@clisp.org>
45663
45664         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45665         error messages.
45666         * lib/wait-process.c (wait_subprocess): Omit error message about
45667         deadly signal sent to the child of termsigp != NULL.
45668
45669 2009-03-01  Eric Blake  <ebb9@byu.net>
45670
45671         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45672
45673 2009-03-01  Bruno Haible  <bruno@clisp.org>
45674
45675         Avoid a gcc warning.
45676         * tests/test-sched.c (b): Make global.
45677         Reported by Eric Blake.
45678
45679 2009-01-19  Martin Lambers  <marlam@marlam.de>
45680
45681         Provide POSIX semantics for socket timeout options on W32.
45682         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45683         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45684         * modules/setsockopt: Depend on sys_time module for struct timeval.
45685         * modules/getsockopt: Depend on sys_time module for struct timeval.
45686
45687 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45688
45689         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45690         __USE_GNU, for consistency with netdb.in.h.
45691         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45692
45693 2009-03-01  Bruno Haible  <bruno@clisp.org>
45694
45695         More support for FreeMiNT.
45696         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45697         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45698
45699 2009-03-01  Bruno Haible  <bruno@clisp.org>
45700
45701         More support for FreeMiNT.
45702         * lib/fpurge.c (fpurge): Correct last commit.
45703         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45704
45705 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45706
45707         Fix unportable awk script in vc-list-files.
45708         * build-aux/vc-list-files: In the replacement awk script, use
45709         substr with a second argument of 1, not zero.
45710         Report by Simon Josefsson.
45711
45712 2009-02-28  Bruno Haible  <bruno@clisp.org>
45713
45714         More support for FreeMiNT.
45715         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45716         to FreeMiNT today.
45717         * lib/fwriting.c (fwriting): Likewise.
45718         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45719
45720 2009-02-28  Bruno Haible  <bruno@clisp.org>
45721
45722         * tests/test-freadseek.c (main): Disable test beyond end of file on
45723         FreeMiNT.
45724         * tests/test-ftello.c (main): Likewise.
45725         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45726
45727 2009-02-28  Bruno Haible  <bruno@clisp.org>
45728
45729         Add tentative support for FreeMiNT.
45730         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45731         * lib/fpurge.c (fpurge): Likewise.
45732         * lib/freadable.c (freadable): Likewise.
45733         * lib/freading.c (freading): Likewise.
45734         * lib/freadptr.c (freadptr): Likewise.
45735         * lib/freadseek.c (freadptrinc): Likewise.
45736         * lib/fseeko.c (rpl_fseeko): Likewise.
45737         * lib/fseterr.c (fseterr): Likewise.
45738         * lib/fwritable.c (fwritable): Likewise.
45739         * lib/fwriting.c (fwriting): Likewise.
45740         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45741         Hourihane.
45742         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45743
45744 2009-02-28  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45747         SIGCHLD.
45748         Reported by Jim Meyering.
45749
45750 2009-02-28  Bruno Haible  <bruno@clisp.org>
45751
45752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45753         Mention the results of these tests on various platforms.
45754         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45755         order.
45756         * doc/posix-functions/printf.texi: Likewise.
45757         * doc/posix-functions/snprintf.texi: Likewise.
45758         * doc/posix-functions/sprintf.texi: Likewise.
45759         * doc/posix-functions/vfprintf.texi: Likewise.
45760         * doc/posix-functions/vprintf.texi: Likewise.
45761         * doc/posix-functions/vsnprintf.texi: Likewise.
45762         * doc/posix-functions/vsprintf.texi: Likewise.
45763         * doc/glibc-functions/obstack_printf.texi: Likewise.
45764         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45765
45766 2009-02-28  Bruno Haible  <bruno@clisp.org>
45767
45768         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45769         Reported by Loïc Minier <lool@dooz.org>.
45770
45771 2009-02-27  Bruno Haible  <bruno@clisp.org>
45772
45773         * gnulib-tool (func_import): Make the sed expression used to create the
45774         sed script for updating the .gitignore file POSIX compliant.
45775         Reported by Eric Blake.
45776
45777 2009-02-27  Bruno Haible  <bruno@clisp.org>
45778
45779         * gnulib-tool (sed): Don't alias as "sed --posix".
45780         Reported by Eric Blake.
45781
45782 2009-02-27  Bruno Haible  <bruno@clisp.org>
45783
45784         Avoid test link errors.
45785         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45786         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45787         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45788         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45790
45791 2009-02-27  Bruno Haible  <bruno@clisp.org>
45792
45793         Avoid spurious "(cached)" in configure output.
45794         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45795         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45796         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45797         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45798         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45799         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45800         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45801         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45802         Reported by Eric Blake.
45803
45804 2009-02-27  Eric Blake  <ebb9@byu.net>
45805
45806         printf: fix regression in previous patch
45807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45808
45809 2009-02-27  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45812         value.
45813         * lib/stdint.in.h: Likewise.
45814         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45815
45816 2009-02-27  Eric Blake  <ebb9@byu.net>
45817
45818         doc: mention more functions added in cygwin 1.7.0
45819         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45820         addition.
45821         * doc/posix-functions/open_wmemstream.texi: Likewise.
45822         * doc/posix-functions/wcsnlen.texi: Likewise.
45823         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45824         * doc/posix-functions/wcstod.texi: Likewise.
45825         * doc/posix-functions/wcstof.texi: Likewise.
45826         * doc/posix-functions/wcstoimax.texi: Likewise.
45827         * doc/posix-functions/wcstok.texi: Likewise.
45828         * doc/posix-functions/wcstoumax.texi: Likewise.
45829
45830         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45832         * doc/posix-functions/fprintf.texi: Update.
45833         * doc/posix-functions/printf.texi: Update.
45834         * doc/posix-functions/snprintf.texi: Update.
45835         * doc/posix-functions/sprintf.texi: Update.
45836         * doc/posix-functions/vfprintf.texi: Update.
45837         * doc/posix-functions/vprintf.texi: Update.
45838         * doc/posix-functions/vsnprintf.texi: Update.
45839         * doc/posix-functions/vsprintf.texi: Update.
45840         * doc/glibc-functions/obstack_printf.texi: Update.
45841         * doc/glibc-functions/obstack_vprintf.texi: Update.
45842
45843 2009-02-26  Eric Blake  <ebb9@byu.net>
45844
45845         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45846         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45847         compilation bug by using runtime conversion.
45848         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45849         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45850         * modules/ceill-tests (Files): Use nan.h.
45851         * modules/floorl-tests (Files): Likewise.
45852         * modules/frexpl-tests (Files): Likewise.
45853         * modules/isnanl-tests (Files): Likewise.
45854         * modules/ldexpl-tests (Files): Likewise.
45855         * modules/roundl-tests (Files): Likewise.
45856         * modules/truncl-tests (Files): Likewise.
45857         * tests/test-ceill.c (main): Use a working NaN.
45858         * tests/test-floorl.c (main): Likewise.
45859         * tests/test-frexpl.c (main): Likewise.
45860         * tests/test-isnan.c (test_long_double): Likewise.
45861         * tests/test-isnanl.h (main): Likewise.
45862         * tests/test-ldexpl.h (main): Likewise.
45863         * tests/test-roundl.h (main): Likewise.
45864         * tests/test-truncl.h (main): Likewise.
45865         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45866
45867 2009-02-26  Eric Blake  <ebb9@byu.net>
45868             Bruno Haible  <bruno@clisp.org>
45869
45870         Work around a *printf bug with %ls on Solaris.
45871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45872         precision is specified, sprintf stops converting the wide string
45873         argument when the number of bytes that have been produced by this
45874         conversion equals or exceeds the precision.
45875         * doc/posix-functions/fprintf.texi: Update.
45876         * doc/posix-functions/printf.texi: Update.
45877         * doc/posix-functions/snprintf.texi: Update.
45878         * doc/posix-functions/sprintf.texi: Update.
45879         * doc/posix-functions/vfprintf.texi: Update.
45880         * doc/posix-functions/vprintf.texi: Update.
45881         * doc/posix-functions/vsnprintf.texi: Update.
45882         * doc/posix-functions/vsprintf.texi: Update.
45883         * doc/glibc-functions/obstack_printf.texi: Update.
45884         * doc/glibc-functions/obstack_vprintf.texi: Update.
45885
45886 2009-02-26  Eric Blake  <ebb9@byu.net>
45887
45888         stdlib: favor compiler check of random.h
45889         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45890         to avoid an ObjC random.h installed by Swarm.
45891
45892 2009-02-26  Bruno Haible  <bruno@clisp.org>
45893
45894         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45895         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45896         Reported by Gary V. Vaughan <gary@gnu.org>.
45897
45898 2009-02-26  Bruno Haible  <bruno@clisp.org>
45899
45900         Fix *printf behaviour regarding the %ls directive.
45901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45902         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45903         NEED_PRINTF_DIRECTIVE_LS.
45904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45905         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45907         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45908         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45909         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45910         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45915         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45919         * doc/posix-functions/fprintf.texi: Update.
45920         * doc/posix-functions/printf.texi: Update.
45921         * doc/posix-functions/snprintf.texi: Update.
45922         * doc/posix-functions/sprintf.texi: Update.
45923         * doc/posix-functions/vfprintf.texi: Update.
45924         * doc/posix-functions/vprintf.texi: Update.
45925         * doc/posix-functions/vsnprintf.texi: Update.
45926         * doc/posix-functions/vsprintf.texi: Update.
45927         * doc/glibc-functions/obstack_printf.texi: Update.
45928         * doc/glibc-functions/obstack_vprintf.texi: Update.
45929         Reported by Eric Blake.
45930
45931 2009-02-25  Bruno Haible  <bruno@clisp.org>
45932
45933         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45934         with known value.
45935         Reported by Gary V. Vaughan <gary@gnu.org>.
45936
45937 2009-02-25  Bruno Haible  <bruno@clisp.org>
45938
45939         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45940         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45941         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45942         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45943         Reported by Gary V. Vaughan <gary@gnu.org>.
45944
45945 2009-02-25  Bruno Haible  <bruno@clisp.org>
45946
45947         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45948         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45949         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45950         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45951         Reported by Gary V. Vaughan <gary@gnu.org>.
45952
45953 2009-02-25  Eric Blake  <ebb9@byu.net>
45954
45955         tests: skip fseek/ftell tests if ungetc is broken
45956         * m4/ungetc.m4: New file.
45957         * modules/fseek-tests: Split test, so ungetc dependency is
45958         separate from rest of test.
45959         * modules/fseeko-tests: Likewise.
45960         * modules/ftell-tests: Likewise.
45961         * modules/ftello-tests: Likewise.
45962         * tests/test-fseek.c (main): Isolate ungetc dependency.
45963         * tests/test-fseeko.c (main): Likewise.
45964         * tests/test-ftell.c (main): Likewise.
45965         * tests/test-ftello.c (main): Likewise.
45966         * tests/test-fseek2.sh: New file.
45967         * tests/test-fseeko2.sh: Likewise.
45968         * tests/test-ftell2.sh: Likewise.
45969         * tests/test-ftello2.sh: Likewise.
45970
45971 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45972
45973         test-getaddrinfo: fix usage of skip return code 77
45974         * tests/test-gettaddrinfo.c: Return skip code 77 only
45975         for first occurance of skip (4x77 is not 77)
45976
45977 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45978
45979         strtod: avoid C99 decl-after-statement
45980         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45981
45982 2009-02-24  Eric Blake  <ebb9@byu.net>
45983
45984         strtod: detect HP-UX 11.31 bug
45985         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45986         Reported by Gary V. Vaughan.
45987
45988 2009-02-23  Bruno Haible  <bruno@clisp.org>
45989
45990         Fix invalid read past end of memory block.
45991         * lib/vasnprintf.c (DCHAR_SET): Define.
45992         (local_wcslen): Define only when needed.
45993         (local_strnlen, local_wcsnlen): New functions.
45994         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45995         directives that involve a conversion ourselves.
45996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45997         wcsnlen, mbrtowc, wcrtomb.
45998         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45999         * tests/test-vasprintf-posix.c (test_function): Likewise.
46000         * tests/test-snprintf-posix.h (test_function): Likewise.
46001         * tests/test-sprintf-posix.h (test_function): Likewise.
46002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46003
46004 2009-02-22  Bruno Haible  <bruno@clisp.org>
46005
46006         Implement new clarified decomposition of Hangul syllables.
46007         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46008         of type LTV, return only a pairwise decomposition.
46009         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46010         Likewise.
46011         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46012         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46013         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46014
46015 2009-02-22  Bruno Haible  <bruno@clisp.org>
46016
46017         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46018         zero-length results and shrink excess allocated memory.
46019         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46020         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46021         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46022         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46023         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46024         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46025         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46026         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46027         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46028         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46029         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46030         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46031
46032 2009-02-21  Bruno Haible  <bruno@clisp.org>
46033
46034         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46035         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46036         spaces after a period. Put a space between a macro name and its
46037         argument list. Trivial rewordings.
46038         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46039         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46040         (main): Return 0 explicitly.
46041
46042 2009-02-21  Bruno Haible  <bruno@clisp.org>
46043
46044         Tests for module 'uninorm/filter'.
46045         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46046         * modules/uninorm/filter-tests: New file.
46047
46048         New module 'uninorm/filter'.
46049         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46050         uninorm_filter_flush, uninorm_filter_free): New declarations.
46051         * lib/uninorm/uninorm-filter.c: New file.
46052         * modules/uninorm/filter: New file.
46053
46054 2009-02-21  Bruno Haible  <bruno@clisp.org>
46055
46056         Tests for module 'uninorm/nfkc'.
46057         * tests/uninorm/test-nfkc.c: New file.
46058         * tests/uninorm/test-u8-nfkc.c: New file.
46059         * tests/uninorm/test-u16-nfkc.c: New file.
46060         * tests/uninorm/test-u32-nfkc.c: New file.
46061         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46062         * tests/uninorm/test-u32-nfkc-big.c: New file.
46063         * modules/uninorm/nfkc-tests: New file.
46064
46065         New module 'uninorm/nfkc'.
46066         * lib/uninorm/nfkc.c: New file.
46067         * modules/uninorm/nfkc: New file.
46068
46069         Tests for module 'uninorm/nfkd'.
46070         * tests/uninorm/test-nfkd.c: New file.
46071         * tests/uninorm/test-u8-nfkd.c: New file.
46072         * tests/uninorm/test-u16-nfkd.c: New file.
46073         * tests/uninorm/test-u32-nfkd.c: New file.
46074         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46075         * tests/uninorm/test-u32-nfkd-big.c: New file.
46076         * modules/uninorm/nfkd-tests: New file.
46077
46078         New module 'uninorm/nfkd'.
46079         * lib/uninorm/nfkd.c: New file.
46080         * modules/uninorm/nfkd: New file.
46081
46082         Tests for module 'uninorm/nfc'.
46083         * tests/uninorm/test-nfc.c: New file.
46084         * tests/uninorm/test-u8-nfc.c: New file.
46085         * tests/uninorm/test-u16-nfc.c: New file.
46086         * tests/uninorm/test-u32-nfc.c: New file.
46087         * tests/uninorm/test-u32-nfc-big.sh: New file.
46088         * tests/uninorm/test-u32-nfc-big.c: New file.
46089         * modules/uninorm/nfc-tests: New file.
46090
46091         New module 'uninorm/nfc'.
46092         * lib/uninorm/nfc.c: New file.
46093         * modules/uninorm/nfc: New file.
46094
46095         Tests for module 'uninorm/nfd'.
46096         * tests/uninorm/test-nfd.c: New file.
46097         * tests/uninorm/test-u8-nfd.c: New file.
46098         * tests/uninorm/test-u16-nfd.c: New file.
46099         * tests/uninorm/test-u32-nfd.c: New file.
46100         * tests/uninorm/test-u32-nfd-big.sh: New file.
46101         * tests/uninorm/test-u32-nfd-big.c: New file.
46102         * tests/uninorm/test-u32-normalize-big.h: New file.
46103         * tests/uninorm/test-u32-normalize-big.c: New file.
46104         * tests/uninorm/NormalizationTest.txt: New file, created from
46105         Unicode 5.1.0 NormalizationTest.txt.
46106         * modules/uninorm/nfd-tests: New file.
46107
46108         New module 'uninorm/nfd'.
46109         * lib/uninorm/nfd.c: New file.
46110         * modules/uninorm/nfd: New file.
46111
46112         New module 'uninorm/u32-normalize'.
46113         * lib/uninorm/u32-normalize.c: New file.
46114         * modules/uninorm/u32-normalize: New file.
46115
46116         New module 'uninorm/u16-normalize'.
46117         * lib/uninorm/u16-normalize.c: New file.
46118         * modules/uninorm/u16-normalize: New file.
46119
46120         New module 'uninorm/u8-normalize'.
46121         * lib/uninorm/u8-normalize.c: New file.
46122         * lib/uninorm/normalize-internal.h: New file.
46123         * lib/uninorm/u-normalize-internal.h: New file.
46124         * modules/uninorm/u8-normalize: New file.
46125
46126         New module 'uninorm/decompose-internal'.
46127         * lib/uninorm/decompose-internal.c: New file.
46128         * modules/uninorm/decompose-internal: New file.
46129
46130         Tests for module 'uninorm/composition'.
46131         * tests/uninorm/test-composition.c: New file.
46132         * modules/uninorm/composition-tests: New file.
46133
46134         New module 'uninorm/composition'.
46135         * lib/uninorm/composition.c: New file.
46136         * lib/uninorm/composition-table.gperf: New file, generated by
46137         gen-uni-tables.
46138         * modules/uninorm/composition: New file.
46139
46140         Tests for module 'uninorm/compat-decomposition'.
46141         * tests/uninorm/test-compat-decomposition.c: New file.
46142         * modules/uninorm/compat-decomposition-tests: New file.
46143
46144         New module 'uninorm/compat-decomposition'.
46145         * lib/uninorm/decompose-internal.h: New file.
46146         * lib/uninorm/compat-decomposition.c: New file.
46147         * modules/uninorm/compat-decomposition: New file.
46148
46149         Tests for module 'uninorm/canonical-decomposition'.
46150         * tests/uninorm/test-canonical-decomposition.c: New file.
46151         * modules/uninorm/canonical-decomposition-tests: New file.
46152
46153         New module 'uninorm/canonical-decomposition'.
46154         * lib/uninorm/canonical-decomposition.c: New file.
46155         * modules/uninorm/canonical-decomposition: New file.
46156
46157         Tests for module 'uninorm/decomposition'.
46158         * tests/uninorm/test-decomposition.c: New file.
46159         * modules/uninorm/decomposition-tests: New file.
46160
46161         New module 'uninorm/decomposition'.
46162         * lib/uninorm/decomposition.c: New file.
46163         * modules/uninorm/decomposition: New file.
46164
46165         New module 'uninorm/decomposition-table'.
46166         * lib/uninorm/decomposition-table.h: New file.
46167         * lib/uninorm/decomposition-table.c: New file.
46168         * lib/uninorm/decomposition-table1.h: New file, generated by
46169         gen-uni-tables.
46170         * lib/uninorm/decomposition-table2.h: New file, generated by
46171         gen-uni-tables.
46172         * modules/uninorm/decomposition-table: New file.
46173
46174         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46175         (UC_DECOMP_*): New enumeration items.
46176         (get_decomposition): New function.
46177         (struct decomp_table): New type.
46178         (output_decomposition, output_decomposition_tables): New functions.
46179         (unicode_composition_exclusions): New variable.
46180         (fill_composition_exclusions, debug_output_composition_tables): New
46181         functions.
46182         (main): Accept one more argument. Invoke fill_composition_exclusions.
46183         Output decomposition and composition tables.
46184
46185         New module 'uninorm/base'.
46186         * lib/uninorm.h: New file.
46187         * lib/unictype.h: Update comment.
46188         * modules/uninorm/base: New file.
46189
46190 2009-02-21  David Lutterkort  <lutter@redhat.com>
46191
46192         Tests for module 'safe-alloc'.
46193         * tests/test-safe-alloc.c: New file.
46194         * modules/safe-alloc-tests: New file.
46195
46196         New module 'safe-alloc'.
46197         * lib/safe-alloc.h: New file.
46198         * lib/safe-alloc.c: New file.
46199         * m4/safe-alloc.m4: New file.
46200         * modules/safe-alloc: New file.
46201         * doc/safe-alloc.texi: New file.
46202         * doc/gnulib.texi: Include it.
46203         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46204         safe-alloc.
46205
46206 2009-02-18  Bruno Haible  <bruno@clisp.org>
46207
46208         Fix link error on non-glibc systems.
46209         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46210         variable.
46211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46212
46213 2009-02-18  Jim Meyering  <meyering@redhat.com>
46214
46215         fts: avoid used-uninitialized error due to recent change
46216         * lib/fts.c (fts_read): Guard uses of the new member,
46217         parent->fts_n_dirs_remaining, since it's not relevant for
46218         the parent of a directory specified on the command-line.
46219
46220 2009-02-17  James Youngman  <jay@gnu.org>
46221             Bruno Haible  <bruno@clisp.org>
46222
46223         * m4/include_next.m4: Reformulate comment.
46224
46225 2009-02-16  Jim Meyering  <meyering@redhat.com>
46226
46227         fts: add #if guards so that the fts_lgpl module still builds
46228         * lib/fts.c: Guard just-added hash-table-using parts with
46229         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46230         Reported by Simon Josefsson.
46231
46232 2009-02-15  Bruno Haible  <bruno@clisp.org>
46233
46234         * modules/array-mergesort-tests: New file.
46235         * tests/test-array-mergesort.c: New file.
46236
46237         New module 'array-mergesort'.
46238         * modules/array-mergesort: New file.
46239         * lib/array-mergesort.h: New file.
46240
46241 2009-02-15  Bruno Haible  <bruno@clisp.org>
46242
46243         Fix 2009-02-07 commit.
46244         * lib/gen-uni-tables.c (output_predicate, output_category,
46245         output_combclass, output_bidi_category, output_decimal_digit,
46246         output_digit, output_numeric, output_mirror, output_scripts,
46247         output_ident_category, output_simple_mapping): Fix format directives.
46248         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46249
46250 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46251
46252         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46253         fixes are available from IBM.
46254
46255 2009-02-13  Jim Meyering  <meyering@redhat.com>
46256
46257         fts: arrange not to stat non-directories in more cases
46258         This makes GNU find (when it doesn't need to stat each file)
46259         *much* more efficient at traversing reiserfs file systems.
46260         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46261         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46262         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46263         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46264         (leaf_optimization_applies): New function.
46265         (LCO_hash, LCO_compare): New helper functions.
46266         (link_count_optimize_ok): New function.
46267         (fts_stat): Initialize new member (if dir).
46268         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46269         we've just stat'ed a directory.  Skip the stat call when possible.
46270         ---
46271         Note this AFS-related exchange:
46272         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46273         and note find's pioctl call in find/fstype.c.
46274         But that is necessary only if you want to enable the
46275         optimization for AFS, and for now, I don't.
46276
46277         fts: move a function definition "up" (no semantic change)
46278         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46279         "up" to precede upcoming use of a related function.
46280
46281 2009-02-11  Jim Meyering  <meyering@redhat.com>
46282
46283         fts: correct internal computation of nlinks (optimization-related)
46284         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46285         whether the current entry is a directory, so don't test it.
46286
46287 2009-02-10  Bruno Haible  <bruno@clisp.org>
46288
46289         Tests for module 'uniwbrk/ulc-wordbreaks'.
46290         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46291         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46292         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46293
46294         Tests for module 'uniwbrk/u32-wordbreaks'.
46295         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46296         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46297
46298         Tests for module 'uniwbrk/u16-wordbreaks'.
46299         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46300         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46301
46302         Tests for module 'uniwbrk/u8-wordbreaks'.
46303         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46304         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46305
46306 2009-02-10  Bruno Haible  <bruno@clisp.org>
46307
46308         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46309         property.
46310         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46311         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46312         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46313
46314 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46315
46316         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46317         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46318
46319 2009-02-10  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46322         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46323         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46324         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46325         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46326         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46327
46328 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46329
46330         * lib/sockets.h (gl_fd_to_handle): New function.
46331
46332         * tests/test-sockets.c: Call gl_fd_to_handle.
46333
46334 2009-02-09  Bruno Haible  <bruno@clisp.org>
46335
46336         * doc/havelib.texi: Document the conventions on bi-arch systems.
46337
46338 2009-02-08  Bruno Haible  <bruno@clisp.org>
46339
46340         Document the AC_LIB_LINKFLAGS macro.
46341         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46342         * doc/gnulib.texi: Include it.
46343
46344 2009-02-08  Bruno Haible  <bruno@clisp.org>
46345
46346         Fix wrong order of sections, compared to TOC.
46347         * doc/gnulib.texi: Include relocatable-maint.texi after the
46348         "Regular expressions" node, not before.
46349
46350 2009-02-08  Bruno Haible  <bruno@clisp.org>
46351
46352         Tests for module 'unicase/totitle'.
46353         * modules/unicase/totitle-tests: New file.
46354
46355         Tests for module 'unicase/tolower'.
46356         * modules/unicase/tolower-tests: New file.
46357
46358         Tests for module 'unicase/toupper'.
46359         * modules/unicase/toupper-tests: New file.
46360         * tests/unicase/test-mapping-part1.h: New file.
46361         * tests/unicase/test-mapping-part2.h: New file.
46362
46363         New module 'unicase/totitle'.
46364         * modules/unicase/totitle: New file.
46365         * lib/unicase/totitle.c: New file.
46366
46367         New module 'unicase/tolower'.
46368         * modules/unicase/tolower: New file.
46369         * lib/unicase/tolower.c: New file.
46370
46371         New module 'unicase/toupper'.
46372         * modules/unicase/toupper: New file.
46373         * lib/unicase/toupper.c: New file.
46374         * lib/unicase/simple-mapping.h: New file.
46375
46376         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46377         (mapping_table): New structure.
46378         (output_simple_mapping): New function.
46379         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46380         * modules/gen-uni-tables (Description): Update.
46381         * lib/unicase/toupper.h: New file, automatically generated by
46382         gen-uni-tables.
46383         * lib/unicase/tolower.h: New file, automatically generated by
46384         gen-uni-tables.
46385         * lib/unicase/totitle.h: New file, automatically generated by
46386         gen-uni-tables.
46387         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46388         gen-uni-tables.
46389         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46390         gen-uni-tables.
46391         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46392         gen-uni-tables.
46393
46394         New module 'unicase/base'.
46395         * modules/unicase/base: New file.
46396         * lib/unicase.h: New file.
46397
46398 2009-02-08  Bruno Haible  <bruno@clisp.org>
46399
46400         New module 'uniwbrk/ulc-wordbreaks'.
46401         * modules/uniwbrk/ulc-wordbreaks: New file.
46402         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46403
46404         New module 'uniwbrk/u32-wordbreaks'.
46405         * modules/uniwbrk/u32-wordbreaks: New file.
46406         * lib/uniwbrk/u32-wordbreaks.c: New file.
46407
46408         New module 'uniwbrk/u16-wordbreaks'.
46409         * modules/uniwbrk/u16-wordbreaks: New file.
46410         * lib/uniwbrk/u16-wordbreaks.c: New file.
46411
46412         New module 'uniwbrk/u8-wordbreaks'.
46413         * modules/uniwbrk/u8-wordbreaks: New file.
46414         * lib/uniwbrk/u8-wordbreaks.c: New file.
46415         * lib/uniwbrk/u-wordbreaks.h: New file.
46416
46417         New module 'uniwbrk/table'.
46418         * modules/uniwbrk/table: New file.
46419         * lib/uniwbrk/wbrktable.h: New file.
46420         * lib/uniwbrk/wbrktable.c: New file.
46421
46422         New module 'uniwbrk/wordbreak-property'.
46423         * modules/uniwbrk/wordbreak-property: New file.
46424         * lib/uniwbrk/wordbreak-property.c: New file.
46425
46426         * lib/gen-uni-tables.c (WBP_*): New enum items.
46427         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46428         (unicode_org_wbp): New variable.
46429         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46430         New functions.
46431         (wbp_table): New structure.
46432         (output_wbp, output_wbrk_tables): New functions.
46433         (main): Accept additional argument. Invoke fill_org_wbp,
46434         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46435         output_wbrk_tables.
46436         * modules/gen-uni-tables (Description): Update.
46437         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46438         gen-uni-tables.
46439
46440         New module 'uniwbrk/base'.
46441         * modules/uniwbrk/base: New file.
46442         * lib/uniwbrk.h: New file.
46443
46444 2009-02-08  Bruno Haible  <bruno@clisp.org>
46445
46446         Update to Unicode 5.1.0.
46447         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46448         U+2185..U+2188.
46449         (is_property_default_ignorable_code_point): Don't include characters
46450         of category Cc or Cs and not-a-characters.
46451         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46452         U+0D79, U+109E, U+109F, U+A60C.
46453         * lib/unictype/bidi_of.h: Regenerated.
46454         * lib/unictype/blocks.h: Regenerated.
46455         * lib/unictype/categ_C.h: Regenerated.
46456         * lib/unictype/categ_Cf.h: Regenerated.
46457         * lib/unictype/categ_Cn.h: Regenerated.
46458         * lib/unictype/categ_L.h: Regenerated.
46459         * lib/unictype/categ_Ll.h: Regenerated.
46460         * lib/unictype/categ_Lm.h: Regenerated.
46461         * lib/unictype/categ_Lo.h: Regenerated.
46462         * lib/unictype/categ_Lu.h: Regenerated.
46463         * lib/unictype/categ_M.h: Regenerated.
46464         * lib/unictype/categ_Mc.h: Regenerated.
46465         * lib/unictype/categ_Me.h: Regenerated.
46466         * lib/unictype/categ_Mn.h: Regenerated.
46467         * lib/unictype/categ_N.h: Regenerated.
46468         * lib/unictype/categ_Nd.h: Regenerated.
46469         * lib/unictype/categ_Nl.h: Regenerated.
46470         * lib/unictype/categ_No.h: Regenerated.
46471         * lib/unictype/categ_P.h: Regenerated.
46472         * lib/unictype/categ_Pd.h: Regenerated.
46473         * lib/unictype/categ_Pe.h: Regenerated.
46474         * lib/unictype/categ_Pf.h: Regenerated.
46475         * lib/unictype/categ_Pi.h: Regenerated.
46476         * lib/unictype/categ_Po.h: Regenerated.
46477         * lib/unictype/categ_Ps.h: Regenerated.
46478         * lib/unictype/categ_S.h: Regenerated.
46479         * lib/unictype/categ_Sk.h: Regenerated.
46480         * lib/unictype/categ_Sm.h: Regenerated.
46481         * lib/unictype/categ_So.h: Regenerated.
46482         * lib/unictype/categ_of.h: Regenerated.
46483         * lib/unictype/combining.h: Regenerated.
46484         * lib/unictype/ctype_alnum.h: Regenerated.
46485         * lib/unictype/ctype_alpha.h: Regenerated.
46486         * lib/unictype/ctype_graph.h: Regenerated.
46487         * lib/unictype/ctype_lower.h: Regenerated.
46488         * lib/unictype/ctype_print.h: Regenerated.
46489         * lib/unictype/ctype_punct.h: Regenerated.
46490         * lib/unictype/ctype_upper.h: Regenerated.
46491         * lib/unictype/decdigit.h: Regenerated.
46492         * lib/unictype/digit.h: Regenerated.
46493         * lib/unictype/mirror.h: Regenerated.
46494         * lib/unictype/numeric.h: Regenerated.
46495         * lib/unictype/pr_alphabetic.h: Regenerated.
46496         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46497         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46498         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46499         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46500         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46501         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46502         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46503         * lib/unictype/pr_combining.h: Regenerated.
46504         * lib/unictype/pr_dash.h: Regenerated.
46505         * lib/unictype/pr_decimal_digit.h: Regenerated.
46506         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46507         * lib/unictype/pr_deprecated.h: Regenerated.
46508         * lib/unictype/pr_diacritic.h: Regenerated.
46509         * lib/unictype/pr_extender.h: Regenerated.
46510         * lib/unictype/pr_format_control.h: Regenerated.
46511         * lib/unictype/pr_grapheme_base.h: Regenerated.
46512         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46513         * lib/unictype/pr_grapheme_link.h: Regenerated.
46514         * lib/unictype/pr_id_continue.h: Regenerated.
46515         * lib/unictype/pr_id_start.h: Regenerated.
46516         * lib/unictype/pr_ideographic.h: Regenerated.
46517         * lib/unictype/pr_ignorable_control.h: Regenerated.
46518         * lib/unictype/pr_lowercase.h: Regenerated.
46519         * lib/unictype/pr_math.h: Regenerated.
46520         * lib/unictype/pr_numeric.h: Regenerated.
46521         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46522         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46523         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46524         * lib/unictype/pr_other_id_continue.h: Regenerated.
46525         * lib/unictype/pr_other_lowercase.h: Regenerated.
46526         * lib/unictype/pr_other_math.h: Regenerated.
46527         * lib/unictype/pr_punctuation.h: Regenerated.
46528         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46529         * lib/unictype/pr_soft_dotted.h: Regenerated.
46530         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46531         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46532         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46533         * lib/unictype/pr_uppercase.h: Regenerated.
46534         * lib/unictype/pr_xid_continue.h: Regenerated.
46535         * lib/unictype/pr_xid_start.h: Regenerated.
46536         * lib/unictype/pr_zero_width.h: Regenerated.
46537         * lib/unictype/scripts.h: Regenerated.
46538         * lib/unictype/scripts_byname.gperf: Regenerated.
46539         * lib/unictype/sy_java_ident.h: Regenerated.
46540         * lib/unilbrk/lbrkprop1.h: Regenerated.
46541         * lib/unilbrk/lbrkprop2.h: Regenerated.
46542         * tests/unictype/test-categ_C.c: Regenerated.
46543         * tests/unictype/test-categ_Cf.c: Regenerated.
46544         * tests/unictype/test-categ_Cn.c: Regenerated.
46545         * tests/unictype/test-categ_L.c: Regenerated.
46546         * tests/unictype/test-categ_Ll.c: Regenerated.
46547         * tests/unictype/test-categ_Lm.c: Regenerated.
46548         * tests/unictype/test-categ_Lo.c: Regenerated.
46549         * tests/unictype/test-categ_Lu.c: Regenerated.
46550         * tests/unictype/test-categ_M.c: Regenerated.
46551         * tests/unictype/test-categ_Mc.c: Regenerated.
46552         * tests/unictype/test-categ_Me.c: Regenerated.
46553         * tests/unictype/test-categ_Mn.c: Regenerated.
46554         * tests/unictype/test-categ_N.c: Regenerated.
46555         * tests/unictype/test-categ_Nd.c: Regenerated.
46556         * tests/unictype/test-categ_Nl.c: Regenerated.
46557         * tests/unictype/test-categ_No.c: Regenerated.
46558         * tests/unictype/test-categ_P.c: Regenerated.
46559         * tests/unictype/test-categ_Pd.c: Regenerated.
46560         * tests/unictype/test-categ_Pe.c: Regenerated.
46561         * tests/unictype/test-categ_Pf.c: Regenerated.
46562         * tests/unictype/test-categ_Pi.c: Regenerated.
46563         * tests/unictype/test-categ_Po.c: Regenerated.
46564         * tests/unictype/test-categ_Ps.c: Regenerated.
46565         * tests/unictype/test-categ_S.c: Regenerated.
46566         * tests/unictype/test-categ_Sk.c: Regenerated.
46567         * tests/unictype/test-categ_Sm.c: Regenerated.
46568         * tests/unictype/test-categ_So.c: Regenerated.
46569         * tests/unictype/test-ctype_alnum.c: Regenerated.
46570         * tests/unictype/test-ctype_alpha.c: Regenerated.
46571         * tests/unictype/test-ctype_graph.c: Regenerated.
46572         * tests/unictype/test-ctype_lower.c: Regenerated.
46573         * tests/unictype/test-ctype_print.c: Regenerated.
46574         * tests/unictype/test-ctype_punct.c: Regenerated.
46575         * tests/unictype/test-ctype_upper.c: Regenerated.
46576         * tests/unictype/test-decdigit.h: Regenerated.
46577         * tests/unictype/test-digit.h: Regenerated.
46578         * tests/unictype/test-numeric.h: Regenerated.
46579         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46580         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46581         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46582         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46583         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46584         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46585         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46586         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46587         * tests/unictype/test-pr_combining.c: Regenerated.
46588         * tests/unictype/test-pr_dash.c: Regenerated.
46589         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46590         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46591         * tests/unictype/test-pr_deprecated.c: Regenerated.
46592         * tests/unictype/test-pr_diacritic.c: Regenerated.
46593         * tests/unictype/test-pr_extender.c: Regenerated.
46594         * tests/unictype/test-pr_format_control.c: Regenerated.
46595         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46596         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46597         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46598         * tests/unictype/test-pr_id_continue.c: Regenerated.
46599         * tests/unictype/test-pr_id_start.c: Regenerated.
46600         * tests/unictype/test-pr_ideographic.c: Regenerated.
46601         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46602         * tests/unictype/test-pr_lowercase.c: Regenerated.
46603         * tests/unictype/test-pr_math.c: Regenerated.
46604         * tests/unictype/test-pr_numeric.c: Regenerated.
46605         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46606         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46607         Regenerated.
46608         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46609         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46610         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46611         * tests/unictype/test-pr_other_math.c: Regenerated.
46612         * tests/unictype/test-pr_punctuation.c: Regenerated.
46613         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46614         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46615         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46616         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46617         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46618         * tests/unictype/test-pr_uppercase.c: Regenerated.
46619         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46620         * tests/unictype/test-pr_xid_start.c: Regenerated.
46621         * tests/unictype/test-pr_zero_width.c: Regenerated.
46622
46623         Update to Unicode 5.1.0.
46624         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46625         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46626         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46627         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46628         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46629         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46630         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46631         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46632         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46633         (nonspacing_table_ind): Update.
46634         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46635
46636         Update to Unicode 5.1.0.
46637         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46638         code transform.
46639         * lib/uniname/uniname.c (unicode_character_name,
46640         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46641         * lib/uniname/uninames.h: Regenerated.
46642         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46643
46644 2009-02-07  Bruno Haible  <bruno@clisp.org>
46645
46646         Merge gen-ctype and gen-lbrk into a single program.
46647         * lib/gen-uni-tables.c: New file, incorporating
46648         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46649         Add directory prefixes to the names of the generated files.
46650         * lib/unictype/gen-ctype.c: Remove file.
46651         * lib/unilbrk/gen-lbrk.c: Remove file.
46652         * modules/gen-uni-tables: New file.
46653         * modules/unictype/gen-ctype: Remove file.
46654         * modules/unilbrk/gen-lbrk: Remove file.
46655
46656 2009-02-07  Bruno Haible  <bruno@clisp.org>
46657
46658         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46659
46660         New module 'unistr/u32-strcoll'.
46661         * modules/unistr/u32-strcoll: New file.
46662         * lib/unistr/u32-strcoll.c: New file.
46663
46664         New module 'unistr/u16-strcoll'.
46665         * modules/unistr/u16-strcoll: New file.
46666         * lib/unistr/u16-strcoll.c: New file.
46667
46668         New module 'unistr/u8-strcoll'.
46669         * modules/unistr/u8-strcoll: New file.
46670         * lib/unistr/u8-strcoll.c: New file.
46671         * lib/unistr/u-strcoll.h: New file.
46672
46673 2009-02-07  Bruno Haible  <bruno@clisp.org>
46674
46675         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46676         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46677         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46678         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46679         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46680         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46681
46682 2009-02-07  Bruno Haible  <bruno@clisp.org>
46683
46684         Make 64-bit clean.
46685         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46686         output_combclass, output_bidi_category, output_decimal_digit,
46687         output_digit, output_numeric, output_mirror, output_scripts,
46688         output_ident_category): Use proper width specifier in format strings.
46689
46690 2009-02-07  Bruno Haible  <bruno@clisp.org>
46691
46692         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46693         failure behaviour.
46694
46695 2009-02-07  Jim Meyering  <meyering@redhat.com>
46696
46697         regex: avoid compilation failure with upcoming gcc-4.4
46698         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46699         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46700         "... error: integer overflow in preprocessor expression".
46701
46702 2009-02-05  Ben Pfaff  <blp@gnu.org>
46703
46704         Fix link errors on Windows when close module is used.
46705         * modules/close: Add $(LIB_CLOSE) to Link section.
46706         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46707         $(LIB_CLOSE) on Windows.
46708
46709 2009-02-05  Jim Meyering  <meyering@redhat.com>
46710
46711         still avoid unused-parameter warnings, but do it cleanly
46712         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46713         (get_fs_usage): Cast to void instead.
46714         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46715         (dev_from_mount_options, read_file_system_list): Cast to void.
46716         Prompted by Bruno Haible.
46717
46718 2009-02-04  Jim Meyering  <meyering@redhat.com>
46719
46720         fsusage.c: correct copyright year
46721         * lib/fsusage.c: Reflect year in which the change is pushed into
46722
46723         avoid misc. warnings
46724         * lib/fsusage.c (UNUSED_PARAM): Define.
46725         (get_fs_usage): Mark parameter "disk" as unused.
46726         * lib/getugroups.c (getgrent): Use "void" in prototype.
46727         * lib/mountlist.c: Mark unused parameters.
46728         (read_file_system_list): Declare a local with "const".
46729         * lib/nanosleep.c (getnow): Declare static.
46730         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46731
46732         dirfd: set errno upon failure
46733         * lib/dirfd.c: Include <errno.h>.
46734         Set errno to ENOTSUP when returning -1.
46735         * modules/dirfd (Depends-on): Add errno.
46736         Suggested by John Kodis <kodis@comcast.net>.
46737
46738 2009-02-01  Bruno Haible  <bruno@clisp.org>
46739
46740         Don't assume sizeof (long) >= sizeof (void *).
46741         * lib/memcmp.c: Include stdint.h.
46742         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46743         srcp2 to 'const byte *'.
46744         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46745         types to uintptr_t.
46746         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46747         * modules/memcmp (Depends-on): Add stdint.
46748         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46749
46750 2009-01-30  Eric Blake  <ebb9@byu.net>
46751
46752         fix more require-before-expand issues
46753         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46754         expand, AC_PROG_AWK.
46755         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46756
46757 2009-01-28  Eric Blake  <ebb9@byu.net>
46758
46759         version-etc: use consistent URL formatting
46760         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46761         Improve formatting.  Use fputs for string without %.
46762
46763 2009-01-28  Jim Meyering  <meyering@redhat.com>
46764
46765         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46766         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46767         "underquoted definition of NAME" from autoconf-2.59.
46768
46769 2009-01-28  Bruno Haible  <bruno@clisp.org>
46770
46771         * doc/gnulib.texi: Add "Obsolete modules" to index.
46772
46773 2009-01-28  Jim Meyering  <meyering@redhat.com>
46774
46775         useless-if-before-free: recognize more variants
46776         * build-aux/useless-if-before-free: Also recognize e.g.,
46777         if (NULL != p) free (p);
46778
46779 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46780
46781         test-getaddrinfo: skip (don't fail) this test when there's no network
46782         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46783         on the presumption that it means you lack network access.
46784
46785 2009-01-26  Jim Meyering  <meyering@redhat.com>
46786
46787         fflush: avoid warnings on modern systems
46788         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46789         pos and result, into scopes where they're used.
46790
46791 2009-01-26  Eric Blake  <ebb9@byu.net>
46792
46793         Silence warning reintroduced by recent extensions patch.
46794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46795         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46796         autoconf.
46797
46798         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46799         * m4/00gnulib.m4: New file.
46800         * gnulib-tool (func_get_filelist): Always use it.
46801         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46802         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46803
46804 2009-01-25  Bruno Haible  <bruno@clisp.org>
46805
46806         Make test-quotearg work on MacOS X and AIX.
46807         * tests/test-quotearg.sh: New file.
46808         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46809         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46810         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46811         include <libintl.h>.
46812         (fake_locale): Remove variable.
46813         (gettext, dgettext, dcgettext): Remove functions.
46814         (main): Instead of setting a fake locale, set a real locale. Call
46815         textdomain and bindtextdomain.
46816         * modules/quotearg-tests (Files): Add the new files.
46817         (Depends-on): Add gettext, setenv, unsetenv.
46818         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46819         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46820         Augment TESTS_ENVIRONMENT.
46821
46822 2009-01-25  Bruno Haible  <bruno@clisp.org>
46823
46824         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46825         fr_FR.ISO8859-1 locale on MacOS X.
46826         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46827         ja_JP.eucJP locale on MacOS X.
46828         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46829         zh_CN.GB18030 locale on MacOS X.
46830
46831 2009-01-25  Bruno Haible  <bruno@clisp.org>
46832
46833         Avoid link errors on MacOS X 10.3.
46834         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46835         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46836
46837 2009-01-25  Bruno Haible  <bruno@clisp.org>
46838
46839         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46840         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46841         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46842         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46843         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46844         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46845         posix_spawnattr_init, posix_spawnattr_setsigmask,
46846         posix_spawnattr_setflags, posix_spawnattr_destroy.
46847
46848         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46849         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46850         * modules/execute (Files): Remove m4/posix_spawn.m4.
46851         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46852         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46853         posix_spawnattr_init, posix_spawnattr_setsigmask,
46854         posix_spawnattr_setflags, posix_spawnattr_destroy.
46855
46856 2009-01-25  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/glthread/threadlib.c: Include <stdlib.h>.
46859
46860 2009-01-25  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/glthread/threadlib.c (dummy): New declaration.
46863
46864 2009-01-25  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46867         multibyte characters also for the GB18030 encoding. Don't crash when
46868         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46869
46870 2009-01-25  Bruno Haible  <bruno@clisp.org>
46871
46872         Avoid redefining 'struct random_data' on OSF/1 5.1.
46873         * lib/stdlib.in.h: Include <random.h> if it exists.
46874         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46875         HAVE_RANDOM_H. Include <random.h> when testing whether
46876         'struct random_data' exists.
46877         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46878
46879 2009-01-25  Bruno Haible  <bruno@clisp.org>
46880
46881         Don't install charset.alias on MacOS X >= 10.3.
46882         * lib/localcharset.c (DARWIN7): New macro.
46883         (get_charset_aliases): Hardcode the result for Darwin7.
46884         * modules/localcharset (install-exec-local): Don't install
46885         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46886
46887 2009-01-25  Bruno Haible  <bruno@clisp.org>
46888
46889         Don't install charset.alias on mingw and Cygwin.
46890         * modules/localcharset (install-exec-local): Don't install
46891         charset.alias on mingw and Cygwin, if the file does not yet exist.
46892         The result for these platforms is hardcoded in localcharset.c.
46893
46894 2009-01-25  Bruno Haible  <bruno@clisp.org>
46895
46896         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46898         before requiring AC_USE_SYSTEM_EXTENSIONS.
46899
46900 2009-01-25  Jim Meyering  <meyering@redhat.com>
46901
46902         c-strtod: avoid warnings
46903         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46904         "assignment discards qualifiers from pointer target type" warnings.
46905
46906 2009-01-24  Bruno Haible  <bruno@clisp.org>
46907
46908         Add support for non-UTF-8 locales on MacOS X.
46909         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46910         canonical encodings. For Darwin 7 and newer, don't map traditional
46911         encodings to UTF-8.
46912         Reported by Vincent Lefevre <vincent@vinc17.org>
46913         at <http://savannah.gnu.org/bugs/?25235>.
46914
46915 2009-01-24  Bruno Haible  <bruno@clisp.org>
46916
46917         * doc/gnulib.texi (Obsolete modules): New section.
46918         Reported by Mike Frysinger <vapier@gentoo.org>.
46919
46920 2009-01-24  Bruno Haible  <bruno@clisp.org>
46921
46922         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46923         (%.dvi): New rule.
46924
46925 2009-01-24  Bruno Haible  <bruno@clisp.org>
46926
46927         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46928         Reported by Eric Blake.
46929
46930 2009-01-24  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46933         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46934         Reported by Gary V. Vaughan <gary@gnu.org>.
46935
46936 2009-01-24  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46939
46940 2009-01-23  Bruno Haible  <bruno@clisp.org>
46941
46942         Make c-strtod, c-strtold usable in libraries.
46943         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46944         (C_STRTOD): Call strdup instead of xstrdup.
46945         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46946         * modules/c-strtold (Depends-on): Likewise.
46947         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46948         * NEWS: Mention the change.
46949         Reported by Michael Gold <mgold@ncf.ca>.
46950
46951 2009-01-23  Jim Meyering  <meyering@redhat.com>
46952
46953         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46954         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46955         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46956
46957 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46958
46959         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46960         GNU CoreUtils.
46961         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46962         * modules/version-etc (Description): Update.
46963
46964 2009-01-22  Bruno Haible  <bruno@clisp.org>
46965
46966         Cache the C locale object.
46967         * lib/c-strtod.c (c_locale_cache): New variable.
46968         (c_locale): New function.
46969         (C_STRTOD): Use it, and don't call freelocale.
46970         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46971         Suggested by Paolo Bonzini.
46972
46973 2009-01-21  Bruno Haible  <bruno@clisp.org>
46974
46975         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46976         conditions other than overflow.
46977
46978 2009-01-21  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/c-strtod.c: Include errno.h.
46981         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46982         value from STRTOD_L and STRTOD.
46983
46984 2009-01-21  Bruno Haible  <bruno@clisp.org>
46985         and Jim Meyering  <meyering@redhat.com>
46986
46987         nanosleep: skip configure test (fail it) for apple universal builds
46988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46989         universal builds, assume that nanosleep does not work.
46990         * modules/nanosleep (Depends-on): Add multiarch.
46991
46992         mktime: skip configure test (fail it) for apple universal builds
46993         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46994         universal builds, assume that mktime does not work.
46995         * modules/mktime (Depends-on): Add multiarch.
46996
46997 2009-01-21  Eric Blake  <ebb9@byu.net>
46998
46999         multiarch: avoid expand-before-require warning
47000         * modules/multiarch (configure.ac): Require, rather than expand,
47001         gl_MULTIARCH.
47002         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47003         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47004         enforce that all clients require it.  Partial reversion of
47005         2008-12-29 patch.
47006
47007         error: avoid expand-before-require warning
47008         * modules/errno (configure.ac): Require, rather than expand,
47009         gl_HEADER_ERRNO_H.
47010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47011         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47012         enforce that all clients require it.
47013
47014         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47015         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47016         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47017         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47018
47019 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47020
47021         Revert:
47022         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47023
47024         regex: do not depend on obsolete modules.
47025         * modules/regex: Remove memcmp and memmove.
47026
47027 2009-01-20  Bruno Haible  <bruno@clisp.org>
47028
47029         Make the 'link' module link on Windows NT 4.
47030         * lib/link.c (_WIN32_WINNT): Don't define.
47031         (CreateHardLinkFuncType): New type.
47032         (CreateHardLinkFunc, initialized): New variables.
47033         (initialize): New function.
47034         (link): Invoke CreateHardLink indirectly through the function pointer.
47035
47036 2009-01-20  Bruno Haible  <bruno@clisp.org>
47037
47038         Fix compilation failure on mingw.
47039         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47040
47041 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47042
47043         * doc/c-strtod.texi: Mention a couple of restrictions.
47044
47045 2009-01-20  Jim Meyering  <meyering@redhat.com>
47046
47047         gettimeofday: move more declarations out of functions
47048         * lib/gettimeofday.c: Move extern declarations of tzset and
47049         gmtime out of containing functions.  Prompted by Bruno Haible.
47050
47051 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47052
47053         regex: do not depend on obsolete modules.
47054         * modules/regex: Remove memcmp and memmove.
47055
47056 2009-01-19  Bruno Haible  <bruno@clisp.org>
47057
47058         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47059         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47060         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47061         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47062         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47063
47064 2009-01-19  Bruno Haible  <bruno@clisp.org>
47065
47066         * tests/test-link.c: Include <errno.h>.
47067         (main): Exit with code 77 when a hard link cannot be created due to
47068         the file system.
47069         * tests/test-link.sh: Skip test when a hard link cannot be created due
47070         to the file system.
47071         Suggested by Eric Blake.
47072
47073 2009-01-19  Martin Lambers  <marlam@marlam.de>
47074
47075         * modules/link-tests: New file.
47076         * tests/test-link.sh: New file.
47077         * tests/test-link.c: New file.
47078
47079 2009-01-19  Eric Blake  <ebb9@byu.net>
47080
47081         doc: mention another function added in cygwin 1.7.0
47082         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47083         Another new function in cygwin 1.7.
47084
47085 2009-01-19  Bruno Haible  <bruno@clisp.org>
47086
47087         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47088         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47089         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47090         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47092         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47093         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47094         * m4/md4.m4 (gl_MD4): Likewise.
47095         * m4/md5.m4 (gl_MD5): Likewise.
47096         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47097         * m4/sha1.m4 (gl_SHA1): Likewise.
47098         * m4/sha256.m4 (gl_SHA256): Likewise.
47099         * m4/sha512.m4 (gl_SHA512): Likewise.
47100
47101 2009-01-19  Bruno Haible  <bruno@clisp.org>
47102
47103         * modules/uniname/uniname-tests (Depends-on): Add progname.
47104         * tests/uniname/test-uninames.c: Include progname.h.
47105         (main): Call set_program_name.
47106
47107         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47108         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47109         (main): Call set_program_name.
47110
47111         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47112         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47113         (main): Call set_program_name.
47114
47115         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47116         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47117         (main): Call set_program_name.
47118
47119         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47120         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47121         (main): Call set_program_name.
47122
47123         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47124         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47125         (main): Call set_program_name.
47126
47127         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47128         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47129         (main): Call set_program_name.
47130
47131         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47132         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47133         (main): Call set_program_name.
47134
47135         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47136         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47137         (main): Call set_program_name.
47138
47139 2009-01-19  Eric Blake  <ebb9@byu.net>
47140
47141         test-unistd: test previous patch
47142         * tests/test-unistd.c: Test *_FILENO macros.
47143
47144         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47145         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47146         Guarantee a definition.
47147         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47148         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47149         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47150         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47151         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47152         Likewise.
47153         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47154         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47155         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47156         Likewise.
47157         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47158         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47159         (STDERR_FILENO): Likewise.
47160         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47161         (STDERR_FILENO): Likewise.
47162         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47163         (STDERR_FILENO): Likewise.
47164         Reported by Elbert Pol.
47165
47166 2009-01-19  Eric Blake  <ebb9@byu.net>
47167
47168         doc: mention more functions added in cygwin 1.7.0
47169         * doc/posix-functions/abort.texi (abort): Update wording related
47170         to cygwin.
47171         * doc/posix-functions/daylight.texi (daylight): Likewise.
47172         * doc/posix-functions/optarg.texi (optarg): Likewise.
47173         * doc/posix-functions/optarg.texi (opterr): Likewise.
47174         * doc/posix-functions/optarg.texi (optind): Likewise.
47175         * doc/posix-functions/optarg.texi (optopt): Likewise.
47176         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47177         worked in 1.5.x, and was withdrawn in 1.7.
47178         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47179         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47180         cygwin versions.
47181         * doc/posix-functions/perror.texi (perror): Likewise.
47182         * doc/posix-functions/printf.texi (printf): Likewise.
47183         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47184         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47185         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47186         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47187         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47188         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47189         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47190         Likewise.
47191         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47192         Likewise.
47193         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47194         this function.
47195         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47196         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47197         Likewise.
47198         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47199         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47200         * doc/posix-functions/confstr.texi (confstr): Likewise.
47201         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47202         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47203         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47204         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47205         * doc/posix-functions/fputws.texi (fputws): Likewise.
47206         * doc/posix-functions/fwide.texi (fwide): Likewise.
47207         * doc/posix-functions/getwc.texi (getwc): Likewise.
47208         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47209         * doc/posix-functions/putwc.texi (putwc): Likewise.
47210         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47211         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47212         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47213         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47214         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47215         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47216         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47217         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47218         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47219         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47220         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47221
47222 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47223
47224         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47225         * lib/ioctl.c: Include <sys/ioctl.h>.
47226
47227 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47228
47229         * modules/getdate-tests (Depends-on): Add progname.
47230         * tests/test-getdate.c: Use progname module, to avoid link errors
47231         on non-glibc systems.
47232
47233 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47234
47235         * modules/filenamecat-tests (Depends-on): Add progname.
47236         * modules/fstrcmp-tests (Depends-on): Likewise.
47237
47238         * tests/test-filenamecat.c: Use progname module, to avoid link
47239         errors on non-glibc systems.
47240         * tests/test-fstrcmp.c: Likewise.
47241
47242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47243
47244         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47245         * lib/gettimeofday.c: Move extern declaration out of function.
47246
47247 2009-01-18  Bruno Haible  <bruno@clisp.org>
47248
47249         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47250         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47251         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47252
47253 2009-01-18  Bruno Haible  <bruno@clisp.org>
47254
47255         * lib/strftime.c (MEMPCPY): Remove unused macro.
47256         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47257
47258 2009-01-18  Martin Lambers  <marlam@marlam.de>
47259
47260         New module 'link'.
47261         * lib/unistd.in.h (link): New declaration.
47262         * lib/link.c: New file.
47263         * m4/link.m4: New file.
47264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47265         HAVE_LINK.
47266         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47267         * modules/link: New file.
47268         * doc/posix-functions/link.texi: Mention the new module.
47269
47270 2009-01-18  Bruno Haible  <bruno@clisp.org>
47271
47272         * tests/test-avltree_list.c (main): Call set_program_name.
47273         * tests/test-avltree_oset.c (main): Likewise.
47274         * tests/test-obstack-printf.c: Include progname.h.
47275         (main): Call set_program_name.
47276         * tests/test-quotearg.c: Include progname.h.
47277         (main): Call set_program_name.
47278         * tests/test-xmemdup0.c: Include progname.h.
47279         (main): Call set_program_name.
47280
47281 2009-01-18  Bruno Haible  <bruno@clisp.org>
47282
47283         New module 'alphasort'.
47284         * lib/dirent.in.h (alphasort): New declaration.
47285         * lib/alphasort.c: New file, from glibc with modifications.
47286         * m4/alphasort.m4: New file.
47287         * modules/alphasort: New file.
47288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47289         HAVE_ALPHASORT.
47290         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47291         HAVE_ALPHASORT.
47292         * doc/posix-functions/alphasort.texi: Mention the new module and the
47293         portability problems.
47294
47295 2009-01-18  Bruno Haible  <bruno@clisp.org>
47296
47297         New module 'scandir'.
47298         * lib/dirent.in.h (scandir): New declaration.
47299         * lib/scandir.c: New file, from glibc with modifications.
47300         * m4/scandir.m4: New file.
47301         * modules/scandir: New file.
47302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47303         HAVE_SCANDIR.
47304         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47305         HAVE_SCANDIR.
47306         * doc/posix-functions/scandir.texi: Mention the new module and the
47307         portability problems.
47308
47309 2009-01-17  Bruno Haible  <bruno@clisp.org>
47310
47311         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47312         Update documentation.
47313         (func_remove_suffix): Escape all dots in the suffix. Update
47314         documentation.
47315         (func_filter_filelist): Update documentation.
47316         Reported by Ralf Wildenhues.
47317
47318 2009-01-17  Bruno Haible  <bruno@clisp.org>
47319
47320         * modules/dprintf-posix-tests: New file.
47321         * tests/test-dprintf-posix.sh: New file.
47322         * tests/test-dprintf-posix.c: New file.
47323
47324         New modules 'dprintf', 'dprintf-posix'.
47325         * lib/stdio.in.h (dprintf): New declaration.
47326         * lib/dprintf.c: New file.
47327         * m4/dprintf.m4: New file.
47328         * m4/dprintf-posix.m4: New file.
47329         * modules/dprintf: New file.
47330         * modules/dprintf-posix: New file.
47331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47332         HAVE_DPRINTF, REPLACE_DPRINTF.
47333         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47334         HAVE_DPRINTF, REPLACE_DPRINTF.
47335         * doc/posix-functions/dprintf.texi: Mention the new modules.
47336
47337 2009-01-17  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/vdprintf-posix-tests: New file.
47340         * tests/test-vdprintf-posix.sh: New file.
47341         * tests/test-vdprintf-posix.c: New file.
47342
47343         New modules 'vdprintf', 'vdprintf-posix'.
47344         * lib/stdio.in.h (vdprintf): New declaration.
47345         * lib/vdprintf.c: New file.
47346         * m4/vdprintf.m4: New file.
47347         * m4/vdprintf-posix.m4: New file.
47348         * modules/vdprintf: New file.
47349         * modules/vdprintf-posix: New file.
47350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47351         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47352         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47353         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47354         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47355
47356 2009-01-17  Bruno Haible  <bruno@clisp.org>
47357
47358         Fix replacement of fopen on mingw.
47359         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47360         mingw.
47361
47362 2009-01-17  Bruno Haible  <bruno@clisp.org>
47363
47364         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47365         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47366
47367 2009-01-17  Bruno Haible  <bruno@clisp.org>
47368
47369         Avoid test-fflush2.sh failure on mingw.
47370         * tests/test-fflush2.c: Include binary-io.h.
47371         (main): Put standard input into binary mode.
47372         * modules/fflush-tests (Depends-on): Add binary-io.
47373
47374 2009-01-17  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/wchar.in.h: In another particular situation, include only the
47377         system's <wchar.h> file.
47378         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47379         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47380         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47381
47382 2009-01-17  Bruno Haible  <bruno@clisp.org>
47383
47384         Support for stripping executables in --enable-relocatable.
47385         * build-aux/install-reloc: Expect one more argument, or an environment
47386         variable RELOC_STRIP_PROG. If set, strip the destination program and
47387         its wrapper.
47388         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47389         RELOC_STRIP_PROG.
47390         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47391         to set RELOCATABLE_STRIP.
47392         * NEWS: Mention the new Makefile requirement.
47393
47394 2009-01-17  Bruno Haible  <bruno@clisp.org>
47395
47396         * build-aux/install-reloc: Remove debugging information left over by
47397         C compiler on MacOS X.
47398
47399 2009-01-17  Bruno Haible  <bruno@clisp.org>
47400
47401         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47402         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47403         _NSGetExecutablePath.
47404
47405 2009-01-16  Jim Meyering  <meyering@redhat.com>
47406
47407         strerror: avoid warnings about discarding "const"
47408         * lib/strerror.c (rpl_strerror): Instead of returning a const
47409         string from each and every "case", use a variable, and add a single
47410         cast after the switch.
47411
47412 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47413
47414         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47415
47416 2009-01-16  Bruno Haible  <bruno@clisp.org>
47417
47418         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47419         array initializer syntax that also works in C++ mode.
47420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47421
47422 2009-01-16  Jim Meyering  <meyering@redhat.com>
47423
47424         poll: suppress a warning
47425         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47426         to ignore "...unsigned expression < 0 is always false" warnings.
47427
47428 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47429
47430         poll: remove declarations of unused variables
47431         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47432         sockbuf and optlen.
47433
47434 2009-01-15  Bruno Haible  <bruno@clisp.org>
47435
47436         Make fflush-after-ungetc POSIX compliant on BSD systems.
47437         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47438         (clear_ungetc_buffer): Implement also for other systems.
47439         (rpl_fflush): On glibc systems, invoke
47440         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47441         clear_ungetc_buffer after fetching the stream's position, not before.
47442
47443 2009-01-15  Bruno Haible  <bruno@clisp.org>
47444
47445         Make fflush-after-ungetc POSIX compliant on glibc systems.
47446         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47447         after ungetc.
47448         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47449         (rpl_fflush): On glibc systems, simply call the system's fflush
47450         function after clearing the ungetc buffer.
47451         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47452         Instead, lseek only to the end of file, then use the system's fseeko
47453         for the rest. On glibc systems, reset the EOF indicator bit.
47454
47455 2009-01-15  Jim Meyering  <meyering@redhat.com>
47456
47457         openmp.m4: revert quote-adding change, for portability to older autoconf
47458         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47459         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47460         Simon Josefsson noticed the problem when using autoconf-2.61.
47461
47462 2009-01-15  Bruno Haible  <bruno@clisp.org>
47463
47464         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47465         * tests/test-fflush2.c (ASSERT): Always fail.
47466         (main): Add two tests for fflush() after ungetc(), taking into account
47467         the Austin Group's clarification.
47468         Suggested by Eric Blake.
47469
47470 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47471
47472         mktime.m4: remove K&R-style function prototypes
47473         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47474         for the Sun C++ compiler.
47475
47476 2009-01-14  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47479         while including <wchar.h>.
47480         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47481         the system's <wchar.h> file.
47482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47483
47484 2009-01-14  Bruno Haible  <bruno@clisp.org>
47485
47486         * m4/csharp.m4: Don't mention gettext on the serial number line.
47487         * m4/csharpexec.m4: Likewise.
47488         * m4/eaccess.m4: Likewise.
47489         * m4/javaexec.m4: Likewise.
47490         * m4/sig_atomic_t.m4: Likewise.
47491         * m4/tmpdir.m4: Likewise.
47492         * m4/intldir.m4: Bump gettext version.
47493         * m4/lib-ld.m4: Likewise.
47494
47495 2009-01-14  Bruno Haible  <bruno@clisp.org>
47496
47497         * lib/progname.c (set_program_name): Add more comments.
47498         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47499
47500 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47501
47502         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47503         were sys/stat.h does not define it.
47504
47505 2009-01-14  Jim Meyering  <meyering@redhat.com>
47506
47507         many *.m4 files: improve m4 quoting
47508         99% of this change was performed by running the following commands:
47509         git ls-files | grep '\.m4$' | xargs perl -pi \
47510           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47511           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47512           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47513           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47514         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47515         The remainder were to add Copyright dates, increment serial numbers,
47516         undo some changes in comments, exclude m4/intl.m4, and add quotes
47517         around the "1" in ",1" where the unusual spacing prohibited the
47518         above regexps from doing the job.  For more details, see
47519         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47520         * m4/acl.m4: Modified.
47521         * m4/afs.m4: Likewise.
47522         * m4/alloca.m4: Likewise.
47523         * m4/argp.m4: Likewise.
47524         * m4/argz.m4: Likewise.
47525         * m4/atexit.m4: Likewise.
47526         * m4/bison-i18n.m4: Likewise.
47527         * m4/bison.m4: Likewise.
47528         * m4/byteswap.m4: Likewise.
47529         * m4/c-stack.m4: Likewise.
47530         * m4/c-strtod.m4: Likewise.
47531         * m4/calloc.m4: Likewise.
47532         * m4/canonicalize-lgpl.m4: Likewise.
47533         * m4/chown.m4: Likewise.
47534         * m4/clock_time.m4: Likewise.
47535         * m4/codeset.m4: Likewise.
47536         * m4/copy-file.m4: Likewise.
47537         * m4/csharp.m4: Likewise.
47538         * m4/csharpcomp.m4: Likewise.
47539         * m4/csharpexec.m4: Likewise.
47540         * m4/d-ino.m4: Likewise.
47541         * m4/d-type.m4: Likewise.
47542         * m4/dirfd.m4: Likewise.
47543         * m4/double-slash-root.m4: Likewise.
47544         * m4/eaccess.m4: Likewise.
47545         * m4/eealloc.m4: Likewise.
47546         * m4/environ.m4: Likewise.
47547         * m4/errno_h.m4: Likewise.
47548         * m4/euidaccess.m4: Likewise.
47549         * m4/execute.m4: Likewise.
47550         * m4/fatal-signal.m4: Likewise.
47551         * m4/fchdir.m4: Likewise.
47552         * m4/fcntl_h.m4: Likewise.
47553         * m4/fileblocks.m4: Likewise.
47554         * m4/filenamecat.m4: Likewise.
47555         * m4/findprog.m4: Likewise.
47556         * m4/flexmember.m4: Likewise.
47557         * m4/fnmatch.m4: Likewise.
47558         * m4/fopen.m4: Likewise.
47559         * m4/fpending.m4: Likewise.
47560         * m4/fprintf-posix.m4: Likewise.
47561         * m4/free.m4: Likewise.
47562         * m4/frexp.m4: Likewise.
47563         * m4/frexpl.m4: Likewise.
47564         * m4/fsusage.m4: Likewise.
47565         * m4/ftruncate.m4: Likewise.
47566         * m4/gc-camellia.m4: Likewise.
47567         * m4/gc-random.m4: Likewise.
47568         * m4/gc.m4: Likewise.
47569         * m4/getaddrinfo.m4: Likewise.
47570         * m4/getcwd-abort-bug.m4: Likewise.
47571         * m4/getcwd-path-max.m4: Likewise.
47572         * m4/getdate.m4: Likewise.
47573         * m4/getdomainname.m4: Likewise.
47574         * m4/getgroups.m4: Likewise.
47575         * m4/gethostname.m4: Likewise.
47576         * m4/gethrxtime.m4: Likewise.
47577         * m4/getline.m4: Likewise.
47578         * m4/getloadavg.m4: Likewise.
47579         * m4/getndelim2.m4: Likewise.
47580         * m4/getpass.m4: Likewise.
47581         * m4/gettext.m4: Likewise.
47582         * m4/gettime.m4: Likewise.
47583         * m4/gettimeofday.m4: Likewise.
47584         * m4/gnulib-common.m4: Likewise.
47585         * m4/group-member.m4: Likewise.
47586         * m4/host-os.m4: Likewise.
47587         * m4/iconv.m4: Likewise.
47588         * m4/iconv_open.m4: Likewise.
47589         * m4/inet_ntop.m4: Likewise.
47590         * m4/inet_pton.m4: Likewise.
47591         * m4/inline.m4: Likewise.
47592         * m4/intldir.m4: Likewise.
47593         * m4/intlmacosx.m4: Likewise.
47594         * m4/intmax.m4: Likewise.
47595         * m4/intmax_t.m4: Likewise.
47596         * m4/inttypes.m4: Likewise.
47597         * m4/inttypes_h.m4: Likewise.
47598         * m4/inttypes-pri.m4: Likewise.
47599         * m4/isapipe.m4: Likewise.
47600         * m4/isnand.m4: Likewise.
47601         * m4/isnanf.m4: Likewise.
47602         * m4/isnanl.m4: Likewise.
47603         * m4/javacomp.m4: Likewise.
47604         * m4/javaexec.m4: Likewise.
47605         * m4/jm-winsz1.m4: Likewise.
47606         * m4/jm-winsz2.m4: Likewise.
47607         * m4/lchown.m4: Likewise.
47608         * m4/lcmessage.m4: Likewise.
47609         * m4/ldexpl.m4: Likewise.
47610         * m4/lib-ld.m4: Likewise.
47611         * m4/lib-link.m4: Likewise.
47612         * m4/libsigsegv.m4: Likewise.
47613         * m4/link-follow.m4: Likewise.
47614         * m4/localcharset.m4: Likewise.
47615         * m4/locale-fr.m4: Likewise.
47616         * m4/locale-ja.m4: Likewise.
47617         * m4/locale-tr.m4: Likewise.
47618         * m4/locale-zh.m4: Likewise.
47619         * m4/lock.m4: Likewise.
47620         * m4/longlong.m4: Likewise.
47621         * m4/ls-mntd-fs.m4: Likewise.
47622         * m4/lstat.m4: Likewise.
47623         * m4/malloc.m4: Likewise.
47624         * m4/mathl.m4: Likewise.
47625         * m4/mbrtowc.m4: Likewise.
47626         * m4/mbstate_t.m4: Likewise.
47627         * m4/mbswidth.m4: Likewise.
47628         * m4/memchr.m4: Likewise.
47629         * m4/memcmp.m4: Likewise.
47630         * m4/memcpy.m4: Likewise.
47631         * m4/memmem.m4: Likewise.
47632         * m4/memmove.m4: Likewise.
47633         * m4/mempcpy.m4: Likewise.
47634         * m4/memrchr.m4: Likewise.
47635         * m4/memset.m4: Likewise.
47636         * m4/minmax.m4: Likewise.
47637         * m4/mkdir-slash.m4: Likewise.
47638         * m4/mkdtemp.m4: Likewise.
47639         * m4/mktime.m4: Likewise.
47640         * m4/mmap-anon.m4: Likewise.
47641         * m4/mountlist.m4: Likewise.
47642         * m4/nanosleep.m4: Likewise.
47643         * m4/nls.m4: Likewise.
47644         * m4/nocrash.m4: Likewise.
47645         * m4/open.m4: Likewise.
47646         * m4/openat.m4: Likewise.
47647         * m4/openmp.m4: Likewise.
47648         * m4/pathmax.m4: Likewise.
47649         * m4/perl.m4: Likewise.
47650         * m4/physmem.m4: Likewise.
47651         * m4/pipe.m4: Likewise.
47652         * m4/po.m4: Likewise.
47653         * m4/poll.m4: Likewise.
47654         * m4/posixtm.m4: Likewise.
47655         * m4/posixver.m4: Likewise.
47656         * m4/printf-frexp.m4: Likewise.
47657         * m4/printf-frexpl.m4: Likewise.
47658         * m4/printf-posix.m4: Likewise.
47659         * m4/printf-posix-rpl.m4: Likewise.
47660         * m4/printf.m4: Likewise.
47661         * m4/progtest.m4: Likewise.
47662         * m4/putenv.m4: Likewise.
47663         * m4/readline.m4: Likewise.
47664         * m4/readlink.m4: Likewise.
47665         * m4/readutmp.m4: Likewise.
47666         * m4/realloc.m4: Likewise.
47667         * m4/regex.m4: Likewise.
47668         * m4/relocatable.m4: Likewise.
47669         * m4/relocatable-lib.m4: Likewise.
47670         * m4/rename-dest-slash.m4: Likewise.
47671         * m4/rename.m4: Likewise.
47672         * m4/rmdir-errno.m4: Likewise.
47673         * m4/rmdir.m4: Likewise.
47674         * m4/roundf.m4: Likewise.
47675         * m4/roundl.m4: Likewise.
47676         * m4/rpmatch.m4: Likewise.
47677         * m4/save-cwd.m4: Likewise.
47678         * m4/selinux-selinux-h.m4: Likewise.
47679         * m4/setenv.m4: Likewise.
47680         * m4/settime.m4: Likewise.
47681         * m4/sig2str.m4: Likewise.
47682         * m4/sig_atomic_t.m4: Likewise.
47683         * m4/signalblocking.m4: Likewise.
47684         * m4/signbit.m4: Likewise.
47685         * m4/sigpipe.m4: Likewise.
47686         * m4/sockets.m4: Likewise.
47687         * m4/sockpfaf.m4: Likewise.
47688         * m4/st_dm_mode.m4: Likewise.
47689         * m4/stat-time.m4: Likewise.
47690         * m4/stdbool.m4: Likewise.
47691         * m4/stdint.m4: Likewise.
47692         * m4/stdint_h.m4: Likewise.
47693         * m4/stpcpy.m4: Likewise.
47694         * m4/stpncpy.m4: Likewise.
47695         * m4/strcase.m4: Likewise.
47696         * m4/strchrnul.m4: Likewise.
47697         * m4/strcspn.m4: Likewise.
47698         * m4/strdup.m4: Likewise.
47699         * m4/strftime.m4: Likewise.
47700         * m4/strndup.m4: Likewise.
47701         * m4/strnlen.m4: Likewise.
47702         * m4/strpbrk.m4: Likewise.
47703         * m4/strptime.m4: Likewise.
47704         * m4/strsep.m4: Likewise.
47705         * m4/strtod.m4: Likewise.
47706         * m4/strtoimax.m4: Likewise.
47707         * m4/strtok_r.m4: Likewise.
47708         * m4/strtol.m4: Likewise.
47709         * m4/strtoll.m4: Likewise.
47710         * m4/strtoul.m4: Likewise.
47711         * m4/strtoull.m4: Likewise.
47712         * m4/strtoumax.m4: Likewise.
47713         * m4/strverscmp.m4: Likewise.
47714         * m4/threadlib.m4: Likewise.
47715         * m4/timegm.m4: Likewise.
47716         * m4/tm_gmtoff.m4: Likewise.
47717         * m4/tmpdir.m4: Likewise.
47718         * m4/tmpfile.m4: Likewise.
47719         * m4/tzset.m4: Likewise.
47720         * m4/uintmax_t.m4: Likewise.
47721         * m4/unlinkdir.m4: Likewise.
47722         * m4/unlocked-io.m4: Likewise.
47723         * m4/uptime.m4: Likewise.
47724         * m4/userspec.m4: Likewise.
47725         * m4/utimbuf.m4: Likewise.
47726         * m4/utime.m4: Likewise.
47727         * m4/utimes-null.m4: Likewise.
47728         * m4/utimes.m4: Likewise.
47729         * m4/vararrays.m4: Likewise.
47730         * m4/vasnprintf.m4: Likewise.
47731         * m4/vfprintf-posix.m4: Likewise.
47732         * m4/vprintf-posix.m4: Likewise.
47733         * m4/wait-process.m4: Likewise.
47734         * m4/wchar_t.m4: Likewise.
47735         * m4/wint_t.m4: Likewise.
47736         * m4/write-any-file.m4: Likewise.
47737         * m4/yield.m4: Likewise.
47738
47739 2009-01-13  Bruno Haible  <bruno@clisp.org>
47740
47741         Avoid test-copy-file.sh failures when ACL support insufficient.
47742         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47743         TESTS_ENVIRONMENT.
47744         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47745         Reported by Jim Meyering.
47746
47747 2009-01-13  Bruno Haible  <bruno@clisp.org>
47748
47749         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47750         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47751         * modules/unistdio/u8-printf-parse (Files): Likewise.
47752         * modules/unistdio/u32-printf-parse (Files): Likewise.
47753         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47754
47755 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47756
47757         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47758         and m4/inttypes_h.m4 too.
47759
47760 2009-01-12  Eric Blake  <ebb9@byu.net>
47761
47762         tests: IRIX 6.2 cc can't compile -0.0 into .data
47763         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47764         rather than at compile-time.
47765         * tests/test-floorl.c (minus_zero): Likewise.
47766         * tests/test-frexpl.c (minus_zero): Likewise.
47767         * tests/test-isnan.c (minus_zerol): Likewise.
47768         * tests/test-isnanl.h (minus_zero): Likewise.
47769         * tests/test-ldexpl.c (minus_zero): Likewise.
47770         * tests/test-roundl.c (minus_zero): Likewise.
47771         * tests/test-signbit.c (minus_zerol): Likewise.
47772         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47773         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47774         * tests/test-truncl.c (minus_zero): Likewise.
47775         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47776         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47777         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47778
47779 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47780
47781         regex: fix glibc bug 9697
47782         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47783         handling.
47784
47785 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47786
47787         regex: fix glibc bug 697
47788         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47789         being NULL also if there are no backreferences.
47790
47791 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47792
47793         regex: merge glibc changes
47794         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47795         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47796         re_string_skip_chars, re_string_reconstruct): Likewise.
47797         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47798
47799 2009-01-07  Jim Meyering  <meyering@redhat.com>
47800
47801         poll: filter through cppi
47802         * lib/poll.c: Indent cpp directives to reflect nesting.
47803
47804 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47805
47806         poll: don't return uninitialized
47807         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47808
47809 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47810
47811         avoid compile failure on AIX 6.1
47812         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47813         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47814
47815 2009-01-04  Jim Meyering  <meyering@redhat.com>
47816
47817         remove duplicate inclusion of <stdio.h>
47818         * tests/test-fprintf-posix.c: Likewise.
47819         * tests/test-printf-posix.c: Likewise.
47820         * tests/test-snprintf-posix.c: Likewise.
47821         * tests/test-sprintf-posix.c: Likewise.
47822         * tests/test-vasprintf-posix.c: Likewise.
47823         * tests/test-vfprintf-posix.c: Likewise.
47824         * tests/test-vprintf-posix.c: Likewise.
47825         * tests/test-vsnprintf-posix.c: Likewise.
47826         * tests/test-vsprintf-posix.c: Likewise.
47827
47828 2009-01-03  Jim Meyering  <meyering@redhat.com>
47829
47830         gnulib-tool: fix sed-based filtering
47831         * gnulib-tool (func_filter_filelist): Remove extra backslash
47832         in sed_fff_filter definition.
47833
47834 2009-01-02  Jim Meyering  <meyering@redhat.com>
47835
47836         strftime: avoid compilation failure on Solaris 2.6
47837         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47838         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47839         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47840         be available.  Reported by Tom G. Christensen.  Details in
47841         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47842
47843 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47844             Bruno Haible  <bruno@clisp.org>
47845
47846         Speed up gnulib-tool by doing more string processing through shell
47847         built-ins.
47848         * gnulib-tool (fast_func_append): New variable.
47849         (func_remove_prefix, func_remove_suffix): New functions.
47850         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47851         (func_filter_filelist): New function.
47852         (func_get_dependencies): Use func_remove_suffix instead of sed.
47853         (func_get_automake_snippet): Use func_filter_filelist instead of a
47854         subshell and sed invocation.
47855
47856 2009-01-01  Bruno Haible  <bruno@clisp.org>
47857
47858         Fix a security bug.
47859         * gnulib-tool (func_import, import, update): Don't allow the characters
47860         '"', '$', '`', '\' in macro arguments that become part of commands that
47861         are evaluated.
47862
47863 2009-01-01  Bruno Haible  <bruno@clisp.org>
47864
47865         * gnulib-tool (func_reset_sigpipe): Add more comments.
47866
47867 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47868
47869         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47870         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47871         already know the answer.
47872
47873 2009-01-01  Jim Meyering  <meyering@redhat.com>
47874
47875         * lib/version-etc.c (version_etc_va): Update copyright year.
47876
47877 2008-12-30  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47880         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47881         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47882
47883 2008-12-29  Eric Blake  <ebb9@byu.net>
47884
47885         multiarch: avoid autoconf AC_REQUIRE bug
47886         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47887         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47888         2.63 and older.
47889         Reported by Bruno Haible, and analyzed in
47890         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47891
47892 2008-12-29  Bruno Haible  <bruno@clisp.org>
47893
47894         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47895         files in subdirectories correctly.
47896         Reported by Ralf Wildenhues.
47897
47898 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47899
47900         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47901         rather than 'join FILE -', for Solaris join.
47902
47903 2008-12-29  Bruno Haible  <bruno@clisp.org>
47904
47905         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47906         quoting.
47907         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47908         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47909         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47910         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47911         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47912         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47913         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47914         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47915         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47916         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47917         * m4/nls.m4 (AM_NLS): Likewise.
47918         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47919         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47920         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47921         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47922         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47923         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47924         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47925         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47926         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47927         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47928         * m4/xsize.m4 (gl_XSIZE): Likewise.
47929         Suggested by Jim Meyering.
47930
47931 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47932
47933         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47934         * lib/parse-duration.c: use a switch instead of cascading if's.
47935
47936 2008-12-29  Eric Blake  <ebb9@byu.net>
47937
47938         wchar.h: supply WEOF on Irix 5.3
47939         * lib/wchar.in.h (wint_t): Also supply WEOF.
47940         * lib/wctype.in.h (wint_t): Likewise.
47941         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47942         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47943         Reported by Tom G. Christensen.
47944
47945 2008-12-26  Bruno Haible  <bruno@clisp.org>
47946
47947         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47948         i486, i586, i686.
47949
47950 2008-12-26  Bruno Haible  <bruno@clisp.org>
47951
47952         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47953
47954 2008-12-26  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47957         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47958         not __STDC_CONSTANT_MACROS.
47959         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47960
47961 2008-12-25  Bruno Haible  <bruno@clisp.org>
47962
47963         Add support for universal builds to vasnprintf.
47964         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47965         universal builds, guess no.
47966         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47967         * modules/vasprintf-posix (Depends-on): Likewise.
47968         * modules/fprintf-posix (Depends-on): Likewise.
47969         * modules/vfprintf-posix (Depends-on): Likewise.
47970         * modules/snprintf-posix (Depends-on): Likewise.
47971         * modules/vsnprintf-posix (Depends-on): Likewise.
47972         * modules/sprintf-posix (Depends-on): Likewise.
47973         * modules/vsprintf-posix (Depends-on): Likewise.
47974         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47975         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47976         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47977         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47978         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47979         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47980         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47981
47982         Add support for universal builds to <inttypes.h>.
47983         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47984         _SCNu64_PREFIX): In Apple
47985         universal builds, define directly, using _LP64.
47986         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47987         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47988         * modules/inttypes (Depends-on): Add multiarch.
47989         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47990
47991         Add support for universal builds to <stdint.h>.
47992         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47993         universal builds, define directly, using _LP64.
47994         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47995         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47996         and size_t.
47997         * modules/stdint (Depends-on): Add multiarch.
47998         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47999
48000         New module 'multiarch'.
48001         * modules/multiarch: New file.
48002         * m4/multiarch.m4: New file.
48003
48004 2008-12-25  Bruno Haible  <bruno@clisp.org>
48005
48006         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48007
48008 2008-12-25  Bruno Haible  <bruno@clisp.org>
48009
48010         * modules/btowc (License): Relicense under LGPLv2+.
48011         * modules/mbsinit (License): Likewise.
48012         * modules/mbrtowc (License): Likewise.
48013         * modules/wcrtomb (License): Likewise.
48014         * modules/streq (License): Likewise.
48015         Reported by David Lutterkort <lutter@redhat.com>.
48016
48017 2008-12-23  Bruno Haible  <bruno@clisp.org>
48018
48019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48020
48021 2008-12-23  Bruno Haible  <bruno@clisp.org>
48022
48023         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48025         GETADDRINFO_LIB, not in LIBS.
48026         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48027         * modules/canon-host (Link): Likewise.
48028         * NEWS: Mention the change.
48029         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48030         GETADDRINFO_LIB.
48031
48032 2008-12-22  Bruno Haible  <bruno@clisp.org>
48033
48034         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48035         * doc/posix-functions/iswalpha_l.texi: Likewise.
48036         * doc/posix-functions/iswblank_l.texi: Likewise.
48037         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48038         * doc/posix-functions/iswctype_l.texi: Likewise.
48039         * doc/posix-functions/iswdigit_l.texi: Likewise.
48040         * doc/posix-functions/iswgraph_l.texi: Likewise.
48041         * doc/posix-functions/iswlower_l.texi: Likewise.
48042         * doc/posix-functions/iswprint_l.texi: Likewise.
48043         * doc/posix-functions/iswpunct_l.texi: Likewise.
48044         * doc/posix-functions/iswspace_l.texi: Likewise.
48045         * doc/posix-functions/iswupper_l.texi: Likewise.
48046         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48047         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48048         * doc/posix-functions/open_wmemstream.texi: Likewise.
48049         * doc/posix-functions/swscanf.texi: Likewise.
48050         * doc/posix-functions/towctrans_l.texi: Likewise.
48051         * doc/posix-functions/towlower.texi: Likewise.
48052         * doc/posix-functions/towlower_l.texi: Likewise.
48053         * doc/posix-functions/towupper.texi: Likewise.
48054         * doc/posix-functions/towupper_l.texi: Likewise.
48055         * doc/posix-functions/vfwprintf.texi: Likewise.
48056         * doc/posix-functions/vfwscanf.texi: Likewise.
48057         * doc/posix-functions/vswscanf.texi: Likewise.
48058         * doc/posix-functions/vwprintf.texi: Likewise.
48059         * doc/posix-functions/vwscanf.texi: Likewise.
48060         * doc/posix-functions/wcpcpy.texi: Likewise.
48061         * doc/posix-functions/wcpncpy.texi: Likewise.
48062         * doc/posix-functions/wcscasecmp.texi: Likewise.
48063         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48064         * doc/posix-functions/wcscoll_l.texi: Likewise.
48065         * doc/posix-functions/wcsdup.texi: Likewise.
48066         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48067         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48068         * doc/posix-functions/wcsnlen.texi: Likewise.
48069         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48070         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48071         * doc/posix-functions/wctrans_l.texi: Likewise.
48072         * doc/posix-functions/wctype_l.texi: Likewise.
48073         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48074         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48075         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48076         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48077         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48078         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48079         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48080         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48081         * doc/glibc-functions/wcschrnul.texi: Likewise.
48082         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48083         * doc/glibc-functions/wcstod_l.texi: Likewise.
48084         * doc/glibc-functions/wcstof_l.texi: Likewise.
48085         * doc/glibc-functions/wcstol_l.texi: Likewise.
48086         * doc/glibc-functions/wcstold_l.texi: Likewise.
48087         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48088         * doc/glibc-functions/wcstoq.texi: Likewise.
48089         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48090         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48091         * doc/glibc-functions/wcstouq.texi: Likewise.
48092         * doc/glibc-functions/wmempcpy.texi: Likewise.
48093
48094 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48095             Eric Blake  <ebb9@byu.net>
48096             Paolo Bonzini  <bonzini@gnu.org>
48097             Bruno Haible  <bruno@clisp.org>
48098
48099         Make c-stack work on Haiku.
48100         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48101         (c_stack_action): Use SA_ONSTACK flag.
48102
48103 2008-12-22  Bruno Haible  <bruno@clisp.org>
48104
48105         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48106
48107 2008-12-22  Bruno Haible  <bruno@clisp.org>
48108
48109         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48110         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48111         being overridden.
48112         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48113         New macros.
48114         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48116         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48117         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48118
48119 2008-12-22  Bruno Haible  <bruno@clisp.org>
48120
48121         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48122         from test code.
48123
48124 2008-12-22  Eric Blake  <ebb9@byu.net>
48125
48126         Avoid gcc warnings on cygwin.
48127         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48128         Avoid unused variable.
48129         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48130         Likewise.
48131
48132 2008-12-22  Bruno Haible  <bruno@clisp.org>
48133
48134         Remove HAVE_MBRTOWC conditionals.
48135         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48136         (mbscasecmp): Assume mbrtowc function.
48137         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48138         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48139         * lib/mbschr.c: Include mbuiter.h unconditionally.
48140         (mbschr): Assume mbrtowc function.
48141         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48142         (mbscspn): Assume mbrtowc function.
48143         * lib/mbslen.c: Include mbuiter.h unconditionally.
48144         (mbslen): Assume mbrtowc function.
48145         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48146         (mbsncasecmp): Assume mbrtowc function.
48147         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48148         (mbsnlen): Assume mbrtowc function.
48149         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48150         (mbspbrk): Assume mbrtowc function.
48151         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48152         (mbspcasecmp): Assume mbrtowc function.
48153         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48154         (mbsrchr): Assume mbrtowc function.
48155         * lib/mbssep.c: Include mbuiter.h unconditionally.
48156         (mbssep): Assume mbrtowc function.
48157         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48158         (mbsspn): Assume mbrtowc function.
48159         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48160         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48161         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48162         (mbstok_r): Assume mbrtowc function.
48163         * lib/propername.c: Include mbuiter.h unconditionally.
48164         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48165         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48166         (trim2): Assume mbrtowc function.
48167         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48168         (mbsnwidth): Assume mbrtowc function.
48169         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48170         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48171         fallback definitions.
48172         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48173
48174 2008-12-22  Bruno Haible  <bruno@clisp.org>
48175
48176         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48177
48178 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48179
48180         * modules/regex: Request emulations for the mb*/wc* functions we need.
48181         * m4/regex.m4: Don't look for those functions here.
48182         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48183
48184 2008-12-22  Bruno Haible  <bruno@clisp.org>
48185
48186         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48187
48188 2008-12-21  Bruno Haible  <bruno@clisp.org>
48189
48190         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48191         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48192         (Include): Remove conditionalization.
48193         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48194         (Include): Remove conditionalization.
48195         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48196         (Include): Remove conditionalization.
48197         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48198         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48199         * NEWS: Mention the change.
48200         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48201         via Sergey Poznyakoff <gray@gnu.org.ua>.
48202
48203 2008-12-21  Bruno Haible  <bruno@clisp.org>
48204
48205         * MODULES.html.sh (Extended multibyte and wide character utilities
48206         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48207         wcrtomb, wcsrtombs.
48208         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48209         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48210         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48211         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48212
48213 2008-12-21  Bruno Haible  <bruno@clisp.org>
48214
48215         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48216
48217 2008-12-21  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/wcsnrtombs-tests: New file.
48220         * tests/test-wcsnrtombs1.sh: New file.
48221         * tests/test-wcsnrtombs2.sh: New file.
48222         * tests/test-wcsnrtombs3.sh: New file.
48223         * tests/test-wcsnrtombs4.sh: New file.
48224         * tests/test-wcsnrtombs.c: New file.
48225
48226         New module 'wcsnrtombs'.
48227         * lib/wchar.in.h (wcsnrtombs): New declaration.
48228         * lib/wcsnrtombs.c: New file.
48229         * lib/wcsrtombs-state.c: New file.
48230         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48231         (internal_state): Remove variable.
48232         * m4/wcsnrtombs.m4: New file.
48233         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48234         compilation units.
48235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48236         HAVE_WCSNRTOMBS.
48237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48238         HAVE_WCSNRTOMBS.
48239         * modules/wcsnrtombs: New file.
48240         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48241         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48242
48243 2008-12-21  Bruno Haible  <bruno@clisp.org>
48244
48245         * modules/wcsrtombs-tests: New file.
48246         * tests/test-wcsrtombs1.sh: New file.
48247         * tests/test-wcsrtombs2.sh: New file.
48248         * tests/test-wcsrtombs3.sh: New file.
48249         * tests/test-wcsrtombs4.sh: New file.
48250         * tests/test-wcsrtombs.c: New file.
48251
48252         New module 'wcsrtombs'.
48253         * lib/wchar.in.h (wcsrtombs): New declaration.
48254         * lib/wcsrtombs.c: New file.
48255         * m4/wcsrtombs.m4: New file.
48256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48257         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48259         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48260         * modules/wcsrtombs: New file.
48261         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48262         bugs.
48263
48264 2008-12-21  Bruno Haible  <bruno@clisp.org>
48265
48266         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48267         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48269         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48270         if not correct.
48271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48272         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48273         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48274         m4/locale-zh.m4, m4/codeset.m4.
48275         * doc/posix-functions/wcrtomb.texi: Document the bug.
48276
48277 2008-12-21  Bruno Haible  <bruno@clisp.org>
48278
48279         Work around a btowc() bug on IRIX 6.5.
48280         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48281         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48282         REPLACE_WTOBC if not.
48283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48284         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48285         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48286
48287 2008-12-21  Bruno Haible  <bruno@clisp.org>
48288
48289         * modules/wcrtomb-tests: New file.
48290         * tests/test-wcrtomb.sh: New file.
48291         * tests/test-wcrtomb.c: New file.
48292
48293         New module 'wcrtomb'.
48294         * lib/wchar.in.h (wcrtomb): New declaration.
48295         * lib/wcrtomb.c: New file.
48296         * m4/wcrtomb.m4: New file.
48297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48298         HAVE_WCRTOMB.
48299         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48300         HAVE_WCRTOMB.
48301         * modules/wcrtomb: New file.
48302         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48303
48304 2008-12-21  Bruno Haible  <bruno@clisp.org>
48305
48306         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48307         * modules/mbsrtowcs (Files): Likewise.
48308         * modules/wctob (Files): Likewise.
48309         * modules/c-strcase-tests (Files): Likewise.
48310         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48311         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48312         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48313         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48314         * modules/vasnprintf-posix-tests (Files): Likewise.
48315
48316 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48317
48318         gitlog-to-changelog: pass all command-line arguments to git-log
48319         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48320         it is sometimes convenient to filter the commits in various ways.
48321         gitlog-to-changelog only allows --since to specify a start date,
48322         but git-log itself supports many other filtering mechanisms.
48323         At the moment, I want to filter by branch name.  Rather than
48324         adding a --branch option to gitlog-to-changelog, it seems more
48325         flexible to simply pass all options directly to git-log and let
48326         git do the work.  Notice that this effectively makes --since a
48327         redundant option for gitlog-to-changelog, but removing it would
48328         require current usage to change since calls would then require
48329         an additional '--'.
48330
48331 2008-12-21  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/mbsnrtowcs-tests: New file.
48334         * tests/test-mbsnrtowcs1.sh: New file.
48335         * tests/test-mbsnrtowcs2.sh: New file.
48336         * tests/test-mbsnrtowcs3.sh: New file.
48337         * tests/test-mbsnrtowcs4.sh: New file.
48338         * tests/test-mbsnrtowcs.c: New file.
48339
48340         New module 'mbsnrtowcs'.
48341         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48342         * lib/mbsnrtowcs.c: New file.
48343         * lib/mbsrtowcs-state.c: New file.
48344         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48345         (internal_state): Remove variable.
48346         * m4/mbsnrtowcs.m4: New file.
48347         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48348         compilation units.
48349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48350         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48351         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48352         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48353         * modules/mbsnrtowcs: New file.
48354         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48355         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48356         portability problem.
48357
48358 2008-12-21  Bruno Haible  <bruno@clisp.org>
48359
48360         Work around mbsrtowcs bug.
48361         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48362         (gl_FUNC_MBSRTOWCS): Invoke it.
48363         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48364         m4/locale-zh.m4.
48365         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48366
48367 2008-12-21  Bruno Haible  <bruno@clisp.org>
48368
48369         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48370
48371 2008-12-21  Bruno Haible  <bruno@clisp.org>
48372
48373         Update doc for AIX.
48374         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48375         16-bit wchar_t type.
48376         * doc/posix-functions/btowc.texi: Likewise.
48377         * doc/posix-functions/fgetwc.texi: Likewise.
48378         * doc/posix-functions/fgetws.texi: Likewise.
48379         * doc/posix-functions/fputwc.texi: Likewise.
48380         * doc/posix-functions/fputws.texi: Likewise.
48381         * doc/posix-functions/fwide.texi: Likewise.
48382         * doc/posix-functions/fwprintf.texi: Likewise.
48383         * doc/posix-functions/fwscanf.texi: Likewise.
48384         * doc/posix-functions/getwchar.texi: Likewise.
48385         * doc/posix-functions/getwc.texi: Likewise.
48386         * doc/posix-functions/iswalnum.texi: Likewise.
48387         * doc/posix-functions/iswalpha.texi: Likewise.
48388         * doc/posix-functions/iswblank.texi: Likewise.
48389         * doc/posix-functions/iswcntrl.texi: Likewise.
48390         * doc/posix-functions/iswctype.texi: Likewise.
48391         * doc/posix-functions/iswdigit.texi: Likewise.
48392         * doc/posix-functions/iswgraph.texi: Likewise.
48393         * doc/posix-functions/iswlower.texi: Likewise.
48394         * doc/posix-functions/iswprint.texi: Likewise.
48395         * doc/posix-functions/iswpunct.texi: Likewise.
48396         * doc/posix-functions/iswspace.texi: Likewise.
48397         * doc/posix-functions/iswupper.texi: Likewise.
48398         * doc/posix-functions/iswxdigit.texi: Likewise.
48399         * doc/posix-functions/mbrtowc.texi: Likewise.
48400         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48401         * doc/posix-functions/mbstowcs.texi: Likewise.
48402         * doc/posix-functions/mbtowc.texi: Likewise.
48403         * doc/posix-functions/putwchar.texi: Likewise.
48404         * doc/posix-functions/putwc.texi: Likewise.
48405         * doc/posix-functions/swprintf.texi: Likewise.
48406         * doc/posix-functions/tolower.texi: Likewise.
48407         * doc/posix-functions/toupper.texi: Likewise.
48408         * doc/posix-functions/towctrans.texi: Likewise.
48409         * doc/posix-functions/ungetwc.texi: Likewise.
48410         * doc/posix-functions/vswprintf.texi: Likewise.
48411         * doc/posix-functions/wcrtomb.texi: Likewise.
48412         * doc/posix-functions/wcscat.texi: Likewise.
48413         * doc/posix-functions/wcschr.texi: Likewise.
48414         * doc/posix-functions/wcscmp.texi: Likewise.
48415         * doc/posix-functions/wcscoll.texi: Likewise.
48416         * doc/posix-functions/wcscpy.texi: Likewise.
48417         * doc/posix-functions/wcscspn.texi: Likewise.
48418         * doc/posix-functions/wcsftime.texi: Likewise.
48419         * doc/posix-functions/wcslen.texi: Likewise.
48420         * doc/posix-functions/wcsncat.texi: Likewise.
48421         * doc/posix-functions/wcsncmp.texi: Likewise.
48422         * doc/posix-functions/wcsncpy.texi: Likewise.
48423         * doc/posix-functions/wcspbrk.texi: Likewise.
48424         * doc/posix-functions/wcsrchr.texi: Likewise.
48425         * doc/posix-functions/wcsrtombs.texi: Likewise.
48426         * doc/posix-functions/wcsspn.texi: Likewise.
48427         * doc/posix-functions/wcsstr.texi: Likewise.
48428         * doc/posix-functions/wcstod.texi: Likewise.
48429         * doc/posix-functions/wcstof.texi: Likewise.
48430         * doc/posix-functions/wcstoimax.texi: Likewise.
48431         * doc/posix-functions/wcstok.texi: Likewise.
48432         * doc/posix-functions/wcstold.texi: Likewise.
48433         * doc/posix-functions/wcstoll.texi: Likewise.
48434         * doc/posix-functions/wcstol.texi: Likewise.
48435         * doc/posix-functions/wcstombs.texi: Likewise.
48436         * doc/posix-functions/wcstoull.texi: Likewise.
48437         * doc/posix-functions/wcstoul.texi: Likewise.
48438         * doc/posix-functions/wcstoumax.texi: Likewise.
48439         * doc/posix-functions/wcswidth.texi: Likewise.
48440         * doc/posix-functions/wcsxfrm.texi: Likewise.
48441         * doc/posix-functions/wctob.texi: Likewise.
48442         * doc/posix-functions/wctomb.texi: Likewise.
48443         * doc/posix-functions/wctrans.texi: Likewise.
48444         * doc/posix-functions/wctype.texi: Likewise.
48445         * doc/posix-functions/wcwidth.texi: Likewise.
48446         * doc/posix-functions/wmemchr.texi: Likewise.
48447         * doc/posix-functions/wmemcmp.texi: Likewise.
48448         * doc/posix-functions/wmemcpy.texi: Likewise.
48449         * doc/posix-functions/wmemmove.texi: Likewise.
48450         * doc/posix-functions/wmemset.texi: Likewise.
48451         * doc/posix-functions/wprintf.texi: Likewise.
48452         * doc/posix-functions/wscanf.texi: Likewise.
48453
48454 2008-12-21  Bruno Haible  <bruno@clisp.org>
48455
48456         Update doc for HP-UX 11.11.
48457         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48458         in HP-UX version 11.00, not in all versions of HP-UX 11.
48459         * doc/posix-functions/fwide.texi: Likewise.
48460         * doc/posix-functions/fwprintf.texi: Likewise.
48461         * doc/posix-functions/fwscanf.texi: Likewise.
48462         * doc/posix-functions/inet_ntop.texi: Likewise.
48463         * doc/posix-functions/inet_pton.texi: Likewise.
48464         * doc/posix-functions/mbrlen.texi: Likewise.
48465         * doc/posix-functions/mbrtowc.texi: Likewise.
48466         * doc/posix-functions/mbsinit.texi: Likewise.
48467         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48468         * doc/posix-functions/swprintf.texi: Likewise.
48469         * doc/posix-functions/swscanf.texi: Likewise.
48470         * doc/posix-functions/towctrans.texi: Likewise.
48471         * doc/posix-functions/vfwprintf.texi: Likewise.
48472         * doc/posix-functions/vswprintf.texi: Likewise.
48473         * doc/posix-functions/vwprintf.texi: Likewise.
48474         * doc/posix-functions/wcrtomb.texi: Likewise.
48475         * doc/posix-functions/wcsrtombs.texi: Likewise.
48476         * doc/posix-functions/wcsstr.texi: Likewise.
48477         * doc/posix-functions/wctob.texi: Likewise.
48478         * doc/posix-functions/wctrans.texi: Likewise.
48479         * doc/posix-functions/wmemchr.texi: Likewise.
48480         * doc/posix-functions/wmemcmp.texi: Likewise.
48481         * doc/posix-functions/wmemcpy.texi: Likewise.
48482         * doc/posix-functions/wmemmove.texi: Likewise.
48483         * doc/posix-functions/wmemset.texi: Likewise.
48484         * doc/posix-functions/wprintf.texi: Likewise.
48485         * doc/posix-functions/wscanf.texi: Likewise.
48486
48487 2008-12-21  Bruno Haible  <bruno@clisp.org>
48488
48489         Work around a portability problem.
48490         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48491         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48492
48493 2008-12-20  Bruno Haible  <bruno@clisp.org>
48494
48495         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48496         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48497         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48499         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48500
48501         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48502         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48503         set.
48504         (GNULIB_defined_mbstate_t): New macro.
48505         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48506         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48507         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48508         reuses the system's mbrtowc function but works around the bugs.
48509         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48510         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48511         macros.
48512         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48513         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48514         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48515         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48516         REPLACE_MBSINIT if mbsinit needs to be overridden.
48517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48518         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48520         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48521         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48522         m4/locale-zh.m4.
48523         (Depends): Add mbsinit.
48524         * modules/mbsinit (Depends): Add mbrtowc.
48525         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48526
48527 2008-12-20  Bruno Haible  <bruno@clisp.org>
48528
48529         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48530         so that there are no conversion errors on AIX.
48531         * tests/test-mbsrtowcs.c (main): LIkewise.
48532
48533 2008-12-20  Bruno Haible  <bruno@clisp.org>
48534
48535         Work around wctob bug on Solaris <= 9.
48536         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48537         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48539         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48540         * modules/wctob (Files): Add m4/locale-fr.m4.
48541         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48542
48543 2008-12-20  Bruno Haible  <bruno@clisp.org>
48544
48545         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48546         /dev/null.
48547         * tests/test-select-in.sh: Likewise.
48548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48549
48550 2008-12-20  Bruno Haible  <bruno@clisp.org>
48551
48552         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48553         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48554         Cygwin 1.5.x.
48555
48556 2008-12-20  Bruno Haible  <bruno@clisp.org>
48557
48558         Ensure mbstate_t is defined on HP-UX 11.11.
48559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48560         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48561         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48562         AC_USE_SYSTEM_EXTENSIONS.
48563         * modules/fnmatch (Depends-on): Add extensions.
48564         * modules/mbrlen (Depends-on): Likewise.
48565         * modules/mbrtowc (Depends-on): Likewise.
48566         * modules/mbsinit (Depends-on): Likewise.
48567         * modules/mbsrtowcs (Depends-on): Likewise.
48568         * modules/mbswidth (Depends-on): Likewise.
48569         * modules/quotearg (Depends-on): Likewise.
48570         * modules/strftime (Depends-on): Likewise.
48571
48572 2008-12-20  Bruno Haible  <bruno@clisp.org>
48573
48574         Ensure wctob is declared on IRIX 6.5.
48575         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48576         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48577         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48579         of HAVE_WCTOB.
48580         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48581         HAVE_WCTOB.
48582         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48583
48584 2008-12-19  Bruno Haible  <bruno@clisp.org>
48585
48586         * modules/mbsrtowcs-tests: New file.
48587         * tests/test-mbsrtowcs1.sh: New file.
48588         * tests/test-mbsrtowcs2.sh: New file.
48589         * tests/test-mbsrtowcs3.sh: New file.
48590         * tests/test-mbsrtowcs4.sh: New file.
48591         * tests/test-mbsrtowcs.c: New file.
48592
48593         New module 'mbsrtowcs'.
48594         * lib/wchar.in.h (mbsrtowcs): New declaration.
48595         * lib/mbsrtowcs.c: New file.
48596         * m4/mbsrtowcs.m4: New file.
48597         * modules/mbsrtowcs: New file.
48598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48599         HAVE_MBSRTOWCS.
48600         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48601         HAVE_MBSRTOWCS.
48602         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48603
48604 2008-12-19  Bruno Haible  <bruno@clisp.org>
48605
48606         New module 'mbrlen'.
48607         * lib/wchar.in.h (mbrlen): New declaration.
48608         * lib/mbrlen.c: New file.
48609         * m4/mbrlen.m4: New file.
48610         * modules/mbrlen: New file.
48611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48612         HAVE_MBRLEN.
48613         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48614         HAVE_MBRLEN.
48615         * doc/posix-functions/mbrlen.texi: Document the new module.
48616
48617 2008-12-19  Bruno Haible  <bruno@clisp.org>
48618
48619         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48620         * modules/mbrtowc (Depends-on): Add verify.
48621         Suggested by Paul Eggert.
48622
48623 2008-12-18  Bruno Haible  <bruno@clisp.org>
48624
48625         * modules/mbsinit-tests: New file.
48626         * tests/test-mbsinit.sh: New file.
48627         * tests/test-mbsinit.c: New file.
48628
48629 2008-12-18  Bruno Haible  <bruno@clisp.org>
48630
48631         * modules/mbrtowc-tests: New file.
48632         * tests/test-mbrtowc1.sh: New file.
48633         * tests/test-mbrtowc2.sh: New file.
48634         * tests/test-mbrtowc3.sh: New file.
48635         * tests/test-mbrtowc4.sh: New file.
48636         * tests/test-mbrtowc.c: New file.
48637
48638         New module 'mbrtowc'.
48639         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48640         mbsinit and mbrtowc.
48641         (mbrtowc): New declaration.
48642         * lib/mbrtowc.c: New file.
48643         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48644         * modules/mbrtowc: New file.
48645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48646         HAVE_MBRTOWC.
48647         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48648         HAVE_MBRTOWC.
48649         * doc/posix-functions/mbrtowc.texi: Document the new module.
48650
48651 2008-12-18  Bruno Haible  <bruno@clisp.org>
48652
48653         New module 'wctob'.
48654         * lib/wchar.in.h (wctob): New declaration.
48655         * lib/wctob.c: New file.
48656         * m4/wctob.m4: New file.
48657         * modules/wctob: New file.
48658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48659         HAVE_WCTOB.
48660         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48661         * doc/posix-functions/wctob.texi: Document the new module.
48662
48663 2008-12-18  Bruno Haible  <bruno@clisp.org>
48664
48665         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48666         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48667
48668 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48669
48670         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48671         G. Christensen" <tgc@jupiterrise.com>.
48672
48673         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48674         G. Christensen" <tgc@jupiterrise.com>.
48675
48676         * lib/flock.c: Need to include string.h.  Reported by "Tom
48677         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48678         <ebb9@byu.net>.
48679
48680 2008-12-18  Bruno Haible  <bruno@clisp.org>
48681
48682         * m4/locale-ja.m4: New file, from GNU gettext.
48683
48684 2008-12-17  Bruno Haible  <bruno@clisp.org>
48685
48686         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48687         Suggested by Eric Blake.
48688
48689 2008-12-17  Bruno Haible  <bruno@clisp.org>
48690
48691         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48692
48693 2008-12-17  Bruno Haible  <bruno@clisp.org>
48694
48695         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48696         * modules/mbsinit (Depends-on): Add verify.
48697         Suggested by Paul Eggert.
48698
48699 2008-12-17  Bruno Haible  <bruno@clisp.org>
48700
48701         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48702         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48703         gl_FUNC_MBRTOWC.
48704         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48705         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48706         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48707         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48708         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48709         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48710         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48711         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48712         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48713         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48714         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48715         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48716         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48717         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48718         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48719         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48720         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48721         * modules/trim (configure.ac): Likewise.
48722
48723 2008-12-17  Bruno Haible  <bruno@clisp.org>
48724
48725         * modules/btowc-tests: New file.
48726         * tests/test-btowc1.sh: New file.
48727         * tests/test-btowc2.sh: New file.
48728         * tests/test-btowc.c: New file.
48729
48730         New module 'btowc'.
48731         * lib/wchar.in.h (btowc): New declaration.
48732         * lib/btowc.c: New file.
48733         * m4/btowc.m4: New file.
48734         * modules/btowc: New file.
48735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48736         HAVE_BTOWC.
48737         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48738         * doc/posix-functions/btowc.texi: Document the new module.
48739
48740 2008-12-17  Bruno Haible  <bruno@clisp.org>
48741
48742         New module 'mbsinit'.
48743         * lib/wchar.in.h (mbsinit): New declaration.
48744         * lib/mbsinit.c: New file.
48745         * m4/mbsinit.m4: New file.
48746         * modules/mbsinit: New file.
48747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48748         HAVE_MBSINIT.
48749         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48750         HAVE_MBSINIT.
48751         * doc/posix-functions/mbsinit.texi: Document the new module.
48752
48753 2008-12-16  Bruno Haible  <bruno@clisp.org>
48754
48755         * lib/unistd.in.h: Add comment.
48756         * tests/test-environ.c: Don't include <stdlib.h>.
48757
48758 2008-12-16  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/parse-duration.h (parse_duration): Document return value
48761         convention.
48762         * lib/parse-duration.c: Include specification header first. Add
48763         comments.
48764         (_): Remove macro.
48765         (parse_year_month_day, parse_hour_minute_second): Move side effects
48766         outside of strchr call.
48767         (parse_non_iso8601): Move side effects outside of isspace call.
48768         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48769         call.
48770
48771 2008-12-16  Bruno Haible  <bruno@clisp.org>
48772
48773         * tests/test-parse-duration.sh: Produce no output when the test
48774         succeeds.
48775
48776 2008-12-16  Bruno Haible  <bruno@clisp.org>
48777
48778         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48779         expressions.
48780
48781 2008-12-15  Bruno Haible  <bruno@clisp.org>
48782
48783         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48784         * doc/glibc-functions/flistxattr.texi: Likewise.
48785         * doc/glibc-functions/fopencookie.texi: Likewise.
48786         * doc/glibc-functions/fremovexattr.texi: Likewise.
48787         * doc/glibc-functions/fsetxattr.texi: Likewise.
48788         * doc/glibc-functions/getxattr.texi: Likewise.
48789         * doc/glibc-functions/lgetxattr.texi: Likewise.
48790         * doc/glibc-functions/listxattr.texi: Likewise.
48791         * doc/glibc-functions/llistxattr.texi: Likewise.
48792         * doc/glibc-functions/lremovexattr.texi: Likewise.
48793         * doc/glibc-functions/lsetxattr.texi: Likewise.
48794         * doc/glibc-functions/removexattr.texi: Likewise.
48795         * doc/glibc-functions/setxattr.texi: Likewise.
48796         * doc/posix-functions/open_memstream.texi: Likewise.
48797
48798 2008-12-15  Eric Blake  <ebb9@byu.net>
48799
48800         Update doc for cygwin 1.7.
48801         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48802         functions.
48803         * doc/posix-functions/fchmodat.texi: Likewise.
48804         * doc/posix-functions/fchownat.texi: Likewise.
48805         * doc/posix-functions/fdopendir.texi: Likewise.
48806         * doc/posix-functions/fmemopen.texi: Likewise.
48807         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48808         * doc/posix-functions/fstatat.texi: Likewise.
48809         * doc/posix-functions/futimens.texi: Likewise.
48810         * doc/posix-functions/gai_strerror.texi: Likewise.
48811         * doc/posix-functions/getaddrinfo.texi: Likewise.
48812         * doc/posix-functions/getnameinfo.texi: Likewise.
48813         * doc/posix-functions/if_freenameindex.texi: Likewise.
48814         * doc/posix-functions/if_indextoname.texi: Likewise.
48815         * doc/posix-functions/if_nameindex.texi: Likewise.
48816         * doc/posix-functions/if_nametoindex.texi: Likewise.
48817         * doc/posix-functions/insque.texi: Likewise.
48818         * doc/posix-functions/linkat.texi: Likewise.
48819         * doc/posix-functions/llrint.texi: Likewise.
48820         * doc/posix-functions/llrintf.texi: Likewise.
48821         * doc/posix-functions/llrintl.texi: Likewise.
48822         * doc/posix-functions/lockf.texi: Likewise.
48823         * doc/posix-functions/lrintl.texi: Likewise.
48824         * doc/posix-functions/mkdirat.texi: Likewise.
48825         * doc/posix-functions/mkfifoat.texi: Likewise.
48826         * doc/posix-functions/mknodat.texi: Likewise.
48827         * doc/posix-functions/mq_close.texi: Likewise.
48828         * doc/posix-functions/mq_getattr.texi: Likewise.
48829         * doc/posix-functions/mq_notify.texi: Likewise.
48830         * doc/posix-functions/mq_open.texi: Likewise.
48831         * doc/posix-functions/mq_receive.texi: Likewise.
48832         * doc/posix-functions/mq_send.texi: Likewise.
48833         * doc/posix-functions/mq_setattr.texi: Likewise.
48834         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48835         * doc/posix-functions/mq_timedsend.texi: Likewise.
48836         * doc/posix-functions/mq_unlink.texi: Likewise.
48837         * doc/posix-functions/open_memstream.texi: Likewise.
48838         * doc/posix-functions/openat.texi: Likewise.
48839         * doc/posix-functions/posix_fadvise.texi: Likewise.
48840         * doc/posix-functions/posix_fallocate.texi: Likewise.
48841         * doc/posix-functions/posix_madvise.texi: Likewise.
48842         * doc/posix-functions/posix_memalign.texi: Likewise.
48843         * doc/posix-functions/posix_openpt.texi: Likewise.
48844         * doc/posix-functions/readlinkat.texi: Likewise.
48845         * doc/posix-functions/remque.texi: Likewise.
48846         * doc/posix-functions/renameat.texi: Likewise.
48847         * doc/posix-functions/rintl.texi: Likewise.
48848         * doc/posix-functions/sem_unlink.texi: Likewise.
48849         * doc/posix-functions/shm_open.texi: Likewise.
48850         * doc/posix-functions/shm_unlink.texi: Likewise.
48851         * doc/posix-functions/signgam.texi: Likewise.
48852         * doc/posix-functions/sigset.texi: Likewise.
48853         * doc/posix-functions/stpcpy.texi: Likewise.
48854         * doc/posix-functions/stpncpy.texi: Likewise.
48855         * doc/posix-functions/strerror.texi: Likewise.
48856         * doc/posix-functions/strtod.texi: Likewise.
48857         * doc/posix-functions/symlinkat.texi: Likewise.
48858         * doc/posix-functions/unlinkat.texi: Likewise.
48859         * doc/posix-functions/utimensat.texi: Likewise.
48860         * doc/glibc-functions/bindresvport.texi: Likewise.
48861         * doc/glibc-functions/dn_expand.texi: Likewise.
48862         * doc/glibc-functions/exp10.texi: Likewise.
48863         * doc/glibc-functions/exp10f.texi: Likewise.
48864         * doc/glibc-functions/fgetxattr.texi: Likewise.
48865         * doc/glibc-functions/flistxattr.texi: Likewise.
48866         * doc/glibc-functions/fopencookie.texi: Likewise.
48867         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48868         * doc/glibc-functions/fremovexattr.texi: Likewise.
48869         * doc/glibc-functions/fsetxattr.texi: Likewise.
48870         * doc/glibc-functions/getifaddrs.texi: Likewise.
48871         * doc/glibc-functions/getxattr.texi: Likewise.
48872         * doc/glibc-functions/lgetxattr.texi: Likewise.
48873         * doc/glibc-functions/listxattr.texi: Likewise.
48874         * doc/glibc-functions/llistxattr.texi: Likewise.
48875         * doc/glibc-functions/lremovexattr.texi: Likewise.
48876         * doc/glibc-functions/lsetxattr.texi: Likewise.
48877         * doc/glibc-functions/pow10.texi: Likewise.
48878         * doc/glibc-functions/pow10f.texi: Likewise.
48879         * doc/glibc-functions/rcmd_af.texi: Likewise.
48880         * doc/glibc-functions/removexattr.texi: Likewise.
48881         * doc/glibc-functions/res_init.texi: Likewise.
48882         * doc/glibc-functions/res_mkquery.texi: Likewise.
48883         * doc/glibc-functions/res_query.texi: Likewise.
48884         * doc/glibc-functions/res_querydomain.texi: Likewise.
48885         * doc/glibc-functions/res_send.texi: Likewise.
48886         * doc/glibc-functions/rresvport_af.texi: Likewise.
48887         * doc/glibc-functions/setxattr.texi: Likewise.
48888         * doc/glibc-functions/strcasestr.texi: Likewise.
48889
48890 2008-12-15  Bruno Haible  <bruno@clisp.org>
48891
48892         Fix compilation error on OSF/1 4.0.
48893         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48894         <sys/time.h>, simply delegate to the system header.
48895         Reported by Daniel Richard G. <oss@teragram.com>.
48896
48897 2008-12-15  Bruno Haible  <bruno@clisp.org>
48898
48899         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48900         * doc/posix-functions/fchmodat.texi: Likewise.
48901         * doc/posix-functions/fchownat.texi: Likewise.
48902         * doc/posix-functions/fdopendir.texi: Likewise.
48903         * doc/posix-functions/fstatat.texi: Likewise.
48904         * doc/posix-functions/mkdirat.texi: Likewise.
48905         * doc/posix-functions/unlinkat.texi: Likewise.
48906
48907 2008-12-14  Bruno Haible  <bruno@clisp.org>
48908
48909         Update doc for POSIX:2008.
48910         * doc/posix-functions/faccessat.texi: New file.
48911         * doc/posix-functions/fchmodat.texi: New file.
48912         * doc/posix-functions/fchownat.texi: New file.
48913         * doc/posix-functions/fdopendir.texi: New file.
48914         * doc/posix-functions/fstatat.texi: New file.
48915         * doc/posix-functions/futimens.texi: New file.
48916         * doc/posix-functions/linkat.texi: New file.
48917         * doc/posix-functions/mkdirat.texi: New file.
48918         * doc/posix-functions/mkfifoat.texi: New file.
48919         * doc/posix-functions/mknodat.texi: New file.
48920         * doc/posix-functions/open_wmemstream.texi: New file.
48921         * doc/posix-functions/openat.texi: New file.
48922         * doc/posix-functions/psiginfo.texi: New file.
48923         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48924         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48925         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48926         * doc/posix-functions/readlinkat.texi: New file.
48927         * doc/posix-functions/renameat.texi: New file.
48928         * doc/posix-functions/strerror_l.texi: New file.
48929         * doc/posix-functions/symlinkat.texi: New file.
48930         * doc/posix-functions/unlinkat.texi: New file.
48931         * doc/posix-functions/utimensat.texi: New file.
48932         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48933
48934 2008-12-14  Bruno Haible  <bruno@clisp.org>
48935
48936         Update doc for POSIX:2008.
48937         * doc/posix-functions/alphasort.texi: Renamed from
48938         doc/glibc-functions/alphasort.texi.
48939         * doc/posix-functions/dirfd.texi: Renamed from
48940         doc/glibc-functions/dirfd.texi.
48941         * doc/posix-functions/dprintf.texi: Renamed from
48942         doc/glibc-functions/dprintf.texi.
48943         * doc/posix-functions/duplocale.texi: Renamed from
48944         doc/glibc-functions/duplocale.texi.
48945         * doc/posix-functions/fexecve.texi: Renamed from
48946         doc/glibc-functions/fexecve.texi.
48947         * doc/posix-functions/fmemopen.texi: Renamed from
48948         doc/glibc-functions/fmemopen.texi.
48949         * doc/posix-functions/freelocale.texi: Renamed from
48950         doc/glibc-functions/freelocale.texi.
48951         * doc/posix-functions/getdate_err.texi: Renamed from
48952         doc/glibc-functions/getdate_err.texi.
48953         * doc/posix-functions/isalnum_l.texi: Renamed from
48954         doc/glibc-functions/isalnum_l.texi.
48955         * doc/posix-functions/isalpha_l.texi: Renamed from
48956         doc/glibc-functions/isalpha_l.texi.
48957         * doc/posix-functions/isblank_l.texi: Renamed from
48958         doc/glibc-functions/isblank_l.texi.
48959         * doc/posix-functions/iscntrl_l.texi: Renamed from
48960         doc/glibc-functions/iscntrl_l.texi.
48961         * doc/posix-functions/isdigit_l.texi: Renamed from
48962         doc/glibc-functions/isdigit_l.texi.
48963         * doc/posix-functions/isgraph_l.texi: Renamed from
48964         doc/glibc-functions/isgraph_l.texi.
48965         * doc/posix-functions/islower_l.texi: Renamed from
48966         doc/glibc-functions/islower_l.texi.
48967         * doc/posix-functions/isprint_l.texi: Renamed from
48968         doc/glibc-functions/isprint_l.texi.
48969         * doc/posix-functions/ispunct_l.texi: Renamed from
48970         doc/glibc-functions/ispunct_l.texi.
48971         * doc/posix-functions/isspace_l.texi: Renamed from
48972         doc/glibc-functions/isspace_l.texi.
48973         * doc/posix-functions/isupper_l.texi: Renamed from
48974         doc/glibc-functions/isupper_l.texi.
48975         * doc/posix-functions/iswalnum_l.texi: Renamed from
48976         doc/glibc-functions/iswalnum_l.texi.
48977         * doc/posix-functions/iswalpha_l.texi: Renamed from
48978         doc/glibc-functions/iswalpha_l.texi.
48979         * doc/posix-functions/iswblank_l.texi: Renamed from
48980         doc/glibc-functions/iswblank_l.texi.
48981         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48982         doc/glibc-functions/iswcntrl_l.texi.
48983         * doc/posix-functions/iswctype_l.texi: Renamed from
48984         doc/glibc-functions/iswctype_l.texi.
48985         * doc/posix-functions/iswdigit_l.texi: Renamed from
48986         doc/glibc-functions/iswdigit_l.texi.
48987         * doc/posix-functions/iswgraph_l.texi: Renamed from
48988         doc/glibc-functions/iswgraph_l.texi.
48989         * doc/posix-functions/iswlower_l.texi: Renamed from
48990         doc/glibc-functions/iswlower_l.texi.
48991         * doc/posix-functions/iswprint_l.texi: Renamed from
48992         doc/glibc-functions/iswprint_l.texi.
48993         * doc/posix-functions/iswpunct_l.texi: Renamed from
48994         doc/glibc-functions/iswpunct_l.texi.
48995         * doc/posix-functions/iswspace_l.texi: Renamed from
48996         doc/glibc-functions/iswspace_l.texi.
48997         * doc/posix-functions/iswupper_l.texi: Renamed from
48998         doc/glibc-functions/iswupper_l.texi.
48999         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49000         doc/glibc-functions/iswxdigit_l.texi.
49001         * doc/posix-functions/isxdigit_l.texi: Renamed from
49002         doc/glibc-functions/isxdigit_l.texi.
49003         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49004         doc/glibc-functions/mbsnrtowcs.texi.
49005         * doc/posix-functions/mkdtemp.texi: Renamed from
49006         doc/glibc-functions/mkdtemp.texi.
49007         * doc/posix-functions/newlocale.texi: Renamed from
49008         doc/glibc-functions/newlocale.texi.
49009         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49010         doc/glibc-functions/nl_langinfo_l.texi.
49011         * doc/posix-functions/open_memstream.texi: Renamed from
49012         doc/glibc-functions/open_memstream.texi.
49013         * doc/posix-functions/opterr.texi: Renamed from
49014         doc/glibc-functions/opterr.texi.
49015         * doc/posix-functions/optind.texi: Renamed from
49016         doc/glibc-functions/optind.texi.
49017         * doc/posix-functions/optopt.texi: Renamed from
49018         doc/glibc-functions/optopt.texi.
49019         * doc/posix-functions/psignal.texi: Renamed from
49020         doc/glibc-functions/psignal.texi.
49021         * doc/posix-functions/scandir.texi: Renamed from
49022         doc/glibc-functions/scandir.texi.
49023         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49024         doc/glibc-functions/sched_get_priority_min.texi.
49025         * doc/posix-functions/signgam.texi: Renamed from
49026         doc/glibc-functions/signgam.texi.
49027         * doc/posix-functions/stpcpy.texi: Renamed from
49028         doc/glibc-functions/stpcpy.texi.
49029         * doc/posix-functions/stpncpy.texi: Renamed from
49030         doc/glibc-functions/stpncpy.texi.
49031         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49032         doc/glibc-functions/strcasecmp_l.texi.
49033         * doc/posix-functions/strcoll_l.texi: Renamed from
49034         doc/glibc-functions/strcoll_l.texi.
49035         * doc/posix-functions/strfmon_l.texi: Renamed from
49036         doc/glibc-functions/strfmon_l.texi.
49037         * doc/posix-functions/strftime_l.texi: Renamed from
49038         doc/glibc-functions/strftime_l.texi.
49039         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49040         doc/glibc-functions/strncasecmp_l.texi.
49041         * doc/posix-functions/strndup.texi: Renamed from
49042         doc/glibc-functions/strndup.texi.
49043         * doc/posix-functions/strnlen.texi: Renamed from
49044         doc/glibc-functions/strnlen.texi.
49045         * doc/posix-functions/strsignal.texi: Renamed from
49046         doc/glibc-functions/strsignal.texi.
49047         * doc/posix-functions/strxfrm_l.texi: Renamed from
49048         doc/glibc-functions/strxfrm_l.texi.
49049         * doc/posix-functions/timer_gettime.texi: Renamed from
49050         doc/glibc-functions/timer_gettime.texi.
49051         * doc/posix-functions/tolower_l.texi: Renamed from
49052         doc/glibc-functions/tolower_l.texi.
49053         * doc/posix-functions/toupper_l.texi: Renamed from
49054         doc/glibc-functions/toupper_l.texi.
49055         * doc/posix-functions/towctrans_l.texi: Renamed from
49056         doc/glibc-functions/towctrans_l.texi.
49057         * doc/posix-functions/towlower_l.texi: Renamed from
49058         doc/glibc-functions/towlower_l.texi.
49059         * doc/posix-functions/towupper_l.texi: Renamed from
49060         doc/glibc-functions/towupper_l.texi.
49061         * doc/posix-functions/uselocale.texi: Renamed from
49062         doc/glibc-functions/uselocale.texi.
49063         * doc/posix-functions/vdprintf.texi: Renamed from
49064         doc/glibc-functions/vdprintf.texi.
49065         * doc/posix-functions/wcpcpy.texi:
49066         Renamed from doc/glibc-functions/wcpcpy.texi.
49067         * doc/posix-functions/wcpncpy.texi: Renamed from
49068         doc/glibc-functions/wcpncpy.texi.
49069         * doc/posix-functions/wcscasecmp.texi: Renamed from
49070         doc/glibc-functions/wcscasecmp.texi.
49071         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49072         doc/glibc-functions/wcscasecmp_l.texi.
49073         * doc/posix-functions/wcscoll_l.texi: Renamed from
49074         doc/glibc-functions/wcscoll_l.texi.
49075         * doc/posix-functions/wcsdup.texi: Renamed from
49076         doc/glibc-functions/wcsdup.texi.
49077         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49078         doc/glibc-functions/wcsncasecmp.texi.
49079         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49080         doc/glibc-functions/wcsncasecmp_l.texi.
49081         * doc/posix-functions/wcsnlen.texi: Renamed from
49082         doc/glibc-functions/wcsnlen.texi.
49083         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49084         doc/glibc-functions/wcsnrtombs.texi.
49085         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49086         doc/glibc-functions/wcsxfrm_l.texi.
49087         * doc/posix-functions/wctrans_l.texi: Renamed from
49088         doc/glibc-functions/wctrans_l.texi.
49089         * doc/posix-functions/wctype_l.texi: Renamed from
49090         doc/glibc-functions/wctype_l.texi.
49091         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49092         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49093         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49094         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49095         these subsections.
49096         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49097         Remove sections.
49098
49099 2008-12-14  Bruno Haible  <bruno@clisp.org>
49100
49101         Update doc for POSIX:2008.
49102         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49103
49104 2008-12-14  Bruno Haible  <bruno@clisp.org>
49105
49106         Update doc for POSIX:2008.
49107         * doc/pastposix-functions/bcmp.texi: Renamed from
49108         doc/posix-functions/bcmp.texi.
49109         * doc/pastposix-functions/bcopy.texi: Renamed from
49110         doc/posix-functions/bcopy.texi.
49111         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49112         doc/posix-functions/bsd_signal.texi.
49113         * doc/pastposix-functions/bzero.texi: Renamed from
49114         doc/posix-functions/bzero.texi.
49115         * doc/pastposix-functions/ecvt.texi: Renamed from
49116         doc/posix-functions/ecvt.texi.
49117         * doc/pastposix-functions/fcvt.texi: Renamed from
49118         doc/posix-functions/fcvt.texi.
49119         * doc/pastposix-functions/ftime.texi: Renamed from
49120         doc/posix-functions/ftime.texi.
49121         * doc/pastposix-functions/gcvt.texi: Renamed from
49122         doc/posix-functions/gcvt.texi.
49123         * doc/pastposix-functions/getcontext.texi: Renamed from
49124         doc/posix-functions/getcontext.texi.
49125         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49126         doc/posix-functions/gethostbyaddr.texi.
49127         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49128         doc/posix-functions/gethostbyname.texi.
49129         * doc/pastposix-functions/getwd.texi: Renamed from
49130         doc/posix-functions/getwd.texi.
49131         * doc/pastposix-functions/h_errno.texi: Renamed from
49132         doc/posix-functions/h_errno.texi.
49133         * doc/pastposix-functions/index.texi: Renamed from
49134         doc/posix-functions/index.texi.
49135         * doc/pastposix-functions/makecontext.texi: Renamed from
49136         doc/posix-functions/makecontext.texi.
49137         * doc/pastposix-functions/mktemp.texi: Renamed from
49138         doc/posix-functions/mktemp.texi.
49139         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49140         doc/posix-functions/pthread_attr_getstackaddr.texi.
49141         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49142         doc/posix-functions/pthread_attr_setstackaddr.texi.
49143         * doc/pastposix-functions/rindex.texi: Renamed from
49144         doc/posix-functions/rindex.texi.
49145         * doc/pastposix-functions/scalb.texi: Renamed from
49146         doc/posix-functions/scalb.texi.
49147         * doc/pastposix-functions/setcontext.texi: Renamed from
49148         doc/posix-functions/setcontext.texi.
49149         * doc/pastposix-functions/swapcontext.texi: Renamed from
49150         doc/posix-functions/swapcontext.texi.
49151         * doc/pastposix-functions/ualarm.texi: Renamed from
49152         doc/posix-functions/ualarm.texi.
49153         * doc/pastposix-functions/usleep.texi: Renamed from
49154         doc/posix-functions/usleep.texi.
49155         * doc/pastposix-functions/vfork.texi: Renamed from
49156         doc/posix-functions/vfork.texi.
49157         * doc/pastposix-functions/wcswcs.texi: Renamed from
49158         doc/posix-functions/wcswcs.texi.
49159         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49160         (Function Substitutes): Update.
49161
49162 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49163
49164         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49165         m4/strerror.m4.
49166
49167 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49168             Bruno Haible  <bruno@clisp.org>
49169
49170         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49171
49172 2008-12-13  Bruno Haible  <bruno@clisp.org>
49173
49174         * modules/strtoull (Depends-on): Remove unistd.
49175
49176 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49177
49178         * modules/strtoull (Depends-on): Add stdlib.
49179
49180 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49181
49182         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49183
49184 2008-12-10  Jim Meyering  <meyering@redhat.com>
49185
49186         gl_ASSERT: don't say assertions are disabled when they're not
49187         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49188         "checking whether to enable assertions... no", when they are in
49189         fact enabled.  This is solely a bug in the output of configure.
49190         In spite of saying "no", NDEBUG was not defined in that case.
49191         Also, as noted by Eric Blake, leave assertions enabled upon
49192         --enable-assert=INVALID.
49193
49194 2008-12-10  Bruno Haible  <bruno@clisp.org>
49195
49196         Change MODULES.html to refer to POSIX:2008 where possible.
49197         * MODULES.html.sh (POSIX2008_URL): New variable.
49198         (posix_headers): Remove sys/timeb, ucontext.
49199         (posix2001_headers): New variable.
49200         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49201         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49202         index, makecontext, mktemp, pthread_attr_getstackaddr,
49203         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49204         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49205         (posix2001_functions): New variable.
49206         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49207         otherwise.
49208
49209 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49210
49211         add missing include to parse-duration.c
49212         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49213         * modules/parse-duration (Depends-on): Add xalloc.
49214
49215         fix sed script reading maint.mk
49216         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49217         (syntax-check-rules): Use it.
49218
49219 2008-12-09  Bruno Haible  <bruno@clisp.org>
49220
49221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49222         MacOS X 10.4/PowerPC.
49223         Reported by Simon Josefsson.
49224
49225 2008-12-08  Jim Meyering  <meyering@redhat.com>
49226
49227         work around mingw's lack of some S_IF definitions
49228         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49229         Reported by Simon Josefsson.
49230
49231 2008-12-08  Bruno Haible  <bruno@clisp.org>
49232
49233         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49234         applied to variables. Needed on MacOS X 10.4/PowerPC.
49235         Reported by Simon Josefsson.
49236
49237 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49238         and Eric Blake  <ebb9@byu.net>
49239
49240         assert: honor --enable-assert
49241         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49242         order to honor --enable-assert, rather than treating it as a
49243         synonym for --disable-assert.
49244
49245 2008-12-08  Jim Meyering  <meyering@redhat.com>
49246
49247         * lib/posixtm.c: Remove now-useless declaration of mktime.
49248
49249         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49250
49251 2008-12-07  Bruno Haible  <bruno@clisp.org>
49252
49253         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49254         test_once): Mark functions as static.
49255         * tests/test-tls.c (test_tls): Likewise.
49256
49257 2008-12-07  Bruno Haible  <bruno@clisp.org>
49258
49259         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49260         iconv_register_autodetect.
49261
49262 2008-12-07  Jim Meyering  <meyering@redhat.com>
49263
49264         posixtm.c: avoid a warning
49265         * lib/posixtm.c (posixtime): Don't initialize tm0.
49266         It's no longer needed to placate gcc4's -Wuninitialized,
49267         and the attempt to placate would elicit a new warning.
49268
49269         unicodeio.c: mark unused parameters
49270         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49271         (fallback_failure_callback): Likewise.
49272
49273 2008-12-07  Bruno Haible  <bruno@clisp.org>
49274
49275         * gnulib-tool (func_create_testdir): When building the tests
49276         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49277         Reported by Simon Josefsson.
49278
49279 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49280
49281         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49282
49283 2008-12-06  Bruno Haible  <bruno@clisp.org>
49284
49285         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49286         Suggested by Eric Blake.
49287
49288 2008-12-06  Bruno Haible  <bruno@clisp.org>
49289
49290         Fix a c-stack test failure on MacOS X.
49291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49292         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49293         handler for SIGBUS as well.
49294         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49295         install a signal handler for SIGBUS as well.
49296         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49297
49298 2008-12-06  Bruno Haible  <bruno@clisp.org>
49299
49300         Advocacy documentation.
49301         * doc/gnulib-intro.texi (Benefits): New section.
49302         * doc/gnulib.texi: Update.
49303
49304 2008-12-06  Bruno Haible  <bruno@clisp.org>
49305
49306         Document the 'manywarnings' module.
49307         * doc/manywarnings.texi: New file.
49308         * doc/gnulib.texi: Include it.
49309
49310 2008-12-05  Eric Blake  <ebb9@byu.net>
49311
49312         tests: silence some gcc warnings
49313         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49314         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49315         type mismatches.
49316
49317 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49318             Bruno Haible  <bruno@clisp.org>
49319
49320         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49321
49322 2008-11-29  Jim Meyering  <meyering@redhat.com>
49323
49324         unicodeio.c: mark unused parameters
49325         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49326         (fallback_failure_callback): Likewise.
49327
49328         fts: fix a thinko
49329         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49330         (set_stat_type): Return S_IF*-valued "type" directly.
49331         Prompted by James Youngman's spotting a related bug.
49332         Confirmed by further testing through find.
49333
49334         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49335         * lib/fts.c (D_TYPE): Define.
49336         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49337         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49338         (s_ifmt_shift_bits): New function.
49339         (set_stat_type): New function.
49340         (fts_build): When not calling fts_stat, call set_stat_type
49341         to propagate dirent.d_type info to fts_read caller.
49342         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49343         fts_statp->st_mode type information may be valid.
49344
49345 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49346
49347         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49348         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49349         <sds@gnu.org>.
49350
49351 2008-11-20  Bruno Haible  <bruno@clisp.org>
49352
49353         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49354         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49355         INCLUDE_NEXT.
49356         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49357         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49358         * modules/math (Makefile.am): Substitute
49359         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49361
49362 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49363             Bruno Haible  <bruno@clisp.org>
49364
49365         * lib/stdint.in.h: Define all type macros so that their expansion is
49366         a single typedef'ed token. Fixes a compilation failure in Boost which
49367         does "using ::int8_t;".
49368
49369 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49370
49371         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49372         gl_MANYWARN_ALL_GCC.
49373         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49374         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49375         * modules/manywarnings: New file.
49376         * MODULES.html.sh: Mention manywarnings module.
49377
49378 2008-11-18  Bruno Haible  <bruno@clisp.org>
49379
49380         * doc/gnulib-tool.texi (Unit tests): New section.
49381
49382 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49383
49384         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49385         paths like 'lib/po/foo.po'.
49386
49387 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49388
49389         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49390         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49391
49392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49393
49394         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49395         parameter works.
49396
49397 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49398
49399         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49400
49401 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49402
49403         * modules/parse-duration-tests: New file.
49404         * tests/test-parse-duration.sh: New file.
49405         * tests/test-parse-duration.c: New file.
49406
49407         New module 'parse-duration'.
49408         * lib/parse-duration.h: New file.
49409         * lib/parse-duration.c: New file.
49410         * modules/parse-duration: New file.
49411
49412 2008-11-17  Bruno Haible  <bruno@clisp.org>
49413
49414         * tests/test-select-out.sh: Comment out the first pipe test.
49415         Reported by Simon Josefsson.
49416
49417 2008-11-17  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49421         gl_HOSTENT.
49422
49423 2008-11-17  Bruno Haible  <bruno@clisp.org>
49424
49425         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49426         -lnetwork and -lnet. Needed for Haiku and BeOS.
49427
49428 2008-11-16  Bruno Haible  <bruno@clisp.org>
49429
49430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49431
49432 2008-11-16  Bruno Haible  <bruno@clisp.org>
49433
49434         Avoid test failure on Haiku.
49435         * tests/test-fsync.c: Include <errno.h>.
49436         (main): Don't require that fsync (0) fails.
49437
49438 2008-11-15  Bruno Haible  <bruno@clisp.org>
49439
49440         New module 'hostent'.
49441         * modules/hostent: New file.
49442         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49443
49444 2008-11-15  Bruno Haible  <bruno@clisp.org>
49445
49446         New module 'servent'.
49447         * modules/servent: New file.
49448         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49449
49450 2008-11-15  Bruno Haible  <bruno@clisp.org>
49451
49452         Avoid generating same test program with two different rules.
49453         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49454         test-frexp to test-frexp-nolibm.
49455         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49456         test-frexpl to test-frexpl-nolibm.
49457
49458 2008-11-15  Bruno Haible  <bruno@clisp.org>
49459
49460         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49461         $(FREXPL_LIBM).
49462
49463 2008-11-15  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/netdb.in.h: Activate the definitions also when the system's
49466         <netdb.h> has 'struct addrinfo'.
49467         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49468         EAI_OVERFLOW or AI_NUMERICSERV.
49469         * doc/posix-headers/netdb.texi: Document the problem.
49470
49471 2008-11-15  Bruno Haible  <bruno@clisp.org>
49472
49473         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49474
49475         Make the 'sched' module work on platforms where <sched.h> exists but
49476         is incomplete (such as Haiku).
49477         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49478         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49479         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49480         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49481         HAVE_STRUCT_SCHED_PARAM.
49482         * modules/sched (Depends-on): Add include_next.
49483         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49484         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49485         * doc/posix-headers/sched.texi: Document the issue.
49486
49487 2008-11-13  Jim Meyering  <meyering@redhat.com>
49488
49489         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49490         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49491         test would fail due to the difference in the Report bugs to ...
49492         line.  The expected address is empty, "<>", while the actual
49493         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49494
49495 2008-11-12  Bruno Haible  <bruno@clisp.org>
49496
49497         lstat: don't compile lstat.c on systems lacking lstat
49498         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49499         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49500         Reported by Daniel P. Berrange via Jim Meyering.
49501
49502 2008-11-12  Jim Meyering  <meyering@redhat.com>
49503
49504         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49505
49506 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49507
49508         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49509         instead.
49510
49511 2008-11-12  Bruno Haible  <bruno@clisp.org>
49512
49513         * lib/unicodeio.c: Include unistr.h.
49514         (utf8_wctomb): Remove function.
49515         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49516
49517 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49518
49519         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49520         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49521         <bruno@clisp.org>.
49522         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49523
49524 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49525
49526         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49527         * doc/gnulib.texi: Add section for warnings.
49528
49529 2008-11-11  Bruno Haible  <bruno@clisp.org>
49530
49531         * lib/sockets.h: Add a comment.
49532
49533 2008-11-11  Karl Berry  <karl@gnu.org>
49534
49535         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49536
49537 2008-11-11  Eric Blake  <ebb9@byu.net>
49538
49539         fdl.texi: avoid git symlinks
49540         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49541
49542 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49543
49544         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49545
49546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49547
49548         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49549         (gl_WARN_ADD): Substitute $2 if literal.
49550
49551 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49552
49553         * m4/warning.m4: Remove.
49554
49555 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49556
49557         * m4/warnings.m4: Almost complete rewrite. :-)
49558
49559 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49560
49561         * modules/warnings: New module.
49562         * m4/warnings.m4: New file.
49563         * MODULES.html.sh: Mention warnings module.
49564         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49565         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49566
49567 2008-11-10  Eric Blake  <ebb9@byu.net>
49568
49569         fdl.texi: make a symlink to the latest version
49570         * doc/standards.texi: Revert today's earlier change.
49571         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49572         * doc/fdl.texi: ...and replace this with a symlink to the newer
49573         fdl-1.3.texi.
49574
49575 2008-11-10  Bruno Haible  <bruno@clisp.org>
49576
49577         * tests/test-select-fd.c (main): Accept the result file name as fourth
49578         argument.
49579         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49580         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49581
49582 2008-11-10  Bruno Haible  <bruno@clisp.org>
49583
49584         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49585         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49586         as autoconf-substituted macros.
49587         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49589         gl_NETDB_H_DEFAULTS. Set these variables.
49590         * modules/netdb (Makefile.am): Substitute these variables.
49591
49592 2008-11-10  Eric Blake  <ebb9@byu.net>
49593
49594         standards.texi: include correct file for FDL 1.3
49595         * doc/standards.texi (GNU Free Documentation License): Change
49596         include file to pull in FDL 1.3, not 1.2.
49597
49598         fdl.texi: revert accidental change to license
49599         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49600
49601 2008-11-10  Bruno Haible  <bruno@clisp.org>
49602
49603         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49604         cross-compiling guesses also when the native compile gives no result.
49605
49606 2008-11-10  Bruno Haible  <bruno@clisp.org>
49607
49608         * lib/spawni.c (__spawni): Force variable into the stack.
49609
49610 2008-11-10  Bruno Haible  <bruno@clisp.org>
49611
49612         Add support for Haiku.
49613         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49614         glibc and BeOS, but also on Haiku.
49615         * lib/fpurge.c (fpurge): Likewise.
49616         * lib/freadable.c (freadable): Likewise.
49617         * lib/freadahead.c (freadahead): Likewise.
49618         * lib/freading.c (freading): Likewise.
49619         * lib/freadptr.c (freadptr): Likewise.
49620         * lib/freadseek.c (freadptrinc): Likewise.
49621         * lib/fseeko.c (rpl_fseeko): Likewise.
49622         * lib/fseterr.c (fseterr): Likewise.
49623         * lib/fwritable.c (fwritable): Likewise.
49624         * lib/fwriting.c (fwriting): Likewise.
49625         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49626
49627 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49628
49629         * lib/config.charset: Treat Haiku like BeOS.
49630
49631 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49632
49633         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49634         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49635
49636 2008-11-08  Bruno Haible  <bruno@clisp.org>
49637
49638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49639         AC_CACHE_CHECK.
49640
49641 2008-11-08  Bruno Haible  <bruno@clisp.org>
49642
49643         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49644
49645 2008-11-08  Bruno Haible  <bruno@clisp.org>
49646
49647         * tests/test-select-fd.c: New file.
49648         * tests/test-select-in.sh: New file.
49649         * tests/test-select-out.sh: New file.
49650         * tests/test-select-stdin.c: New file.
49651         * modules/select-tests (Files): Add the new files.
49652         (Depends-on): Add gettimeofday.
49653         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49654         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49655         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49656
49657 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49658             Bruno Haible  <bruno@clisp.org>
49659
49660         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49661
49662 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49663
49664         * build-aux/pmccabe2html: Added support for C++ source files.
49665
49666 2008-11-05  Ben Pfaff  <blp@gnu.org>
49667
49668         Fix lib/close.c build on Windows.
49669         * modules/close (Files): Add lib/w32sock.h.
49670
49671 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49672
49673         Accept Bison's NEWS format.
49674         * build-aux/announce-gen (print_news_deltas): Tweak
49675         $re_prefix.
49676
49677 2008-11-04  Bruno Haible  <bruno@clisp.org>
49678
49679         * modules/random_r (Maintainer): Add glibc.
49680
49681 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49682
49683         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49684         by karl@freefriends.org (Karl Berry).
49685         * doc/alloca.texi: Likewise.
49686         * doc/c-ctype.texi: Likewise.
49687         * doc/c-strcase.texi: Likewise.
49688         * doc/c-strcaseeq.texi: Likewise.
49689         * doc/c-strcasestr.texi: Likewise.
49690         * doc/c-strstr.texi: Likewise.
49691         * doc/c-strtod.texi: Likewise.
49692         * doc/c-strtold.texi: Likewise.
49693         * doc/ctime.texi: Likewise.
49694         * doc/error.texi: Likewise.
49695         * doc/fdl.texi: Likewise.
49696         * doc/gcd.texi: Likewise.
49697         * doc/getdate.texi: Likewise.
49698         * doc/gnulib-intro.texi: Likewise.
49699         * doc/gnulib-tool.texi: Likewise.
49700         * doc/gnulib.texi: Likewise.
49701         * doc/inet_ntoa.texi: Likewise.
49702         * doc/maintain.texi: Likewise.
49703         * doc/make-stds.texi: Likewise.
49704         * doc/quote.texi: Likewise.
49705         * doc/regexprops-generic.texi: Likewise.
49706         * doc/standards.texi: Likewise.
49707         * doc/verify.texi: Likewise.
49708         * doc/visibility.texi: Likewise.
49709         * doc/gnulib.texi (GNU Free Documentation License): Include
49710         fdl-1.3.texi instead of fdl.texi.
49711
49712 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49713
49714         * doc/fdl-1.3.texi: New file, from
49715         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49716         * modules/fdl-1.3: Add.
49717         * MODULES.html.sh: Add fdl-1.3.
49718
49719 2008-11-03  Bruno Haible  <bruno@clisp.org>
49720
49721         Make determination of absolute name of header file work with AIX xlc.
49722         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49723         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49724         preprocessing.
49725         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49726         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49727
49728 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49729
49730         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49731         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49732         <ludo@gnu.org>.
49733
49734 2008-11-02  Bruno Haible  <bruno@clisp.org>
49735
49736         Mark 'strpbrk' obsolete.
49737         * modules/strpbrk (Status, Notice): New sections.
49738         * modules/strtok_r (Depends-on): Add strpbrk.
49739
49740 2008-11-02  Bruno Haible  <bruno@clisp.org>
49741
49742         Mark 'strdup' obsolete.
49743         * modules/strdup (Status, Notice): New sections.
49744         * modules/findprog (Depends-on): Add strdup.
49745         * modules/getaddrinfo (Depends-on): Likewise.
49746         * modules/localename (Depends-on): Likewise.
49747         * modules/relocatable-lib (Depends-on): Likewise.
49748         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49749         * modules/relocatable-prog (Depends-on): Likewise.
49750         * modules/trim (Depends-on): Likewise.
49751         * modules/unictype/gen-ctype (Depends-on): Likewise.
49752         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49753
49754 2008-11-02  Bruno Haible  <bruno@clisp.org>
49755
49756         Mark 'strcspn' obsolete.
49757         * modules/strcspn (Status, Notice): New sections.
49758
49759 2008-11-02  Bruno Haible  <bruno@clisp.org>
49760
49761         Mark 'rmdir' obsolete.
49762         * modules/rmdir (Status, Notice): New sections.
49763         * modules/clean-temp (Depends-on): Add rmdir.
49764         * modules/openat (Depends-on): Likewise.
49765
49766 2008-11-02  Bruno Haible  <bruno@clisp.org>
49767
49768         Mark 'raise' obsolete.
49769         * modules/raise (Status, Notice): New sections.
49770         (Include): Specify <signal.h>.
49771         * modules/stdio (Depends-on): Add raise.
49772         * modules/write (Depends-on): Likewise.
49773
49774 2008-11-02  Bruno Haible  <bruno@clisp.org>
49775
49776         Mark 'memset' obsolete.
49777         * modules/memset (Status, Notice): New sections.
49778
49779 2008-11-02  Bruno Haible  <bruno@clisp.org>
49780
49781         Mark 'memmove' obsolete.
49782         * modules/memmove (Status, Notice): New sections.
49783         * modules/argp (Depends-on): Add memmove.
49784         * modules/argz (Depends-on): Likewise.
49785         * modules/canonicalize (Depends-on): Likewise.
49786         * modules/canonicalize-lgpl (Depends-on): Likewise.
49787         * modules/fts (Depends-on): Likewise.
49788         * modules/getcwd (Depends-on): Likewise.
49789         * modules/human (Depends-on): Likewise.
49790         * modules/regex (Depends-on): Likewise.
49791         * modules/striconveh (Depends-on): Likewise.
49792         * modules/trim (Depends-on): Likewise.
49793         * modules/unistr/u8-move (Depends-on): Likewise.
49794         * modules/unistr/u16-move (Depends-on): Likewise.
49795         * modules/unistr/u32-move (Depends-on): Likewise.
49796
49797 2008-11-02  Bruno Haible  <bruno@clisp.org>
49798
49799         Mark 'memcpy' obsolete.
49800         * modules/memcpy (Status, Notice): New sections.
49801
49802 2008-11-02  Bruno Haible  <bruno@clisp.org>
49803
49804         Mark 'memcmp' obsolete.
49805         * modules/memcmp (Status, Notice): New sections.
49806         * modules/argmatch (Depends-on): Add memchr.
49807         * modules/backupfile (Depends-on): Likewise.
49808         * modules/c-strcasestr (Depends-on): Likewise.
49809         * modules/crypto/des (Depends-on): Likewise.
49810         * modules/csharpcomp (Depends-on): Likewise.
49811         * modules/fnmatch (Depends-on): Likewise.
49812         * modules/git-merge-changelog (Depends-on): Likewise.
49813         * modules/isnand (Depends-on): Likewise.
49814         * modules/isnand-nolibm (Depends-on): Likewise.
49815         * modules/isnanf (Depends-on): Likewise.
49816         * modules/isnanf-nolibm (Depends-on): Likewise.
49817         * modules/isnanl (Depends-on): Likewise.
49818         * modules/isnanl-nolibm (Depends-on): Likewise.
49819         * modules/mbchar (Depends-on): Likewise.
49820         * modules/memcoll (Depends-on): Likewise.
49821         * modules/quotearg (Depends-on): Likewise.
49822         * modules/regex (Depends-on): Likewise.
49823         * modules/relocatable-prog (Depends-on): Likewise.
49824         * modules/same (Depends-on): Likewise.
49825         * modules/signbit (Depends-on): Likewise.
49826         * modules/strcasestr-simple (Depends-on): Likewise.
49827         * modules/unictype/gen-ctype (Depends-on): Likewise.
49828         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49829         * modules/uniname/uniname (Depends-on): Likewise.
49830         * modules/unistr/u8-cmp (Depends-on): Likewise.
49831
49832 2008-11-02  Bruno Haible  <bruno@clisp.org>
49833
49834         Mark 'memchr' obsolete.
49835         * modules/memchr (Status, Notice): New sections.
49836         * modules/argp (Depends-on): Add memchr.
49837         * modules/base64 (Depends-on): Likewise.
49838         * modules/c-strcasestr (Depends-on): Likewise.
49839         * modules/chdir-long (Depends-on): Likewise.
49840         * modules/fnmatch (Depends-on): Likewise.
49841         * modules/getsubopt (Depends-on): Likewise.
49842         * modules/git-merge-changelog (Depends-on): Likewise.
49843         * modules/glob (Depends-on): Likewise.
49844         * modules/strcasestr-simple (Depends-on): Likewise.
49845         * modules/strnlen (Depends-on): Likewise.
49846
49847 2008-11-02  Bruno Haible  <bruno@clisp.org>
49848
49849         Mark 'atexit' obsolete.
49850         * modules/atexit (Status, Notice): New sections.
49851         * modules/chdir-long (Depends-on): Add atexit.
49852         * modules/wait-process (Depends-on): Likewise.
49853
49854 2008-11-02  Bruno Haible  <bruno@clisp.org>
49855
49856         * gnulib-tool: New option --with-obsolete.
49857         (func_usage): Document it.
49858         (func_modules_transitive_closure): Drop obsolete dependencies if
49859         incobsolete is not true.
49860         (func_import): Read and save the incobsolete variable to the cache.
49861
49862 2008-11-02  Bruno Haible  <bruno@clisp.org>
49863
49864         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49865         * gnulib-tool: New option --extract-status.
49866         (func_usage): Document it.
49867         (sed_extract_prog): Recognize it.
49868         (func_get_status): New function.
49869
49870 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49871
49872         * modules/sockets (License): Change from LGPL to LGPLv2+.
49873
49874 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49875
49876         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49877
49878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49879
49880         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49881         Mention times and sys_times.
49882         * modules/sys_times, modules/sys_times-tests: New modules.
49883         * modules/times, modules/times-tests: Likewise
49884         * m4/sys_times_h.m4: New file.
49885         * lib/sys_times.in.h: Likewise
49886         * lib/times.c: Likewise.
49887         * tests/test-sys_times.c: Likewise.
49888         * tests/test-times.c: Likewise.
49889         * doc/posix-headers/sys_times.texi: Update.
49890         * doc/posix-functions/times.texi: Update.
49891
49892 2008-10-28  Jim Meyering  <meyering@redhat.com>
49893
49894         * modules/tempname (Depends-on): Add lstat.
49895
49896         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49897
49898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49899
49900         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49901         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49902         using idiom used elsewhere in gnulib.
49903
49904 2008-10-27  Jim Meyering  <meyering@redhat.com>
49905
49906         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49907
49908 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49909
49910         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49911         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49912         programs.
49913         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49914
49915 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49916
49917         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49918
49919 2008-10-27  Bruno Haible  <bruno@clisp.org>
49920
49921         * tests/test-lstat.c: Include <stdio.h>.
49922
49923 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49924
49925         * modules/lstat-tests: New module.
49926         * tests/test-lstat.c: New file.
49927
49928 2008-10-26  Jim Meyering  <meyering@redhat.com>
49929
49930         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49931
49932 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49933             Bruno Haible  <bruno@clisp.org>
49934
49935         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49936         * modules/configmake (Include): Add a note that the include must come
49937         after all system headers.
49938         * lib/javaversion.c: Include configmake.h after all other includes.
49939
49940 2008-10-26  Bruno Haible  <bruno@clisp.org>
49941
49942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49943         HAVE_STRUCT_RANDOM_DATA to 1.
49944         (gl_STDLIB_H): Simplify.
49945
49946 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49947
49948         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49949         substitute HAVE_STRUCT_RANDOM_DATA.
49950         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49951         random_data.
49952         * modules/stdlib (Makefile.am): Substitute
49953         HAVE_STRUCT_RANDOM_DATA.
49954
49955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49956
49957         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49958         * doc/gnulib-intro.texi (Copyright): Likewise.
49959
49960 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49961
49962         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49963         findings.
49964
49965 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49966             Bruno Haible  <bruno@clisp.org>
49967
49968         * lib/unistd.in.h: Include <winsock2.h>.
49969         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49970         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49971         Provide dummy declarations.
49972         (gethostname): Override.
49973         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49975         gl_PREREQ_SYS_H_WINSOCK2.
49976         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49977         * doc/posix-functions/gethostname.texi: More details.
49978
49979 2008-10-25  Bruno Haible  <bruno@clisp.org>
49980
49981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49982         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49983         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49984
49985         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49986         here ...
49987         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49988         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49989         gl_UNISTD_H_DEFAULTS.
49990
49991 2008-10-25  Eric Blake  <ebb9@byu.net>
49992
49993         signbit: avoid spurious compiler failure
49994         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49995         declarations inside function.
49996
49997 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49998             Bruno Haible  <bruno@clisp.org>
49999
50000         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50001         * modules/random_r (Depends-on): Add stdint.
50002
50003 2008-10-24  Bruno Haible  <bruno@clisp.org>
50004
50005         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50006         Eggert.
50007         * modules/strerror (License): Likewise.
50008
50009 2008-10-24  Jim Meyering  <meyering@redhat.com>
50010
50011         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50012         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50013
50014 2008-10-24  Eric Blake  <ebb9@byu.net>
50015
50016         getgroups: fix compilation when getgroups is available
50017         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50018         but with <config.h> override of getgroups disabled.
50019
50020 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50021
50022         * doc/gnulib.texi (Header files): Add note about C++ problems.
50023         Explained by Bruno Haible <bruno@clisp.org>.
50024
50025 2008-10-23  Bruno Haible  <bruno@clisp.org>
50026
50027         Define a dummy SA_NODEFER macro on Interix.
50028         * lib/signal.in.h (SA_NODEFER): Define fallback.
50029         Reported by Aleksey Cheusov <cheusov@tut.by> via
50030         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50031
50032 2008-10-23  Bruno Haible  <bruno@clisp.org>
50033
50034         * modules/freadahead (License): Change to LGPLv2+.
50035         Suggested by Simon Josefsson.
50036
50037 2008-10-23  Jim Meyering  <meyering@redhat.com>
50038
50039         random_r: new module
50040         * modules/random_r: New file.
50041         * m4/random_r.m4: New file.
50042         * lib/random_r.c: New file, from glibc.
50043         * modules/random_r-tests: New file.
50044         * tests/test-random_r.c: New file.
50045         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50046          Declare.
50047         (RAND_MAX): Define.
50048         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50049         * modules/stdlib: Substitute them, too.
50050         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50051         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50052         * doc/glibc-functions/random_r.texi: Likewise.
50053         * doc/glibc-functions/setstate_r.texi: Likewise.
50054         * doc/glibc-functions/srandom_r.texi: Likewise.
50055         * config/srclist.txt: Mention it.
50056
50057 2008-10-23  David Lutterkort  <lutter@redhat.com>
50058
50059         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50060         link requirement
50061
50062 2008-10-23  Jim Meyering  <meyering@redhat.com>
50063
50064         selinux-h: mark parameters of stub functions as intentionally unused
50065         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50066         * lib/se-context.in.h: Likewise.
50067
50068 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50069
50070         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50071
50072 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50073
50074         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50075
50076 2008-10-22  Eric Blake  <ebb9@byu.net>
50077
50078         glthread/thread: avoid compiler warning
50079         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50080         Add unreachable abort to silence compiler.
50081
50082 2008-10-22  Eric Blake  <ebb9@byu.net>
50083
50084         netdb: also supply struct addrinfo for cygwin 1.5.x
50085         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50086         older cygwin.
50087         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50088         cygwin.
50089         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50090
50091 2008-10-22  Bruno Haible  <bruno@clisp.org>
50092
50093         * users.txt: Update entry about pspp.
50094
50095 2008-10-21  Bruno Haible  <bruno@clisp.org>
50096
50097         Simplification.
50098         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50099         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50100
50101         Simplification.
50102         * lib/ioctl.c (ioctl): Don't undefine.
50103         * lib/socket.c (socket): Don't undefine.
50104
50105         Remove unused module indicator macros.
50106         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50107         GNULIB_$1 as a C macro.
50108
50109         * doc/posix-functions/close.texi: Undo last change.
50110         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50111         Windows platforms.
50112
50113 2008-10-21  Bruno Haible  <bruno@clisp.org>
50114
50115         Add gethostname() declaration to <unistd.h>.
50116         * lib/unistd.in.h (gethostname): New declaration.
50117         * lib/gethostname.c: Include <unistd.h>.
50118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50119         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50121         and HAVE_GETHOSTNAME.
50122         * modules/gethostname (Depends-on): Add unistd.
50123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50124         (Include): Specify <unistd.h>.
50125         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50126         HAVE_GETHOSTNAME.
50127         * tests/test-gethostname.c: Include <unistd.h> first.
50128
50129 2008-10-21  Bruno Haible  <bruno@clisp.org>
50130
50131         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50132         * modules/select-tests (Depends-on): Likewise.
50133         Reported by Simon Josefsson.
50134
50135 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50136
50137         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50138         * lib/accept.c: New file, based on winsock.c.
50139         * lib/bind.c: New file, based on winsock.c.
50140         * lib/connect.c: New file, based on winsock.c.
50141         * lib/getpeername.c: New file, based on winsock.c.
50142         * lib/getsockname.c: New file, based on winsock.c.
50143         * lib/getsockopt.c: New file, based on winsock.c.
50144         * lib/ioctl.c: New file, based on winsock.c.
50145         * lib/listen.c: New file, based on winsock.c.
50146         * lib/recv.c: New file, based on winsock.c.
50147         * lib/recvfrom.c: New file, based on winsock.c.
50148         * lib/send.c: New file, based on winsock.c.
50149         * lib/sendto.c: New file, based on winsock.c.
50150         * lib/setsockopt.c: New file, based on winsock.c.
50151         * lib/shutdown.c: New file, based on winsock.c.
50152         * lib/socket.c: New file, based on winsock.c.
50153         * lib/w32sock.h: New file, based on winsock.c.
50154         * lib/winsock.c: Remove file.
50155         * modules/accept: Likewise.
50156         * modules/bind: Likewise.
50157         * modules/connect: Likewise.
50158         * modules/getpeername: Likewise.
50159         * modules/getsockname: Likewise.
50160         * modules/getsockopt: Likewise.
50161         * modules/ioctl: Likewise.
50162         * modules/listen: Likewise.
50163         * modules/recv: Likewise.
50164         * modules/recvfrom: Likewise.
50165         * modules/send: Likewise.
50166         * modules/sendto: Likewise.
50167         * modules/setsockopt: Likewise.
50168         * modules/shutdown: Likewise.
50169         * modules/socket: Use socket.c instead of winsock.c.
50170         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50171         * doc/posix-functions/accept.texi: Doc fix.
50172         * doc/posix-functions/bind.texi: Doc fix.
50173         * doc/posix-functions/close.texi: Doc fix.
50174         * doc/posix-functions/connect.texi: Doc fix.
50175         * doc/posix-functions/getpeername.texi: Doc fix.
50176         * doc/posix-functions/getsockname.texi: Doc fix.
50177         * doc/posix-functions/getsockopt.texi: Doc fix.
50178         * doc/posix-functions/ioctl.texi: Doc fix.
50179         * doc/posix-functions/listen.texi: Doc fix.
50180         * doc/posix-functions/recv.texi: Doc fix.
50181         * doc/posix-functions/recvfrom.texi: Doc fix.
50182         * doc/posix-functions/send.texi: Doc fix.
50183         * doc/posix-functions/sendto.texi: Doc fix.
50184         * doc/posix-functions/setsockopt.texi: Doc fix.
50185         * doc/posix-functions/shutdown.texi: Doc fix.
50186         * doc/posix-functions/socket.texi: Doc fix.
50187
50188 2008-10-20  Bruno Haible  <bruno@clisp.org>
50189
50190         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50191         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50192         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50193         as an alias for SIGABRT.
50194         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50195         (sigaction): Map it to SIGABRT.
50196         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50197
50198 2008-10-20  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/fts.c: Don't include lstat.h.
50201         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50202
50203         Move the lstat() declaration to <sys/stat.h>.
50204         * lib/lstat.h: Remove file.
50205         * lib/sys_stat.in.h: Add special invocation convention.
50206         (lstat): New declaration.
50207         * lib/lstat.c (orig_lstat): New function.
50208         (rpl_lstat): Use orig_lstat instead of lstat.
50209         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50210         AC_C_INLINE. Set REPLACE_LSTAT.
50211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50212         and REPLACE_LSTAT.
50213         * modules/lstat (Files): Remove lib/lstat.h.
50214         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50215         (Include): Specify <sys/stat.h> instead of lstat.h.
50216         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50217         REPLACE_LSTAT.
50218         * NEWS: Mention the change.
50219
50220 2008-10-20  Bruno Haible  <bruno@clisp.org>
50221
50222         * modules/posix_spawn-tests: New file.
50223         * tests/test-posix_spawn3.c: New file.
50224
50225 2008-10-20  Bruno Haible  <bruno@clisp.org>
50226
50227         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50228         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50229         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50230         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50231         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50232
50233 2008-10-20  Bruno Haible  <bruno@clisp.org>
50234
50235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50236         of posix_spawn on AIX 5.3.
50237
50238 2008-10-20  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50241
50242 2008-10-20  Bruno Haible  <bruno@clisp.org>
50243
50244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50245         of AC_LANG_PROGRAM.
50246
50247 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50248
50249         * lib/netdb.in.h: Don't define GNU specific constants until they
50250         are supported or needed.  Reported by Bruno Haible
50251         <bruno@clisp.org>.
50252
50253 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50254
50255         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50256
50257 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50258
50259         * lib/getaddrinfo.h: Remove file.
50260         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50261         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50262         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50263         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50264         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50265         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50266         * tests/test-getaddrinfo.c: Likewise.
50267         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50268         * NEWS: Mention change.
50269
50270 2008-10-19  Bruno Haible  <bruno@clisp.org>
50271
50272         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50273
50274 2008-10-19  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/wait-process.c: Include simply <sys/wait.h>.
50277         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50278         WIFSTOPPED): Remove fallback definitions.
50279         * modules/wait-process (Depends-on): Add sys_wait.
50280
50281         New module 'sys_wait'.
50282         * modules/sys_wait: New file.
50283         * lib/sys_wait.in.h: New file, partially copied from
50284         lib/wait-process.c.
50285         * m4/sys_wait_h.m4: New file.
50286         * doc/posix-headers/sys_wait.texi: Mention the new module.
50287
50288 2008-10-19  Bruno Haible  <bruno@clisp.org>
50289
50290         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50291
50292 2008-10-19  Bruno Haible  <bruno@clisp.org>
50293
50294         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50295         * lib/wait-process.c (WAIT_T): Remove type.
50296         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50297         (wait_subprocess): Update.
50298
50299 2008-10-19  Bruno Haible  <bruno@clisp.org>
50300
50301         New module 'atoll'.
50302         * modules/atoll: New file.
50303         * lib/stdlib.in.h (atoll): New declaration.
50304         * lib/atoll.c: New file, from glibc with modifications.
50305         * m4/atoll.m4: New file.
50306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50307         HAVE_ATOLL.
50308         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50309         * doc/posix-functions/atoll.texi: Mention the new module.
50310
50311 2008-10-19  Bruno Haible  <bruno@clisp.org>
50312
50313         Add strtoull() declaration to <stdlib.h>.
50314         * lib/stdlib.in.h (strtoull): New declaration.
50315         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50316         Set HAVE_STRTOULL.
50317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50318         HAVE_STRTOULL.
50319         * modules/strtoull (Depends-on): Add stdlib.
50320         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50321         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50322         HAVE_STRTOULL.
50323
50324 2008-10-19  Bruno Haible  <bruno@clisp.org>
50325
50326         Add strtoll() declaration to <stdlib.h>.
50327         * lib/stdlib.in.h (strtoll): New declaration.
50328         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50329         Set HAVE_STRTOLL.
50330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50331         HAVE_STRTOLL.
50332         * modules/strtoll (Depends-on): Add stdlib.
50333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50334         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50335
50336 2008-10-19  Bruno Haible  <bruno@clisp.org>
50337
50338         * modules/bcopy (Depends-on): Add strings.
50339         (Include): Specify <strings.h>.
50340
50341 2008-10-19  Bruno Haible  <bruno@clisp.org>
50342
50343         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50344
50345 2008-10-19  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50348         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50349         mingw.
50350
50351 2008-10-19  Bruno Haible  <bruno@clisp.org>
50352
50353         * lib/atanl.c: Don't include isnanl.h.
50354         * lib/cosl.c: Likewise.
50355         * lib/ldexpl.c: Likewise.
50356         * lib/logl.c: Likewise.
50357         * lib/sinl.c: Likewise.
50358         * lib/sqrtl.c: Likewise.
50359         * lib/tanl.c: Likewise.
50360
50361         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50362         * lib/isnanf.h: Remove file.
50363         * lib/isnand.h: Remove file.
50364         * lib/isnanl.h: Remove file.
50365         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50366         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50367         macros.
50368         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50369         HAVE_ISNANF, don't define it as a C macro.
50370         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50371         HAVE_ISNAND, don't define it as a C macro.
50372         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50373         HAVE_ISNANL, don't define it as a C macro.
50374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50375         HAVE_ISNAN[FDL].
50376         * modules/isnanf (Files): Remove lib/isnanf.h.
50377         (Depends-on): Add math.
50378         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50379         (Include): Specify <math.h> instead of isnanf.h.
50380         * modules/isnand (Files): Remove lib/isnand.h.
50381         (Depends-on): Add math.
50382         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50383         (Include): Specify <math.h> instead of isnand.h.
50384         * modules/isnanl (Files): Remove lib/isnanl.h.
50385         (Depends-on): Add math.
50386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50387         (Include): Specify <math.h> instead of isnanl.h.
50388         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50389         HAVE_ISNAN[FDL].
50390         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50391         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50392         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50393         * NEWS: Mention the change.
50394
50395 2008-10-18  Bruno Haible  <bruno@clisp.org>
50396
50397         Add getusershell(), setusershell(), endusershell() declarations to
50398         <unistd.h>.
50399         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50400         declarations.
50401         * lib/getusershell.c: Include unistd.h.
50402         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50403         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50404         HAVE_GETUSERSHELL.
50405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50406         and HAVE_GETUSERSHELL.
50407         * modules/getusershell (Depends-on): Add unistd, extensions.
50408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50409         (Include): Specify <unistd.h>.
50410         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50411         HAVE_GETUSERSHELL.
50412
50413 2008-10-18  Bruno Haible  <bruno@clisp.org>
50414
50415         Add a getloadavg() declaration to <stdlib.h>.
50416         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50417         getloadavg declaration.
50418         (getloadavg): New declaration.
50419         * lib/getloadavg.c: Include <stdlib.h> first.
50420         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50421         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50422         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50424         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50425         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50426         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50427         (Include): Specify <stdlib.h>.
50428         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50429         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50430
50431 2008-10-18  Bruno Haible  <bruno@clisp.org>
50432
50433         * lib/dirchownmod.c: Don't include lchmod.h.
50434
50435         Move the lchmod() declaration to <sys/stat.h>.
50436         * lib/lchmod.h: Remove file.
50437         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50438         (lchmod): New declaration, moved here from lib/lchown.h.
50439         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50440         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50442         and HAVE_LCHMOD.
50443         * modules/lchmod (Files): Remove lib/lchmod.h.
50444         (Depends-on): Add sys_stat, extensions.
50445         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50446         (Include): Specify <sys/stat.h> instead of lchmod.h.
50447         * modules/sys_stat (Depends-on): Add link-warning.
50448         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50449         definition of GL_LINK_WARNING.
50450         * NEWS: Mention the change.
50451
50452 2008-10-18  Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/fchdir.c: Don't include dirfd.h.
50455         * lib/fts.c: Likewise.
50456         * lib/getcwd.c: Likewise.
50457         * lib/glob.c: Likewise.
50458
50459         Move the dirfd() declaration to <dirent.h>.
50460         * lib/dirfd.h: Remove file.
50461         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50462         (dirfd): New declaration.
50463         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50465         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50466         HAVE_DECL_DIRFD.
50467         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50468         HAVE_DECL_DIRFD.
50469         * modules/dirfd (Files): Remove lib/dirfd.h.
50470         (Depends-on): Add dirent, extensions.
50471         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50472         (Include): Specify <dirent.h> instead of dirfd.h.
50473         * modules/dirent (Depends-on): Add link-warning.
50474         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50475         definition of GL_LINK_WARNING.
50476         * NEWS: Mention the change.
50477
50478 2008-10-18  Bruno Haible  <bruno@clisp.org>
50479
50480         Move the euidaccess() declaration to <unistd.h>.
50481         * lib/euidaccess.h: Remove file.
50482         * lib/unistd.in.h (euidaccess): New declaration.
50483         * lib/euidaccess.c: Don't include euidaccess.h.
50484         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50485         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50487         and HAVE_EUIDACCESS.
50488         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50489         (Depends-on): Add unistd.
50490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50491         (Include): Specify <unistd.h> instead of euidaccess.h.
50492         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50493         HAVE_EUIDACCESS.
50494         * NEWS: Mention the change.
50495
50496 2008-10-18  Bruno Haible  <bruno@clisp.org>
50497
50498         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50499
50500         Move the getdomainname() declaration to <unistd.h>.
50501         * lib/getdomainname.h: Remove file.
50502         * lib/unistd.in.h (getdomainname): New declaration.
50503         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50504         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50505         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50506         HAVE_GETDOMAINNAME.
50507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50508         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50509         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50510         (Depends-on): Add unistd, extensions.
50511         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50512         (Includes): Specify <unistd.h> instead of getdomainname.h.
50513         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50514         HAVE_GETDOMAINNAME.
50515         * NEWS: Mention the change.
50516
50517 2008-10-18  Bruno Haible  <bruno@clisp.org>
50518
50519         * modules/dirent: New file.
50520         * m4/dirent_h.m4: New file.
50521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50522         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50523         * modules/fchdir (Files): Remove lib/dirent.in.h.
50524         (Depends-on): Add dirent.
50525         (Makefile.am): Move rules to modules/dirent.
50526         * doc/posix-headers/dirent.texi: Mention the new module.
50527
50528 2008-10-18  Bruno Haible  <bruno@clisp.org>
50529
50530         Avoid -Wunused-parameter warnings in public gnulib header files.
50531         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50532         macro.
50533         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50534
50535 2008-10-18  Bruno Haible  <bruno@clisp.org>
50536
50537         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50538         * doc/glibc-functions/error.texi: Mention the module 'error'.
50539         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50540         * doc/glibc-functions/getdomainname.texi: Mention the module
50541         'getdomainname'.
50542         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50543         * doc/glibc-functions/getpagesize.texi: Mention the module
50544         'getpagesize'.
50545         * doc/glibc-functions/getusershell.texi: Mention the module
50546         'getusershell'.
50547         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50548         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50549         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50550         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50551         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50552         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50553         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50554         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50555         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50556         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50557         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50558         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50559         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50560         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50561
50562 2008-10-17  Bruno Haible  <bruno@clisp.org>
50563
50564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50565         HP-UX and IRIX, use -0.0L.
50566         * tests/test-ceill.c (minus_zero): Likewise.
50567         * tests/test-floorl.c (minus_zero): Likewise.
50568         * tests/test-frexpl.c (minus_zero): Likewise.
50569         * tests/test-isnan.c (minus_zerol): Likewise.
50570         * tests/test-isnanl.h (minus_zero): Likewise.
50571         * tests/test-ldexpl.c (minus_zero): Likewise.
50572         * tests/test-roundl.c (minus_zero): Likewise.
50573         * tests/test-signbit.c (minus_zerol): Likewise.
50574         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50575         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50576         * tests/test-truncl.c (minus_zero): Likewise.
50577         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50578         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50579         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50580         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50581
50582 2008-10-17  Bruno Haible  <bruno@clisp.org>
50583
50584         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50585         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50586         that it gets activated only for gcc >= 3.0.
50587         * lib/dirent.in.h: Likewise.
50588         * lib/errno.in.h: Likewise.
50589         * lib/fcntl.in.h: Likewise.
50590         * lib/float.in.h: Likewise.
50591         * lib/iconv.in.h: Likewise.
50592         * lib/inttypes.in.h: Likewise.
50593         * lib/locale.in.h: Likewise.
50594         * lib/math.in.h: Likewise.
50595         * lib/netdb.in.h: Likewise.
50596         * lib/netinet_in.in.h: Likewise.
50597         * lib/search.in.h: Likewise.
50598         * lib/signal.in.h: Likewise.
50599         * lib/spawn.in.h: Likewise.
50600         * lib/stdarg.in.h: Likewise.
50601         * lib/stdint.in.h: Likewise.
50602         * lib/stdio.in.h: Likewise.
50603         * lib/stdlib.in.h: Likewise.
50604         * lib/string.in.h: Likewise.
50605         * lib/strings.in.h: Likewise.
50606         * lib/sys_file.in.h: Likewise.
50607         * lib/sys_ioctl.in.h: Likewise.
50608         * lib/sys_select.in.h: Likewise.
50609         * lib/sys_socket.in.h: Likewise.
50610         * lib/sys_stat.in.h: Likewise.
50611         * lib/sys_time.in.h: Likewise.
50612         * lib/sysexits.in.h: Likewise.
50613         * lib/time.in.h: Likewise.
50614         * lib/unistd.in.h: Likewise.
50615         * lib/wchar.in.h: Likewise.
50616         * lib/wctype.in.h: Likewise.
50617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50618
50619 2008-10-17  Jim Meyering  <meyering@redhat.com>
50620
50621         ignore-value: don't depend on inline module
50622         * modules/ignore-value (Depends-on): Remove 'inline'.
50623         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50624         Suggestion from Bruno Haible.
50625
50626 2008-10-17  Bruno Haible  <bruno@clisp.org>
50627
50628         New implementation of condition variables for Win32.
50629         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50630         (gl_linked_waitqueue_t): New type.
50631         (gl_cond_t): Use it.
50632         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50633         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50634         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50635         (glthread_cond_init_func, glthread_cond_wait_func,
50636         glthread_cond_timedwait_func, glthread_cond_signal_func,
50637         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50638         Reimplemented on the basis of gl_linked_waitqueue_t.
50639         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50640         gl_waitqueue_t.
50641         (gl_rwlock_t): Update.
50642         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50643
50644 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50645
50646         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50647         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50648
50649 2008-10-17  Jim Meyering  <meyering@redhat.com>
50650
50651         ignore-value: new module
50652         * modules/ignore-value: New file.
50653         * lib/ignore-value.h: New file.
50654         * MODULES.html.sh (Compiler warning management): New section,
50655         just for this module.  More to come.
50656
50657 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50658
50659         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50660         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50661         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50662
50663 2008-10-16  Jim Meyering  <meyering@redhat.com>
50664
50665         openat-die.c: avoid 'no previous prototype' warning
50666         * lib/openat-die.c: Include "openat.h".
50667         Reported by Reuben Thomas <rrt@sc3d.org>.
50668
50669 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50670
50671         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50672         * lib/netdb.in.h: Fix typo.
50673         Reported by Bruno Haible  <bruno@clisp.org>
50674
50675         * lib/netdb.in.h: Include sys/socket.h for platforms without
50676         netdb.h, to get structures like hostent on MinGW.
50677         * modules/netdb (Depends-on): Add sys_socket.
50678
50679 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50680
50681         * modules/netdb, modules/netdb-tests: New file.
50682         * m4/netdb_h.m4: New file.
50683         * lib/netdb.in.h: Add, currently just an empty file pending
50684         definitions.
50685         * tests/test-netdb.c: New file.
50686         * doc/posix-headers/netdb.texi: Mention that we replace it if
50687         needed.
50688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50689         netdb.
50690
50691 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50692
50693         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50694         with code.
50695
50696 2008-10-13  Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/glthread/cond.c (glthread_cond_wait_func,
50699         glthread_cond_timedwait_func): Add a comment.
50700
50701 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50702
50703         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50704         * tests/test-select.c: Likewise,
50705
50706 2008-10-13  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/glthread/cond.c (glthread_cond_wait_func,
50709         glthread_cond_timedwait_func): Fix variable name.
50710         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50711
50712 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50713
50714         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50716         struct sockaddr.sa_len.
50717         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50718
50719 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50720
50721         * build-aux/pmccabe2html: Add css and css_url parameters.
50722
50723 2008-10-12  Bruno Haible  <bruno@clisp.org>
50724
50725         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50726         calling aclx_get.
50727         Reported by Rainer Tammer <tammer@tammer.net>.
50728
50729 2008-10-12  Bruno Haible  <bruno@clisp.org>
50730
50731         Use msvcrt aware primitives for creation/termination of Win32 threads.
50732         * lib/glthread/thread.c: Include <process.h>.
50733         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50734         (wrapper_func): Update signature.
50735         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50736
50737 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50738             Bruno Haible  <bruno@clisp.org>
50739
50740         Provide a Win32 implementation of the 'cond' module.
50741         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50742         * lib/glthread/cond.c (glthread_cond_init_func,
50743         glthread_cond_wait_func, glthread_cond_timedwait_func,
50744         glthread_cond_signal_func, glthread_cond_broadcast_func,
50745         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50746         * modules/cond (Dependencies): Add gettimeofday.
50747
50748 2008-10-11  Bruno Haible  <bruno@clisp.org>
50749
50750         Make sleep work on older versions of mingw.
50751         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50752         only whether it exists.
50753         * doc/posix-functions/sleep.texi: Mention the problem with older
50754         versions of mingw.
50755
50756 2008-10-11  Bruno Haible  <bruno@clisp.org>
50757
50758         New module 'shutdown'.
50759         * modules/shutdown: New file.
50760         * lib/sys_socket.in.h (shutdown): New declaration.
50761         * lib/winsock.c (shutdown): New function.
50762         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50763         GNULIB_SHUTDOWN.
50764         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50765         * doc/posix-functions/shutdown.texi: Document the new module.
50766
50767 2008-10-11  Jim Meyering  <meyering@redhat.com>
50768
50769         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50770
50771 2008-10-11  Bruno Haible  <bruno@clisp.org>
50772
50773         New module 'fclose'.
50774         * modules/fclose: New file.
50775         * lib/stdio.in.h (fclose): New declaration.
50776         * lib/fclose.c: New file.
50777         * m4/fclose.m4: New file.
50778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50779         REPLACE_FCLOSE.
50780         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50781         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50782         REPLACE_FCLOSE.
50783         * modules/close (Depends-on): fclose.
50784         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50785
50786 2008-10-11  Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50789         set errno and don't call _close.
50790
50791 2008-10-10  Bruno Haible  <bruno@clisp.org>
50792
50793         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50794         ACL, not afterwards. Fixes test failure on Cygwin.
50795
50796 2008-10-09  Ben Pfaff  <blp@gnu.org>
50797
50798         * build-aux/announce-gen: Fix gnulib version related part of usage
50799         message.  Die with a useful error message if no tarballs are
50800         found.
50801
50802 2008-10-10  Jim Meyering  <meyering@redhat.com>
50803
50804         bootstrap: use git's --depth=N option only if it's supported
50805         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50806         recognize the --depth option.  Reported by Pádraig Brady.
50807
50808 2008-10-09  Bruno Haible  <bruno@clisp.org>
50809
50810         New module 'ioctl'.
50811         * modules/ioctl: New file.
50812         * lib/sys_socket.in.h (ioctl): Remove declaration.
50813         * lib/winsock.c: Include <sys/ioctl.h>.
50814         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50815         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50816         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50817         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50818         * doc/posix-functions/ioctl.texi: Mention the new module.
50819
50820 2008-10-09  Bruno Haible  <bruno@clisp.org>
50821
50822         New module 'sys_ioctl'.
50823         * lib/sys_ioctl.in.h: New file.
50824         * m4/sys_ioctl_h.m4: New file.
50825         * modules/sys_ioctl: New file.
50826         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50827
50828 2008-10-09  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50831         * lib/winsock.c: Include <stdarg.h>.
50832         (rpl_ioctl): Change to second argument 'int' and then varargs.
50833
50834 2008-10-09  Bruno Haible  <bruno@clisp.org>
50835
50836         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50837         when the sys_socket module is present and the system has <winsock2.h>.
50838
50839 2008-10-09  Bruno Haible  <bruno@clisp.org>
50840
50841         * doc/posix-functions/close.texi: Mention module 'close' instead of
50842         module 'sys_socket'.
50843
50844 2008-10-09  Bruno Haible  <bruno@clisp.org>
50845
50846         * doc/glibc-headers/sys_ioctl.texi: New file.
50847         * doc/gnulib.texi: Include it.
50848
50849 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50850             Bruno Haible  <bruno@clisp.org>
50851
50852         Combine the two replacements of 'close'.
50853         * lib/sys_socket.in.h (close): Define to a reminder to include
50854         <unistd.h>.
50855         (_gl_close_fd_maybe_socket): New declaration.
50856         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50857         * lib/winsock.c (close): Remove undefinition.
50858         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50859         needed for the gnulib module 'close'.
50860         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50861         define to an error symbol or to a warning, if suitable.
50862         * lib/close.c: Include <sys/socket.h>.
50863         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50864         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50865         UNISTD_H_HAVE_WINSOCK2_H.
50866         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50868         UNISTD_H_HAVE_WINSOCK2_H.
50869         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50870         (configure.ac): Set a module indicator.
50871         (Makefile.am): Substitute GNULIB_CLOSE.
50872         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50873         * modules/poll-tests (Depends-on): Add close.
50874         * modules/select-tests (Depends-on): Likewise.
50875
50876 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50877             Bruno Haible  <bruno@clisp.org>
50878
50879         New module 'close'.
50880         * modules/close: New file.
50881         * lib/unistd.in.h (close): Move declaration out of the
50882         FCHDIR_REPLACEMENT scope.
50883         (_gl_unregister_fd): New declaration.
50884         * lib/close.c: New file.
50885         * lib/fchdir.c (rpl_close): Remove function.
50886         * m4/close.m4: New file.
50887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50888         close.
50889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50890         REPLACE_CLOSE.
50891         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50892         REPLACE_CLOSE.
50893         * modules/fchdir (Depends-on): Add close.
50894
50895 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50896             Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/fcntl.in.h (open): Simplify conditionals.
50899         (_gl_register_fd): New declaration.
50900         * lib/fchdir.c (rpl_open): Remove function.
50901         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50902         also.
50903         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50905         open.
50906
50907 2008-10-09  Jim Meyering  <meyering@redhat.com>
50908
50909         GNUmakefile: use the more name-space-friendly "_version"
50910         * top/GNUmakefile (_dummy): Update.
50911         (_version): Rename from "version".
50912
50913 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50914             Bruno Haible  <bruno@clisp.org>
50915
50916         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50917         rpl_close.
50918         (_gl_register_fd): New function, extracted from rpl_open.
50919         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50920         (rpl_open, rpl_opendir): Use _gl_register_fd.
50921
50922 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50923
50924         Fix organization of 'open' replacement.
50925         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50926         (gl_FUNC_OPEN): Use it.
50927         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50928
50929 2008-10-08  Bruno Haible  <bruno@clisp.org>
50930
50931         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50932
50933 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50934
50935         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50936         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50937         listen).
50938
50939 2008-10-08  Eric Blake  <ebb9@byu.net>
50940
50941         GNUmakefile: add 'make version' target
50942         * top/GNUmakefile (_curr-ver): Split version update rules...
50943         (version): ...into a target.
50944
50945 2008-10-07  Bruno Haible  <bruno@clisp.org>
50946
50947         Use a more portable replacement expression for -0.0L.
50948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50949         instead of -0.0L. Fix m4 quotation.
50950
50951         * tests/test-signbit.c: Include <float.h>.
50952         (minus_zero): New variable.
50953         (test_signbitl): Use minus_zero instead of -zero.
50954         * modules/signbit-tests (Depends-on): Add float.
50955
50956         * tests/test-ceill.c: Include <float.h>.
50957         (zero): Remove variable.
50958         (minus_zero): New variable.
50959         (main): Use minus_zero instead of -zero.
50960         * modules/ceill-tests (Depends-on): Add float.
50961
50962         * tests/test-floorl.c: Include <float.h>.
50963         (zero): Remove variable.
50964         (minus_zero): New variable.
50965         (main): Use minus_zero instead of -zero.
50966         * modules/floorl-tests (Depends-on): Add float.
50967
50968         * tests/test-roundl.c: Include <float.h>.
50969         (zero): Remove variable.
50970         (minus_zero): New variable.
50971         (main): Use minus_zero instead of -zero.
50972         * modules/roundl-tests (Depends-on): Add float.
50973
50974         * tests/test-truncl.c: Include <float.h>.
50975         (zero): Remove variable.
50976         (minus_zero): New variable.
50977         (main): Use minus_zero instead of -zero.
50978         * modules/truncl-tests (Depends-on): Add float.
50979
50980         * tests/test-frexpl.c (zero): Remove variable.
50981         (minus_zero): New variable.
50982         (main): Use minus_zero instead of -zero.
50983         * modules/frexpl-tests (Depends-on): Add float.
50984
50985         * tests/test-isnan.c (zerol): Remove variable.
50986         (minus_zerol): New variable.
50987         (test_long_double): Use minus_zerol instead of -zerol.
50988         * modules/isnan-tests (Depends-on): Add float.
50989
50990         * tests/test-isnanl.h (zero): Remove variable.
50991         (minus_zero): New variable.
50992         (main): Use minus_zero instead of -zero.
50993         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50994         * modules/isnanl-tests (Depends-on): Add float.
50995
50996         * tests/test-ldexpl.c (zero): Remove variable.
50997         (minus_zero): New variable.
50998         (main): Use minus_zero instead of -zero.
50999         * modules/ldexpl-tests (Depends-on): Add float.
51000
51001         * tests/test-snprintf-posix.h (zerol): Remove variable.
51002         (minus_zerol): New variable.
51003         (test_function): Use minus_zerol instead of -zerol.
51004         * modules/snprintf-posix-tests (Depends-on): Add float.
51005         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51006
51007         * tests/test-sprintf-posix.h (zerol): Remove variable.
51008         (minus_zerol): New variable.
51009         (test_function): Use minus_zerol instead of -zerol.
51010         * modules/sprintf-posix-tests (Depends-on): Add float.
51011         * modules/vsprintf-posix-tests (Depends-on): Add float.
51012
51013         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51014         (minus_zerol): New variable.
51015         (test_function): Use minus_zerol instead of -zerol.
51016         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51017
51018         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51019         (minus_zerol): New variable.
51020         (test_function): Use minus_zerol instead of -zerol.
51021         * modules/vasprintf-posix-tests (Depends-on): Add float.
51022
51023 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51024
51025         * MODULES.html.sh (Support for building documentation): Mention
51026         pmccabe2html.  Sort entries.
51027
51028         Add pmccabe2html module, from gnupdf.
51029         * build-aux/pmccabe.css: New file.
51030         * build-aux/pmccabe2html: New file.
51031         * m4/pmccabe2html.m4: New file.
51032         * modules/pmccabe2html: New file.
51033
51034 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51035
51036         flock: new module
51037         * MODULES.html.sh: Add to list of modules.
51038         * lib/flock.c: flock implementation for Windows and Unix systems
51039         which have fcntl.
51040         * doc/glibc-functions/flock.texi: Update documentation.
51041         * lib/sys_file.in.h: <sys/file.h> header file.
51042         * m4/flock.m4: M4 macros.
51043         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51044         * modules/flock: flock module.
51045         * modules/flock-tests: flock tests module.
51046         * modules/sys_file: sys/file.h module.
51047         * tests/test-flock.c: test suite for flock.
51048
51049 2008-10-06  Jim Meyering  <meyering@redhat.com>
51050
51051         bootstrap: check for LT_INIT more portably still ;-)
51052         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51053         Spotted by Bruno Haible.
51054
51055 2008-10-06  Eric Blake  <ebb9@byu.net>
51056
51057         test-signbit: avoid tripping Irix cc bug on -0.0L
51058         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51059         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51060         entire testsuite consistent and avoids an Irix 6.2 bug.
51061
51062 2008-10-05  Bruno Haible  <bruno@clisp.org>
51063             Jim Meyering  <jim@meyering.net>
51064
51065         Add an option for ignoring EPIPE during close_stdout.
51066         * lib/closeout.h: Include <stdbool.h>.
51067         (close_stdout_set_ignore_EPIPE): New declaration.
51068         * lib/closeout.c: Include <stdbool.h>.
51069         (ignore_EPIPE): New variable.
51070         (close_stdout_set_ignore_EPIPE): New function.
51071         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51072         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51073         failure.
51074         * modules/closeout (Depends-on): Add stdbool.
51075
51076 2008-10-05  Bruno Haible  <bruno@clisp.org>
51077
51078         * modules/accept: New file.
51079         * modules/bind: New file.
51080         * modules/connect: New file.
51081         * modules/getpeername: New file.
51082         * modules/getsockname: New file.
51083         * modules/getsockopt: New file.
51084         * modules/listen: New file.
51085         * modules/recv: New file.
51086         * modules/recvfrom: New file.
51087         * modules/send: New file.
51088         * modules/sendto: New file.
51089         * modules/setsockopt: New file.
51090         * modules/socket: New file.
51091         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51092         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51093         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51094         the particular module is requested. Add a link warning when the
51095         particular module is not requested.
51096         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51097         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51098         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51099         the particular module is requested.
51100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51101         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51102         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51103         * modules/sys_socket (Depends-on): Add link-warning.
51104         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51105         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51106         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51107         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51108         GL_LINK_WARNING.
51109         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51110         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51111         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51112         * doc/posix-functions/getpeername.texi: Mention the new module
51113         'getpeername'.
51114         * doc/posix-functions/getsockname.texi: Mention the new module
51115         'getsockname'.
51116         * doc/posix-functions/getsockopt.texi: Mention the new module
51117         'getsockopt'.
51118         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51119         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51120         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51121         * doc/posix-functions/send.texi: Mention the new module 'send'.
51122         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51123         * doc/posix-functions/setsockopt.texi: Mention the new module
51124         'setsockopt'.
51125         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51126         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51127         listen, connect, accept.
51128         * modules/select-tests (Depends-on): Likewise.
51129
51130 2008-10-05  Bruno Haible  <bruno@clisp.org>
51131
51132         * lib/winsock.c (strerror): Remove unused #undef.
51133         (rpl_close): Remove unused local variable.
51134
51135         * modules/sys_socket (Depends-on); Add errno.
51136
51137 2008-10-05  Bruno Haible  <bruno@clisp.org>
51138
51139         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51140         (select): Add a link warning when the 'select' module is not used.
51141         * modules/sys_select (Depends-on): Add link-warning.
51142         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51143         Suggested by Paolo Bonzini.
51144
51145 2008-10-05  Jim Meyering  <meyering@redhat.com>
51146
51147         bootstrap: check for LT_INIT more portably
51148         * build-aux/bootstrap: Avoid using grep -E, since it's not
51149         portable enough.  Suggestion from Bruno Haible.
51150
51151 2008-10-05  Bruno Haible  <bruno@clisp.org>
51152
51153         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51154         as being fixed by gnulib.
51155
51156 2008-10-05  Bruno Haible  <bruno@clisp.org>
51157
51158         * modules/select-tests: New file, mostly copied from
51159         modules/sys_select-tests.
51160         * tests/test-select.c: New file, mostly copied from
51161         tests/test-sys_select.c.
51162         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51163         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51164         (Makefile.am): Remove test_sys_select_LDADD.
51165
51166         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51167         to an undefined symbol, for an error message.
51168         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51169         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51170         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51171         winsock-select.c here.
51172         * modules/sys_select (Files): Remove lib/winsock-select.c.
51173         (Depends-on): Remove alloca.
51174         (Makefile.am): Substitute GNULIB_SELECT.
51175         * modules/select: New file.
51176         * doc/posix-functions/select.texi: Update.
51177
51178 2008-10-05  Bruno Haible  <bruno@clisp.org>
51179
51180         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51181         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51182         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51183         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51184         getdtablesize.
51185         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51186         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51187
51188 2008-10-05  Bruno Haible  <bruno@clisp.org>
51189
51190         * modules/getdtablesize-tests: New file.
51191         * tests/test-getdtablesize.c: New file.
51192
51193         New module 'getdtablesize'.
51194         * lib/unistd.in.h (getdtablesize): New declaration.
51195         * lib/getdtablesize.c: New file.
51196         * m4/getdtablesize.m4: New file.
51197         * modules/getdtablesize: New file.
51198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51199         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51200         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51201         HAVE_GETDTABLESIZE.
51202         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51203
51204 2008-10-05  Bruno Haible  <bruno@clisp.org>
51205
51206         * modules/sched (Makefile.am): Fix typo.
51207         Reported by Simon Josefsson.
51208
51209 2008-10-05  Jim Meyering  <meyering@redhat.com>
51210
51211         bootstrap: check for LT_INIT, too
51212         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51213         are deprecated.  Suggestion from Ralf Wildenhues.
51214
51215 2008-10-05  Bruno Haible  <bruno@clisp.org>
51216
51217         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51218         overriding them by ours.
51219         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51220
51221 2008-10-05  Jim Meyering  <meyering@redhat.com>
51222
51223         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51224         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51225         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51226
51227 2008-10-04  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/dup2 (License): Change to LGPLv2+.
51230         * modules/sleep (License): Likewise.
51231         * modules/perror (License): Likewise.
51232         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51233         Blake.
51234         * modules/signal (License): Likewise.
51235         * modules/sigprocmask (License): Likewise.
51236         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51237         Meyering.
51238
51239 2008-10-04  Bruno Haible  <bruno@clisp.org>
51240
51241         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51242         Reported by Rainer Tammer <tammer@tammer.net>.
51243
51244 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51245             Bruno Haible  <bruno@clisp.org>
51246
51247         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51248         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51249         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51250
51251 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51252
51253         filevercmp: new module
51254         * lib/filevercmp.h: New function filevercmp comparing version strings.
51255         * lib/filevercmp.c: Implementation of filevercmp function.
51256         * modules/filevercmp: Module metadata.
51257         * tests/test-filevercmp.c: Unit test for new module.
51258         * modules/filevercmp-tests: Unit test metadata.
51259         * MODULES.html.sh: Add filevercmp module.
51260
51261 2008-10-03  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/c-ctype.h: Add comment.
51264         Reported by Jim Meyering.
51265
51266 2008-10-02  Bruno Haible  <bruno@clisp.org>
51267
51268         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51269
51270 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51271
51272         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51273         name of bootstrap.conf accordingly.
51274
51275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51276
51277         * build-aux/bootstrap: Install git-merge-changelog configuration
51278         items into .gitconfig if needed.
51279
51280 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51281
51282         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51283         git repository, and initialize/update it accordingly.
51284
51285 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51286
51287         * modules/fsync-tests: New file.
51288         * tests/test-fsync.c: New file.
51289
51290         New module 'fsync'.
51291         * lib/fsync.c: New file.
51292         * m4/fsync.m4: New file.
51293         * modules/fsync: New file.
51294         * lib/unistd.in.h (fsync): New declaration.
51295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51296         GNULIB_FSYNC and HAVE_FSYNC.
51297         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51298         * MODULES.html.sh (posix_functions): Add fsync.
51299         * doc/posix-functions/fsync.texi: Mention the new module.
51300
51301 2008-10-02  Jim Meyering  <meyering@redhat.com>
51302
51303         fts.c: sync with similar code from coreutils' remove.c
51304         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51305         Guard also with "#if defined __linux__", since for now at least,
51306         this code is Linux-kernel-specific.
51307
51308 2008-10-02  Jim Meyering  <meyering@redhat.com>
51309
51310         fts: bug fixes
51311         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51312         Include <sys/vfs.h>, not <sys/statfs.h>.
51313
51314         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51315         Include <sys/vfs.h>, not <sys/statfs.h>.
51316
51317 2008-10-01  Bruno Haible  <bruno@clisp.org>
51318
51319         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51321         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51322         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51323         * doc/posix-functions/posix_spawnp.texi: Likewise.
51324         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51325         whether posix_spawn actually works.
51326         * m4/pipe.m4 (gl_PIPE): Likewise.
51327         * modules/execute (Files): Add m4/posix_spawn.m4.
51328         * modules/pipe (Files): Add m4/posix_spawn.m4.
51329         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51330
51331 2008-10-01  Jim Meyering  <meyering@redhat.com>
51332
51333         remove trailing spaces
51334         * NEWS: Likewise.
51335         * lib/poll.c (poll): Likewise.
51336         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51337         * lib/winsock.c (rpl_close): Likewise.
51338         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51339         * modules/yield: Likewise.
51340         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51341         * tests/test-sys_select.c (connect_to_socket): Likewise.
51342
51343         fts.c: adjust a new interface to be more generally useful
51344         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51345         (fts_build): Adjust caller.
51346
51347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51348
51349         * modules/cond-tests: New file.
51350         * tests/test-cond.c: New file.
51351
51352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51353             Bruno Haible  <bruno@clisp.org>
51354
51355         * modules/cond (Dependencies): Add errno, time.
51356         * lib/glthread/cond.h: Include <time.h>.
51357         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51358         across platforms.
51359
51360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51361             Bruno Haible  <bruno@clisp.org>
51362
51363         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51364
51365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51366             Bruno Haible  <bruno@clisp.org>
51367
51368         * modules/tls-tests (Depends-on): Add thread, yield.
51369         (configure.ac): Remove all checks.
51370         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51371         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51372         gl_thread_self): Remove definitions. Include glthread/thread.h and
51373         glthread/yield.h instead.
51374         (test_tls): Pass an additional NULL argument to gl_thread_join.
51375
51376 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51377             Bruno Haible  <bruno@clisp.org>
51378
51379         * modules/lock-tests (Depends-on): Add thread, yield.
51380         (configure.ac): Remove all checks.
51381         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51382         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51383         gl_thread_self): Remove definitions. Include glthread/thread.h and
51384         glthread/yield.h instead.
51385         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51386         additional NULL argument to gl_thread_join.
51387
51388 2008-09-30  Bruno Haible  <bruno@clisp.org>
51389
51390         Fix the Win32 implementation of the 'thread' module.
51391         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51392         pointer type.
51393         (gl_thread_self): Invoke gl_thread_self_func.
51394         (gl_thread_self_func): New declaration.
51395         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51396         (do_init_self_key, init_self_key): New functions.
51397         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51398         Remove some fields.
51399         (running_threads, running_lock): Remove variables.
51400         (get_current_thread_handle): New function.
51401         (gl_thread_self_func, wrapper_func, glthread_create_func,
51402         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51403         simplified.
51404
51405 2008-09-30  Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51408         files.
51409
51410 2008-09-30  Jim Meyering  <meyering@redhat.com>
51411
51412         fts.m4: correct the test for statfs.f_type
51413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51414         when checking for statfs.f_type.
51415
51416 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51417
51418         tests: avoid some compiler warnings
51419         * tests/test-memchr.c (main): Pass NULL indirectly.
51420         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51421
51422 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51423
51424         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51425         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51426         exactly specified dayshifts.
51427         (dayshift): New rule.
51428         (rel): Add dayshift.
51429         (relative_time_table) [tomorrow, yesterday, today, now]:
51430         Use tDAY_SHIFT in place of tDAY_UNIT.
51431         * tests/test-getdate.c: Add tests for now-disallowed countable
51432         dayshifts, e.g., "4 yesterday ago".
51433
51434 2008-09-29  Bruno Haible  <bruno@clisp.org>
51435
51436         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51437         * tests/test-posix_spawn1.in.sh: Renamed from
51438         tests/test-posix_spawn.in.sh.
51439         * tests/test-posix_spawn2.c: New file.
51440         * tests/test-posix_spawn2.in.sh: New file.
51441         * modules/posix_spawnp-tests (Files): Update.
51442         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51443
51444 2008-09-29  Bruno Haible  <bruno@clisp.org>
51445
51446         Propagate effects of putenv/setenv/unsetenv to child processes.
51447         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51448         * lib/pipe.c (create_pipe): Likewise.
51449
51450 2008-09-29  Bruno Haible  <bruno@clisp.org>
51451
51452         Enable use of shell scripts as executables in mingw.
51453         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51454         run the program as a shell script.
51455         * lib/pipe.c (create_pipe): Likewise.
51456         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51457         resulting array.
51458
51459 2008-09-29  Eric Blake  <ebb9@byu.net>
51460
51461         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51462
51463 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51464
51465         * doc/posix-functions/accept.texi: Update mingw problems.
51466         * doc/posix-functions/bind.texi: Update mingw problems.
51467         * doc/posix-functions/close.texi: Update mingw problems.
51468         * doc/posix-functions/connect.texi: Update mingw problems.
51469         * doc/posix-functions/getpeername.texi: Update mingw problems.
51470         * doc/posix-functions/getsockname.texi: Update mingw problems.
51471         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51472         * doc/posix-functions/ioctl.texi: Update mingw problems.
51473         * doc/posix-functions/listen.texi: Update mingw problems.
51474         * doc/posix-functions/recv.texi: Update mingw problems.
51475         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51476         * doc/posix-functions/select.texi: Update mingw problems.
51477         * doc/posix-functions/send.texi: Update mingw problems.
51478         * doc/posix-functions/sendto.texi: Update mingw problems.
51479         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51480         * doc/posix-functions/socket.texi: Update mingw problems.
51481
51482 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51483             Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/sys_select.in.h: Include sys/time.h.
51486         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51487         * modules/sys_select: Depend on sys_time.
51488         * tests/test-sys_select.c: Test that sys/select.h defines struct
51489         timeval fully.
51490
51491 2008-09-29  Bruno Haible  <bruno@clisp.org>
51492
51493         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51494         * lib/sys_select.in.h: Likewise.
51495
51496 2008-09-29  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51499
51500 2008-09-29  Bruno Haible  <bruno@clisp.org>
51501
51502         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51503         Set LIBSOCKET instead of augmenting LIBS.
51504         * modules/sockets (Link): New section.
51505         * modules/sockets-tests (test_sockets_LDADD): New variable.
51506         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51507         * modules/poll-tests (test_poll_LDADD): New variable.
51508         * NEWS: Document the change.
51509
51510 2008-09-29  Bruno Haible  <bruno@clisp.org>
51511
51512         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51513         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51514         ARPA_INET_H directly.
51515         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51516
51517 2008-09-28  Bruno Haible  <bruno@clisp.org>
51518
51519         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51520         from gl_HEADER_SYS_SOCKET.
51521         (gl_HEADER_SYS_SOCKET): Invoke it.
51522         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51523
51524 2008-09-28  Bruno Haible  <bruno@clisp.org>
51525
51526         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51527         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51528         Needed on OSF/1 4.0.
51529
51530 2008-09-28  Bruno Haible  <bruno@clisp.org>
51531
51532         Override open more carefully.
51533         * lib/open.c (orig_open): New function.
51534         (rpl_open): Use orig_open instead of open.
51535         * lib/fcntl.in.h: Add special invocation convention.
51536         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51537         (gl_FUNC_OPEN): Invoke it.
51538
51539         Override freopen more carefully.
51540         * lib/freopen.c (orig_freopen): New function.
51541         (rpl_freopen): Use orig_freopen instead of freopen.
51542         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51543         (gl_FUNC_FREOPEN): Invoke it.
51544
51545         Override fopen more carefully.
51546         * lib/fopen.c (orig_fopen): New function.
51547         (rpl_fopen): Use orig_fopen instead of fopen.
51548         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51549         (gl_FUNC_FOPEN): Invoke it.
51550         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51551
51552 2008-09-28  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51555         SIGPIPE.
51556
51557 2008-09-28  Bruno Haible  <bruno@clisp.org>
51558
51559         * tests/test-sigaction.c (handler, main): Disable the check whether
51560         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51561         glibc systems with LinuxThreads.
51562
51563 2008-09-28  Bruno Haible  <bruno@clisp.org>
51564
51565         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51566
51567         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51568         with AIX xlc.
51569         * lib/fcntl.in.h (open): Likewise.
51570         Reported by Rainer Tammer <tammer@tammer.net>.
51571
51572 2008-09-28  Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/posix_spawnp-tests: New file.
51575         * tests/test-posix_spawn.c: New file.
51576         * tests/test-posix_spawn.in.sh: New file.
51577
51578         New module 'posix_spawnp'.
51579         * modules/posix_spawnp: New file.
51580         * lib/spawnp.c: New file, from GNU libc with modifications.
51581         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51582
51583         New module 'posix_spawn'.
51584         * modules/posix_spawn: New file.
51585         * lib/spawn.c: New file, from GNU libc with modifications.
51586         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51587
51588         New module 'posix_spawnattr_destroy'.
51589         * modules/posix_spawnattr_destroy: New file.
51590         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51591         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51592         module.
51593
51594         New module 'posix_spawnattr_setsigmask'.
51595         * modules/posix_spawnattr_setsigmask: New file.
51596         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51597         modifications.
51598         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51599         new module.
51600
51601         New module 'posix_spawnattr_getsigmask'.
51602         * modules/posix_spawnattr_getsigmask: New file.
51603         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51604         modifications.
51605         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51606         new module.
51607
51608         New module 'posix_spawnattr_setsigdefault'.
51609         * modules/posix_spawnattr_setsigdefault: New file.
51610         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51611         modifications.
51612         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51613         new module.
51614
51615         New module 'posix_spawnattr_getsigdefault'.
51616         * modules/posix_spawnattr_getsigdefault: New file.
51617         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51618         modifications.
51619         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51620         new module.
51621
51622         New module 'posix_spawnattr_setschedpolicy'.
51623         * modules/posix_spawnattr_setschedpolicy: New file.
51624         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51625         modifications.
51626         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51627         new module.
51628
51629         New module 'posix_spawnattr_getschedpolicy'.
51630         * modules/posix_spawnattr_getschedpolicy: New file.
51631         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51632         modifications.
51633         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51634         new module.
51635
51636         New module 'posix_spawnattr_setschedparam'.
51637         * modules/posix_spawnattr_setschedparam: New file.
51638         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51639         modifications.
51640         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51641         new module.
51642
51643         New module 'posix_spawnattr_getschedparam'.
51644         * modules/posix_spawnattr_getschedparam: New file.
51645         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51646         modifications.
51647         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51648         new module.
51649
51650         New module 'posix_spawnattr_setpgroup'.
51651         * modules/posix_spawnattr_setpgroup: New file.
51652         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51653         modifications.
51654         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51655         module.
51656
51657         New module 'posix_spawnattr_getpgroup'.
51658         * modules/posix_spawnattr_getpgroup: New file.
51659         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51660         modifications.
51661         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51662         module.
51663
51664         New module 'posix_spawnattr_setflags'.
51665         * modules/posix_spawnattr_setflags: New file.
51666         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51667         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51668         module.
51669
51670         New module 'posix_spawnattr_getflags'.
51671         * modules/posix_spawnattr_getflags: New file.
51672         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51673         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51674         module.
51675
51676         New module 'posix_spawnattr_init'.
51677         * modules/posix_spawnattr_init: New file.
51678         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51679         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51680         module.
51681
51682         New module 'posix_spawn_file_actions_destroy'.
51683         * modules/posix_spawn_file_actions_destroy: New file.
51684         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51685         modifications.
51686         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51687         the new module.
51688
51689         New module 'posix_spawn_file_actions_addopen'.
51690         * modules/posix_spawn_file_actions_addopen: New file.
51691         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51692         modifications.
51693         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51694         the new module.
51695
51696         New module 'posix_spawn_file_actions_adddup2'.
51697         * modules/posix_spawn_file_actions_adddup2: New file.
51698         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51699         modifications.
51700         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51701         the new module.
51702
51703         New module 'posix_spawn_file_actions_addclose'.
51704         * modules/posix_spawn_file_actions_addclose: New file.
51705         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51706         modifications.
51707         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51708         the new module.
51709
51710         New module 'posix_spawn_file_actions_init'.
51711         * modules/posix_spawn_file_actions_init: New file.
51712         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51713         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51714         new module.
51715
51716         New module 'posix_spawn-internal'.
51717         * modules/posix_spawn-internal: New file.
51718         * lib/spawn_int.h: New file, from GNU libc with modifications.
51719         * lib/spawni.c: New file, from GNU libc with modifications.
51720         * m4/posix_spawn.m4: New file.
51721
51722         New module 'spawn'.
51723         * modules/spawn: New file.
51724         * lib/spawn.in.h: New file, from GNU libc with modifications.
51725         * m4/spawn_h.m4: New file.
51726         * doc/posix-headers/spawn.texi: Mention the new module.
51727
51728 2008-09-28  Bruno Haible  <bruno@clisp.org>
51729
51730         * modules/sched-tests: New file.
51731         * tests/test-sched.c: New file.
51732
51733         New module 'sched'.
51734         * modules/sched: New file.
51735         * lib/sched.in.h: New file.
51736         * m4/sched_h.m4: New file.
51737         * doc/posix-headers/sched.texi: Mention the new module.
51738
51739 2008-09-27  Eric Blake  <ebb9@byu.net>
51740
51741         Fix previous patch, and tweak references to $0.
51742         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51743         (func_version, func_gnulib_dir): Don't call this program
51744         gnulib-tool.
51745         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51746         with using $0 in function.
51747         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51748         (func_fatal_error): Reuse the name the user invoked us with.
51749
51750 2008-09-27  Bruno Haible  <bruno@clisp.org>
51751
51752         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51753         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51754         (gl_ICONV_H): Not here.
51755         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51756         instead of assigning ICONV_H directly.
51757
51758         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51760         WCHAR_H directly.
51761
51762 2008-09-27  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51765         * modules/arpa_inet (Depends-on): Add link-warning.
51766         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51767         * modules/unistd (Makefile.am): Likewise.
51768
51769 2008-09-26  Bruno Haible  <bruno@clisp.org>
51770
51771         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51772         variables.
51773         (func_version): Essentially copied from gnulib-tool.
51774         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51775         func_readlink): Copied from gnulib-tool.
51776
51777 2008-09-26  Bruno Haible  <bruno@clisp.org>
51778
51779         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51780         invoking git-version-gen.
51781
51782 2008-09-26  Bruno Haible  <bruno@clisp.org>
51783
51784         * posix-modules: Update to directory names changed on 2008-01-19.
51785         Remove commas in output before splitting into words. No more need to
51786         avoid 'ftruncate' since 2007-02-19.
51787
51788 2008-09-26  Bruno Haible  <bruno@clisp.org>
51789
51790         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51791
51792 2008-09-26  Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51795         * modules/fwriteerror (Depends-on): Add errno.
51796
51797 2008-09-26  Bruno Haible  <bruno@clisp.org>
51798
51799         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51800         * tests/test-vc-list-files-cvs.sh: Likewise.
51801
51802 2008-09-26  Bruno Haible  <bruno@clisp.org>
51803
51804         * doc/posix-headers/sys_resource.texi: Reorder items.
51805
51806 2008-09-26  Jim Meyering  <meyering@redhat.com>
51807
51808         fts: tweak inode comparison function
51809         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51810         inode numbers, as documented.
51811
51812         fts: sort dirent entries on inode number before traversing
51813         This avoids a quadratic, seek-related performance penalty when
51814         operating on a directory containing many entries (measurable at 10k;
51815         3.5 hours at 2 million entries with a cold cache) on certain types
51816         of file systems, including ext3 and ext4, but not tmpfs.
51817         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51818         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51819         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51820         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51821         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51822         (fts_build): Set the stat.st_ino member from D_INO.
51823         If it is likely to be useful, sort dirent entries on inode number.
51824
51825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51826         and the struct statfs.f_type member.
51827         * modules/fts (Depends-on): Add d-ino.
51828
51829 2008-09-26  Bruno Haible  <bruno@clisp.org>
51830
51831         * modules/sigpipe-die (Depends-on): Add sigpipe.
51832
51833         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51834         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51835         and GNULIB_STDIO_H_SIGPIPE are set.
51836         * lib/stdio-write.c: New file.
51837         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51838         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51839         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51840         REPLACE_STDIO_WRITE_FUNCS.
51841         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51842         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51843         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51844         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51845         * modules/stdio (Files): Add lib/stdio-write.c.
51846         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51847         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51848         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51849         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51850         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51851         REPLACE_FPRINTF_POSIX.
51852         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51853         REPLACE_PRINTF_POSIX.
51854         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51855         REPLACE_VFPRINTF_POSIX.
51856         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51857         REPLACE_VPRINTF_POSIX.
51858         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51859         SIGPIPE issue.
51860         * doc/posix-functions/fputc.texi: Likewise.
51861         * doc/posix-functions/fputs.texi: Likewise.
51862         * doc/posix-functions/fwrite.texi: Likewise.
51863         * doc/posix-functions/printf.texi: Likewise.
51864         * doc/posix-functions/putc.texi: Likewise.
51865         * doc/posix-functions/putchar.texi: Likewise.
51866         * doc/posix-functions/puts.texi: Likewise.
51867         * doc/posix-functions/vfprintf.texi: Likewise.
51868         * doc/posix-functions/vprintf.texi: Likewise.
51869
51870         * modules/safe-write (Depends-on): Add write.
51871
51872         * modules/sigpipe-tests: New file.
51873         * tests/test-sigpipe.c: New file.
51874         * tests/test-sigpipe.sh: New file.
51875
51876         * modules/write: New file.
51877         * lib/unistd.in.h: Include <sys/types.h>.
51878         (write): New declaration.
51879         * lib/write.c: New file.
51880         * m4/write.m4: New file.
51881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51882         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51883         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51884         GNULIB_WRITE, REPLACE_WRITE.
51885         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51886         and the SIGPIPE issue.
51887
51888         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51889         (raise): New declaration.
51890         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51891         (ext_signal): New function.
51892         (rpl_raise): New function.
51893         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51894         GNULIB_SIGNAL_H_SIGPIPE.
51895         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51896         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51897
51898         * modules/sigpipe: New file.
51899         * m4/sigpipe.m4: New file.
51900
51901 2008-09-25  Derek Price  <derek@ximbiot.com>
51902             Bruno Haible  <bruno@clisp.org>
51903
51904         * gnulib-tool (func_import): Report all license incompatibilities, not
51905         just the first one.
51906
51907 2008-09-25  Bruno Haible  <bruno@clisp.org>
51908
51909         * gnulib-tool (func_import): When computing the edits, consider not
51910         only the Makefile.ams that exist but also those that will be generated.
51911
51912 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51913
51914         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51915         fixes gnulib-tool --test warning about duplicate dependency.
51916
51917 2008-09-25  Bruno Haible  <bruno@clisp.org>
51918
51919         * gnulib-tool: Don't ask the user to perform edits in the generated
51920         Makefile.ams.
51921         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51922         apply to the Makefile.am being generated.
51923         (func_emit_tests_Makefile_am): Execute edits that apply to the
51924         Makefile.am being generated.
51925         (func_import): Setup list of Makefile.am edits before emitting the
51926         Makefile.ams, not at the end.
51927         (func_create_testdir): Update.
51928         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51929
51930 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51931
51932         * gnulib-tool (func_import): Store the --tests-base option in the
51933         comment in gnulib-cache.m4.
51934
51935 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51936
51937         * NEWS: Document increased portability that sys_select now provides.
51938
51939         * lib/sys_select.in.h: Install select wrapper.
51940         * lib/sys_socket.in.h: Use more descriptive name when there is no
51941         select wrapper.
51942         * lib/winsock-select.c: New.
51943         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51944         Require gl_HEADER_SYS_SOCKET.
51945         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51946         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51947         * tests/test-sys_select.c: Add functional tests.
51948
51949 2008-09-24  Eric Blake  <ebb9@byu.net>
51950
51951         open, fopen: close fd leak in last patch
51952         * lib/open.c (rpl_open): Close fd before returning error.
51953         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51954         * doc/posix-functions/open.texi (open): Document that Irix also
51955         has the bug.
51956         * doc/posix-functions/fopen.texi (fopen): Likewise.
51957         Reported by Paolo Bonzini.
51958
51959 2008-09-24  Bruno Haible  <bruno@clisp.org>
51960
51961         Ensure that a filename ending in a slash cannot be used to access a
51962         non-directory.
51963         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51964         to check whether it's really a directory.
51965         * lib/fopen.c: Include fcntl.h, unistd.h.
51966         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51967         and fdopen().
51968         * modules/fopen (Depends-on): Add unistd.
51969         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51970         * tests/test-fopen.c (main): Likewise.
51971         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51972         * doc/posix-functions/fopen.texi: Likewise.
51973         Reported by Eric Blake.
51974
51975 2008-09-23  Eric Blake  <ebb9@byu.net>
51976
51977         c-stack: avoid compiler optimizations when provoking overflow
51978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51979         recursion harder to optimize, to ensure a stack overflow occurs.
51980         * tests/test-c-stack.c (recurse): Likewise.
51981         Borrowed from libsigsegv.
51982
51983         c-stack: work around Irix sigaltstack bug
51984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51985         whether sigaltstack uses wrong end of stack_t (copied in part from
51986         libsigsegv).
51987         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51988         Irix bug, without requiring an over-allocation.
51989         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51990         bug.
51991
51992         fopen: document mingw bug on directories
51993         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51994         not allowing a stream visiting a directory, even though reading
51995         from such a stream is not portable.
51996
51997 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51998
51999         * lib/poll.c: Rewrite.
52000         * modules/poll: Depend on alloca.
52001
52002 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52003
52004         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52005         instead define prototypes for a full set of wrappers.  Ensure
52006         that Cygwin does not use the compatibility code, which is only
52007         for MinGW.
52008         * lib/winsock.c: New.
52009         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52010         * modules/sys_socket: Add lib/winsock.c.
52011
52012         * modules/poll-tests: Add errno and perror.
52013         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52014
52015 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52016
52017         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52018
52019 2008-09-23  Bruno Haible  <bruno@clisp.org>
52020
52021         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52022         * doc/glibc-functions/*: Likewise.
52023
52024 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52025
52026         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52027         success.
52028
52029 2008-09-22  Eric Blake  <ebb9@byu.net>
52030             Bruno Haible  <bruno@clisp.org>
52031
52032         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52033         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52034         supply %A but mishandle pseudo-NaN.
52035         Reported by Simon Josefsson.
52036
52037 2008-09-21  Bruno Haible  <bruno@clisp.org>
52038
52039         * tests/test-lock.c (main): Tweak skip message.
52040         * tests/test-tls.c (main): Likewise.
52041
52042 2008-09-21  Bruno Haible  <bruno@clisp.org>
52043
52044         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52045         whether 'struct sigaction' has sa_sigaction here...
52046         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52047         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52048
52049 2008-09-21  Bruno Haible  <bruno@clisp.org>
52050
52051         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52052         section.
52053         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52054         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52055         the new section.
52056         (Support for obsolete systems lacking POSIX:2001): New section.
52057         (String handling <string.h>): Move strdup to the new section.
52058         Suggested by Simon Josefsson and Paolo Bonzini.
52059
52060 2008-09-21  Bruno Haible  <bruno@clisp.org>
52061
52062         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52063         exponents in %e and %g results on 'long double'. Needed for mingw's
52064         improved *printf functions.
52065         * tests/test-vasprintf-posix.c (test_function): Likewise.
52066         * tests/test-snprintf-posix.h (test_function): Likewise.
52067         * tests/test-sprintf-posix.h (test_function): Likewise.
52068         Reported by Eric Blake.
52069
52070 2008-09-21  Bruno Haible  <bruno@clisp.org>
52071
52072         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52073         * tests/test-sprintf-posix.h (test_function): Likewise.
52074
52075 2008-09-21  Bruno Haible  <bruno@clisp.org>
52076
52077         * modules/getpass (Depends-on): Add strdup-posix.
52078
52079         New module 'strdup-posix'.
52080         * modules/strdup-posix: New file.
52081         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52082         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52084         REPLACE_STRDUP.
52085         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52086         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52088         strdup-posix.
52089
52090         * modules/strdup (Depends-on): Remove malloc-posix.
52091
52092 2008-09-20  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52095         Wildenhues.
52096
52097 2008-09-20  Bruno Haible  <bruno@clisp.org>
52098
52099         Ensure that wint_t gets defined on IRIX 5.3.
52100         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52101         * lib/wctype.in.h (wint_t): Likewise.
52102         (__wctype_wint_t): Remove type.
52103         (isw*): Use wint_t instead of __wctype_wint_t.
52104         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52105         * modules/wchar (Files): Add m4/wint_t.m4.
52106         (Makefile.am): Substitute HAVE_WINT_T.
52107         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52108         * tests/test-wctype.c: Check that wint_t is defined.
52109         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52110         * doc/posix-headers/wctype.texi: Likewise.
52111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52112
52113 2008-09-18  Bruno Haible  <bruno@clisp.org>
52114
52115         * gnulib-tool (func_exit): Update comment.
52116
52117 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52118
52119         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52120         assumes strdup exists and does not depend on strdup to return
52121         ENOMEM on out of memory conditions.
52122
52123 2008-09-18  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52126         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52127         digits for the exponent.
52128
52129 2008-09-18  Jim Meyering  <meyering@redhat.com>
52130             Bruno Haible  <bruno@clisp.org>
52131
52132         * lib/vasnprintf.c (decimal_point_char): Define also if
52133         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52134
52135 2008-09-16  Bruno Haible  <bruno@clisp.org>
52136         and Eric Blake  <ebb9@byu.net>
52137
52138         vasnprintf: support Irix 5.3
52139         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52140         that mishandle long double infinity.
52141         Reported by Tom G. Christensen.
52142
52143 2008-09-16  Bruno Haible  <bruno@clisp.org>
52144
52145         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52146         Solaris 9.
52147         * doc/glibc-functions/alphasort.texi: Likewise.
52148         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52149
52150 2008-09-16  Jim Meyering  <meyering@redhat.com>
52151
52152         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52153         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52154         a umask modification leak out of a subshell.  Otherwise, the
52155         opensolaris /bin/sh would be accepted and thus cause unwarranted
52156         failures in the coreutils test suite.
52157
52158 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52159
52160         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52161         to succeed.
52162
52163 2008-09-16  Jim Meyering  <meyering@redhat.com>
52164
52165         avoid spurious test failure when library is built without ACL support
52166         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52167         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52168         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52169         * tests/test-copy-acl.sh: Likewise.
52170
52171 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52172
52173         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52174         based on character occurrence counts.
52175
52176 2008-09-15  Eric Blake  <ebb9@byu.net>
52177
52178         tests: avoid some compiler warnings
52179         * tests/test-memchr.c (main): Pass NULL indirectly.
52180         * tests/test-closein.c (main): Avoid unused variable.
52181
52182 2008-09-15  Bruno Haible  <bruno@clisp.org>
52183
52184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52185         are missing on OpenBSD 4.0 individually.
52186         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52187
52188 2008-09-15  Bruno Haible  <bruno@clisp.org>
52189
52190         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52191         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52192         * doc/posix-functions/perror.texi: Likewise.
52193         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52194         is missing.
52195         Reported by Eric Blake.
52196
52197         * lib/errno.in.h: Use replacement values >= 2000.
52198         Reported by Eric Blake.
52199
52200 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52201
52202         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52203         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52204         limit.
52205         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52206         compareseq was aborted.
52207
52208 2008-09-14  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52211         yvec_edit_count.
52212         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52213         (fstrcmp_bounded): Simplify result computation accordingly.
52214
52215 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52216
52217         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52218         (fstrcmp): Define in terms of fstrcmp_bounded.
52219         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52220         lower_bound argument.
52221         Return quickly if the result is certainly < lower_bound.
52222         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52223
52224 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52225
52226         * lib/diffseq.h (EARLY_ABORT): New macro.
52227         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52228         evaluates to true.
52229
52230 2008-09-14  Bruno Haible  <bruno@clisp.org>
52231
52232         * modules/perror-tests: New file.
52233         * tests/test-perror.sh: New file.
52234         * tests/test-perror.c: New file.
52235
52236         New module 'perror'.
52237         * lib/stdio.in.h (perror): New declaration.
52238         * lib/perror.c: New file.
52239         * m4/perror.m4: New file.
52240         * modules/perror: New file.
52241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52242         * doc/posix-functions/perror.texi: Mention the perror module.
52243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52244         REPLACE_PERROR.
52245         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52246         REPLACE_PERROR.
52247
52248 2008-09-14  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/stdio (Makefile.am): Reorder to match the order in
52251         lib/stdio.in.h.
52252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52253
52254 2008-09-13  Bruno Haible  <bruno@clisp.org>
52255
52256         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52257
52258 2008-09-13  Bruno Haible  <bruno@clisp.org>
52259
52260         Extend strerror to cover the added errno values.
52261         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52262         (rpl_strerror): Provide error messages for the added errno values and
52263         for the WSA* values.
52264         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52265         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52266         strerror.
52267         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52268         * modules/strerror (Depends-on): Add errno.
52269         * doc/posix-functions/strerror.texi: Document the change.
52270         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52271         and EOVERFLOW.
52272
52273 2008-09-13  Bruno Haible  <bruno@clisp.org>
52274
52275         * modules/EOVERFLOW: Remove file.
52276         * m4/eoverflow.m4: Remove file.
52277         * modules/EOVERFLOW-tests: Remove file.
52278         * tests/test-EOVERFLOW.c: Remove file.
52279         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52280         * modules/ftell (Depends-on): Likewise.
52281         * modules/getdelim (Depends-on): Likewise.
52282         * modules/getugroups (Depends-on): Likewise.
52283         * modules/poll (Depends-on): Likewise.
52284         * modules/snprintf (Depends-on): Likewise.
52285         * modules/sprintf-posix (Depends-on): Likewise.
52286         * modules/vasnprintf (Depends-on): Likewise.
52287         * modules/vasprintf (Depends-on): Likewise.
52288         * modules/vfprintf-posix (Depends-on): Likewise.
52289         * modules/vsnprintf (Depends-on): Likewise.
52290         * modules/vsprintf-posix (Depends-on): Likewise.
52291         * modules/xvasprintf (Depends-on): Likewise.
52292         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52293         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52294         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52295         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52296         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52297         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52298         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52299         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52301         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52302         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52303         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52305         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52306         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52307         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52309         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52310         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52311         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52313         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52314         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52315         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52316         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52317         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52318         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52319         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52320         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52321         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52322         * MODULES.html.sh: Remove EOVERFLOW.
52323         * NEWS: Mention the change.
52324
52325 2008-09-13  Bruno Haible  <bruno@clisp.org>
52326
52327         * modules/errno-tests: New file.
52328         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52329
52330         * lib/errno.in.h: New file.
52331         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52332         * modules/errno: New file.
52333         * doc/posix-headers/errno.texi: Update documentation.
52334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52335
52336 2008-09-13  Bruno Haible  <bruno@clisp.org>
52337
52338         * tests/test-poll.c: Use #if for native Windows, rather than testing
52339         __MSVCRT__.
52340
52341 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52342             Bruno Haible  <bruno@clisp.org>
52343
52344         * lib/glob.c: Don't include <pwd.h> on native Windows.
52345         (WINDOWS32): New macro.
52346         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52347
52348 2008-09-13  Bruno Haible  <bruno@clisp.org>
52349
52350         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52351         (ETIMEDOUT): Remove macro.
52352         (glthread_cond_timedwait_multithreaded): New declaration.
52353         (glthread_cond_timedwait): Use it.
52354         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52355         (glthread_cond_timedwait_multithreaded): New function.
52356
52357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52358
52359         * modules/poll-tests: Do not check for io.h.
52360         * tests/test-poll.c: Check for __MSVCRT__ instead.
52361
52362 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52363
52364         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52365         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52366         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52367
52368 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52369
52370         * modules/poll-tests: New.
52371         * tests/test-poll.c: New.
52372
52373 2008-09-12  Eric Blake  <ebb9@byu.net>
52374
52375         frexp: test for NetBSD failure on -0.0
52376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52377         not all, bugs from NetBSD 3.0 have been fixed.
52378         * doc/posix-functions/frexp.texi (frexp): Document bug.
52379         Reported by Thomas Klausner.
52380
52381         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52382         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52383         literal -0.0.
52384         Reported by Jonathan C. Patschke <jp@centtech.com>.
52385
52386 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52387
52388         * lib/glthread/cond.h: Use dummy implementation also if
52389         USE_WIN32_THREADS.
52390
52391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52392
52393         * modules/fnmatch-posix (License): Change to LGPLv2+.
52394         * modules/fnmatch-gnu (License): Likewise.
52395
52396 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52397
52398         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52399
52400 2008-09-11  Jim Meyering  <meyering@redhat.com>
52401
52402         * users.txt: Add gtk-vnc.
52403
52404 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52405
52406         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52407         rotate amounts.
52408
52409         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52410         required for 16-bit and 8-bit rotates.
52411         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52412         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52413         UINT8_MAX instead of hard-coded constants.
52414         Suggested by Paul Eggert.
52415
52416 2008-09-07  Bruno Haible  <bruno@clisp.org>
52417
52418         * tests/test-striconveh.c (main): Check behaviour when converting from
52419         UTF-7.
52420
52421         Make striconveh work better with stateful encodings.
52422         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52423         that iconv does not increment the inptr when returning -1/EINVAL.
52424
52425 2008-09-07  Bruno Haible  <bruno@clisp.org>
52426
52427         * build-aux/config.rpath: Update according to libtool-2.2.6.
52428         * build-aux/config.libpath: Likewise.
52429
52430 2008-09-06  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52433         * lib/freadptr.c (freadptr): Likewise.
52434         * lib/freadseek.c (freadptrinc): Likewise.
52435         Reported by Simon Josefsson.
52436
52437 2008-09-06  Bruno Haible  <bruno@clisp.org>
52438
52439         * modules/freadptr (License): Change to LGPLv2+.
52440         * modules/freadseek (License): Likewise.
52441         Suggested by Eric Blake.
52442
52443         * modules/memchr2 (License): Change to LGPLv2+.
52444         Approved by Eric Blake.
52445
52446 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52447             Bruno Haible  <bruno@clisp.org>
52448
52449         Make gnulib-tool work with native 'sed' on AIX.
52450         * gnulib-tool (sed_noop): New variable.
52451         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52452         func_add_or_update, func_create_testdir): Use it to initialize sed
52453         script variables.
52454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52455
52456 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52457             Bruno Haible  <bruno@clisp.org>
52458
52459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52460         also works after #include directives.
52461
52462 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52463
52464         getdate.y: reject an out-of-range timezone value
52465         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52466         the range [-24...+24].  When specified with only one or two digits,
52467         * tests/test-getdate.c: Tests for the fix.
52468         * doc/getdate.texi: Document this change.
52469
52470 2008-09-03  Bruno Haible  <bruno@clisp.org>
52471
52472         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52473
52474 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52475
52476         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52477         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52478         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52479         Blake <ebb9@byu.net>.
52480
52481         * tests/test-bitrotate.c: Add more test vectors.
52482
52483 2008-09-02  Eric Blake  <ebb9@byu.net>
52484
52485         vasnprintf-posix: handle large precision via %.*d
52486         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52487         when handling it ourselves.
52488         * tests/test-vasnprintf-posix.c (test_function): Add test.
52489         * tests/test-snprintf-posix.h (test_function): Likewise.
52490         * tests/test-sprintf-posix.h (test_function): Likewise.
52491         * tests/test-vasprintf-posix.c (test_function): Likewise.
52492         Reported by Alain Guibert.
52493
52494 2008-09-01  Eric Blake  <ebb9@byu.net>
52495
52496         c-stack: make configure-time check more robust
52497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52498         successful sigaction call.
52499         Reported by Tom G. Christensen.
52500
52501 2008-09-01  Bruno Haible  <bruno@clisp.org>
52502
52503         New module 'findprog-lgpl'.
52504         * modules/findprog-lgpl: New file.
52505         * lib/findprog-lgpl.c: New file.
52506         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52507         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52508         to decide whether to use strdup or xstrdup, concatenated_filename or
52509         xconcatenated_filename.
52510
52511 2008-09-01  Bruno Haible  <bruno@clisp.org>
52512
52513         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52514         'xconcat-filename' (GPL).
52515         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52516         (License): Change to LGPLv2+.
52517         * modules/xconcat-filename: New file.
52518         * lib/concat-filename.h (concatenated_filename): Change specification.
52519         (xconcatenated_filename): New declaration.
52520         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52521         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52522         memory situations.
52523         * lib/xconcat-filename.c: New file.
52524         * NEWS: Mention the change.
52525         * lib/findprog.c: Include concat-filename.h, not filename.h.
52526         (find_in_path): Use xconcatenated_filename instead of
52527         concatenated_filename.
52528         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52529         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52530         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52531         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52532         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52533         instead of concatenated_filename.
52534         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52535         (execute_java_class): Use xconcatenated_filename instead of
52536         concatenated_filename.
52537         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52538         * modules/javacomp (Depends-on): Likewise.
52539         * modules/javaexec (Depends-on): Likewise.
52540
52541 2008-09-01  Bruno Haible  <bruno@clisp.org>
52542
52543         Split module 'filename' into 'filename' and 'concat-filename'.
52544         * modules/filename: Keep only lib/filename.h.
52545         (License): Change to LGPLv2+.
52546         * modules/concat-filename: New file, extracted from modules/filename.
52547         * lib/filename.h (concatenated_filename): Remove declaration.
52548         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52549         * lib/concat-filename.c: Include concat-filename.h.
52550         * NEWS: Mention the change.
52551
52552 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52553
52554         * lib/bitrotate.h (rotl8, rotr8): Add.
52555
52556         * modules/bitrotate (configure.ac): Need
52557         AC_REQUIRE([AC_C_INLINE]).
52558         (Description): Mention stdint.h.  Reported by Bruno Haible
52559         <bruno@clisp.org>.
52560
52561         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52562         Paolo Bonzini <bonzini@gnu.org>.
52563
52564 2008-08-31  Bruno Haible  <bruno@clisp.org>
52565
52566         Assume Solaris specific bi-arch conventions on Solaris systems.
52567         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52568         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52570         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52571         like acl_libdirstem.
52572         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52573         acl_libdirstem.
52574         * NEWS: Mention the change.
52575         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52576
52577 2008-08-31  Jim Meyering  <meyering@redhat.com>
52578
52579         * lib/strftime.h: Add comments describing the two added arguments.
52580
52581         remove duplicate #include directives
52582         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52583         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52584
52585 2008-08-31  Bruno Haible  <bruno@clisp.org>
52586
52587         New module 'sigpipe-die'.
52588         * modules/sigpipe-die: New file.
52589         * lib/sigpipe-die.h: New file.
52590         * lib/sigpipe-die.c: New file.
52591         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52592
52593 2008-08-31  Bruno Haible  <bruno@clisp.org>
52594
52595         Don't override previously installed signal handlers.
52596         * lib/fatal-signal.c (saved_sigactions): New variable.
52597         (uninstall_handlers): Reset the signal to the saved handler, not
52598         to SIG_DFL (except when ignored).
52599         (install_handlers): Save the previous handlers.
52600
52601 2008-08-30  Bruno Haible  <bruno@clisp.org>
52602
52603         * gnulib-tool (func_reset_sigpipe): New function.
52604         (func_get_automake_snippet, func_modules_transitive_closure,
52605         func_import): Invoke it before a join command that reads from stdin,
52606         to avoid "echo: write error: Broken pipe" error messages on stderr.
52607         Reported by Sam Steingold <sds@gnu.org>.
52608
52609 2008-08-30  Bruno Haible  <bruno@clisp.org>
52610
52611         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52612         Code copied from m4/open.m4.
52613         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52614         access and the filename ends in a slash. Code copied from lib/open.c.
52615         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52616         * tests/test-fopen.c (main): Check against bug with trailing slash.
52617
52618 2008-08-29  Bruno Haible  <bruno@clisp.org>
52619
52620         Avoid some "gcc -pedantic" warnings.
52621         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52622         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52623         * lib/dirent.in.h: Likewise.
52624         * lib/fcntl.in.h: Likewise.
52625         * lib/float.in.h: Likewise.
52626         * lib/iconv.in.h: Likewise.
52627         * lib/inttypes.in.h: Likewise.
52628         * lib/locale.in.h: Likewise.
52629         * lib/math.in.h: Likewise.
52630         * lib/netinet_in.in.h: Likewise.
52631         * lib/search.in.h: Likewise.
52632         * lib/signal.in.h: Likewise.
52633         * lib/stdarg.in.h: Likewise.
52634         * lib/stdint.in.h: Likewise.
52635         * lib/stdio.in.h: Likewise.
52636         * lib/stdlib.in.h: Likewise.
52637         * lib/string.in.h: Likewise.
52638         * lib/strings.in.h: Likewise.
52639         * lib/sys_select.in.h: Likewise.
52640         * lib/sys_socket.in.h: Likewise.
52641         * lib/sys_stat.in.h: Likewise.
52642         * lib/sys_time.in.h: Likewise.
52643         * lib/sysexits.in.h: Likewise.
52644         * lib/time.in.h: Likewise.
52645         * lib/unistd.in.h: Likewise.
52646         * lib/wchar.in.h: Likewise.
52647         * lib/wctype.in.h: Likewise.
52648         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52649         * modules/fchdir (Makefile.am): Likewise.
52650         * modules/fcntl (Makefile.am): Likewise.
52651         * modules/float (Makefile.am): Likewise.
52652         * modules/iconv_open (Makefile.am): Likewise.
52653         * modules/inttypes (Makefile.am): Likewise.
52654         * modules/locale (Makefile.am): Likewise.
52655         * modules/math (Makefile.am): Likewise.
52656         * modules/netinet_in (Makefile.am): Likewise.
52657         * modules/search (Makefile.am): Likewise.
52658         * modules/signal (Makefile.am): Likewise.
52659         * modules/stdarg (Makefile.am): Likewise.
52660         * modules/stdint (Makefile.am): Likewise.
52661         * modules/stdio (Makefile.am): Likewise.
52662         * modules/stdlib (Makefile.am): Likewise.
52663         * modules/string (Makefile.am): Likewise.
52664         * modules/strings (Makefile.am): Likewise.
52665         * modules/sys_select (Makefile.am): Likewise.
52666         * modules/sys_socket (Makefile.am): Likewise.
52667         * modules/sys_stat (Makefile.am): Likewise.
52668         * modules/sys_time (Makefile.am): Likewise.
52669         * modules/sysexits (Makefile.am): Likewise.
52670         * modules/time (Makefile.am): Likewise.
52671         * modules/unistd (Makefile.am): Likewise.
52672         * modules/wchar (Makefile.am): Likewise.
52673         * modules/wctype (Makefile.am): Likewise.
52674         Reported by Reuben Thomas <rrt@sc3d.org>.
52675
52676 2008-08-29  Bruno Haible  <bruno@clisp.org>
52677
52678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52679         any more.
52680
52681 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52682
52683         * MODULES.html.sh (Misc): Add bitrotate.
52684
52685         * modules/bitrotate: New file.
52686
52687         * lib/bitrotate.h: New file.
52688
52689         * modules/bitrotate-tests: New file.
52690
52691         * tests/test-bitrotate.c: New file.
52692
52693         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52694         on the bitrotate module.
52695
52696         * lib/arctwo.c: Use new bitrotate module.
52697
52698 2008-08-29  Jim Meyering  <meyering@redhat.com>
52699
52700         bootstrap: merge changes from coreutils
52701         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52702         of copied files.  Remove a kludge, now that this is fixed.
52703         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52704         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52705         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52706
52707 2008-08-29  Bruno Haible  <bruno@clisp.org>
52708
52709         * MODULES.html.sh: Remove --cvs-urls option.
52710
52711 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52712
52713         maint.mk: adjust to file name change
52714         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52715
52716 2008-08-28  Jim Meyering  <meyering@redhat.com>
52717
52718         * modules/getndelim2 (License): Relicense to LGPLv2+.
52719         Approved by Richard Stallman for the version of 1995, and by
52720         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52721
52722 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52723
52724         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52725         dummy if one is not available.  Do not touch them if
52726         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52727         (getc_maybe_unlocked): New.
52728         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52729
52730 2008-08-26  Eric Blake  <ebb9@byu.net>
52731
52732         doc/INSTALL: resync from autoconf
52733         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52734         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52735         moving...
52736         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52737         * INSTALL: Regenerate.
52738         * INSTALL.ISO: New file.
52739         * INSTALL.UTF-8: Likewise.
52740
52741 2008-08-26  Jim Meyering  <meyering@redhat.com>
52742
52743         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52744         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52745         these definitions conditional, so that they may be overridden, too.
52746
52747 2008-08-26  Bruno Haible  <bruno@clisp.org>
52748
52749         Generate INSTALL file variants with prettier quotes.
52750         * doc/Makefile (INSTALL_PRELUDE): New macro.
52751         (INSTALL): Use it.
52752         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52753
52754 2008-08-26  Bruno Haible  <bruno@clisp.org>
52755
52756         Run makeinfo in an English locale.
52757         * doc/Makefile (MAKEINFO): New variable.
52758
52759 2008-08-26  Bruno Haible  <bruno@clisp.org>
52760
52761         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52762         Suggested by Eric Blake.
52763
52764 2008-08-25  Bruno Haible  <bruno@clisp.org>
52765
52766         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52767
52768 2008-08-25  Eric Blake  <ebb9@byu.net>
52769
52770         c-stack: test that stack overflow can be caught
52771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52772         that platform allows handling stack overflow; at least OS/2 EMX
52773         has sigaltstack, but crashes before transferring control to
52774         handler on stack overflow.
52775         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52776         check for HAVE_STACK_OVERFLOW_HANDLING.
52777         Reported by Elbert Pol.
52778
52779 2008-08-25  Bruno Haible  <bruno@clisp.org>
52780
52781         * doc/posix-functions/strftime.texi: Fix description of strftime
52782         module.
52783
52784 2008-08-24  Bruno Haible  <bruno@clisp.org>
52785
52786         * tests/uniwidth/test-uc_width2.c: New file.
52787         * tests/uniwidth/test-uc_width2.sh: New file.
52788         * modules/uniwidth/width-tests (Files): Add the new files.
52789         (TESTS): Add uniwidth/test-uc_width2.sh.
52790         (TESTS_ENVIRONMENT): New variable.
52791         (check_PROGRAMS): Add test-uc_width2.
52792         (test_uc_width2_SOURCES): New variable.
52793
52794         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52795         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52796         not 0x00AB.
52797         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52798
52799 2008-08-22  Eric Blake  <ebb9@byu.net>
52800
52801         test-lock, test-tls: mention why a test is skipped
52802         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52803         skipped.
52804         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52805
52806         count-one-bits: relax license
52807         * modules/count-one-bits (License): Relicense to LGPLv2+.
52808         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52809
52810 2008-08-22  Andreas Schwab  <schwab@suse.de>
52811
52812         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52813         Remove spurious space in assignment.
52814
52815 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52816
52817         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52818         Paul Eggert <eggert@CS.UCLA.EDU>.
52819
52820 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52821
52822         * modules/gettext: Add m4/threadlib.m4.
52823
52824 2008-08-19  Eric Blake  <ebb9@byu.net>
52825
52826         test-c-stack: fix compilation failure on FreeBSD 5.0
52827         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52828         headers before <sys/resource.h>.
52829         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52830         the bug.
52831         Reported by Nelson H. F. Beebe.
52832
52833         strverscmp: migrate from "strverscmp.h" to <string.h>
52834         * modules/string (Makefile.am): Add new hooks.
52835         * modules/strverscmp (Files): Remove strverscmp.h.
52836         (Depends-on): Add string.
52837         (configure.ac): Add indicator.
52838         (Include): Mention new header.
52839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52840         defaults.
52841         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52842         results.
52843         * lib/strverscmp.h: Delete.
52844         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52845         * tests/test-strverscmp.c (includes): Adjust client.
52846         * lib/check-version.c (includes): Likewise.
52847         * NEWS: Document the change.
52848
52849         strverscmp: add unit test
52850         * modules/strverscmp-tests: New file.
52851         * tests/test-strverscmp.c: Likewise.
52852
52853 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52854
52855         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52856         regarding Windows crypto stuff, from Mono.
52857
52858 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52859
52860         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52861         if present, for intel RND.  Return error on failures.
52862
52863 2008-08-18  Ben Pfaff  <blp@gnu.org>
52864
52865         gitlog-to-changelog: give better diagnostic for failed pipe-open
52866         * build-aux/gitlog-to-changelog: Improve error message: suggest
52867         that the version of Git may be too old.
52868
52869 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52870
52871         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52872         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52873
52874 2008-08-18  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52877         pthread_in_use().
52878
52879 2008-08-18  Bruno Haible  <bruno@clisp.org>
52880
52881         * lib/glthread/threadlib.c: Include <pthread.h>.
52882
52883 2008-08-18  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52886         glthread_recursive_lock_* macros.
52887         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52888         Fix syntax error.
52889
52890 2008-08-18  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/glthread/thread.c: Avoid forcing a context switch right after
52893         thread creation.
52894
52895 2008-08-17  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52898         * lib/glthread/thread.h: Provide Win32 specific implementation.
52899         * modules/thread (Files): Add lib/glthread/thread.c.
52900         (Depends-on): Add lock.
52901         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52902
52903 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52904
52905         New module 'yield'.
52906         * modules/yield: New file.
52907         * lib/glthread/yield.h: New file.
52908         * m4/yield.m4: New file.
52909         * MODULES.html.sh (Multithreading): Add yield.
52910
52911 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52912
52913         New module 'thread'.
52914         * modules/thread: New file.
52915         * lib/glthread/thread.h: New file.
52916         * m4/thread.m4: New file.
52917         * MODULES.html.sh (Multithreading): Add thread.
52918
52919 2008-08-17  Bruno Haible  <bruno@clisp.org>
52920
52921         * lib/glthread/lock.h: Include <stdlib.h> always.
52922         * lib/glthread/tls.h: Likewise.
52923         * lib/glthread/cond.h: Likewise.
52924
52925 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52926
52927         New module 'cond'.
52928         * modules/cond: New file.
52929         * lib/glthread/cond.h: New file.
52930         * lib/glthread/cond.c: New file.
52931         * m4/cond.m4: New file.
52932         * MODULES.html.sh (Multithreading): Add cond.
52933
52934 2008-08-16  Eric Blake  <ebb9@byu.net>
52935
52936         c-stack: fix regression on Irix 5.3 from 2008-06-21
52937         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52938         sa_sigaction...
52939         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52940         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52941         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52942         * modules/signal (Makefile.am): Use the value.
52943         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52944         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52945         * doc/posix-headers/signal.texi (signal.h): Document this
52946         portability issue.
52947         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52948         Reported by Tom G. Christensen.
52949
52950 2008-08-17  Bruno Haible  <bruno@clisp.org>
52951
52952         New module 'threadlib'.
52953         * modules/threadlib: New file.
52954         * lib/glthread/threadlib.c: New file, extracted from
52955         lib/glthread/lock.c.
52956         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52957         functions.
52958         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52959         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52960         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52961         macros.
52962         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52963         (gl_DISABLE_THREADS): Remove macro.
52964         * modules/lock (Files): Remove build-aux/config.rpath.
52965         (Depends-on): Remove havelib. Add threadlib.
52966         (configure.ac-early): Remove section.
52967         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52968         * modules/tls (Depends-on): Remove lock. Add threadlib.
52969         (Link): New section, copied from threadlib.
52970         * MODULES.html.sh (Multithreading): Add threadlib.
52971
52972 2008-08-14  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52975         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52976         glthread_rwlock_unlock, glthread_rwlock_destroy,
52977         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52978         glthread_recursive_lock_destroy): Define as macros always.
52979         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52980         glthread_lock_lock.
52981         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52982         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52983         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52984         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52985         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52986         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52987         (glthread_recursive_lock_lock_func): Renamed from
52988         glthread_recursive_lock_lock.
52989         (glthread_recursive_lock_unlock_func): Renamed from
52990         glthread_recursive_lock_unlock.
52991         (glthread_recursive_lock_destroy_func): Renamed from
52992         glthread_recursive_lock_destroy.
52993
52994 2008-08-14  Bruno Haible  <bruno@clisp.org>
52995
52996         * lib/glthread/lock.h: Renamed from lib/lock.h.
52997         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52998         * lib/glthread/tls.h: Renamed from lib/tls.h.
52999         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53000         * lib/fstrcmp.c: Update includes.
53001         * lib/strsignal.c: Update includes.
53002         * modules/lock (Files, Makefile.am): Update.
53003         (Include): Change to "glthread/lock.h".
53004         * modules/tls (Files, Makefile.am): Update.
53005         (Include): Change to "glthread/tls.h".
53006         * tests/test-lock.c: Update includes.
53007         * tests/test-tls.c: Update includes.
53008         * NEWS: Mention the renamed header files.
53009
53010 2008-08-11  Jim Meyering  <meyering@redhat.com>
53011
53012         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53013
53014 2008-08-11  Eric Blake  <ebb9@byu.net>
53015
53016         test-c-stack: avoid C99-ism
53017         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53018         before statement.
53019         Reported by Alain Guibert.
53020
53021 2008-08-10  Jim Meyering  <meyering@redhat.com>
53022
53023         ensure that return value of uinttostr et al are not ignored
53024         * lib/inttostr.h (__GNUC_PREREQ): Define.
53025         (__attribute_warn_unused_result__): Define.
53026         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53027
53028 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53029
53030         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53031         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53032
53033 2008-08-07  Jim Meyering  <meyering@redhat.com>
53034
53035         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53036
53037         * modules/mkstemp (License): Relicense under LGPLv2+.
53038         * modules/tempname (License): Likewise.
53039
53040 2008-08-06  Bruno Haible  <bruno@clisp.org>
53041
53042         * lib/poll.c (poll): Further micro-optimization.
53043
53044 2008-08-06  Jim Meyering  <meyering@redhat.com>
53045
53046         inet_pton.c: use locale-independent tolower
53047         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53048         (inet_pton6): Use c_tolower rather than tolower.
53049         * modules/inet_pton (Depends-on): Add c-ctype.
53050
53051 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53052
53053         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53054         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53055
53056 2008-08-06  Jim Meyering  <meyering@redhat.com>
53057
53058         * modules/inet_pton (License): Relicense under LGPLv2+.
53059
53060 2008-08-03  Bruno Haible  <bruno@clisp.org>
53061
53062         Additional non-aborting API for lock and tls.
53063         * lib/lock.h: Include <errno.h>.
53064         (glthread_lock_init): New macro/function.
53065         (gl_lock_init): Define as wrapper around glthread_lock_init.
53066         (glthread_lock_lock): New macro/function.
53067         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53068         (glthread_lock_unlock): New macro/function.
53069         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53070         (glthread_lock_destroy): New macro/function.
53071         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53072         (glthread_rwlock_init): New macro/function.
53073         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53074         (glthread_rwlock_rdlock): New macro/function.
53075         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53076         (glthread_rwlock_wrlock): New macro/function.
53077         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53078         (glthread_rwlock_unlock): New macro/function.
53079         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53080         (glthread_rwlock_destroy): New macro/function.
53081         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53082         (glthread_recursive_lock_init): New macro/function.
53083         (gl_recursive_lock_init): Define as wrapper around
53084         glthread_recursive_lock_init.
53085         (glthread_recursive_lock_lock): New macro/function.
53086         (gl_recursive_lock_lock): Define as wrapper around
53087         glthread_recursive_lock_lock.
53088         (glthread_recursive_lock_unlock): New macro/function.
53089         (gl_recursive_lock_unlock): Define as wrapper around
53090         glthread_recursive_lock_unlock.
53091         (glthread_recursive_lock_destroy): New macro/function.
53092         (gl_recursive_lock_destroy): Define as wrapper around
53093         glthread_recursive_lock_destroy.
53094         (glthread_once): New macro/function.
53095         (gl_once): Define as wrapper around glthread_once.
53096         Update function declarations.
53097         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53098         glthread_rwlock_init. Return error code.
53099         (glthread_rwlock_rdlock_multithreaded): Renamed from
53100         glthread_rwlock_rdlock. Return error code.
53101         (glthread_rwlock_wrlock_multithreaded): Renamed from
53102         glthread_rwlock_wrlock. Return error code.
53103         (glthread_rwlock_unlock_multithreaded): Renamed from
53104         glthread_rwlock_unlock. Return error code.
53105         (glthread_rwlock_destroy_multithreaded): Renamed from
53106         glthread_rwlock_destroy. Return error code.
53107         (glthread_recursive_lock_init_multithreaded): Renamed from
53108         glthread_recursive_lock_init. Return error code.
53109         (glthread_recursive_lock_lock_multithreaded): Renamed from
53110         glthread_recursive_lock_lock. Return error code.
53111         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53112         glthread_recursive_lock_unlock. Return error code.
53113         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53114         glthread_recursive_lock_destroy. Return error code.
53115         (glthread_once_call): Make static.
53116         (glthread_once_multithreaded): Renamed from glthread_once.
53117         * lib/tls.h: Include <errno.h>.
53118         (glthread_tls_key_init): New macro/function.
53119         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53120         (glthread_tls_set): New macro/function.
53121         (gl_tls_set): Define as wrapper around glthread_tls_set.
53122         (glthread_tls_key_destroy): New macro/function.
53123         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53124         Update function declarations.
53125         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53126         glthread_tls_get.
53127         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53128
53129 2008-08-04  Eric Blake  <ebb9@byu.net>
53130
53131         gnumakefile: use space, not TAB, outside of targets
53132         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53133
53134 2008-08-02  Jim Meyering  <meyering@redhat.com>
53135
53136         getdate.y: avoid locale-dependent date parsing failure
53137         In Turkish locales, getdate would fail to recognize keywords
53138         containing a lowercase "i".  The solution is not to rely on
53139         locale-sensitive case-conversion.
53140         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53141         (lookup_word): Use c_toupper in place of toupper.
53142         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53143         Reported by Vefa Bicakci <bicave@superonline.com> in
53144         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53145         * modules/getdate (Depends-on): Add c-ctype.
53146
53147 2008-08-02  Bruno Haible  <bruno@clisp.org>
53148
53149         * gnulib-tool (func_import): When updating or creating a .gitignore
53150         file, prepend each added line with a slash, and ignore leading slashes
53151         from the existing lines.
53152         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53153
53154 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53155
53156         Portability fix for GNU make 3.79.1.
53157         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53158         versions do not understand.
53159
53160 2008-08-01  Bruno Haible  <bruno@clisp.org>
53161
53162         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53163         * tests/test-isnanf.h (zero): New variable.
53164         (main): Avoid literal -0.0f.
53165         * tests/test-isnand.h (zero): New variable.
53166         (main): Avoid literal -0.0.
53167         * tests/test-isnanl.h (zero): New variable.
53168         (main): Avoid literal -0.0L.
53169         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53170         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53171         -0.0, -0.0L.
53172         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53173         (test_signbitd): Avoid literal -0.0.
53174         (test_signbitl): Avoid literal -0.0L.
53175         * tests/test-ceilf1.c (zero): New variable.
53176         (main): Avoid literal -0.0f.
53177         * tests/test-ceill.c (zero): New variable.
53178         (main): Avoid literal -0.0L.
53179         * tests/test-floorf1.c (zero): New variable.
53180         (main): Avoid literal -0.0f.
53181         * tests/test-floorl.c (zero): New variable.
53182         (main): Avoid literal -0.0L.
53183         * tests/test-roundf1.c (zero): New variable.
53184         (main): Avoid literal -0.0f.
53185         * tests/test-round1.c (zero): New variable.
53186         (main): Avoid literal -0.0.
53187         * tests/test-roundl.c (zero): New variable.
53188         (main): Avoid literal -0.0L.
53189         * tests/test-truncf1.c (zero): New variable.
53190         (main): Avoid literal -0.0f.
53191         * tests/test-trunc1.c (zero): New variable.
53192         (main): Avoid literal -0.0.
53193         * tests/test-truncl.c (zero): New variable.
53194         (main): Avoid literal -0.0L.
53195         * tests/test-frexp.c (zero): New variable.
53196         (main): Avoid literal -0.0.
53197         * tests/test-frexpl.c (zero): New variable.
53198         (main): Avoid literal -0.0L.
53199         * tests/test-ldexpl.c (zero): New variable.
53200         (main): Avoid literal -0.0L.
53201         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53202         (zerod, zerol): New variables.
53203         (test_function): Avoid literals -0.0, -0.0L.
53204         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53205         (zerod, zerol): New variables.
53206         (test_function): Avoid literals -0.0, -0.0L.
53207         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53208         (zerod, zerol): New variables.
53209         (test_function): Avoid literals -0.0, -0.0L.
53210         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53211         (zerod, zerol): New variables.
53212         (test_function): Avoid literals -0.0, -0.0L.
53213         * tests/test-strtod.c (zero): New variable.
53214         (main): Avoid literal -0.0.
53215         Reported by Jonathan C. Patschke <jp@centtech.com>.
53216
53217 2008-07-31  Jim Meyering  <meyering@redhat.com>
53218
53219         sha256.h: correct definition of SHA224_DIGEST_SIZE
53220         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53221         Reported by Paulie Pena IV <paulie4@gmail.com>.
53222         Define as 224 / 8, rather than as a literal.
53223         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53224         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53225         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53226
53227 2008-07-31  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53230         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53231         Reported by Jonathan Patschke <jp@centtech.com>.
53232
53233 2008-07-31  Bruno Haible  <bruno@clisp.org>
53234
53235         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53236         Reported by Paolo Bonzini <bonzini@gnu.org>.
53237
53238 2008-07-30  Eric Blake  <ebb9@byu.net>
53239
53240         test-strtod: allow compilation without -lm
53241         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53242         Reported by Dennis Clarke <blastwave@gmail.com>.
53243
53244 2008-07-28  Jim Meyering  <meyering@redhat.com>
53245
53246         bootstrap: work also when there are no .po files in po/
53247         * build-aux/bootstrap (update_po_files): Complete the change
53248         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53249
53250 2008-07-27  Jim Meyering  <meyering@redhat.com>
53251
53252         * users.txt: Add zile.
53253
53254 2008-07-26  Ben Pfaff  <blp@gnu.org>
53255
53256         Add missing dependencies on new m4/exponent[fdl].m4 files.
53257         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53258         * modules/isnand-nolibm: Add m4/exponentd.m4.
53259         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53260         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53261         m4/isnan[fdl].m4, because the macros actually used moved.
53262         Reported by Jim Meyering.
53263
53264 2008-07-14  Ben Pfaff  <blp@gnu.org>
53265
53266         Add isinf module.
53267         * lib/isinf.c: New file.
53268         * lib/math.in.h: Define isinf macro if we have decided to replace
53269         it.
53270         * m4/isinf.m4: New file.
53271         * m4/math_h.m4: Initialize and substitute variables for isinf
53272         module.
53273         * modules/isinf: New file.
53274         * modules/isinf-tests: New file.
53275         * modules/math: Add substitutions for new module.
53276         * tests/test-isinf.c: New file.
53277         * doc/posix-functions/isinf.texi: Mention new module.
53278         * MODULES.html.sh: Mention new module.
53279
53280 2008-07-14  Ben Pfaff  <blp@gnu.org>
53281
53282         Factor out some macros for use by additional modules.
53283         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53284         exponentf.m4.
53285         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53286         exponentd.m4.
53287         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53288         file exponentl.m4.
53289         * m4/exponentf.m4: New file.
53290         * m4/exponentd.m4: New file.
53291         * m4/exponentl.m4: New file.
53292         * modules/isnanf: Use new file m4/exponentf.m4.
53293         * modules/isnand: Use new file m4/exponentd.m4.
53294         * modules/isnanl: Use new file m4/exponentl.m4.
53295
53296 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53297
53298         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53299         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53300         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53301         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53302
53303         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53304         readlink on platforms without PATH_MAX.
53305
53306 2008-07-21  Eric Blake  <ebb9@byu.net>
53307
53308         Warn, not fail, on stale version.
53309         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53310
53311         Don't allow installation with stale devel version number.
53312         * top/GNUmakefile (_is-install-target): New macro.
53313         (_curr-ver): Forbid installation with stale version number.
53314
53315 2008-07-20  Bruno Haible  <bruno@clisp.org>
53316
53317         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53318         TESTS_ENVIRONMENT.
53319         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53320
53321 2008-07-20  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/c-stack.h (c_stack_action): Add documentation.
53324         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53325
53326 2008-07-20  Bruno Haible  <bruno@clisp.org>
53327
53328         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53329         * modules/readlink (License): Likewise.
53330
53331 2008-07-17  Eric Blake  <ebb9@byu.net>
53332
53333         * modules/c-stack (Link): Fix typo.
53334
53335         Make c-stack use libsigsegv, when available.
53336         * modules/c-stack (Depends-on): Add libsigsegv.
53337         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53338         needed.
53339         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53340         (segv_handler, overflow_handler, c_stack_action)
53341         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53342         implementation when libsigsegv is available, but only when using
53343         the library is necessary.
53344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53345         comment, explaining why XSI check fails on Linux.
53346         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53347         * tests/test-c-stack2.sh: Tweak skip message.
53348         * NEWS: Document new link-time requirements.
53349
53350 2008-07-16  Eric Blake  <ebb9@byu.net>
53351
53352         c-stack: Expose false positives when not using libsigsegv.
53353         * modules/c-stack-tests (Files): Expand test.
53354         * tests/test-c-stack.c (main): Add means to conditionally trigger
53355         non-overflow SIGSEGV.
53356         * tests/test-c-stack2.sh: New file.
53357
53358 2008-07-14  Bruno Haible  <bruno@clisp.org>
53359
53360         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53361         Reported by Eric Blake.
53362
53363 2008-07-14  Sam Steingold  <sds@gnu.org>
53364             Bruno Haible  <bruno@clisp.org>
53365
53366         New module libsigsegv.
53367         * modules/libsigsegv: New file.
53368         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53369         modifications.
53370         * MODULES.html.sh (Signal handling): New section.
53371
53372 2008-07-14  Bruno Haible  <bruno@clisp.org>
53373
53374         * modules/unictype/ctype-* (Description): Add the word "function".
53375         Improves the resulting doc in MODULES.html.
53376
53377 2008-07-12  Ben Pfaff  <blp@gnu.org>
53378
53379         Add longlong module.
53380         * modules/longlong: New file.
53381
53382 2008-07-12  Bruno Haible  <bruno@clisp.org>
53383
53384         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53385         to empty.
53386
53387 2008-07-10  Ben Pfaff  <blp@gnu.org>
53388
53389         Add isnan module.
53390         * doc/posix-functions/isnan.texi: Mention new module.
53391         * lib/math.in.h: Define isnan macro if we have decided to replace
53392         it.
53393         * m4/isnan.m4: New file.
53394         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53395         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53396         also.
53397         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53398         redundancy.
53399         * m4/math_h.m4: Initialize and substitute variables for isnan
53400         module.
53401         * modules/isnan: New file.
53402         * modules/isnan-tests: New file.
53403         * modules/math: Add substitutions for new module.
53404         * tests/test-isnan.c: New file.
53405         * MODULES.html.sh: Mention new module.
53406
53407 2008-07-10  Ben Pfaff  <blp@gnu.org>
53408
53409         Add isnanf module.
53410         * lib/isnanf.m4: New file.
53411         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53412         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53413         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53414         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53415         * modules/isnanf: New file.
53416         * modules/isnanf-tests: New file.
53417         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53418         files.
53419         * tests/test-isnanf-nolibm.c: factored most of its contents into
53420         new file tests/test-isnanf.h.
53421         * tests/test-isnanf.h: New file.
53422         * tests/test-isnanf.c: New file.
53423         * MODULES.html.sh: Mention new module.
53424         * doc/glibc-functions/isnanf.texi: Mention new module.
53425
53426 2008-07-10  Ben Pfaff  <blp@gnu.org>
53427
53428         Add isnand module.
53429         * lib/isnand.h: New file.
53430         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53431         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53432         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53433         functionality also.
53434         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53435         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53436         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53437         * modules/isnand: New file.
53438         * modules/isnand-tests: New file.
53439         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53440         files.
53441         * tests/test-isnand-nolibm.c: factored most of its contents into
53442         new file tests/test-isnand.h.
53443         * tests/test-isnand.h: New file.
53444         * tests/test-isnand.c: New file.
53445         * MODULES.html.sh: Mention new module.
53446
53447 2008-07-10  Ben Pfaff  <blp@gnu.org>
53448
53449         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53450         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53451         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53452         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53453         * modules/isnanf-nolibm: Update references to renamed files.
53454         * modules/isnand-nolibm: Likewise.
53455         * modules/isnanf-nolibm-tests: Likewise.
53456         * modules/isnand-nolibm-tests: Likewise.
53457         * lib/frexp.c: Likewise.
53458         * lib/isfinite.c: Likewise.
53459         * lib/signbitd.c: Likewise.
53460         * lib/signbitf.c: Likewise.
53461         * lib/vasnprintf.c: Likewise.
53462         * tests/test-ceilf1.c: Likewise.
53463         * tests/test-ceilf2.c: Likewise.
53464         * tests/test-floorf1.c: Likewise.
53465         * tests/test-floorf2.c: Likewise.
53466         * tests/test-frexp.c: Likewise.
53467         * tests/test-round1.c: Likewise.
53468         * tests/test-round2.c: Likewise.
53469         * tests/test-roundf1.c: Likewise.
53470         * tests/test-strtod.c: Likewise.
53471         * tests/test-trunc1.c: Likewise.
53472         * tests/test-trunc2.c: Likewise.
53473         * tests/test-truncf1.c: Likewise.
53474         * tests/test-truncf2.c: Likewise.
53475         * NEWS: Mention the renamed header files.
53476
53477 2008-07-11  Jim Meyering  <meyering@redhat.com>
53478
53479         vc-list-files: make the last-resort awk code more portable
53480         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53481         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53482         does not support it.
53483
53484 2008-07-10  Eric Blake  <ebb9@byu.net>
53485
53486         Work with tar's bootstrap.
53487         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53488         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53489         an m4 comment.
53490
53491 2008-07-09  Jim Meyering  <meyering@redhat.com>
53492
53493         posix-shell.m4: fix typo that made this test malfunction
53494         * m4/posix-shell.m4: Remove capitalization in variable name.
53495
53496 2008-07-08  Bruno Haible  <bruno@clisp.org>
53497
53498         * m4/onceonly.m4: Update comments.
53499         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53500
53501 2008-07-04  Jim Meyering  <meyering@redhat.com>
53502
53503         * users.txt: Add vc-dwim.
53504         (bison, coreutils): Use the gitweb URL.
53505
53506 2008-07-03  Jim Meyering  <meyering@redhat.com>
53507
53508         * users.txt: Add libffcall.  From Sam Steingold.
53509
53510 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53511
53512         getdate.y: do not ignore TZ with relative day, month or year offset
53513         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53514         relative-date-handling, since otherwise, the latter would clobber the
53515         sole output (an updated Start value) of the tz-handling block.
53516         * tests/test-getdate.c: Tests for the fix
53517
53518 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53519
53520         Recognize 'foo_LIBRARIES += libgnu.a'.
53521         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53522         makefile snippet has already specified an installation location,
53523         also using '+='.
53524
53525 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53526
53527         getdate.y: factor out common actions
53528         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53529         Use them in place of open-coded actions.
53530
53531 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53532
53533         Add self-test for getdate module.
53534         * modules/getdate-tests: New file.
53535         * tests/test-getdate.c: New file.
53536
53537 2008-06-29  Bruno Haible  <bruno@clisp.org>
53538
53539         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53540         .gitignore.
53541         Reported by Sylvain Beucler <beuc@beuc.net>.
53542
53543 2008-06-29  Bruno Haible  <bruno@clisp.org>
53544
53545         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53546         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53547
53548 2008-06-29  Bruno Haible  <bruno@clisp.org>
53549
53550         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53551         EXTRA_DIST.
53552         Reported by Sylvain Beucler <beuc@beuc.net>.
53553
53554 2008-06-26  Jim Meyering  <meyering@redhat.com>
53555
53556         make several modules depend on the "open" module
53557         This provides slightly increased consistency when opening-for-write
53558         the name of a non-directory spelled with a trailing slash.
53559         * modules/chdir-safer: Likewise.
53560         * modules/chown: Likewise.
53561         * modules/clean-temp: Likewise.
53562         * modules/copy-file: Likewise.
53563         * modules/fchdir: Likewise.
53564         * modules/fcntl-safer: Likewise.
53565         * modules/pipe: Likewise.
53566         * modules/utime: Likewise.
53567         Prompted by Eric Blake and Bruno Haible.
53568
53569 2008-06-24  Andreas Schwab  <schwab@suse.de>
53570
53571         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53572         literals can be used as initializers for global variables.
53573
53574 2008-06-23  Eric Blake  <ebb9@byu.net>
53575
53576         Make gnulib-cache.m4 easier to diff.
53577         * gnulib-tool (func_import): Allow newlines when reading cached
53578         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53579
53580 2008-06-23  Bruno Haible  <bruno@clisp.org>
53581
53582         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53583         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53584         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53585         m4/signalblocking.m4.
53586         (gl_PREREQ_SIGACTION): Don't invoke it.
53587         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53588         gl_PREREQ_SIG_HANDLER_H.
53589         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53590         Don't check for sigaction here.
53591
53592 2008-06-23  Bruno Haible  <bruno@clisp.org>
53593
53594         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53595         (install_handlers): Don't set the SA_RESETHAND flag.
53596
53597 2008-06-23  Bruno Haible  <bruno@clisp.org>
53598
53599         * m4/sigaction.m4: Comment fixes.
53600         * lib/signal.in.h: Likewise.
53601
53602 2008-06-23  Eric Blake  <ebb9@byu.net>
53603
53604         Fix typo.
53605         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53606
53607         Avoid SA_ namespace.
53608         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53609         Reported by Ralf Wildenhues.
53610
53611         Avoid test failure due to SA_RESTORER.
53612         * tests/test-sigaction.c (SA_MASK): New macro.
53613         (main): Avoid failing due to extension flags being set.
53614         Reported by Jim Meyering.
53615
53616         Revert use of sig-handler.h in sigprocmask.c.
53617         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53618         it requires the existence of struct sigaction.
53619         * lib/sigprocmask.c (handler_t): Restore typedef.
53620         (rpl_signal, old_handlers): Use local type.
53621
53622 2008-06-22  Bruno Haible  <bruno@clisp.org>
53623
53624         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53625         conditionally.
53626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53627
53628 2008-06-22  Bruno Haible  <bruno@clisp.org>
53629
53630         * doc/posix-functions/siginterrupt.texi: Move note.
53631
53632         * lib/signal.in.h (SA_RESTART): New macro.
53633         * lib/sigaction.c: Update comment.
53634
53635         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53636
53637         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53638         (gl_PREREQ_SIGPROCMASK): Invoke it.
53639         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53640
53641         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53642
53643         * lib/sigprocmask.c: Update a comment.
53644
53645 2008-06-21  Eric Blake  <ebb9@byu.net>
53646
53647         Use sigaction module rather than signal().
53648         * modules/c-stack (Depends-on): Add sigaction.
53649         * modules/fatal-signal (Depends-on): Likewise.
53650         * modules/nanosleep (Depends-on): Likewise.
53651         * modules/sigprocmask (Files): Add sig-handler.h.
53652         * modules/sigaction (Files): Likewise.
53653         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53654         Eggert.
53655         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53656         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53657         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53658         (init_fatal_signals): Likewise.
53659         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53660         (siginterrupt): Delete fallback.
53661         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53662         instead.
53663         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53664         siginterrupt.
53665
53666         New module sigaction, for mingw.
53667         * modules/sigaction: New module...
53668         * modules/sigaction-tests: ...and its test.
53669         * m4/sigaction.m4: New file.
53670         * lib/sigaction.c: Likewise.
53671         * tests/test-sigaction.c: Likewise.
53672         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53673         * modules/signal (Makefile.am): Likewise.
53674         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53675         needed.
53676         * doc/posix-headers/signal.texi (signal.h): Mention provided
53677         types.
53678         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53679         that sigaction is preferable.
53680         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53681         module.
53682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53683         sigaction.
53684
53685         Improve robustness of sigprocmask by overriding signal.
53686         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53687         is in use.
53688         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53689         (SIGKILL, SIGSTOP): Provide fallbacks.
53690         (rpl_signal): Implement.
53691         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53692         signal can be called inside handlers.
53693
53694         Fix nanosleep module on mingw.
53695         * modules/nanosleep (Depends-on): Add sys_select.
53696         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53697
53698         Fix licensing of sigprocmask.
53699         * modules/raise (License): Relicense as LGPL.
53700
53701 2008-06-21  Bruno Haible  <bruno@clisp.org>
53702
53703         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53704         result if it contains question marks.
53705         Reported by Michael Geng <linux@michaelgeng.de>.
53706
53707 2008-06-19  Bruno Haible  <bruno@clisp.org>
53708
53709         Fix CVS-ism.
53710         * doc/gnulib.texi: Include updated-stamp.texi.
53711         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53712         (updated-stamp.texi): New rule.
53713         (gnulib.info): Depend on it.
53714         * doc/.gitignore: Add updated-stamp.texi.
53715         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53716
53717 2008-06-19  Bruno Haible  <bruno@clisp.org>
53718
53719         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53720         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53721
53722 2008-06-19  Eric Blake  <ebb9@byu.net>
53723
53724         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53725         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53726         Reported by Stepan Kasal.
53727
53728 2008-06-18  Bruno Haible  <bruno@clisp.org>
53729
53730         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53731         Reported by Eric Blake.
53732
53733 2008-06-18  Eric Blake  <ebb9@byu.net>
53734
53735         Work around cygwin 1.5.25 strsignal bug.
53736         * tests/test-strsignal.c: Allow for const char *.
53737         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53738
53739 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53740
53741         * users.txt: Update URL to article and add author/date
53742         information.
53743
53744 2008-06-17  Bruno Haible  <bruno@clisp.org>
53745
53746         New macro gl_DISABLE_THREADS.
53747         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53748         if the user did not pass --enable-threads or --disable-threads option.
53749         (gl_DISABLE_THREADS): New macro.
53750         Reported by Eric Blake <ebb9@byu.net>.
53751
53752 2008-06-17  Bruno Haible  <bruno@clisp.org>
53753
53754         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53755         when the macro ignores it.
53756         Based on a patch by Eric Blake <ebb9@byu.net>.
53757
53758 2008-06-17  Bruno Haible  <bruno@clisp.org>
53759
53760         * modules/tls (License): Change to LGPLv2+.
53761         Reported by Eric Blake.
53762
53763 2008-06-17  Eric Blake  <ebb9@byu.net>
53764
53765         Simplify c-stack prerequisites.
53766         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53768         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53769         check.
53770         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53771         <sys/resource.h>.
53772
53773         Move c-stack test into testsuite.
53774         * modules/c-stack-tests: New file.
53775         * lib/c-stack.c [DEBUG]: Move test program...
53776         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53777         fail test if sigaltstack is lacking.
53778         * tests/test-c-stack.sh: New driver file.
53779
53780 2008-06-16  Eric Blake  <ebb9@byu.net>
53781
53782         Use raise module consistently.
53783         * modules/fatal-signal (Depends-on): Add raise.
53784         * modules/sigprocmask (Depends-on): Likewise.
53785         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53786         * lib/sigprocmask.c (sigprocmask): Likewise.
53787         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53788         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53789
53790         Fix compliance bug in sigpending.
53791         * lib/sigprocmask.c (sigpending): Return pending array via
53792         parameter, not return value.
53793
53794 2008-06-14  Eric Blake  <ebb9@byu.net>
53795
53796         Improve obstack-printf test code.
53797         * tests/test-obstack-printf.c (test_function): Fix comment, and
53798         simplify usage of obstack_* in macros.  Add a test for coverage.
53799         Reported by Bruno Haible.
53800
53801 2008-06-14  Bruno Haible  <bruno@clisp.org>
53802
53803         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53804         array size as a constant, not as a const variable.
53805         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53806         AC_USE_SYSTEM_EXTENSIONS.
53807         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53808         Test whether the obstack_printf function actually exists.
53809         * modules/obstack-printf (Depends-on): Add extensions.
53810         (Include): Remove obstack.h.
53811         * modules/obstack-printf-posix (Depends-on): Add extensions.
53812         (Include): Remove obstack.h.
53813
53814 2008-06-13  Eric Blake  <ebb9@byu.net>
53815
53816         Add obstack-printf and obstack-printf-posix modules.
53817         * modules/obstack-printf: New file.
53818         * modules/obstack-printf-posix: Likewise.
53819         * MODULES.html.sh (Misc): Mention them.
53820         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53821         Likewise.
53822         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53823         Likewise.
53824         * modules/stdio (Makefile.am): Accomodate new modules.
53825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53826         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53827         Declare.
53828         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53829         functions.
53830         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53831         (gl_REPLACE_OBSTACK_PRINTF): New macros
53832         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53833         * tests/test-obstack-printf.c: New file.
53834         * modules/obstack-printf-tests: Likewise.
53835         * modules/obstack-printf-posix-tests: Likewise.
53836
53837 2008-06-11  Bruno Haible  <bruno@clisp.org>
53838
53839         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53840         * lib/open.c: Include errno.h.
53841         (open): Fail when attempting to write to a file that has a trailing
53842         slash.
53843         * tests/test-open.c (main): Test against trailing slash bug.
53844         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53845
53846 2008-06-10  Bruno Haible  <bruno@clisp.org>
53847
53848         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53849         for $? to work inside the trap command, with various /bin/sh-s.
53850         * tests/test-vc-list-files-cvs.sh: Likewise.
53851
53852 2008-06-10  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/acl-internal.h: Don't include gettext.h here.
53855         * lib/set-mode-acl.c: Include gettext.h here.
53856         * lib/copy-acl.c: Likewise.
53857
53858 2008-06-10  Bruno Haible  <bruno@clisp.org>
53859
53860         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53861         * lib/wait-process.c (wait_subprocess): Likewise.
53862         * lib/execute.h (execute): Add termsigp argument.
53863         * lib/execute.c (execute): Likewise.
53864         * lib/csharpcomp.c (compile_csharp_using_pnet,
53865         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53866         * lib/csharpexec.c (execute_csharp_using_pnet,
53867         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53868         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53869         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53870         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53871         is_jikes_present): Update.
53872         * lib/javaexec.c (execute_java_class): Update.
53873         * lib/javaversion.c (execute_and_read_line): Update.
53874         * NEWS: Document the changes.
53875         Reported by Eric Blake.
53876
53877 2008-06-10  Eric Blake  <ebb9@byu.net>
53878
53879         Add missing include.
53880         * tests/test-strstr.c (includes): Add <signal.h>.
53881         * tests/test-strcasestr.c (includes): Likewise.
53882         * tests/test-memmem.c (includes): Likewise.
53883
53884 2008-06-10  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/wait-process.c (wait_subprocess): Add an assertion.
53887
53888 2008-06-10  Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53891
53892 2008-06-10  Bruno Haible  <bruno@clisp.org>
53893
53894         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53895         using alarm().
53896         * tests/test-strcasestr.c (main): Likewise.
53897         * tests/test-strstr.c (main): Likewise.
53898
53899 2008-06-09  Bruno Haible  <bruno@clisp.org>
53900
53901         Work around the Solaris 10 ACE ACLs ABI change.
53902         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53903         declare if ACL_NO_TRIVIAL is present.
53904         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53905         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53906         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53907         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53908         define if ACL_NO_TRIVIAL is present.
53909         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53910         and use the current ABI.
53911         (file_has_acl): Use same #if condition as elsewhere.
53912         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53913         in use, and use the current ABI.
53914         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53915         Reported by Jim Meyering.
53916
53917 2008-06-09  Eric Blake  <ebb9@byu.net>
53918
53919         Work around environments that (stupidly) ignore SIGALRM.
53920         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53921         before using alarm().
53922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53924         Reported by Ian Beckwith <ianb@erislabs.net>.
53925
53926         Produce autobuild blurb earlier in log.
53927         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53928
53929 2008-06-09  Jim Meyering  <meyering@redhat.com>
53930         and OndÅ™ej Vašík  <ovasik@redhat.com>
53931
53932         utimens.c: correct kernel bug work-around
53933         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53934         failure, not success, and the kernel bug we're trying to work
53935         around affects not just the utimensat call, but also the fallback
53936         futimens call.
53937         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53938         not success.
53939         [HAVE_FUTIMENS]: Use the same work-around, here.
53940
53941 2008-06-09  Jim Meyering  <meyering@redhat.com>
53942
53943         add more guards around definition of ACE_-related code
53944         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53945         ALLOW and ACE_OWNER are also defined.
53946
53947 2008-06-08  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/acl-internal.h: Add me as co-author.
53950         * lib/file-has-acl.c: Likewise.
53951         * lib/set-mode-acl.c: Likewise.
53952         * lib/copy-acl.c: Likewise.
53953
53954 2008-06-08  Bruno Haible  <bruno@clisp.org>
53955
53956         Add support for AIX ACLs.
53957         * lib/acl-internal.h (acl_nontrivial): New declaration.
53958         * lib/file-has-acl.c (acl_nontrivial): New function.
53959         (file_has_acl): Add implementation using AIX 4 ACL API.
53960         * lib/set-mode-acl.c (qset_acl): Likewise.
53961         * lib/copy-acl.c (qcopy_acl): Likewise.
53962
53963 2008-06-08  Bruno Haible  <bruno@clisp.org>
53964
53965         Add support for HP-UX ACLs.
53966         * lib/acl-internal.h (acl_nontrivial): New declaration.
53967         * lib/file-has-acl.c (acl_nontrivial): New function.
53968         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53969         * lib/set-mode-acl.c (qset_acl): Likewise.
53970         * lib/copy-acl.c (qcopy_acl): Likewise.
53971
53972 2008-06-08  Bruno Haible  <bruno@clisp.org>
53973
53974         Add support for Cygwin ACLs.
53975         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53976         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53977         the chmod_or_fchmod call.
53978         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53979
53980 2008-06-08  Bruno Haible  <bruno@clisp.org>
53981
53982         Fix bug with setuid modes in Solaris 10+ code.
53983         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53984         succeeded, when the mode contains some special bits.
53985
53986 2008-06-08  Bruno Haible  <bruno@clisp.org>
53987
53988         Add support for Solaris 7..10 ACLs.
53989         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53990         declarations.
53991         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53992         functions.
53993         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53994         * lib/set-mode-acl.c (qset_acl): Likewise.
53995         * lib/copy-acl.c (qcopy_acl): Likewise.
53996
53997 2008-06-08  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54000         declaration.
54001         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54002         (acl_access_nontrivial): Remove MacOS X case.
54003         (file_has_acl): Use acl_extended_nontrivial.
54004         * lib/copy-acl.c (qcopy_acl): Likewise.
54005
54006 2008-06-08  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54009
54010 2008-06-08  Jim Meyering  <meyering@redhat.com>
54011
54012         * modules/acl (Maintainer): Add Bruno Haible.
54013
54014 2008-06-07  Bruno Haible  <bruno@clisp.org>
54015
54016         Improve support for Tru64 ACLs.
54017         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54018         ACL on OSF/1.
54019
54020 2008-06-07  Bruno Haible  <bruno@clisp.org>
54021
54022         Add support for MacOS X ACLs.
54023         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54024         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54025         * lib/set-mode-acl.c (qset_acl): Likewise.
54026         * lib/copy-acl.c (qcopy_acl): Likewise.
54027
54028 2008-06-07  Bruno Haible  <bruno@clisp.org>
54029
54030         Fix memory leak introduced on 2008-05-22.
54031         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54032         use.
54033
54034 2008-06-07  Bruno Haible  <bruno@clisp.org>
54035
54036         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54037         to construct an empty ACL.
54038
54039 2008-06-07  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54042         precisely.
54043         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54044
54045 2008-06-07  Bruno Haible  <bruno@clisp.org>
54046
54047         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54048         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54049
54050 2008-06-07  Bruno Haible  <bruno@clisp.org>
54051
54052         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54053         regardless of POSIX.
54054         * doc/posix-functions/_longjmp.texi: Likewise.
54055         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54056         SystemV platform in this case.
54057
54058 2008-06-06  Eric Blake  <ebb9@byu.net>
54059
54060         Document abort() bugs.
54061         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54062
54063         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54064         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54065         sigsetjmp.
54066         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54067         siglongjmp, but only as a macro.
54068         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54069         is obsolete.
54070         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54071
54072         Tweak documentation to cover cygwin argz bugs.
54073         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54074         argz bug fix; no code change needed since no cygwin releases
54075         occurred between the last fix and the bug being tested.
54076         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54077         module and recently fixed cygwin bugs.
54078         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54079         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54080         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54081         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54082         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54083         Likewise.
54084         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54085         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54086         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54087         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54088         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54089         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54090         Likewise.
54091
54092         Avoid gcc warning on cygwin.
54093         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54094         !ACL_NO_TRIVIAL]: Avoid unused variable.
54095
54096 2008-06-05  Eric Blake  <ebb9@byu.net>
54097
54098         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54099         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54100         git-version-gen fails to come up with a version.
54101         Reported by Simon Josefsson.
54102
54103 2008-06-05  Jim Meyering  <meyering@redhat.com>
54104             Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         utimens.c: work around a probable Linux kernel bug
54107         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54108         appears to be a kernel bug that causes utimensat to return 280
54109         instead of 0, indicating success.
54110
54111 2008-06-04  Bruno Haible  <bruno@clisp.org>
54112
54113         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54114         2008-06-01 commit.
54115
54116 2008-06-04  Bruno Haible  <bruno@clisp.org>
54117
54118         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54119         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54120         (file_has_acl): Use it. Save errno afterwards.
54121         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54122
54123 2008-06-03  Bruno Haible  <bruno@clisp.org>
54124
54125         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54126         draft code. Simplify #ifs.
54127         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54128         Put Solaris code after POSIX-draft code. Fix comments regarding
54129         Solaris 10, HP-UX. Mention Cygwin.
54130         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54131
54132 2008-06-03  Eric Blake  <ebb9@byu.net>
54133
54134         Provide fallback for older kernels.
54135         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54136         Provide runtime fallback if kernel lacks support.
54137         Reported by Mike Frysinger.
54138
54139 2008-06-02  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54142         it exists.
54143
54144 2008-06-02  Bruno Haible  <bruno@clisp.org>
54145
54146         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54147         * lib/copy-acl.c (qcopy_acl): Update comment.
54148
54149 2008-06-02  Bruno Haible  <bruno@clisp.org>
54150
54151         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54152         like ACL APIs.
54153
54154 2008-06-02  Bruno Haible  <bruno@clisp.org>
54155
54156         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54157         * tests/test-set-mode-acl.sh: Likewise.
54158         * tests/test-copy-acl.sh: Likewise.
54159         * tests/test-copy-file.sh: Likewise.
54160
54161 2008-06-02  Bruno Haible  <bruno@clisp.org>
54162
54163         * tests/test-file-has-acl.sh: Remove unused code.
54164
54165 2008-06-01  Bruno Haible  <bruno@clisp.org>
54166
54167         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54168         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54169         messages.
54170         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54171
54172 2008-06-01  Bruno Haible  <bruno@clisp.org>
54173
54174         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54175         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54176         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54177         APIs.
54178         * modules/acl-tests (configure.ac): Remove tests now contained in
54179         m4/acl.m4.
54180
54181 2008-06-02  Jim Meyering  <meyering@redhat.com>
54182
54183         announce-gen: use a better key-server host name
54184         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54185         it may be more consistently reliable.  Suggested by Werner Koch
54186         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54187
54188 2008-06-01  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54191         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54192
54193 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54194
54195         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54196
54197 2008-06-01  Bruno Haible  <bruno@clisp.org>
54198
54199         New ACL tests.
54200         * tests/test-file-has-acl.sh: New file.
54201         * tests/test-file-has-acl.c: New file.
54202         * tests/test-set-mode-acl.sh: New file.
54203         * tests/test-set-mode-acl.c: New file.
54204         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54205         * tests/test-copy-acl.c: New file.
54206         * modules/acl-tests: New file, based on modules/copy-file-tests.
54207         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54208         (Depends-on): Add acl-tests.
54209         (configure.ac): Remove checks.
54210         (Makefile.am): Don't create test-sameacls program here any more.
54211
54212 2008-06-01  Bruno Haible  <bruno@clisp.org>
54213
54214         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54215         * tests/test-sameacls.c: Include progname.h.
54216         (main): Invoke set_program_name. Portability fixes for MacOS X,
54217         Solaris, HP-UX.
54218
54219 2008-06-01  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54222         function.
54223         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54224
54225 2008-06-01  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/rpmatch (Depends-on): Add strdup.
54228
54229 2008-06-01  Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/pipe.c: Include unistd-safer.h.
54232         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54233         * modules/pipe (Depends-on): Add unistd-safer.
54234
54235 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54236
54237         * modules/autobuild (configure.ac): Call AB_INIT.
54238
54239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54240
54241         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54242         Suggested by Bruno Haible <bruno@clisp.org>.
54243
54244 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54245
54246         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54247         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54248         <bruno@clisp.org>.
54249
54250 2008-05-29  Eric Blake  <ebb9@byu.net>
54251
54252         Prefer new POSIX 200x interfaces over futimesat.
54253         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54254         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54255         when available.
54256         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54257
54258 2008-05-28  Bruno Haible  <bruno@clisp.org>
54259
54260         * modules/stpcpy (License): Change to LGPLv2+.
54261         Requested by David Lutterkort <dlutter@redhat.com>.
54262
54263 2008-05-27  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54266         current mingw.
54267         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54268
54269 2008-05-27  Bruno Haible  <bruno@clisp.org>
54270
54271         * modules/iconv_open (Link): New section, from module 'iconv'.
54272         * modules/striconv (Link): Likewise.
54273         * modules/striconveh (Link): Likewise.
54274         * modules/xstriconv (Link): Likewise.
54275         * modules/unicodeio (Link): Likewise.
54276         * modules/propername (Link): Likewise.
54277         Reported by Jim Meyering.
54278
54279 2008-05-26  Jim Meyering  <meyering@redhat.com>
54280
54281         sha256: do not artificially restrict buffer length to be < 2^32
54282         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54283         uint32_t to size_t.
54284         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54285         to match.
54286
54287         avoid unaligned access errors, e.g., on sparc
54288         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54289         direct access through a possibly-unaligned uint64* pointer.
54290         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54291         direct access through a possibly-unaligned uint32* pointer.
54292         Prompted by this patch from Tom "spot" Callaway:
54293         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54294
54295         sha512.c: fix typo in comment
54296         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54297
54298 2008-05-25  Bruno Haible  <bruno@clisp.org>
54299
54300         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54301         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54302         (Makefile.am): Update lib_SOURCES.
54303
54304 2008-05-25  Bruno Haible  <bruno@clisp.org>
54305
54306         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54307
54308 2008-05-25  Jim Meyering  <meyering@redhat.com>
54309
54310         useless-if-before-free: freed expr may have white-space differences
54311         * build-aux/useless-if-before-free: Recognize cases in which the
54312         freed expression differs from the tested one in embedded white
54313         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54314         $1 was used, so we can't make any regexp shy.  Improved tests now
54315         detect this.
54316
54317         useless-if-before-free: accept white space in the expression.
54318         * build-aux/useless-if-before-free: For now, any white space
54319         in the expression must be identical in the free argument.
54320
54321         useless-if-before-free: efficiency tweak
54322         * build-aux/useless-if-before-free: Make the expression-matching
54323         regexp "shy".
54324         Make the *outer* regexp shy, not the expr-matching one.
54325
54326         update code-in-comment to accept cast of free arg
54327         * build-aux/useless-if-before-free: Update regexp.
54328
54329 2008-05-25  Bruno Haible  <bruno@clisp.org>
54330
54331         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54332         * modules/copy-file-tests (Files, Makefile.am): Update.
54333         * tests/test-copy-file.c (func_test_copy): Update.
54334
54335 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54336
54337         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54338
54339 2008-05-23  Bruno Haible  <bruno@clisp.org>
54340
54341         Improve support for ACLs on OSF/1.
54342         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54343         Remove fallback for unknown flavors of ACLs.
54344
54345 2008-05-22  Bruno Haible  <bruno@clisp.org>
54346
54347         Add support for ACLs on OSF/1.
54348         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54349         replacements.
54350         (acl_free_text): New macro fallback.
54351         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54352         acl_free.
54353         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54354         acl_free_text function. Require AC_C_INLINE.
54355
54356 2008-05-22  Bruno Haible  <bruno@clisp.org>
54357
54358         Make copy_acl work on MacOS X 10.5.
54359         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54360         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54361         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54362         If MODE_INSIDE_ACL, don't assume that every system has the same text
54363         representation for ACLs as FreeBSD.
54364         * lib/copy-acl.c (copy_acl): Add support for platforms with
54365         !MODE_INSIDE_ACL.
54366         * lib/file-has-acl.c (file_has_acl): Likewise.
54367         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54368         FreeBSD, MacOS X, or IRIX, respectively.
54369
54370 2008-05-22  Bruno Haible  <bruno@clisp.org>
54371
54372         * lib/acl.h: Don't include <sys/acl.h>.
54373         (GETACLCNT): Move fallback to lib/acl-internal.h.
54374         * lib/acl-internal.h: Include <sys/acl.h> here.
54375         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54376
54377 2008-05-22  Bruno Haible  <bruno@clisp.org>
54378
54379         Split off copy_acl function to separate file.
54380         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54381         * lib/acl.c (copy_acl): Moved function to separate file.
54382         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54383         * modules/acl (Files): Add lib/copy-acl.c.
54384         (Makefiles.am): Augment lib_SOURCES.
54385
54386 2008-05-22  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/copy-file-tests: New file.
54389         * tests/test-copy-file.sh: New file.
54390         * tests/test-copy-file.c: New file.
54391         * tests/test-copy-file-sameacls.c: New file.
54392
54393 2008-05-22  Eric Blake  <ebb9@byu.net>
54394
54395         Avoid gcc warning.
54396         * tests/test-memcmp.c (main): Pass NULL indirectly.
54397
54398 2008-05-21  Bruno Haible  <bruno@clisp.org>
54399
54400         Add reference doc about ACLs.
54401         * doc/acl-resources.txt: New file.
54402         * doc/acl-cygwin.txt: New file.
54403
54404 2008-05-21  Bruno Haible  <bruno@clisp.org>
54405
54406         Avoid one more warning from gcc.
54407         * lib/vasnprintf.c (IF_LINT): Update comments.
54408         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54409
54410 2008-05-21  Jim Meyering  <meyering@redhat.com>
54411
54412         avoid a warning from gcc
54413         * lib/vasnprintf.c (IF_LINT): Define.
54414         (scale10_round_decimal_long_double):
54415         Use it to avoid a "may be used uninitialized" warning.
54416         (scale10_round_decimal_double): Likewise.
54417
54418 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54419
54420         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54421         declared.
54422
54423 2008-05-20  Bruno Haible  <bruno@clisp.org>
54424
54425         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54426         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54427
54428 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54429
54430         * modules/memcmp-tests: New file.
54431         * tests/test-memcmp.c: New file.
54432
54433 2008-05-19  Bruno Haible  <bruno@clisp.org>
54434
54435         * modules/propername (Notice, configure.ac): Put quoted "..." into
54436         --keyword option.
54437         * lib/propername.h: Update comments accordingly.
54438         Reported by Eric Blake.
54439
54440 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54441
54442         * modules/getpass-gnu (Depends-on): Add fseeko.
54443
54444 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54445
54446         * modules/base64-tests: New file.
54447
54448 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54449
54450         * lib/base64.c (base64_decode_ctx): If a decode context structure
54451         was passed in use it to ignore newlines.  If a context structure
54452         was _not_ passed in, continue to treat newlines as garbage (this
54453         is the historical behavior).  Formerly base64_decode.
54454         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54455         takes a decode context structure.
54456         * lib/base64.h (base64_decode): Macro for four-argument calls.
54457         (base64_decode_alloc): Likewise.
54458         * lib/base64.c (base64_decode_ctx): If a decode context structure
54459         was passed in use it to ignore newlines.  If a context structure
54460         was _not_ passed in, continue to treat newlines as garbage (this
54461         is the historical behavior).  Formerly base64_decode.
54462         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54463         takes a decode context structure.
54464         * lib/base64.h (base64_decode): Macro for four-argument calls.
54465         (base64_decode_alloc): Likewise.
54466
54467 2008-05-19  Jim Meyering  <meyering@redhat.com>
54468
54469         avoid a warning from gcc
54470         * lib/trim.c (IF_LINT): Define.
54471         (trim2): Use it to avoid a "may be used uninitialized" warning.
54472
54473         Fix doc typo.
54474         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54475
54476 2008-05-19  Bruno Haible  <bruno@clisp.org>
54477
54478         * doc/glibc-functions/getpass.texi: Document limits of other
54479         implementations.
54480
54481 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54482             Bruno Haible <bruno@clisp.org>
54483
54484         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54485
54486 2008-05-18  Bruno Haible  <bruno@clisp.org>
54487
54488         * modules/propername: New file, from GNU gettext.
54489         * lib/propername.h: New file, from GNU gettext.
54490         * lib/propername.c: New file, from GNU gettext.
54491         * MODULES.html.sh (Internationalization functions): Add propername.
54492
54493 2008-05-16  Jim Meyering  <meyering@redhat.com>
54494             Bruno Haible  <bruno@clisp.org>
54495
54496         Avoid some warnings from "gcc -Wshadow".
54497         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54498
54499 2008-05-15  Eric Blake  <ebb9@byu.net>
54500
54501         Extend previous patch to cygwin 1.7.0.
54502         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54503         fast implementation in cygwin >= 1.7.0.
54504         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54506
54507 2008-05-15  Bruno Haible  <bruno@clisp.org>
54508
54509         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54510         implementation in glibc >= 2.9.
54511         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54513
54514 2008-05-15  Bruno Haible  <bruno@clisp.org>
54515
54516         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54517         (Unicode string functions): Add unilbrk/*.
54518         Reported by Karl Berry.
54519
54520 2008-05-15  Eric Blake  <ebb9@byu.net>
54521
54522         Fix violation of <stdbool.h> replacement in regex.
54523         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54524         * lib/regexec.c (re_search_internal): Likewise.
54525         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54526
54527 2008-05-15  Jim Meyering  <meyering@redhat.com>
54528
54529         avoid distracting test output when git or cvs is not found
54530         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54531         * tests/test-vc-list-files-git.sh: Likewise.
54532
54533 2008-05-15  Eric Blake  <ebb9@byu.net>
54534
54535         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54536         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54537         glibc version.
54538         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54539         * doc/posix-functions/strstr.texi (strstr): Likewise.
54540         * lib/str-two-way.h (MAX): Sychronize with glibc.
54541
54542 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54543
54544         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54545         opr.ctx_type.
54546         (calc_first): Initialize constraint field.
54547         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54548         Fix grammar.
54549         (duplicate_node): Merge constraint field for all node types.
54550         (calc_eclosure_iter): Look at constraint field for all node types.
54551         * lib/regex_internal.c (create_cd_newstate): Don't look at
54552         opr.ctx_type.
54553
54554 2008-05-14  Bruno Haible  <bruno@clisp.org>
54555
54556         Help GCC to do better code generation.
54557         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54558         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54559         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54560         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54561         Declare with attribute 'malloc' if supported.
54562
54563 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54564
54565         use "echo STR|wc -c" rather than unportable "expr length STR"
54566         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54567         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54568
54569 2008-05-14  Jim Meyering  <meyering@redhat.com>
54570
54571         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54572         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54573         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54574         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54575         via Collin Lasse.
54576
54577 2008-05-14  Eric Blake  <ebb9@byu.net>
54578
54579         Avoid quadratic growth in gl_LIBSOURCES.
54580         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54581         Suggested by Bruno Haible.
54582
54583         Test xmemdup0.
54584         * modules/xmemdup0-tests: New file.
54585         * tests/test-xmemdup0.c: Likewise.
54586
54587 2008-05-13  Eric Blake  <ebb9@byu.net>
54588
54589         Split xmemdup0 into its own module.
54590         * modules/xmemdup0: New file.
54591         * lib/xmemdup0.h: Likewise.
54592         * lib/xmemdup0.c: Likewise.
54593         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54594         * lib/xalloc.h (xmemdup0): Remove.
54595         * lib/xmalloc.c (xmemdup0): Likewise.
54596
54597 2008-05-13  Eric Blake  <ebb9@byu.net>
54598             Bruno Haible  <bruno@clisp.org>
54599
54600         Reduce number of forks required during autoconf.
54601         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54602         and gl_LIBSOURCES_DIR.
54603         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54604         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54605         m4_syscmd per file.
54606         <m4_foreach_w>: Move...
54607         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54608
54609 2008-05-13  Eric Blake  <ebb9@byu.net>
54610
54611         * gnulib-tool: Fix various comment typos.
54612
54613 2008-05-12  Bruno Haible  <bruno@clisp.org>
54614
54615         Tailor the linebreaking algorithm.
54616         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54617
54618 2008-05-12  Bruno Haible  <bruno@clisp.org>
54619
54620         Update to Unicode 5.0.0.
54621         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54622         LBP_JV, LBP_JT. Redistribute values.
54623         (unilbrk_table): Change size.
54624         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54625         Unicode TR#14 rev. 22.
54626         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54627         LBP_JV, LBP_JT. Redistribute values.
54628         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54629         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54630         Update.
54631         * lib/unilbrk/lbrkprop1.h: Regenerated.
54632         * lib/unilbrk/lbrkprop2.h: Regenerated.
54633         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54634         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54635         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54636         Likewise.
54637         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54638         Likewise.
54639         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54640         result.
54641         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54642         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54643         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54644         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54645         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54646         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54647
54648 2008-05-11  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54651
54652 2008-05-11  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54655         * modules/unilbrk/gen-lbrk: New file.
54656
54657 2008-05-11  Bruno Haible  <bruno@clisp.org>
54658
54659         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54660         * m4/sha512.m4 (gl_SHA512): Likewise.
54661
54662 2008-05-11  Jim Meyering  <meyering@redhat.com>
54663
54664         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54665         * modules/crypto/sha256: New file.
54666         * modules/crypto/sha512: Likewise.
54667         * lib/sha256.c: Likewise.
54668         * lib/sha256.h: Likewise.
54669         * lib/sha512.c: Likewise.
54670         * lib/sha512.h: Likewise.
54671         * lib/u64.h: Likewise.
54672         * m4/sha256.m4: Likewise.
54673         * m4/sha512.m4: Likewise.
54674         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54675
54676 2008-05-10  Bruno Haible  <bruno@clisp.org>
54677
54678         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54679         (Input/Output <stdio.h>): Add xprintf.
54680         (Signal handling <signal.h>): Add strsignal.
54681         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54682         (Core language properties): Add func.
54683         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54684         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54685         strings.
54686         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54687         (Input/output): New section.
54688         (File system functions): Add openat-die, stat-macros.
54689         (Networking functions): Add sockets.
54690         (Unicode string functions): Add unictype/*.
54691         (Support for building libraries and executables): Add gperf.
54692         (Support for building documentation): Add agpl-3.0.
54693         (Misc): Add nocrash.
54694
54695 2008-05-10  Bruno Haible  <bruno@clisp.org>
54696
54697         * modules/unictype/gen-ctype: New file.
54698
54699 2008-05-10  Jim Meyering  <meyering@redhat.com>
54700
54701         Make chdir-safer.c more efficient on a system with no symlinks.
54702         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54703         also if ELOOP is zero.  Suggested by Bruno Haible.
54704
54705         Make chdir-safer.c slightly safer.
54706         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54707         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54708
54709         Avoid compile failure on systems without ELOOP (like mingw).
54710         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54711         Reported by Bruno Haible.
54712
54713 2008-05-10  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54716         (is_utf8_encoding): Use a case-insensitive comparison.
54717         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54718         streq.
54719
54720 2008-05-10  Bruno Haible  <bruno@clisp.org>
54721
54722         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54723         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54724         * lib/unilbrk/ulc-common.h (iconv_string_length,
54725         iconv_string_keeping_offsets): Remove declarations.
54726         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54727         Don't include <iconv.h>, streq.h, xsize.h.
54728         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54729         conversion.
54730         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54731         <iconv.h>, streq.h, xsize.h.
54732         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54733         conversion.
54734         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54735         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54736         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54737         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54738
54739 2008-05-10  Bruno Haible  <bruno@clisp.org>
54740
54741         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54742         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54743
54744         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54745         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54746
54747         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54748         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54749
54750         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54751         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54752
54753         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54754         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54755
54756         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54757         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54758
54759         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54760         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54761
54762         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54763         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54764
54765 2008-05-10  Bruno Haible  <bruno@clisp.org>
54766
54767         Split up 'linebreak' module.
54768         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54769         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54770         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54771         modifications.
54772         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54773         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54774         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54775         lib/linebreak.c.
54776         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54777         lib/linebreak.c.
54778         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54779         lib/linebreak.c.
54780         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54781         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54782         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54783         lib/linebreak.c.
54784         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54785         lib/linebreak.c.
54786         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54787         lib/linebreak.c.
54788         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54789         lib/linebreak.c.
54790         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54791         lib/linebreak.c.
54792         * modules/unilbrk/base: New file.
54793         * modules/unilbrk/tables: New file.
54794         * modules/unilbrk/u8-possible-linebreaks: New file.
54795         * modules/unilbrk/u16-possible-linebreaks: New file.
54796         * modules/unilbrk/u32-possible-linebreaks: New file.
54797         * modules/unilbrk/ulc-common: New file.
54798         * modules/unilbrk/ulc-possible-linebreaks: New file.
54799         * modules/unilbrk/u8-width-linebreaks: New file.
54800         * modules/unilbrk/u16-width-linebreaks: New file.
54801         * modules/unilbrk/u32-width-linebreaks: New file.
54802         * modules/unilbrk/ulc-width-linebreaks: New file.
54803         * lib/linebreak.h: Remove file.
54804         * lib/linebreak.c: Remove file.
54805         * m4/linebreak.m4: Remove file.
54806         * modules/linebreak: Remove file.
54807         * NEWS: Mention the changes.
54808
54809 2008-05-09  Eric Blake  <ebb9@byu.net>
54810
54811         Add xmemdup0.
54812         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54813         implementation.
54814         * lib/xmalloc.c (xmemdup0): New C implementation.
54815
54816 2008-05-08  Bruno Haible  <bruno@clisp.org>
54817
54818         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54819
54820 2008-05-07  Eric Blake  <ebb9@byu.net>
54821
54822         Support cross-compilation of <wctype.h>.
54823         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54824         AC_CACHE_CHECK.
54825
54826 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54827
54828         * build-aux/vc-list-files: Add support for bzr.
54829
54830 2008-05-03  Jim Meyering  <meyering@redhat.com>
54831
54832         avoid failed assertion with tight malloc
54833         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54834
54835 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54836
54837         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54838         are needed from arpa/inet.h.
54839         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54840         Reported by Bruno Haible.
54841
54842 2008-05-02  Jim Meyering  <meyering@redhat.com>
54843
54844         avoid compilation error on FreeBSD 6
54845         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54846
54847 2008-05-01  Jim Meyering  <meyering@redhat.com>
54848
54849         useless-if-before-free: correct --help's exit status description
54850         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54851         for one or more matches, etc.  Reported by Bruno Haible.
54852
54853         vc-list-files: make the stand-alone gnulib test work
54854         * modules/vc-list-files-tests (configure.ac):
54855         Define and AC_SUBST abs_aux_dir.
54856         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54857         $(abs_top_srcdir) to each script and having each of them
54858         duplicate the work of setting PATH, set PATH here, using
54859         the new variable, abs_aux_dir instead.
54860         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54861         * tests/test-vc-list-files-git.sh: Likewise.
54862         Reported by Bruno Haible.
54863
54864 2008-05-01  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54867         reallocation. Rename 'done' to 'found_delimiter'.
54868
54869 2008-05-01  Jim Meyering  <meyering@redhat.com>
54870
54871         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54872         * build-aux/vc-list-files: Use `...`, not $(...).
54873
54874 2008-04-30  Jim Meyering  <meyering@redhat.com>
54875
54876         add tests for vc-list-files
54877         * modules/vc-list-files-tests: New module.
54878         * tests/test-vc-list-files-cvs.sh: New file.
54879         * tests/test-vc-list-files-git.sh: New file.
54880
54881         avoid a warning from gcc
54882         * lib/getndelim2.c (IF_LINT): Define.
54883         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54884
54885         vc-list-files: work properly with build-aux/cvsu, too
54886         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54887         to all cvs-based clauses.
54888
54889         vc-list-files: work properly in the CVS+awk case, too
54890         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54891
54892         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54893         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54894         take more than one file argument, so .  Add quotes, just in case $dir
54895         ever contains a shell meta-character.  Prompted by Soren Hansen in
54896         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54897
54898 2008-04-29  Eric Blake  <ebb9@byu.net>
54899
54900         Optimize getndelim2 to use block operations when possible.
54901         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54902         freadseek, and memchr2.
54903         * lib/getndelim2.c (getndelim2): Use them for block reads.
54904
54905 2008-04-29  Bruno Haible  <bruno@clisp.org>
54906
54907         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54909         * modules/inet_ntop (Depends-on): Add extensions.
54910         * modules/inet_pton (Depends-on): Likewise.
54911         Reported by Simon Josefsson.
54912
54913 2008-04-29  Jim Meyering  <meyering@redhat.com>
54914
54915         When the is more than one match in a block, match all of them.
54916         * build-aux/useless-if-before-free: Iterate through each block
54917         until there are no more matches.
54918
54919         Fix broken useless-if-before-free script.
54920         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54921         the expression to match cast of argument to free-like function.
54922
54923 2008-04-29  Eric Blake  <ebb9@byu.net>
54924
54925         Use new header.
54926         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54927
54928 2008-04-29  Jim Meyering  <meyering@redhat.com>
54929
54930         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54931         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54932         by gnulib to exist and to declare e.g., inet_ntop.
54933         Don't include "inet_ntop.h", now removed.
54934
54935         * m4/arpa_inet_h.m4: Remove trailing blanks.
54936
54937 2008-04-29  Eric Blake  <ebb9@byu.net>
54938
54939         Silence valgrind on safe reads beyond potential array bounds.
54940         * lib/rawmemchr.valgrind: New file.
54941         * lib/strchrnul.valgrind: Likewise.
54942         * modules/rawmemchr (Files): Distribute new file.
54943         * modules/strchrnul (Files): Likewise.
54944         Suggested by Bruno Haible.
54945
54946 2008-04-29  Bruno Haible  <bruno@clisp.org>
54947
54948         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54949         (inet_ntop, inet_pton): Change portability warning's wording.
54950         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54951         Invoke gl_CHECK_NEXT_HEADERS.
54952         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54953         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54954         set ARPA_INET_H.
54955         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54956         * modules/arpa_inet (Description): No longer only for systems that
54957         lack it.
54958         (Depends-on): Add include_next.
54959         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54960         HAVE_ARPA_INET_H.
54961
54962 2008-04-29  Jim Meyering  <meyering@redhat.com>
54963
54964         * modules/mkdir (License): Re-license as LGPLv2+.
54965
54966 2008-04-29  Bruno Haible  <bruno@clisp.org>
54967
54968         * modules/rawmemchr (Maintainer): Set to Eric.
54969         * modules/strchrnul (Maintainer): Likewise.
54970
54971 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54972
54973         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54974         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54975
54976         * modules/arpa_inet (arpa/inet.h): Use them.
54977
54978 2008-04-28  Eric Blake  <ebb9@byu.net>
54979
54980         Test getndelim2.
54981         * modules/getndelim2-tests: New file.
54982         * tests/test-getndelim2.c: Likewise.
54983         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54984         stream.
54985         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54986
54987         * MODULES.html.sh: Document new module.
54988
54989 2008-04-20  Bruno Haible  <bruno@clisp.org>
54990
54991         * lib/c-stack.c (die): Use raise.
54992         * modules/c-stack (Depends-on): Add raise.
54993
54994 2008-04-28  Bruno Haible  <bruno@clisp.org>
54995
54996         Expect rpmatch to be declared.
54997         * lib/yesno.c (rpmatch): Remove declaration.
54998
54999         Declare rpmatch.
55000         * lib/stdlib.in.h (rpmatch): New declaration.
55001         * lib/rpmatch.c: Include <stdlib.h> first.
55002         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55003         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55005         HAVE_RPMATCH.
55006         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55008         (Include): Set to <stdlib.h>.
55009         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55010         HAVE_RPMATCH.
55011         * NEWS: Document the change.
55012
55013 2008-04-28  Bruno Haible  <bruno@clisp.org>
55014
55015         Change rpmatch to use nl_langinfo when appropriate.
55016         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55017         (N_): New macro.
55018         (localized_pattern): New function/macro.
55019         (try): Remove match, nomatch arguments. Copy the pattern into safe
55020         memory before caching it.
55021         (rpmatch): Use localized_pattern. Add translator comments.
55022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55023         Suggested by Eric Blake.
55024         * modules/rpmatch (Depends-on): Add stdbool.
55025
55026 2008-04-28  Eric Blake  <ebb9@byu.net>
55027
55028         Add rawmemchr module, matching glibc.
55029         * modules/string (Makefile.am): New indicator.
55030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55031         * lib/string.in.h (rawmemchr): Declare when appropriate.
55032         * modules/rawmemchr: New file.
55033         * m4/rawmemchr.m4: Likewise.
55034         * lib/rawmemchr.c: Likewise.
55035         * modules/rawmemchr-tests: Likewise.
55036         * tests/test-rawmemchr.c: Likewise.
55037         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55038         module.
55039         * modules/strchrnul (Depends-on): Add rawmemchr.
55040         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55041
55042         Whitespace cleanup.
55043         * tests/test-strchrnul.c: Reindent.
55044         * lib/strchrnul.c: Likewise.
55045
55046         Optimize and test strchrnul.
55047         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55048         * modules/strchrnul-tests: New file.
55049         * tests/test-strchrnul.c: Likewise.
55050
55051         Remove intprops dependency.
55052         * modules/memchr (Depends-on): Remove intprops.
55053         * modules/memrchr (Depends-on): Likewise.
55054         * modules/memchr2 (Depends-on): Likewise.
55055         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55056         * lib/memrchr.c (__memrchr): Likewise.
55057         * lib/memrchr2.c (memchr2): Likewise.
55058         Reported by Simon Josefsson.
55059
55060 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55061
55062         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55063         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55064
55065 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55066
55067         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55068
55069         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55070
55071         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55072
55073         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55074         declarations.
55075         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55076
55077         * m4/inet_pton.m4: Don't check for header files.
55078
55079         * m4/inet_ntop.m4: Don't check for header files.
55080
55081 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55082
55083         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55084         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55085         trigger for cygwin).
55086         Reported by Bruno Haible  <bruno@clisp.org>.
55087
55088 2008-04-28  Bruno Haible  <bruno@clisp.org>
55089
55090         * doc/posix-functions/strdup.texi: Mention mingw problem.
55091
55092 2008-04-27  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/stat-time-tests (Depends-on): Add sleep.
55095         * tests/test-stat-time.c (force_unlink): New function.
55096         (cleanup): Use it.
55097         (test_mtime): Remove the ctime related tests.
55098         (test_ctime): New function, containing the ctime related tests.
55099         (main): Call test_ctime, except on native Windows platforms.
55100
55101 2008-04-27  Bruno Haible  <bruno@clisp.org>
55102
55103         * lib/rpmatch.c (rpmatch): Add some comments.
55104         Reported by James Youngman <jay@gnu.org>.
55105
55106 2008-04-27  Bruno Haible  <bruno@clisp.org>
55107
55108         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55109         quiet NaNs.
55110
55111 2008-04-27  Bruno Haible  <bruno@clisp.org>
55112
55113         Make test-yesno.sh work on mingw.
55114         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55115         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55116         (main): Set stdin to binary mode.
55117         * modules/yesno-tests (Depends-on): Add binary-io.
55118
55119 2008-04-27  Bruno Haible  <bruno@clisp.org>
55120
55121         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55122         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55123         argument that lie outside the IEEE 854 domain.
55124         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55125         (gl_ISFINITE): Use it.
55126         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55127
55128 2008-04-27  Bruno Haible  <bruno@clisp.org>
55129
55130         Allow local renaming in config.h.
55131         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55132
55133 2008-04-27  Bruno Haible  <bruno@clisp.org>
55134
55135         * lib/memchr.c (__memchr): Change type of 'i'.
55136         * lib/memchr2.c (memchr2): Likewise.
55137
55138 2008-04-26  Eric Blake  <ebb9@byu.net>
55139         and Bruno Haible  <bruno@clisp.org>
55140
55141         Optimize and test memrchr.
55142         * modules/memrchr (Depends-on): Add intprops.
55143         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55144         * modules/memrchr-tests: New file.
55145         * tests/test-memrchr.c: New file.
55146
55147 2008-04-26  Bruno Haible  <bruno@clisp.org>
55148
55149         Add tentative support for DragonFly BSD.
55150         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55151         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55152         fp.
55153         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55154         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55155         * lib/fpurge.c (fpurge): Likewise.
55156         * lib/freadable.c (freaadable): Likewise.
55157         * lib/freadahead.c (freadahead): Likewise.
55158         * lib/freading.c (freading): Likewise.
55159         * lib/freadptr.c (freadptr): Likewise.
55160         * lib/freadseek.c (freadptrinc): Likewise.
55161         * lib/fseeko.c (fseeko): Likewise.
55162         * lib/fseterr.c (fseterr): Likewise.
55163         * lib/fwritable.c (fwritable): Likewise.
55164         * lib/fwriting.c (fwriting): Likewise.
55165
55166 2008-04-26  Bruno Haible  <bruno@clisp.org>
55167
55168         * lib/stdio-impl.h: New file.
55169         * lib/fbufmode.c: Include stdio-impl.h.
55170         (fbufmode): Use fp_, remove redundant #defines.
55171         * lib/fflush.c: Include stdio-impl.h.
55172         (clear_ungetc_buffer): Remove redundant #defines.
55173         * lib/fpurge.c: Include stdio-impl.h.
55174         (fpurge): Remove redundant #defines.
55175         * lib/freadable.c: Include stdio-impl.h.
55176         (freadable): Remove redundant #defines.
55177         * lib/freadahead.c: Include stdio-impl.h.
55178         (freadahead): Remove redundant #defines.
55179         * lib/freading.c: Include stdio-impl.h.
55180         (freading): Remove redundant #defines.
55181         * lib/freadptr.c: Include stdio-impl.h.
55182         (freadptr): Remove redundant #defines.
55183         * lib/freadseek.c: Include stdio-impl.h.
55184         (freadptrinc): Remove redundant #defines.
55185         * lib/fseeko.c: Include stdio-impl.h.
55186         (rpl_fseeko): Remove redundant #defines.
55187         * lib/fseterr.c: Include stdio-impl.h.
55188         (fseterr): Remove redundant #defines.
55189         * lib/fwritable.c: Include stdio-impl.h.
55190         (fwritable: Remove redundant #defines.
55191         * lib/fwriting.c: Include stdio-impl.h.
55192         (fwriting): Remove redundant #defines.
55193         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55194         * modules/fflush (Files): Likewise.
55195         * modules/fpurge (Files): Likewise.
55196         * modules/freadable (Files): Likewise.
55197         * modules/freadahead (Files): Likewise.
55198         * modules/freading (Files): Likewise.
55199         * modules/freadptr (Files): Likewise.
55200         * modules/freadseek (Files): Likewise.
55201         * modules/fseeko (Files): Likewise.
55202         * modules/fseterr (Files): Likewise.
55203         * modules/fwritable (Files): Likewise.
55204         * modules/fwriting (Files): Likewise.
55205
55206 2008-04-26  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55209         restore_seek_optimization, update_fpos_cache): New functions, extracted
55210         from rpl_fflush.
55211         (rpl_fflush): Use them.
55212         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55213         (gl_REPLACE_FFLUSH): Use it.
55214
55215 2008-04-26  Bruno Haible  <bruno@clisp.org>
55216
55217         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55218         on Solaris.
55219         * tests/test-xstrtoimax.sh: Likewise.
55220         * tests/test-xstrtoumax.sh: Likewise.
55221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55222
55223 2008-04-26  Bruno Haible  <bruno@clisp.org>
55224
55225         * modules/memchr-tests: New file.
55226         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55227
55228 2008-04-26  Eric Blake  <ebb9@byu.net>
55229             Bruno Haible  <bruno@clisp.org>
55230
55231         * lib/memchr.c: Include intprops.h.
55232         (__memchr): Optimize parallel detection of matching bytes. Rename local
55233         variables. Add explanatory comments.
55234
55235 2008-04-26  Bruno Haible  <bruno@clisp.org>
55236
55237         Fix module 'memchr', broken since 2000-10-28.
55238         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55239
55240 2008-04-26  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55243         comments.
55244
55245 2008-04-25  Eric Blake  <ebb9@byu.net>
55246
55247         Use native fstatat on cygwin 1.7.0.
55248         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55249         first.
55250
55251 2008-04-23  Eric Blake  <ebb9@byu.net>
55252
55253         Improve memchr2 performance.
55254         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55255         NUL bytes.
55256         * modules/memchr2 (Depends-on): Use intprops.h.
55257
55258 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55259
55260         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55261         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55262         <blp@cs.stanford.edu>.
55263
55264 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55265
55266         * lib/arpa_inet.in.h: New file.
55267
55268         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55269         (Makefile.am): Sed in substitute header file.
55270
55271         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55272         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55273
55274         * modules/inet_ntop (configure.ac): Use
55275         gl_ARPA_INET_MODULE_INDICATOR.
55276
55277         * modules/inet_pton (configure.ac): Use
55278         gl_ARPA_INET_MODULE_INDICATOR.
55279
55280 2008-04-22  Jim Meyering  <meyering@redhat.com>
55281
55282         * modules/verify (License): Re-license as LGPLv2+.
55283
55284 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55285
55286         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55287         parameter to void* as per POSIX standard (MinGW uses char*).
55288
55289 2008-04-21  Bruno Haible  <bruno@clisp.org>
55290
55291         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55292         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55293         Define to replacements if REPLACE_ISWCNTRL is 1.
55294         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55295         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55296         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55297         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55298         what it fixes.
55299         * doc/posix-functions/iswalpha.texi: Likewise.
55300         * doc/posix-functions/iswblank.texi: Likewise.
55301         * doc/posix-functions/iswcntrl.texi: Likewise.
55302         * doc/posix-functions/iswdigit.texi: Likewise.
55303         * doc/posix-functions/iswgraph.texi: Likewise.
55304         * doc/posix-functions/iswlower.texi: Likewise.
55305         * doc/posix-functions/iswprint.texi: Likewise.
55306         * doc/posix-functions/iswpunct.texi: Likewise.
55307         * doc/posix-functions/iswspace.texi: Likewise.
55308         * doc/posix-functions/iswupper.texi: Likewise.
55309         * doc/posix-functions/iswxdigit.texi: Likewise.
55310         Reported by Alain Guibert.
55311
55312 2008-04-21  Bruno Haible  <bruno@clisp.org>
55313
55314         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55315         Patch by Alain Guibert.
55316
55317 2008-04-21  Bruno Haible  <bruno@clisp.org>
55318
55319         Fix test failures on mingw.
55320         * tests/test-xstrtol.c (print_no_progname): New function.
55321         (main): Install it in error_print_progname hook.
55322         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55323         * tests/test-xstrtoimax.sh: Likewise.
55324         * tests/test-xstrtoumax.sh: Likewise.
55325
55326 2008-04-21  Bruno Haible  <bruno@clisp.org>
55327
55328         Fix test failure on mingw.
55329         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55330
55331 2008-04-21  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55334         Actually assign a value.
55335
55336 2008-04-20  Bruno Haible  <bruno@clisp.org>
55337
55338         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55339         take 2.
55340         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55341         'canonicalize-lgpl' module is also used.
55342         * lib/canonicalize-lgpl.c: Undo last change.
55343         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55344
55345 2008-04-20  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55348         config.h. Provide _mkdir based fallback for mingw.
55349         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55350         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55351         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55352         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55353         rather than defining mkdir in config.h.
55354         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55355         (gl_SYS_STAT_H_DEFAULTS): New macro.
55356         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55357         HAVE_IO_H any more.
55358         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55359         HAVE_DECL_MKDIR and HAVE_IO_H.
55360
55361 2008-04-20  Bruno Haible  <bruno@clisp.org>
55362
55363         * lib/isapipe.c: Port to native Windows platforms.
55364
55365 2008-04-20  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55368
55369 2008-04-21  Eric Blake  <ebb9@byu.net>
55370
55371         Work around preprocessors that don't handle UINTMAX_MAX.
55372         * lib/memchr2.c (memchr2): Avoid embedded #if.
55373         Reported by Alain Guibert, fix suggested by Bruno Haible.
55374
55375 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55376
55377         * doc/posix-functions/strftime.texi (strftime): Explain better
55378         Windows incompatibility.  Suggested by Micah Cowan
55379         <micah@cowan.name>.
55380
55381 2008-04-20  Bruno Haible  <bruno@clisp.org>
55382
55383         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55384         unistr/u8-mblen.
55385
55386 2008-04-20  Bruno Haible  <bruno@clisp.org>
55387
55388         Fix test failure on platforms with non-GNU iconv.
55389         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55390         (U_TO_U8): Use it, rather than u16_to_u8.
55391         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55392         units at the end of the input string.
55393         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55394
55395 2008-04-20  Bruno Haible  <bruno@clisp.org>
55396
55397         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55398         when the resulting length is 0.
55399         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55400
55401 2008-04-20  Bruno Haible  <bruno@clisp.org>
55402
55403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55404         works.
55405         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55406
55407 2008-04-20  Bruno Haible  <bruno@clisp.org>
55408
55409         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55410         * modules/tsearch-tests (configure.ac): Test for initstate function.
55411
55412 2008-04-20  Bruno Haible  <bruno@clisp.org>
55413
55414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55415         for nlink_t if missing.
55416         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55417
55418 2008-04-19  Bruno Haible  <bruno@clisp.org>
55419
55420         Work around snprintf bug on Linux libc5.
55421         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55423         gl_SNPRINTF_SIZE1.
55424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55425         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55426         that test failed.
55427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55428         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55429         * modules/snprintf (Files): Add m4/printf.m4.
55430         * modules/vsnprintf (Files): Likewise.
55431         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55432         * doc/posix-functions/vsnprintf.texi: Likewise.
55433
55434 2008-04-19  Bruno Haible  <bruno@clisp.org>
55435
55436         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55437         from 0.0058 to less than 10^-7.
55438
55439 2008-04-19  Bruno Haible  <bruno@clisp.org>
55440
55441         Fix rounding when a precision is given.
55442         * lib/vasnprintf.c (is_borderline): New function.
55443         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55444         9...9x.
55445         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55446         %e, %g.
55447         * tests/test-vasprintf-posix.c (test_function): Likewise.
55448         * tests/test-snprintf-posix.h (test_function): Likewise.
55449         * tests/test-sprintf-posix.h (test_function): Likewise.
55450         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55451         * tests/test-printf-posix.h (test_function): Likewise.
55452         * tests/test-printf-posix.output: Update.
55453         Reported by John Darrington <john@darrington.wattle.id.au> via
55454         Ben Pfaff <blp@cs.stanford.edu>.
55455
55456 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55457
55458         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55459         Suggested by Bruno Haible <bruno@clisp.org>.
55460
55461 2008-04-17  Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55464         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55465         implementation.
55466         Patch by Bruce Merry <bmerry@gmail.com>.
55467
55468 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55469
55470         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55471         doesn't work under Windows.
55472
55473 2008-04-16  Bruno Haible  <bruno@clisp.org>
55474
55475         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55476         New macros.
55477         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55478         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55479         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55480         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55481         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55482         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55483         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55484         macros.
55485         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55486         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55487         Northern Sotho, Uighur.
55488
55489 2008-04-16  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55492         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55493         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55494         Reported by Daniel Bergström <daniel@octocode.com>.
55495
55496 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55497             Bruno Haible  <bruno@clisp.org>
55498
55499         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55500         function.
55501         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55502         New functions, mostly extracted from gl_locale_name_default.
55503         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55504
55505 2008-04-16  Eric Blake  <ebb9@byu.net>
55506
55507         Adjust strtod detection to catch glibc 2.7 bug.
55508         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55509         Reported by John Gatewood Ham.
55510
55511 2008-04-16  Bruno Haible  <bruno@clisp.org>
55512
55513         Add tentative support for Linux libc5.
55514         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55515         * lib/fpurge.c (fpurge): Likewise.
55516         * lib/freadable.c (freadable): Likewise.
55517         * lib/freadahead.c (freadahead): Likewise.
55518         * lib/freading.c (freading): Likewise.
55519         * lib/freadptr.c (freadptr): Likewise.
55520         * lib/freadseek.c (freadptrinc): Likewise.
55521         * lib/fseeko.c (rpl_fseeko): Likewise.
55522         * lib/fseterr.c (fseterr): Likewise.
55523         * lib/fwritable.c (fwritable): Likewise.
55524         * lib/fwriting.c (fwriting): Likewise.
55525         Reported by Alain Guibert <alguibert+bts@free.fr>.
55526
55527 2008-04-15  Bruno Haible  <bruno@clisp.org>
55528
55529         * modules/mathl (configure.ac): Define module indicator.
55530
55531 2008-04-15  Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/logl.c (logl): Remove unused variables.
55534
55535 2008-04-15  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55538         fails.
55539
55540 2008-04-15  Bruno Haible  <bruno@clisp.org>
55541
55542         * lib/trim.c (trim2): Fix argument of isspace() macro.
55543
55544 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55545
55546         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55547         to 0.
55548         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55549
55550 2008-04-14  Bruno Haible  <bruno@clisp.org>
55551
55552         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55553         AC_LANG_PROGRAM argument.
55554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55555         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55558         * m4/math_h.m4 (gl_MATH_H): Likewise.
55559         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55561         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55562         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55563         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55564         * m4/regex.m4 (gl_REGEX): Likewise.
55565         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55566         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55568         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55570         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55572         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55573
55574 2008-04-14  Jim Meyering  <meyering@redhat.com>
55575
55576         test-strtod: fix typos: s/abs/fabs/
55577         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55578
55579 2008-04-13  Bruno Haible  <bruno@clisp.org>
55580
55581         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55582         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55583         module is also used and while not building the reloc-wrapper.
55584
55585 2008-04-13  Bruno Haible  <bruno@clisp.org>
55586
55587         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55588
55589 2008-04-13  Bruno Haible  <bruno@clisp.org>
55590
55591         Fix AIX compilation failure introduced on 2008-04-02.
55592         * tests/test-frexp.c (exp): Undefine before redefining.
55593         * tests/test-frexpl.c (exp): Likewise.
55594
55595 2008-04-13  Bruno Haible  <bruno@clisp.org>
55596
55597         Work around a HP-UX stdio bug.
55598         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55599         * tests/test-ftello.c (main): Likewise.
55600         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55601         * doc/posix-functions/ftello.texi: Likewise.
55602
55603 2008-04-13  Bruno Haible  <bruno@clisp.org>
55604
55605         Make test-signbit pass on HP-UX/hppa.
55606         * tests/test-signbit.c (minus_zerol): New variable.
55607         (test_signbitl): Use it.
55608
55609 2008-04-13  Bruno Haible  <bruno@clisp.org>
55610
55611         Make truncl work on OSF/1 4.0.
55612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55613         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55614         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55616         HAVE_DECL_TRUNCL.
55617         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55618         HAVE_DECL_TRUNCL.
55619         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55620
55621 2008-04-13  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55624
55625 2008-04-13  Bruno Haible  <bruno@clisp.org>
55626
55627         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55628         expression, so as to avoid HP-UX 11 cc compiler bug.
55629
55630 2008-04-13  Bruno Haible  <bruno@clisp.org>
55631
55632         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55633
55634 2008-04-13  Bruno Haible  <bruno@clisp.org>
55635
55636         * lib/git-merge-changelog.c: Remove empty declaration outside of
55637         functions.
55638
55639 2008-04-13  Bruno Haible  <bruno@clisp.org>
55640
55641         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55642
55643 2008-04-13  Bruno Haible  <bruno@clisp.org>
55644
55645         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55646         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55648         also if it exists but lacks definitions of the SHUT_* macros.
55649         * modules/sys_socket (Description): Update.
55650         Reported by Elbert Pol <e.pol@chello.nl>.
55651
55652 2008-04-13  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/localcharset.c (OS2): Don't redefine if already defined.
55655         Reported by Elbert Pol <e.pol@chello.nl>.
55656
55657 2008-04-13  Bruno Haible  <bruno@clisp.org>
55658
55659         * lib/binary-io.h [__EMX__]: Include <io.h>.
55660         Reported by Elbert Pol <e.pol@chello.nl>.
55661
55662 2008-04-12  Bruno Haible  <bruno@clisp.org>
55663
55664         * lib/fpucw.h: Enable the definitions also for x86_64.
55665         Needed for NetBSD/x86_64.
55666         Reported by Thomas Klausner <tk@giga.or.at>.
55667
55668 2008-04-12  Bruno Haible  <bruno@clisp.org>
55669
55670         * tests/test-strtod.c: Include isnand.h.
55671         (main): Use isnand instead of isnan.
55672         Reported by Jim Meyering.
55673
55674 2008-04-12  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55678
55679 2008-04-12  Jim Meyering  <meyering@redhat.com>
55680
55681         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55682
55683 2008-04-12  Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55686         Reported by Elbert Pol <e.pol@chello.nl>.
55687
55688 2008-04-12  Eric Blake  <ebb9@byu.net>
55689
55690         Work around Solaris 10 math.h bug.
55691         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55692         (gl_MATH_H_DEFAULTS): Set up default.
55693         * modules/math (Makefile.am): Replace new indicators.
55694         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55695         * tests/test-math.c (main): Test this.
55696         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55697         * doc/posix-headers/math.texi (math.h): Mention bug.
55698         Reported by Nelson H. F. Beebe and Jim Meyering.
55699
55700 2008-04-11  Bruno Haible  <bruno@clisp.org>
55701
55702         Adapt to future versions of Apple GCC.
55703         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55704         Reported by Peter O'Gorman <peter@pogma.com>.
55705
55706 2008-04-11  Bruno Haible  <bruno@clisp.org>
55707
55708         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55709
55710 2008-04-11  Bruno Haible  <bruno@clisp.org>
55711
55712         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55713
55714         * modules/getaddrinfo-tests (Makefile.am): Define
55715         test_getaddrinfo_LDADD.
55716
55717 2008-04-11  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55720         (init): Fix syntax error.
55721         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55722         is declared.
55723
55724 2008-04-11  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55727         * modules/glob (Depends-on): Add stdbool.
55728
55729 2008-04-11  Bruno Haible  <bruno@clisp.org>
55730
55731         * lib/trim.c: Include <string.h>.
55732
55733 2008-04-11  Eric Blake  <ebb9@byu.net>
55734
55735         Avoid compile failure on OS/2.
55736         * lib/regex_internal.h (internal_function): Disable optimization
55737         on OS/2 (__EMX__), where it caused compiler error.
55738         Reported by Elbert Pol.
55739
55740 2008-04-11  Bruno Haible  <bruno@clisp.org>
55741
55742         Flush the standard error stream before aborting. Needed on mingw.
55743         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55744         * tests/test-array_list.c (ASSERT): Likewise.
55745         * tests/test-array_oset.c (ASSERT): Likewise.
55746         * tests/test-avltree_list.c (ASSERT): Likewise.
55747         * tests/test-avltree_oset.c (ASSERT): Likewise.
55748         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55749         * tests/test-binary-io.c (ASSERT): Likewise.
55750         * tests/test-byteswap.c (ASSERT): Likewise.
55751         * tests/test-c-ctype.c (ASSERT): Likewise.
55752         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55753         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55754         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55755         * tests/test-c-strstr.c (ASSERT): Likewise.
55756         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55757         * tests/test-canonicalize.c (ASSERT): Likewise.
55758         * tests/test-carray_list.c (ASSERT): Likewise.
55759         * tests/test-ceilf1.c (ASSERT): Likewise.
55760         * tests/test-ceilf2.c (ASSERT): Likewise.
55761         * tests/test-ceill.c (ASSERT): Likewise.
55762         * tests/test-count-one-bits.c (ASSERT): Likewise.
55763         * tests/test-fbufmode.c (ASSERT): Likewise.
55764         * tests/test-fflush2.c (ASSERT): Likewise.
55765         * tests/test-floorf1.c (ASSERT): Likewise.
55766         * tests/test-floorf2.c (ASSERT): Likewise.
55767         * tests/test-floorl.c (ASSERT): Likewise.
55768         * tests/test-fopen.c (ASSERT): Likewise.
55769         * tests/test-fpending.c (ASSERT): Likewise.
55770         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55771         * tests/test-fpurge.c (ASSERT): Likewise.
55772         * tests/test-freadable.c (ASSERT): Likewise.
55773         * tests/test-freadahead.c (ASSERT): Likewise.
55774         * tests/test-freading.c (ASSERT): Likewise.
55775         * tests/test-freadptr.c (ASSERT): Likewise.
55776         * tests/test-freadptr2.c (ASSERT): Likewise.
55777         * tests/test-freadseek.c (ASSERT): Likewise.
55778         * tests/test-freopen.c (ASSERT): Likewise.
55779         * tests/test-frexp.c (ASSERT): Likewise.
55780         * tests/test-frexpl.c (ASSERT): Likewise.
55781         * tests/test-fseek.c (ASSERT): Likewise.
55782         * tests/test-fseeko.c (ASSERT): Likewise.
55783         * tests/test-fstrcmp.c (ASSERT): Likewise.
55784         * tests/test-ftell.c (ASSERT): Likewise.
55785         * tests/test-ftello.c (ASSERT): Likewise.
55786         * tests/test-func.c (ASSERT): Likewise.
55787         * tests/test-fwritable.c (ASSERT): Likewise.
55788         * tests/test-fwriting.c (ASSERT): Likewise.
55789         * tests/test-getdelim.c (ASSERT): Likewise.
55790         * tests/test-getline.c (ASSERT): Likewise.
55791         * tests/test-i-ring.c (ASSERT): Likewise.
55792         * tests/test-iconv-utf.c (ASSERT): Likewise.
55793         * tests/test-iconv.c (ASSERT): Likewise.
55794         * tests/test-isfinite.c (ASSERT): Likewise.
55795         * tests/test-isnand.c (ASSERT): Likewise.
55796         * tests/test-isnanf.c (ASSERT): Likewise.
55797         * tests/test-isnanl.h (ASSERT): Likewise.
55798         * tests/test-ldexpl.c (ASSERT): Likewise.
55799         * tests/test-linked_list.c (ASSERT): Likewise.
55800         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55801         * tests/test-localename.c (ASSERT): Likewise.
55802         * tests/test-lseek.c (ASSERT): Likewise.
55803         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55804         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55805         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55806         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55807         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55808         * tests/test-mbschr.c (ASSERT): Likewise.
55809         * tests/test-mbscspn.c (ASSERT): Likewise.
55810         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55811         * tests/test-mbspbrk.c (ASSERT): Likewise.
55812         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55813         * tests/test-mbsrchr.c (ASSERT): Likewise.
55814         * tests/test-mbsspn.c (ASSERT): Likewise.
55815         * tests/test-mbsstr1.c (ASSERT): Likewise.
55816         * tests/test-mbsstr2.c (ASSERT): Likewise.
55817         * tests/test-mbsstr3.c (ASSERT): Likewise.
55818         * tests/test-memchr2.c (ASSERT): Likewise.
55819         * tests/test-memmem.c (ASSERT): Likewise.
55820         * tests/test-open.c (ASSERT): Likewise.
55821         * tests/test-printf-frexp.c (ASSERT): Likewise.
55822         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55823         * tests/test-printf-posix.c (ASSERT): Likewise.
55824         * tests/test-quotearg.c (ASSERT): Likewise.
55825         * tests/test-rbtree_list.c (ASSERT): Likewise.
55826         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55827         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55828         * tests/test-round1.c (ASSERT): Likewise.
55829         * tests/test-roundf1.c (ASSERT): Likewise.
55830         * tests/test-roundl.c (ASSERT): Likewise.
55831         * tests/test-signbit.c (ASSERT): Likewise.
55832         * tests/test-sleep.c (ASSERT): Likewise.
55833         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55834         * tests/test-snprintf.c (ASSERT): Likewise.
55835         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55836         * tests/test-stat-time.c (ASSERT): Likewise.
55837         * tests/test-strcasestr.c (ASSERT): Likewise.
55838         * tests/test-strerror.c (ASSERT): Likewise.
55839         * tests/test-striconv.c (ASSERT): Likewise.
55840         * tests/test-striconveh.c (ASSERT): Likewise.
55841         * tests/test-striconveha.c (ASSERT): Likewise.
55842         * tests/test-strsignal.c (ASSERT): Likewise.
55843         * tests/test-strstr.c (ASSERT): Likewise.
55844         * tests/test-strtod.c (ASSERT): Likewise.
55845         * tests/test-trunc1.c (ASSERT): Likewise.
55846         * tests/test-trunc2.c (ASSERT): Likewise.
55847         * tests/test-truncf1.c (ASSERT): Likewise.
55848         * tests/test-truncf2.c (ASSERT): Likewise.
55849         * tests/test-truncl.c (ASSERT): Likewise.
55850         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55851         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55852         * tests/test-vasnprintf.c (ASSERT): Likewise.
55853         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55854         * tests/test-vasprintf.c (ASSERT): Likewise.
55855         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55856         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55857         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55858         * tests/test-vsnprintf.c (ASSERT): Likewise.
55859         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55860         * tests/test-wcwidth.c (ASSERT): Likewise.
55861         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55862         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55863         * tests/test-xvasprintf.c (ASSERT): Likewise.
55864         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55865         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55866         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55867         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55868         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55869         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55870         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55871         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55872         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55873         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55874         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55875         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55876         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55877         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55878         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55879         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55880         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55881         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55882         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55883         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55884         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55885         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55886         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55887         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55888         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55889         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55890         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55891         * tests/unictype/test-combining.c (ASSERT): Likewise.
55892         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55893         * tests/unictype/test-digit.c (ASSERT): Likewise.
55894         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55895         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55896         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55897         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55898         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55899         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55900         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55901         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55902         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55903         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55904         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55905         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55906         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55907         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55908         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55909         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55910         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55911         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55912         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55913         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55914         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55915         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55916         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55917         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55918         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55919         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55920         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55921         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55922         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55923         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55924         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55925         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55926         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55927         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55928         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55929         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55930         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55931         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55932         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55933         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55934         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55935         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55936         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55937         Reported by Eric Blake.
55938
55939 2008-04-11  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/wchar.in.h: Tweak comment.
55942
55943 2008-04-11  Bruno Haible  <bruno@clisp.org>
55944
55945         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55946         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55947         gl_COMMON.
55948         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55949
55950 2008-04-11  Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55953
55954 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55955
55956         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55957         of attempting to use non-existing /dev/*random.  Based on patch
55958         from Adam Strzelecki <ono@java.pl> in
55959         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55960
55961 2008-04-08  Bruno Haible  <bruno@clisp.org>
55962
55963         Add tentative support for emx+gcc.
55964         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55965         * lib/fpurge.c (fpurge): Likewise.
55966         * lib/freadable.c (freadable): Likewise.
55967         * lib/freadahead.c (freadahead): Likewise.
55968         * lib/freading.c (freading): Likewise.
55969         * lib/freadptr.c (freadptr): Likewise.
55970         * lib/freadseek.c (freadptrinc): Likewise.
55971         * lib/fseeko.c (rpl_fseeko): Likewise.
55972         * lib/fseterr.c (fseterr): Likewise.
55973         * lib/fwritable.c (fwritable): Likewise.
55974         * lib/fwriting.c (fwriting): Likewise.
55975         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55976
55977 2008-04-09  Eric Blake  <ebb9@byu.net>
55978
55979         Avoid some autoconf warnings.
55980         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55981         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55982         * m4/afs.m4 (gl_AFS): Likewise.
55983         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55984         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55986         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55987         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55988         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55989         (AC_CHECK_DECLS_ONCE): Likewise.
55990         Rename file...
55991         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55992         gnulib-tool requires autoconf 2.59 or better.
55993         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55994
55995 2008-04-08  Eric Blake  <ebb9@byu.net>
55996
55997         Use 'git describe --match' if present (added in git 1.5.5).
55998         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55999         if possible.
56000
56001 2008-04-08  Bruno Haible  <bruno@clisp.org>
56002
56003         Add tentative support for OpenServer.
56004         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56005         _ptr, _cnt.
56006         * lib/fpurge.c (fpurge): Likewise.
56007         * lib/freadable.c (freadable): Likewise.
56008         * lib/freadahead.c (freadahead): Likewise.
56009         * lib/freading.c (freading): Likewise.
56010         * lib/freadptr.c (freadptr): Likewise.
56011         * lib/freadseek.c (freadptrinc): Likewise.
56012         * lib/fseeko.c (rpl_fseeko): Likewise.
56013         * lib/fseterr.c (fseterr): Likewise.
56014         * lib/fwritable.c (fwritable): Likewise.
56015         * lib/fwriting.c (fwriting): Likewise.
56016         Reported by Roger Cornelius <rac@tenzing.org> and
56017         Brian K. White <brian@aljex.com>.
56018
56019 2008-04-06  Jim Meyering  <meyering@redhat.com>
56020
56021         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56022
56023 2008-04-06  Bruno Haible  <bruno@clisp.org>
56024
56025         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56026         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56027         * tests/test-printf-posix.sh: Likewise.
56028         * tests/test-vfprintf-posix.sh: Likewise.
56029         * tests/test-vprintf-posix.sh: Likewise.
56030         * tests/test-xprintf-posix.sh: Likewise.
56031
56032 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56033
56034         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56035         hide error from 'ls', needed on OS/2.
56036         Report by Elbert Pol <elbert.pol@gmail.com>.
56037
56038 2008-04-04  Eric Blake  <ebb9@byu.net>
56039
56040         Make test-fseeko.c failures meaningful.
56041         * tests/test-fseeko.c: Print line number on failure.
56042         * tests/test-fseek.c: Likewise.
56043         Reported by Nelson H. F. Beebe.
56044
56045         Improve strtod bug detection check.
56046         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56047         required for Solaris 10.
56048         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56049
56050 2008-04-04  Bruno Haible  <bruno@clisp.org>
56051
56052         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56053         by m4/setenv.m4.
56054
56055 2008-04-03  Eric Blake  <ebb9@byu.net>
56056
56057         Ensure sane .version contents.
56058         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56059         version string.
56060         * build-aux/git-version-gen: Improve documentation.
56061
56062         Make GNU make output nicer.
56063         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56064         MAKECMDGOALS to enforce message for all command line targets.  Set
56065         srcdir for use in maint.mk.
56066
56067         Another maintainer tweak.
56068         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56069         a target that regenerates version.
56070
56071 2008-04-03  Jim Meyering  <meyering@redhat.com>
56072
56073         vc-list-files: don't cause coreutils "make po-check" failure
56074         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56075
56076 2008-04-03  Eric Blake  <ebb9@byu.net>
56077
56078         Allow VPATH usage of vc-list-files.
56079         * build-aux/vc-list-files (scriptversion): Add timestamp.
56080         (options): Add --help, --version, -C.
56081         (CVS): Support installed cvsu.
56082
56083 2008-04-02  Bruno Haible  <bruno@clisp.org>
56084
56085         Avoid some "statement with no effect" warnings from gcc.
56086         * tests/test-wctype.c (main): Explicitly ignore unused values.
56087         Reported by Jim Meyering.
56088
56089 2008-04-02  Jim Meyering  <meyering@redhat.com>
56090
56091         Avoid some warnings from "gcc -Wshadow".
56092         * tests/test-frexp.c (exp): Define to a different identifier.
56093         * tests/test-frexpl.c (exp): Likewise.
56094
56095 2008-04-03  Jim Meyering  <meyering@redhat.com>
56096
56097         bootstrap: remove dangling *.[ch] symlinks from lib
56098         * build-aux/bootstrap [dangling symlink removal]: Move find's
56099         -depth option to precede all others, to avoid a warning.
56100         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56101
56102 2008-04-02  Bruno Haible  <bruno@clisp.org>
56103
56104         Avoid some warnings from "gcc -Wshadow".
56105         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56106         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56107         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56108         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56109         Reported by Jim Meyering.
56110
56111 2008-04-01  Bruno Haible  <bruno@clisp.org>
56112
56113         Fix test to work on IRIX 6.5 with cc.
56114         * tests/test-math.c (numeric_equal): New function.
56115         (main): Use it.
56116
56117 2008-04-01  Bruno Haible  <bruno@clisp.org>
56118
56119         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56120
56121 2008-04-01  Bruno Haible  <bruno@clisp.org>
56122
56123         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56124         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56125         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56126         (Depends-on): Remove math.
56127
56128         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56130         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56131         (Depends-on): Remove math.
56132
56133         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56134         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56135         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56136         (Depends-on): Remove math.
56137         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56138         (Depends-on): Remove math.
56139
56140         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56141         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56142         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56143         (Depends-on): Remove math.
56144         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56145         (Depends-on): Remove math.
56146
56147         * tests/test-round1.c: Include nan.h.
56148         (main): Use NaNd instead of NAN.
56149         * modules/round-tests (Files): Add tests/nan.h.
56150
56151         * tests/test-trunc1.c: Include nan.h.
56152         (main): Use NaNd instead of NAN.
56153         * modules/trunc-tests (Files): Add tests/nan.h.
56154
56155         * tests/test-roundf1.c: Include nan.h.
56156         (main): Use NaNf instead of NAN.
56157         * modules/roundf-tests (Files): Add tests/nan.h.
56158
56159         * tests/test-truncf1.c: Include nan.h.
56160         (main): Use NaNf instead of NAN.
56161         * modules/truncf-tests (Files): Add tests/nan.h.
56162
56163         * tests/test-ceilf1.c: Include nan.h.
56164         (main): Use NaNf instead of NAN.
56165         * modules/ceilf-tests (Files): Add tests/nan.h.
56166
56167         * tests/test-floorf1.c: Include nan.h.
56168         (main): Use NaNf instead of NAN.
56169         * modules/floorf-tests (Files): Add tests/nan.h.
56170
56171         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56172         (main): Use NaNf instead of NAN.
56173         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56174
56175         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56176         (main): Use NaNd instead of NAN.
56177         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56178
56179         * tests/test-frexp.c: Include nan.h.
56180         (main): Use NaNd instead of NAN.
56181         * modules/frexp-tests (Files): Add tests/nan.h.
56182
56183         * lib/isnan.c: Don't include <math.h>.
56184         (FUNC): Don't use NAN macro.
56185         * modules/isnand-nolibm (Depends-on): Remove math.
56186         * modules/isnanf-nolibm (Depends-on): Remove math.
56187         * modules/isnanl (Depends-on): Remove math.
56188         * modules/isnanl-nolibm (Depends-on): Remove math.
56189
56190         * tests/nan.h: New file.
56191
56192 2008-04-01  Eric Blake  <ebb9@byu.net>
56193
56194         Fix typos.
56195         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56196         values to be the right type.
56197
56198         For now, cater to gnulib strtod inaccuracies.
56199         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56200         fractional results.  While not as nice from a QoI perspective, it
56201         is a quicker patch than correctly implementing decimal to binary
56202         rounding.
56203
56204 2008-03-31  Eric Blake  <ebb9@byu.net>
56205
56206         Guarantee a definition of NAN.
56207         * lib/math.in.h (NAN): Define if missing.
56208         * tests/test-math.c (main): Test it.
56209         * doc/posix-headers/math.texi (math.h): Document this.
56210         * lib/isnan.c (rpl_isnand): Use it.
56211         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56212         * tests/test-floorf1.c (NaN): Likewise.
56213         * tests/test-frexp.c (NaN): Likewise.
56214         * tests/test-isnand.c (NaN): Likewise.
56215         * tests/test-isnanf.c (NaN): Likewise.
56216         * tests/test-round1.c (NaN): Likewise.
56217         * tests/test-roundf1.c (NaN): Likewise.
56218         * tests/test-snprintf-posix.h (NaN): Likewise.
56219         * tests/test-sprintf-posix.h (NaN): Likewise.
56220         * tests/test-trunc1.c (NaN): Likewise.
56221         * tests/test-truncf1.c (NaN): Likewise.
56222         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56223         * tests/test-vasprintf-posix.c (NaN): Likewise.
56224         * modules/isnand-nolibm (Depends-on): Add math.
56225         * modules/isnanf-nolibm (Depends-on): Likewise.
56226         * modules/isnanl (Depends-on): Likewise.
56227         * modules/isnanl-nolibm (Depends-on): Likewise.
56228         * modules/snprintf-posix-tests (Depends-on): Likewise.
56229         * modules/sprintf-posix-tests (Depends-on): Likewise.
56230         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56231         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56232         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56233         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56234
56235 2008-03-31  Bruno Haible  <bruno@clisp.org>
56236
56237         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56238         * doc/posix-functions/strtod.texi: Likewise.
56239
56240 2008-03-31  Bruno Haible  <bruno@clisp.org>
56241
56242         * tests/test-strtod.c (main): Don't use C99 syntax.
56243
56244 2008-03-31  Bruno Haible  <bruno@clisp.org>
56245
56246         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56247         Reported by Eric Blake.
56248
56249 2008-03-31  Jim Meyering  <meyering@redhat.com>
56250
56251         Don't compare actual signbit return values.
56252         * tests/test-strtod.c (main): Rather, compare only their
56253         zero/non-zero nature.
56254
56255 2008-03-31  Eric Blake  <ebb9@byu.net>
56256
56257         More strtod documentation.
56258         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56259         failures as distinct bugs.
56260
56261 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56262
56263         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56264         Problem reported by Erik Benada in
56265         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56266
56267 2008-03-30  Bruno Haible  <bruno@clisp.org>
56268
56269         * tests/test-strtod.c: Add comments about which assertion fails on which
56270         platform.
56271         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56272
56273 2008-03-30  Eric Blake  <ebb9@byu.net>
56274
56275         Test signbit behavior on zeros.
56276         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56277         (test_signbitd, test_signbitl): Likewise.
56278
56279         More strtod touchups.
56280         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56281         sign of negative underflow, for now.  Use .5, not .1.
56282         * doc/posix-functions/strtod.texi (strtod): Mention these
56283         limitations.
56284         Reported by Jim Meyering.
56285
56286 2008-03-30  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56289         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56290
56291 2008-03-30  Bruno Haible  <bruno@clisp.org>
56292
56293         Avoid failure when attempting to return empty iconv results on some
56294         platforms.
56295         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56296         allocation, don't report ENOMEM when the resulting string is empty.
56297
56298 2008-03-30  Bruno Haible  <bruno@clisp.org>
56299
56300         Fix buffer overrun.
56301         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56302         Don't consider the width for tmp_length. Check count against tmp_length
56303         before doing the padding. Ensure enough allocation during padding.
56304
56305 2008-03-30  Eric Blake  <ebb9@byu.net>
56306
56307         strtod touchups.
56308         * lib/strtod.c (strtod): Avoid compiler warnings.
56309         Reported by Jim Meyering.
56310
56311 2008-03-30  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56314         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56315         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56316         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56317         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56318         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56319         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56320         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56321
56322         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56323         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56324         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56325         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56326         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56327         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56328         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56329         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56330
56331         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56332         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56333         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56334         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56335         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56336         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56337         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56338         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56339
56340         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56341         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56342
56343         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56344         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56345
56346         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56347         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56348
56349         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56351         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56352
56353         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56355         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56356
56357         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56359         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56360
56361         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56363         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56364
56365         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56366         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56368         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56369         (Depends-on): Add EOVERFLOW.
56370         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56371         (Depends-on): Add EOVERFLOW.
56372         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56373         (Depends-on): Add EOVERFLOW.
56374         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56375         (Depends-on): Add EOVERFLOW.
56376         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56377         (Depends-on): Add EOVERFLOW.
56378         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56379         (Depends-on): Add EOVERFLOW.
56380         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56381         (Depends-on): Add EOVERFLOW.
56382         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56383         (Depends-on): Add EOVERFLOW.
56384
56385         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56387         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56388
56389         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56391         * modules/snprintf (Depends-on): Add EOVERFLOW.
56392
56393         * lib/poll.c (EOVERFLOW): Remove fallback.
56394         * modules/poll (Depends-on): Add EOVERFLOW.
56395
56396         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56397         * modules/getugroups (Depends-on): Add EOVERFLOW.
56398
56399         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56400         * modules/getdelim (Depends-on): Add EOVERFLOW.
56401
56402         * lib/ftell.c (EOVERFLOW): Remove fallback.
56403         * modules/ftell (Depends-on): Add EOVERFLOW.
56404
56405         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56407         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56408
56409         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56410
56411         * modules/EOVERFLOW-tests: New file.
56412         * tests/test-EOVERFLOW.c: New file.
56413
56414         * modules/EOVERFLOW: New file.
56415         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56416
56417 2008-03-30  Bruno Haible  <bruno@clisp.org>
56418
56419         Fix bug introduced on 2007-06-10.
56420         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56421         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56422
56423 2008-03-30  Bruno Haible  <bruno@clisp.org>
56424
56425         Improve freadseek's efficiency after ungetc.
56426         * lib/freadseek.c: Include freadahead.h.
56427         (freadptrinc): New function, extracted from freadseek.
56428         (freadseek): Use it in a loop. Use freadahead to determine the number
56429         of loop iterations.
56430         * modules/freadseek (Depends-on): Add freadahead.
56431         (configure.ac): Require AC_C_INLINE.
56432
56433 2008-03-30  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/freadseek.c (freadseek): Don't ignore the return value of
56436         freadptr.
56437
56438 2008-03-29  Eric Blake  <ebb9@byu.net>
56439
56440         Add hex float support.
56441         * modules/strtod (Depends-on): Add c-ctype.
56442         (Link): Mention POW_LIB.
56443         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56444         whitespace between 'e' and exponent.
56445         * tests/test-strtod.c (main): Enable hex float tests.
56446         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56447         now provides.
56448
56449         Document various strtod bugs, with some fixes.
56450         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56451         "-0x", "inf", "nan", and hex constants.
56452         * doc/posix-functions/atof.texi (atof): Likewise.
56453         * modules/stdlib (Makefile.am): Support strtod.
56454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56455         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56456         detect additional strtod bugs.
56457         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56458         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56459         bool where appropriate.  Parse 'inf' and 'nan'.
56460         * tests/test-strtod.c: New file.
56461         * modules/strtod (Depends-on): Add stdbool, stdlib.
56462         (configure.ac): Turn on module indicator.
56463         * modules/strtod-tests: New module.
56464
56465 2008-03-29  Eric Blake  <ebb9@byu.net>
56466
56467         Fix ftell on mingw.
56468         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56469         * modules/ftell-tests (Depends-on): Add binary-io.
56470         * modules/ftello-tests (Depends-on): Likewise.
56471         * tests/test-ftell.c (main): Enhance test to cover behavior after
56472         ungetc.  Enforce binary mode.
56473         * tests/test-ftello.c (main): Likewise.
56474
56475         Pass test-freadseek on cygwin.
56476         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56477         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56478         ungetc buffer.
56479
56480         * tests/test-fflush2.c (main): Fix typo.
56481
56482 2008-03-29  Bruno Haible  <bruno@clisp.org>
56483
56484         * tests/test-fflush2.c (main): Temporarily disable the contents of
56485         this test.
56486         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56487         Reported by Eric Blake.
56488
56489 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56490
56491         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56492         (GC_SHA224_DIGEST_SIZE): Add.
56493
56494         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56495         (gc_hash_digest_length): Likewise.
56496         (gc_hash_buffer): Likewise.
56497
56498 2008-03-25  Bruno Haible  <bruno@clisp.org>
56499
56500         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56501         detail which gettext release to use.
56502         Reported by Simon Josefsson.
56503
56504 2008-03-26  Jim Meyering  <meyering@redhat.com>
56505
56506         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56507         * modules/gnumakefile (clean-GNUmakefile): Also, use
56508         test ... && ... || : syntax rather than if-then ... fi.
56509
56510         gnumakefile: Don't double-quote-expand $(VPATH) value.
56511         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56512
56513 2008-03-24  Eric Blake  <ebb9@byu.net>
56514
56515         Alter GNUmakefile to install into top directory.
56516         * modules/maintainer-makefile: Split, and add dependency...
56517         * modules/gnumakefile: to this new module.
56518         * build-aux/GNUmakefile: Move...
56519         * top/GNUmakefile: ...here.
56520         * build-aux/maint.mk: Move...
56521         * top/maint.mk: ...here.
56522         * MODULES.html.sh (Support for maintaining...): Document new
56523         module.
56524
56525 2008-03-23  Bruno Haible  <bruno@clisp.org>
56526
56527         * gnulib-tool: New options --vc-files, --no-vc-files.
56528         (func_usage): Document them.
56529         (vc_files): New variable.
56530         (func_import): Consider vc_files.
56531         (func_create_testdir): Set vc_files to empty.
56532         Suggested by Jim Meyering and Karl Berry.
56533
56534 2008-03-23  Bruno Haible  <bruno@clisp.org>
56535
56536         Fix regex compilation error on HP-UX 11.
56537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56538         * modules/regex (Files): Add m4/mbstate_t.m4.
56539         Reported by Ton Voon <ton.voon@altinity.com>.
56540
56541 2008-03-23  Bruno Haible  <bruno@clisp.org>
56542
56543         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56544
56545 2008-03-23  Eric Blake  <ebb9@byu.net>
56546             Bruno Haible  <bruno@clisp.org>
56547
56548         Install files from top/ in the destination directory.
56549         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56550         augmentation also for the files from top/.
56551         (func_import, func_create_testdir): Rewrite file names:
56552         top/filename -> filename.
56553
56554 2008-03-23  Bruno Haible  <bruno@clisp.org>
56555
56556         Tweak "gnulib --version" output.
56557         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56558
56559 2008-03-23  Bruno Haible  <bruno@clisp.org>
56560
56561         Tweak "gnulib --version" output.
56562         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56563         rather than contents of ChangeLog, when possible.
56564
56565 2008-03-21  Eric Blake  <ebb9@byu.net>
56566
56567         More --version tweaks.
56568         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56569         date of last ChangeLog entry.
56570
56571 2008-03-21  Jim Meyering  <meyering@redhat.com>
56572
56573         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56574
56575 2008-03-20  Eric Blake  <ebb9@byu.net>
56576
56577         VPATH fix.
56578         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56579
56580 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56581
56582         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56583         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56584
56585 2008-03-20  Eric Blake  <ebb9@byu.net>
56586
56587         Sync GNUmakefile with coreutils.
56588         * build-aux/GNUmakefile (have-Makefile): Rename...
56589         (_have-Makefile): ...to this, for namespace consideration.
56590         (GNUmakefile.cfg): Include, if present.
56591         (_autoreconf): Define a default.
56592         (_is-dist-target): New rule for rebuilds to pick up intra-release
56593         version.
56594         (maint-cfg.mk): Rename...
56595         (cfg.mk): ...to this.
56596
56597 2008-03-18  Jim Meyering  <meyering@redhat.com>
56598
56599         New script and module: mktempd
56600         * MODULES.html.sh (maint+release support): Add mktempd.
56601         * build-aux/mktempd: New file.
56602         * modules/mktempd: New file.
56603
56604 2008-03-15  Jim Meyering  <meyering@redhat.com>
56605
56606         Undo last change.
56607         * lib/sha1.c, lib/md5.c: 63 != ~63.
56608         Reported by Andreas Schwab.
56609
56610         sha1.c, md5.c: Hoist a redundant expression.
56611         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56612         "ctx->buflen" only once, before calling *_process_block.
56613         * lib/md5.c (md5_process_bytes): Likewise.
56614
56615 2008-03-14  Eric Blake  <ebb9@byu.net>
56616
56617         Bump copyright year in files generated by gnulib-tool.
56618         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56619         gnulib-tool, rather than hard-coding it.
56620
56621         Fix 'gnulib-tool --version' output to work with git.
56622         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56623         (startup): ...here.
56624         (func_version): Use it to invoke git-version-gen, rather than
56625         relying on CVS keyword expansion.  Modernize wording.
56626         (cvsdatestamp, last_checkin_date, version): Kill unused
56627         variables.
56628
56629 2008-03-12  Jim Meyering  <meyering@redhat.com>
56630
56631         Recognize optional cast of the argument to free.
56632         * build-aux/useless-if-before-free: Update regexps.
56633
56634         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56635
56636 2008-03-11  Bruno Haible  <bruno@clisp.org>
56637
56638         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56639         by a single package.
56640         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56641         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56642         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56643         Reported by Sam Steingold <sds@gnu.org>.
56644
56645 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56646
56647         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56648         repositories.
56649
56650 2008-03-11  Bruno Haible  <bruno@clisp.org>
56651
56652         Avoid conflicts between local macro definitions.
56653         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56654         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56655
56656 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56657             Bruno Haible  <bruno@clisp.org>
56658
56659         Make va_copy work with some version of xlc on AIX 5.1.
56660         * lib/stdarg.in.h: New file.
56661         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56662         On AIX, use a <stdarg.h> file substitute.
56663         * modules/stdarg (Files): Add lib/stdarg.in.h.
56664         (Depends-on): Add include_next.
56665         (Makefile.am): Build a stdarg.h substitute if requested.
56666         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56667
56668 2008-03-10  Bruno Haible  <bruno@clisp.org>
56669
56670         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56672         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56673
56674 2008-03-10  Bruno Haible  <bruno@clisp.org>
56675
56676         * modules/stdlib (Depends-on): Add include_next, remove
56677         absolute-header.
56678
56679 2008-03-09  Bruno Haible  <bruno@clisp.org>
56680
56681         * lib/freadahead.h (freadahead): Document more precisely.
56682         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56683         the sum of both buffer sizes.
56684         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56685         * NEWS: Document the change.
56686
56687 2008-03-09  Bruno Haible  <bruno@clisp.org>
56688
56689         Extend freadptr to return also the buffer size.
56690         * lib/freadptr.h (freadptr): Add sizep argument.
56691         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56692         (freadptr): Add sizep argument. Determine buffer size like freadahead
56693         does.
56694         * tests/test-freadptr.c: Don't include freadahead.h.
56695         (main): Adapt for new calling convention of freadptr.
56696         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56697         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56698         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56699         tests/test-freadptr2.sh.
56700         (Depends): Remove freadahead.
56701         (TESTS): Add test-freadptr2.sh.
56702         (check_PROGRAMS): Add test-freadptr2.
56703
56704 2008-03-09  Bruno Haible  <bruno@clisp.org>
56705
56706         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56707         Report and solution by Simon Josefsson.
56708
56709 2008-03-06  Bruno Haible  <bruno@clisp.org>
56710
56711         Make fflush after ungetc work on BSD platforms.
56712         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56713         * tests/test-fflush2.c: New file.
56714         * tests/test-fflush2.sh: New file.
56715         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56716         tests/test-fflush2.c.
56717         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56718         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56719
56720 2008-03-06  Eric Blake  <ebb9@byu.net>
56721
56722         Likewise for ftello.
56723         * modules/ftello (Dependencies): Add extensions.
56724         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56725
56726 2008-03-06  Bruno Haible  <bruno@clisp.org>
56727
56728         * modules/fseeko (Dependencies): Add extensions.
56729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56730         Needed on glibc systems.
56731
56732 2008-03-06  Bruno Haible  <bruno@clisp.org>
56733
56734         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56735         email address.
56736         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56737
56738 2008-03-06  Bruno Haible  <bruno@clisp.org>
56739
56740         * users.txt: Add libgnupdf.
56741
56742 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56743
56744         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56745         (Header File Substitutes, Function Substitutes,
56746         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56747         (Build robot for gnulib): Fix typo.
56748
56749 2008-03-06  Bruno Haible  <bruno@clisp.org>
56750
56751         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56752         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56753
56754 2008-03-06  Bruno Haible  <bruno@clisp.org>
56755
56756         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56757         * doc/gnulib.texi: Include it.
56758
56759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56760
56761         * modules/func (License): Change license to unlimited; there was
56762         no LGPL parts in the module anyway.
56763
56764 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56765
56766         * modules/__func__: Renamed to modules/func.
56767         * modules/__func__-tests: Renamed to modules/func-tests.
56768         * tests/test-__func__.c: Renamed to tests/test-func.c.
56769         * m4/__func__.m4: Renamed to m4/func.m4.
56770         * doc/gnulib.texi (__func__): Section renamed to func.
56771         Suggested by Eric Blake <ebb9@byu.net>.
56772
56773 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56774
56775         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56776         about __func__.  Make example self-contained.  Suggested by Eric
56777         Blake <ebb9@byu.net>.
56778
56779         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56780         Suggested by Eric Blake <ebb9@byu.net>.
56781
56782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56783
56784         * modules/__func__: New file.
56785         * modules/__func__-tests: New file.
56786         * tests/test-__func__.c: New file.
56787         * m4/__func__.m4: New file.
56788         * doc/gnulib.texi (__func__): Document __func__ module.
56789
56790 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56791
56792         * modules/byteswap (License): Re-license as LGPLv2+.
56793
56794 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56795
56796         * doc/Makefile: Add pdf target.
56797
56798 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56799
56800         * modules/inline (License): Use 'unlimited', since there are only
56801         *.m4 files in this module.
56802
56803 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56804             Bruno Haible  <bruno@clisp.org>
56805
56806         Add support for HP C 7.1 on OpenVMS 8.3.
56807         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56808
56809 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56810
56811         Update VMS specifics.
56812         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56813
56814 2008-03-02  Jim Meyering  <meyering@redhat.com>
56815
56816         Remove the last dependency on the "free" module.
56817         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56818         Reported by Bob Proulx.
56819
56820         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56821
56822         Remove useless "if" tests before free.  Deprecate "free" module.
56823         * doc/posix-functions/free.texi: Mention that this
56824         module is no longer useful.
56825         * modules/free (Notice): Say this module is obsolete.
56826         * modules/readutmp (Depends-on): Remove free.
56827         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56828         * lib/putenv.c (putenv): Likewise.
56829         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56830         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56831         * tests/test-c-strcasestr.c (main): Likewise.
56832         * tests/test-c-strstr.c (main): Likewise.
56833         * tests/test-mbscasestr1.c (main): Likewise.
56834         * tests/test-mbscasestr2.c (main): Likewise.
56835         * tests/test-mbsstr1.c (main): Likewise.
56836         * tests/test-mbsstr2.c (main): Likewise.
56837         * tests/test-memmem.c (main): Likewise.
56838         * tests/test-strcasestr.c (main): Likewise.
56839         * tests/test-striconv.c (main): Likewise.
56840         * tests/test-striconveh.c (main): Likewise.
56841         * tests/test-striconveha.c (main): Likewise.
56842         * tests/test-strstr.c (main): Likewise.
56843
56844         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56845
56846         bootstrap: sync from coreutils again
56847         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56848
56849 2008-03-01  Jim Meyering  <meyering@redhat.com>
56850
56851         bootstrap: sync from coreutils
56852         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56853         also when the target doesn't exist.
56854
56855 2008-03-01  Eric Blake  <ebb9@byu.net>
56856
56857         Fix bugs in last patch.
56858         * lib/memchr2.c (memchr2): Fix typo.
56859         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56860         extension.
56861         Reported by Bruce Korb.
56862
56863         New module 'memchr2'.
56864         * modules/memchr2: New file.
56865         * modules/memchr2-tests: Likewise.
56866         * lib/memchr2.h: Likewise.
56867         * lib/memchr2.c: Likewise, based on memchr.c.
56868         * tests/test-memchr2.c: New test.
56869         * MODULES.html.sh (String handling): Add memchr2.
56870
56871 2008-02-29  Bruno Haible  <bruno@clisp.org>
56872
56873         * modules/freadseek-tests: New file.
56874         * tests/test-freadseek.sh: New file.
56875         * tests/test-freadseek.c: New file.
56876
56877         New module 'freadseek'.
56878         * modules/freadseek: New file.
56879         * lib/freadseek.h: New file.
56880         * lib/freadseek.c: New file.
56881         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56882
56883 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56884
56885         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56886         wydawca.
56887
56888         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56889         program_invocation_name and program_invocation_short_name are
56890         present.
56891
56892 2008-02-28  Bruno Haible  <bruno@clisp.org>
56893
56894         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56895         * tests/test-freadptr.sh: Also test non-seekable stdin.
56896
56897 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56898
56899         * build-aux/bootstrap (source_base, m4_base)
56900         (doc_base, tests_base): New variables.
56901         (gnulib_tool_options): Do not hardcode base directories, use
56902         the above variables instead.
56903
56904 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56905
56906         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56907
56908 2008-02-28  Bruno Haible  <bruno@clisp.org>
56909
56910         * modules/freadptr-tests: New file.
56911         * tests/test-freadptr.sh: New file.
56912         * tests/test-freadptr.c: New file.
56913
56914         New module 'freadptr'.
56915         * modules/freadptr: New file.
56916         * lib/freadptr.h: New file.
56917         * lib/freadptr.c: New file.
56918         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56919
56920 2008-02-26  Karl Berry  <karl@freefriends.org>
56921
56922         Sync from Libtool:
56923         * libltdl/argz.c (argz_add, argz_count): New functions.
56924         * libltdl/argz.in.h: Declare them.
56925         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56926
56927 2008-02-22  Bruno Haible  <bruno@clisp.org>
56928
56929         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56930         is a pointer type.  Needed for HP-UX 10.
56931         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56932         * doc/posix-functions/gmtime_r.texi: Likewise.
56933         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56934
56935 2008-02-24  Bruno Haible  <bruno@clisp.org>
56936
56937         * modules/environ-tests: New file.
56938         * tests/test-environ.c: New file.
56939
56940         New module 'environ'.
56941         * modules/environ: New file.
56942         * lib/unistd.in.h (environ): New declaration.
56943         * m4/environ.m4: New file.
56944         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56945         after use.
56946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56947         HAVE_DECL_ENVIRON.
56948         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56949         HAVE_DECL_ENVIRON.
56950         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56951         wrong claim that 'environ' is missing on some systems.
56952         * modules/execute (Depends-on): Add environ.
56953         * lib/execute.c (environ): Remove fallback declaration.
56954         * modules/pipe (Depends-on): Add environ.
56955         * lib/pipe.c (environ): Remove fallback declaration.
56956         * modules/setenv (Depends-on): Add environ.
56957         * lib/setenv.c (environ): Remove fallback declaration.
56958         * modules/unsetenv (Depends-on): Add environ.
56959         * lib/unsetenv.c (environ): Remove fallback declaration.
56960         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56961         m4/environ.m4.
56962         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56963         (gl_PREREQ_UNSETENV): Likewise.
56964
56965 2008-02-24  Bruno Haible  <bruno@clisp.org>
56966
56967         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56968
56969 2008-02-20  Bob Proulx  <bob@proulx.com>
56970
56971         Enable use of older two part flavor 'git describe'.
56972         * build-aux/git-version-gen: If using the older two part flavor of
56973         git version then recreate the third part now present in the
56974         newer three part flavor of git describe.
56975
56976 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56977
56978         * lib/fts.c (fts_build): Typo correction to comment.
56979
56980 2008-02-17  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56983         generating no-op conflicts.
56984
56985 2008-02-17  Bruno Haible  <bruno@clisp.org>
56986
56987         Speed up by 10%.
56988         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56989         result_entries, rather than an index-based loop.
56990
56991 2008-02-17  Bruno Haible  <bruno@clisp.org>
56992
56993         Speed up by 25%.
56994         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56995         'hashcode_cached'.
56996         (entry_create): New function.
56997         (entry_hashcode): Use the cached hashcode if possible.
56998         (read_changelog_file, try_split_merged_entry): Use entry_create.
56999
57000 2008-02-17  Bruno Haible  <bruno@clisp.org>
57001
57002         Speed up from O(n^2) to O(n) for long ChangeLog files.
57003         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57004         (read_changelog_file): Change implementation of entries_reversed list
57005         to rbtreehash.
57006         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57007
57008 2008-02-17  Bruno Haible  <bruno@clisp.org>
57009
57010         New option --split-merged-entry.
57011         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57012         (find_paragraph_end, try_split_merged_entry): New functions.
57013         (long_options): Add option --split-merged-entry.
57014         (usage): Document option --split-merged-entry.
57015         (main): Implement option --split-merged-entry.
57016         Reported by Eric Blake.
57017
57018 2008-02-17  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/git-merge-changelog.c: Include c-strstr.h.
57021         (main): Support the "git pull --rebase" situation.
57022         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57023         Reported by Eric Blake.
57024
57025 2008-02-16  Eric Blake  <ebb9@byu.net>
57026
57027         Avoid doubling \ in common case of "c-maybe" quoting style.
57028         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57029         eliding outer quotes.
57030         * lib/quotearg.h: Document this.
57031         * tests/test-quotearg.c (result_strings, inputs, results_g)
57032         (flag_results, locale_results): Test it by adding a new string to
57033         each test group.
57034         (compare_strings): Test new string.
57035
57036 2008-02-13  Eric Blake  <ebb9@byu.net>
57037
57038         Avoid trigraph quoting in default output.
57039         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57040         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57041         unless explicitly requested.
57042         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57043
57044 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57045
57046         Don't rely on signed integer overflowing to negative value.
57047         * lib/getugroups.c (getugroups): Include <limits.h>.
57048         Instead, compare against INT_MAX, and increment only if the test passes.
57049
57050 2008-02-13  Jim Meyering  <meyering@redhat.com>
57051         and Eric Blake  <ebb9@byu.net>
57052
57053         Avoid shadowing warning and compile errors on Linux.
57054         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57055         forwarding macros on Linux.
57056         (dcgettext): Define a stub, for Linux.
57057         (results_g, main): Avoid warnings.
57058
57059 2008-02-12  Eric Blake  <ebb9@byu.net>
57060
57061         Silence warning in last patch.
57062         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57063
57064         Quotearg part 4: add tests, fix c-maybe colon quoting.
57065         * lib/quotearg.h: Improve documentation.
57066         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57067         escapes when adding outer quotes.  When quoting trigraphs, use
57068         valid C notation.  When quoting NUL, omit extra characters if next
57069         character is not digit.  Alter prototype.
57070         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57071         callers.
57072         * modules/quotearg-tests: New module.
57073         * tests/test-quotearg.c: New test.
57074
57075 2008-02-07  Eric Blake  <ebb9@byu.net>
57076
57077         Quotearg part 3: add flag to control outer quote elision.
57078         * lib/quotearg.h (c_maybe_quoting_style): New style.
57079         (enum quoting_flags): Better documentation of flags.
57080         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57081         c-maybe style.
57082         (quotearg_buffer_restyled): Handle new flag to elide outer
57083         quotes.
57084
57085         Quotearg part 2: add flag that can control NUL elision.
57086         * lib/quotearg.h (set_quoting_flags): New prototype.
57087         * lib/quotearg.c (struct quoting_options): Add flag field.
57088         (set_quoting_flags): New function.
57089         (quotearg_buffer_restyled): Add flags parameter.
57090         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57091         (quotearg_n_options): Set the flag, since length cannot be
57092         returned.
57093         (quoting_options_from_style): Default flags correctly.
57094
57095         Quotearg part 1: more wrappers, restore quotearg_char state.
57096         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57097         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57098         (quotearg_colon_mem): New wrappers.
57099         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57100         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57101         functions.
57102         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57103         (quotearg_colon_mem): New functions.
57104
57105 2008-02-11  Bruno Haible  <bruno@clisp.org>
57106
57107         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57108         library in the current directory: it does not work with parallel make.
57109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57110
57111 2008-02-11  Bruno Haible  <bruno@clisp.org>
57112
57113         * .gitattributes: New file.
57114
57115 2008-02-11  Jim Meyering  <meyering@redhat.com>
57116
57117         useless-if-before-free: Fix reversed exit values.
57118         * build-aux/useless-if-before-free: Use correct values
57119         for EXIT_MATCH and EXIT_NO_MATCH.
57120
57121         * build-aux/useless-if-before-free: Close stdout carefully.
57122
57123 2008-02-10  Bruno Haible  <bruno@clisp.org>
57124
57125         New module 'git-merge-changelog'.
57126         * modules/git-merge-changelog: New file.
57127         * lib/git-merge-changelog.c: New file.
57128
57129 2008-02-10  Jim Meyering  <meyering@redhat.com>
57130
57131         useless-if-before-free: New option: --list (-l).
57132
57133         useless-if-before-free: Don't exit immediately upon open failure.
57134         * build-aux/useless-if-before-free: Exit 2 for errors.
57135         Upon failure to open a file, don't exit immediately.
57136         Rather, just warn and continue with any remaining files.
57137
57138 2008-02-10  Bruno Haible  <bruno@clisp.org>
57139
57140         New abstract list operation 'node_set_value'.
57141         * lib/gl_list.h (gl_list_node_set_value): New function.
57142         (struct gl_list_implementation): New field node_set_value.
57143         * lib/gl_list.c (gl_list_node_set_value): New function.
57144         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57145         (gl_array_list_implementation): Update.
57146         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57147         (gl_carray_list_implementation): Update.
57148         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57151         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57152         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57153         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57154         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57155         Update.
57156         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57157         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57158         (gl_sublist_list_implementation): Update.
57159
57160 2008-02-10  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57163         Needed when ELEMENT is #defined to 'some_type *'.
57164
57165 2008-02-10  Jim Meyering  <meyering@redhat.com>
57166
57167         New script and module: useless-if-before-free
57168         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57169         * build-aux/useless-if-before-free: New file.
57170         * modules/useless-if-before-free: New file.
57171
57172         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57173
57174         xstrtol_error: Fix typo.
57175         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57176         s/exit_failure/exit_status/.
57177
57178 2008-02-09  Jim Meyering  <meyering@redhat.com>
57179
57180         New script and module: gitlog-to-changelog
57181         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57182         * modules/gitlog-to-changelog: New file.
57183         * build-aux/gitlog-to-changelog: New file.
57184
57185 2008-02-08  Jim Meyering  <meyering@redhat.com>
57186
57187         Avoid two "parameter unused" warnings.
57188         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57189         Mark "st" as used.
57190
57191         Use "git COMMAND", not "git-COMMAND".
57192         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57193         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57194         * build-aux/git-version-gen: Use "git status", not "git-status".
57195
57196 2008-02-07  Bruno Haible  <bruno@clisp.org>
57197
57198         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57199         Avoids a crash on Windows Vista.
57200         Reported by Adam Strzelecki <ono@java.pl> via
57201         Simon Josefsson <simon@josefsson.org>.
57202
57203 2008-02-06  Bruno Haible  <bruno@clisp.org>
57204
57205         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57206         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57207         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57209         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57211         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57212         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57220         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57221         left-adjust flag.
57222         * tests/test-snprintf-posix.h (test_function): Likewise.
57223         * tests/test-sprintf-posix.h (test_function): Likewise.
57224         * tests/test-vasprintf-posix.c (test_function): Likewise.
57225         * doc/posix-functions/fprintf.texi: Update.
57226         * doc/posix-functions/printf.texi: Update.
57227         * doc/posix-functions/snprintf.texi: Update.
57228         * doc/posix-functions/sprintf.texi: Update.
57229         * doc/posix-functions/vfprintf.texi: Update.
57230         * doc/posix-functions/vprintf.texi: Update.
57231         * doc/posix-functions/vsnprintf.texi: Update.
57232         * doc/posix-functions/vsprintf.texi: Update.
57233         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57234
57235 2008-02-06  Bruno Haible  <bruno@clisp.org>
57236
57237         Fix bug introduced on 2008-01-26.
57238         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57239
57240 2008-02-06  Bruno Haible  <bruno@clisp.org>
57241
57242         Fix bug introduced on 2007-06-10.
57243         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57244         !NEED_PRINTF_FLAG_ZERO.
57245
57246 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57247
57248         getloadavg: use libperfstat on AIX5
57249         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57250
57251 2008-02-03  Bruno Haible  <bruno@clisp.org>
57252
57253         * lib/diffseq.h: Add comments about required #includes.
57254         Reported by Michael Biggs <gnulib@doubleplum.net>.
57255
57256 2008-02-01  Bruno Haible  <bruno@clisp.org>
57257
57258         * users.txt: Add gnuit.
57259
57260 2008-01-31  Bruno Haible  <bruno@clisp.org>
57261
57262         * lib/md4.c (set_uint32): Mark as inline.
57263         * lib/md5.c (set_uint32): Likewise.
57264         * lib/sha1.c (set_uint32): Likewise.
57265         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57266         * m4/md5.m4 (gl_MD5): Likewise.
57267         * m4/sha1.m4 (gl_SHA1): Likewise.
57268
57269 2008-01-31  Jim Meyering  <meyering@redhat.com>
57270
57271         Use "sizeof VAR", rather than a literal "4".
57272         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57273         * lib/md4.c (md4_read_ctx): Likewise.
57274         * lib/sha1.c (sha1_read_ctx): Likewise.
57275
57276 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57277
57278         * tests/test-sha1.c: New file, based on test-md5.c.
57279
57280         * modules/crypto/sha1-tests: New file.
57281
57282 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57283
57284         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57285
57286 2008-01-31  Jim Meyering  <meyering@redhat.com>
57287
57288         Prefer "sizeof v" over the equivalent "4".
57289         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57290         * lib/md5.c (set_uint32): Likewise.
57291         * lib/sha1.c (set_uint32): Likewise.
57292
57293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57294
57295         * lib/sha1.c (set_uint32): Mark function as static.
57296
57297 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57298
57299         md2: clarify comments to say that alignment is not required.
57300         * lib/md2.h: Remove warning about alignment in comment.
57301         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57302         never been required.
57303
57304 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57305
57306         md4: adapt alignment constraint fix from sha1.
57307         * lib/md4.c (set_uint32): New function, from sha1.c
57308         (md4_read_ctx): Use it.
57309         (md4_finish_ctx): Doc fix.
57310         * lib/md4.h: Doc fix.
57311
57312 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57313
57314         md5: adapt alignment constraint fix from sha1.
57315         * lib/md5.c (set_uint32): New function, from sha1.c
57316         (md5_read_ctx): Use it.
57317         (md5_finish_ctx): Doc fix.
57318         * lib/md5.h: Doc fix.
57319
57320 2008-01-30  Peter Palfrader  <weasel@debian.org>
57321
57322         sha1: remove the result buffer alignment constraint
57323         * lib/sha1.c (set_uint32): New function.
57324         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57325         constraint.
57326         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57327         * lib/sha1.h: Likewise.
57328
57329 2008-01-30  Andreas Schwab  <schwab@suse.de>
57330             Bruno Haible  <bruno@clisp.org>
57331
57332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57333         correct definition of LDBL_MIN_EXP.
57334
57335 2008-01-30  Karl Berry  <karl@gnu.org>
57336
57337         * config/srclist-update: try to preserve x bit on updates.
57338         * config/srclistvars.sh: update for karl.
57339
57340 2008-01-29  Jim Meyering  <meyering@redhat.com>
57341
57342         vasnprintf.c: Avoid warning about unused label
57343         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57344         "overflow" label definition and associated code with the
57345         same cpp condition that guards the sole use of that label.
57346
57347 2008-01-26  Bruno Haible  <bruno@clisp.org>
57348
57349         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57350         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57351         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57352         * lib/isnanl-nolibm.h (isnanl): Likewise.
57353         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57354
57355 2008-01-26  Bruno Haible  <bruno@clisp.org>
57356
57357         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57358         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57359
57360 2008-01-26  Bruno Haible  <bruno@clisp.org>
57361
57362         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57363         GCC >= 4.0 built-in.
57364         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57365
57366 2008-01-26  Bruno Haible  <bruno@clisp.org>
57367
57368         Rename isnan, applicable to 'double' only, to isnand.
57369         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57370         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57371         (configure.ac): Update.
57372         (Include): Replace "isnan.h" with "isnand.h".
57373         * m4/isnand.m4: Renamed from m4/isnan.m4.
57374         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57375         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57376         instead of isnan.c.
57377         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57378         instead of HAVE_ISNAN_IN_LIBC.
57379         (isnand): Renamed from isnan.
57380         * lib/isnand.c: New file.
57381         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57382         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57383         (Makefile.am): Update.
57384         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57385         Include isnand.h instead of isnan.h.
57386         (main): Test isnand instead of isnan.
57387         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57388         isnan-nolibm.
57389         * modules/frexp (Depends-on): Likewise.
57390         * modules/frexp-tests (Depends-on): Likewise.
57391         * modules/frexp-nolibm (Depends-on): Likewise.
57392         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57393         * modules/isfinite (Depends-on): Likewise.
57394         * modules/round-tests (Depends-on): Likewise.
57395         * modules/signbit (Depends-on): Likewise.
57396         * modules/signbit-tests (Depends-on): Likewise.
57397         * modules/snprintf-posix (Depends-on): Likewise.
57398         * modules/sprintf-posix (Depends-on): Likewise.
57399         * modules/trunc-tests (Depends-on): Likewise.
57400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57407         * modules/vasnprintf-posix (Depends-on): Likewise.
57408         * modules/vasprintf-posix (Depends-on): Likewise.
57409         * modules/vfprintf-posix (Depends-on): Likewise.
57410         * modules/vsnprintf-posix (Depends-on): Likewise.
57411         * modules/vsprintf-posix (Depends-on): Likewise.
57412         * lib/frexp.c: Include isnand.h instead of isnan.h.
57413         (ISNAN): Set to isnand instead of isnan.
57414         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57415         (gl_isfinited): Use isnand instead of isnan.
57416         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57417         (gl_signbitd): Use isnand instead of isnan.
57418         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57419         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57420         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57421         (main): Use isnand instead of isnan.
57422         * tests/test-round1.c: Include isnand.h.
57423         (main): Use isnand instead of isnan.
57424         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57425         (ISNAN): Set to isnand instead of isnan.
57426         * tests/test-trunc1.c: Include isnand.h.
57427         (main): Use isnand instead of isnan.
57428         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57429         (equal): Use isnand instead of isnan.
57430         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57431         isnand-nolibm.
57432         * NEWS: Mention the change.
57433
57434 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57435             Bruno Haible  <bruno@clisp.org>
57436
57437         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57438         the GCC builtins for signbits are present and set
57439         REPLACE_SIGNBIT_USING_GCC if so.
57440         * lib/math.in.h (signbit): Define using GCC builtins if
57441         REPLACE_SIGNBIT_USING_GCC is set.
57442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57443         REPLACE_SIGNBIT_USING_GCC.
57444         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57445
57446 2008-01-25  Jim Meyering  <meyering@redhat.com>
57447
57448         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57449         * lib/poll.c: Include <config.h>, not "config.h".
57450         * tests/test-getaddrinfo.c: Likewise.
57451
57452 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57453
57454         * modules/sockets-tests: New file.
57455
57456 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57457
57458         * modules/sockets: New module, can be used to call WSA_Startup and
57459         WSA_Cleanup when needed.
57460
57461         * lib/sockets.h, lib/sockets.c: New files.
57462
57463         * m4/sockets.m4: New file.
57464
57465         * tests/test-sockets.c: New file.
57466
57467 2008-01-19  Bruno Haible  <bruno@clisp.org>
57468
57469         * doc/posix-headers: Renamed from doc/headers.
57470         * doc/posix-functions: Renamed from doc/functions.
57471         * doc/gnulib.texi: Update.
57472
57473 2008-01-19  Bruno Haible  <bruno@clisp.org>
57474
57475         * doc/glibc-functions/strcasestr.texi: Include contents of
57476         doc/functions/strcasestr.texi, fixing the list of platforms.
57477         * doc/functions/strcasestr.texi: Remove file.
57478
57479 2008-01-19  Bruno Haible  <bruno@clisp.org>
57480
57481         * doc/glibc-functions/memmem.texi: Include contents of
57482         doc/functions/memmem.texi.
57483         * doc/functions/memmem.texi: Remove file.
57484
57485 2008-01-18  Bruno Haible  <bruno@clisp.org>
57486
57487         * doc/glibc-functions/*.texi: New files.
57488         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57489         to use the new files.
57490
57491 2008-01-17  Bruno Haible  <bruno@clisp.org>
57492
57493         * tests/test-gethostname.c (main): Fix printf statement.
57494
57495 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57496
57497         * modules/gethostname-tests: New file.
57498
57499         * tests/test-gethostname.c: New file.
57500
57501 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57502
57503         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57504         used by the UNAME case.  Reported by Bruno Haible
57505         <bruno@clisp.org>.
57506
57507 2008-01-17  Eric Blake  <ebb9@byu.net>
57508
57509         Convert c-strcasestr to be more efficient.
57510         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57511         (Depends-on): Add c-strcase, remove malloca, strnlen.
57512         * tests/test-c-strcasestr.c (main): Enhance test.
57513         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57514
57515 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57516
57517         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57518         Use it in creating po/Makevars.
57519
57520 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57521
57522         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57523         Applications that requires it should initialize libgcrypt
57524         manually.
57525
57526 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57527
57528         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57529
57530 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57531
57532         Fix problem with getdate on mingw32 reported by Simon Josefsson
57533         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57534         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57535         tzname", when deciding whether to declare tzname.
57536         * lib/strftime.c (tzname): Likewise.
57537
57538 2008-01-15  Bruno Haible  <bruno@clisp.org>
57539
57540         Work around a MacOS X 10.5 bug in frexpl().
57541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57542         * doc/functions/frexpl.texi: Document the bug.
57543         Reported by Elias Pipping <pipping@gentoo.org>.
57544
57545 2008-01-14  Eric Blake  <ebb9@byu.net>
57546
57547         Touch up previous patch.
57548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57549         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57550
57551         Convert strcasestr module to use Two-Way algorithm.
57552         * modules/strcasestr-simple: New module, based on the old
57553         strcasestr, but with Two-Way rather than KMP.
57554         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57555         * lib/string.in.h (rpl_strcasestr): Declare.
57556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57557         performance.
57558         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57559         * modules/string (Makefile.am): Support strcasestr.
57560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57561         * modules/strcasestr-tests (Depends-on): Check for alarm.
57562         * tests/test-strcasestr.c: Augment test.
57563         * lib/str-two-way.h: Clean up stray macro.
57564         * NEWS: Document new module.
57565         * MODULES.html.sh (string handling): Likewise.
57566         * doc/functions/strcasestr.texi: New file.
57567         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57568         here, since it is not a POSIX function.
57569
57570 2008-01-14  Colin Watson  <cjwatson@debian.org>
57571             Bruno Haible  <bruno@clisp.org>
57572
57573         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57574         works fine; if not, set REPLACE_STRSIGNAL.
57575         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57577         REPLACE_STRSIGNAL.
57578         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57579         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57580         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57581
57582 2008-01-14  Bruno Haible  <bruno@clisp.org>
57583
57584         * modules/strsignal (Include): Change to <string.h>.
57585
57586 2008-01-14  Colin Watson  <cjwatson@debian.org>
57587
57588         * modules/argp (Notice): Add a notice recommending to change
57589         XGETTEXT_OPTIONS.
57590         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57591
57592 2008-01-13  Colin Watson  <cjwatson@debian.org>
57593
57594         * modules/strsignal-tests: New file.
57595         * tests/test-strsignal.c: New file.
57596
57597         * lib/strsignal.c: New file, from glibc with modifications.
57598         * lib/siglist.h: New file, from glibc with modifications.
57599         * lib/string.in.h (strsignal): New declaration.
57600         * m4/strsignal.m4: New file.
57601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57602         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57603         * modules/strsignal: New file.
57604         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57605         HAVE_DECL_STRSIGNAL.
57606
57607 2008-01-13  Bruno Haible  <bruno@clisp.org>
57608
57609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57610         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57611         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57612         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57613
57614 2008-01-13  Bruno Haible  <bruno@clisp.org>
57615
57616         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57617         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57618         * lib/argp.h (__attribute__): Likewise.
57619         * lib/c-stack.c (__attribute__): Likewise.
57620         * lib/error.h (__attribute__): Likewise.
57621         * lib/fts.c (__attribute__): Likewise.
57622         * lib/openat.h (__attribute__): Likewise.
57623         * lib/stdio.in.h (__attribute__): Likewise.
57624         * lib/string.in.h (__attribute__): Likewise.
57625         * lib/utimens.c (__attribute__): Likewise.
57626         * lib/vasnprintf.h (__attribute__): Likewise.
57627         * lib/xalloc.h (__attribute__): Likewise.
57628         * lib/xprintf.h (__attribute__): Likewise.
57629         * lib/xstrtol.h (__attribute__): Likewise.
57630         * lib/xvasprintf.h (__attribute__): Likewise.
57631
57632 2008-01-12  Bruno Haible  <bruno@clisp.org>
57633
57634         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57635         * doc/glibc-headers/a.out.texi: New file.
57636         * doc/glibc-headers/aliases.texi: New file.
57637         * doc/glibc-headers/alloca.texi: New file.
57638         * doc/glibc-headers/ar.texi: New file.
57639         * doc/glibc-headers/argp.texi: New file.
57640         * doc/glibc-headers/argz.texi: New file.
57641         * doc/glibc-headers/byteswap.texi: New file.
57642         * doc/glibc-headers/crypt.texi: New file.
57643         * doc/glibc-headers/endian.texi: New file.
57644         * doc/glibc-headers/envz.texi: New file.
57645         * doc/glibc-headers/err.texi: New file.
57646         * doc/glibc-headers/error.texi: New file.
57647         * doc/glibc-headers/execinfo.texi: New file.
57648         * doc/glibc-headers/fpu_control.texi: New file.
57649         * doc/glibc-headers/fstab.texi: New file.
57650         * doc/glibc-headers/fts.texi: New file.
57651         * doc/glibc-headers/getopt.texi: New file.
57652         * doc/glibc-headers/ieee754.texi: New file.
57653         * doc/glibc-headers/ifaddrs.texi: New file.
57654         * doc/glibc-headers/libintl.texi: New file.
57655         * doc/glibc-headers/mcheck.texi: New file.
57656         * doc/glibc-headers/mntent.texi: New file.
57657         * doc/glibc-headers/obstack.texi: New file.
57658         * doc/glibc-headers/paths.texi: New file.
57659         * doc/glibc-headers/printf.texi: New file.
57660         * doc/glibc-headers/pty.texi: New file.
57661         * doc/glibc-headers/resolv.texi: New file.
57662         * doc/glibc-headers/shadow.texi: New file.
57663         * doc/glibc-headers/sysexits.texi: New file.
57664         * doc/glibc-headers/ttyent.texi: New file.
57665
57666 2008-01-12  Jim Meyering  <meyering@redhat.com>
57667
57668         announce-gen: emit Gnulib's git-based version string.
57669         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57670         New option --gnulib-version=V, where V is expected to be
57671         the output of running git describe in the gnulib directory.
57672         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57673         not useful, and plan to stop publishing an xdelta file with each
57674         coreutils release.
57675
57676         * build-aux/announce-gen: Also check for lzma-compressed files.
57677
57678 2008-01-11  Bruno Haible  <bruno@clisp.org>
57679
57680         * tests/test-memmem.c (main): Increase maximum allowed time.
57681         * tests/test-strstr.c (main): Likewise.
57682
57683 2008-01-11  Bruno Haible  <bruno@clisp.org>
57684
57685         * doc/functions/memmem.texi: Add more precisions about platforms.
57686         * doc/functions/strstr.texi: Likewise.
57687
57688 2008-01-10  Eric Blake  <ebb9@byu.net>
57689
57690         * m4/strstr.m4: Delete cruft from copy-n-paste.
57691         Reported by Bruno Haible.
57692
57693 2008-01-10  Bruno Haible  <bruno@clisp.org>
57694
57695         Make c-strstr rely on strstr.
57696         * lib/c-strstr.c: Don't include str-kmp.h.
57697         (c_strstr): Define in terms of strstr.
57698         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57699         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57700
57701 2008-01-10  Bruno Haible  <bruno@clisp.org>
57702
57703         * doc/gnulib.texi (String Functions in C Locale): New section.
57704         * doc/c-ctype.texi: New file.
57705         * doc/c-strcase.texi: New file.
57706         * doc/c-strcaseeq.texi: New file.
57707         * doc/c-strcasestr.texi: New file.
57708         * doc/c-strstr.texi: New file.
57709         * doc/c-strtod.texi: New file.
57710         * doc/c-strtold.texi: New file.
57711
57712 2008-01-10  Eric Blake  <ebb9@byu.net>
57713
57714         * lib/relocatable.h: Fix a comment.
57715
57716 2008-01-10  Eric Blake  <ebb9@byu.net>
57717
57718         Share two-way algorithm.
57719         * lib/str-two-way.h: New file, merged from...
57720         * lib/memmem.c: ...here...
57721         * lib/strstr.c: ...and here.
57722         * modules/memmem (Files): Use it.
57723         * modules/strstr (Files): Likewise.
57724
57725         Avoid quadratic strstr implementations.
57726         * lib/strstr.c: New file.
57727         * m4/strstr.m4: Likewise.
57728         * modules/strstr: Likewise.
57729         * modules/strstr-tests: Likewise.
57730         * tests/test-strstr.c: Likewise.
57731         * lib/string.in.h (rpl_strstr): Declare.
57732         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57734         * modules/string (Makefile.am): Likewise.
57735         * MODULES.html.sh (string handling): Mention new module.
57736         * doc/functions/strstr.texi (strstr): Document the bug.
57737
57738 2008-01-10  Bruno Haible  <bruno@clisp.org>
57739
57740         * lib/relocatable.h (relocate): State whether result is freshly
57741         allocated or not.
57742         * lib/relocatable.c (relocate): Return a freshly allocated string
57743         instead of a pointer to a privately held string.
57744         Reported by Sylvain Beucler <beuc@gnu.org>.
57745
57746 2008-01-10  Colin Watson  <cjwatson@debian.org>
57747
57748         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57749         s/S_ISNLK/S_ISLNK/.
57750
57751 2008-01-09  Bruno Haible  <bruno@clisp.org>
57752
57753         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57754         and other files.
57755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57756         if it's only a guess.
57757         * modules/memmem: Simplify by depending on memmem-simple.
57758
57759 2008-01-09  Bruno Haible  <bruno@clisp.org>
57760
57761         Work around OpenBSD 4.0 tdelete() bug.
57762         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57763         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57764         macros and don't redefine the enum values.
57765         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57766         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57767         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57768
57769 2008-01-09  Bruno Haible  <bruno@clisp.org>
57770
57771         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57772         (main): Don't perform the tests if setlocale did not install a UTF-8
57773         locale. Needed on OpenBSD 4.0.
57774         * modules/wcwidth-tests (Depends-on): Add localcharset.
57775
57776 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57777
57778         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57779         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57780         * NEWS: announce this.
57781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57782
57783 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57784         and Eric Blake  <ebb9@byu.net>
57785
57786         Add memmem-simple module.
57787         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57788         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57789         * modules/memmem-simple: New file.
57790         * modules/memmem (Description): Tweak.
57791         * MODULES.html.sh (string handling): Mention new module.
57792         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57793         addressed by memmem-simple.
57794         * NEWS: Document the difference.
57795
57796 2008-01-09  Eric Blake  <ebb9@byu.net>
57797
57798         Give gcc some memmem optimization hints.
57799         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57800         (strcasestr): Declare as pure.
57801         * modules/memmem (Maintainer): Claim my implementation.
57802
57803 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57804
57805         Support AIX 6.1 and higher.
57806         * build-aux/config.libpath: Likewise.
57807         * build-aux/config.rpath: Likewise.
57808
57809 2008-01-08  Jim Meyering  <meyering@redhat.com>
57810             Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57813         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57814         Reported by Peter Fales in
57815         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57816
57817 2008-01-08  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/unictype/category-of (Depends-on): Add
57820         unictype/category-none.
57821         * modules/unictype/category-and-tests (Depends-on): Add
57822         unictype/category-{L,N,Lu,Nd}.
57823         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57824         * modules/unictype/category-or-tests (Depends-on): Add
57825         unictype/category-{L,N}.
57826         * modules/unictype/category-name-tests (Depends-on): Add
57827         unictype/category-{Z,Nl}.
57828         Reported by Simon Josefsson.
57829
57830 2008-01-08  Bruno Haible  <bruno@clisp.org>
57831
57832         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57833         convention better.
57834         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57835         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57836         Reported by Peter Miller <millerp@canb.auug.org.au>.
57837
57838 2008-01-08  Eric Blake  <ebb9@byu.net>
57839
57840         Rewrite memmem to guarantee linear complexity without malloc.
57841         * lib/memmem.c (memmem): Use Two-Way rather than
57842         Knuth-Morris-Pratt, to allow O(1) space usage.
57843         (critical_factorization, two_way_short_needle)
57844         (two_way_long_needle): New functions.
57845         (knuth_morris_pratt): Delete.
57846         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57847         Add stdint.
57848         * tests/test-memmem.c (main): Add tests for periodic needle and
57849         sublinear performance.
57850         * doc/functions/memmem.texi (memmem): Document other deficiencies
57851         in cygwin and older glibc.
57852
57853 2008-01-08  Bruno Haible  <bruno@clisp.org>
57854
57855         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57856         augmentation.
57857
57858 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57859
57860         Add a configure time option: --disable-acl.
57861         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57862         AC_ARG_ENABLE(acl).
57863
57864 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57865
57866         * tests/test-localename.c: Don't include obsolete "setenv.h".
57867
57868         * modules/localename-tests (Depends-on): Need unsetenv.
57869
57870 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57871
57872         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57873
57874 2008-01-06  Colin Watson  <cjwatson@debian.org>
57875
57876         * users.txt: Add man-db.
57877
57878 2008-01-07  Bruno Haible  <bruno@clisp.org>
57879
57880         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57881         previous section name.
57882
57883 2008-01-07  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/progname.c (set_program_name): Don't strip off a leading
57886         "lt-" prefix outside a .libs directory.
57887         Suggested by Paul Eggert.
57888
57889 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57890             Bruno Haible  <bruno@clisp.org>
57891
57892         Improve memory cleanup in 'relocatable' module.
57893         * lib/relocatable.h (compute_curr_prefix): Change return type to
57894         'char *'.
57895         * lib/relocatable.c (compute_curr_prefix): Change return type to
57896         'char *'. Free curr_installdir after use.
57897         (relocate): Free curr_prefix_better after use.
57898         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57899
57900 2008-01-01  Bruno Haible  <bruno@clisp.org>
57901
57902         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57903         failure on older glibc systems.
57904         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57905
57906 2008-01-05  Eric Blake  <ebb9@byu.net>
57907
57908         Avoid quadratic system memmem.
57909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57910         Reported by Ralf Wildenhues.
57911
57912         Fix memmem test for mingw.
57913         * modules/memmem-tests (configure.ac): Check for alarm.
57914         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57915         it.
57916         * doc/functions/memmem.texi: New file.
57917         * doc/gnulib.texi (Function Substitutes): Add memmem.
57918         Reported by Bruno Haible.
57919
57920 2008-01-04  Bruno Haible  <bruno@clisp.org>
57921
57922         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57923         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57924         gl_HEADER_STRING_H_DEFAULTS.
57925
57926 2008-01-04  Eric Blake  <ebb9@byu.net>
57927
57928         Shorten duration of memmem test.
57929         * tests/test-memmem.c (main): Use alarm to declare failure if test
57930         is taking too long.
57931         Reported by Ralf Wildenhues.
57932
57933 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57934
57935         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57936         string, needed by strerror.
57937
57938 2008-01-03  Colin Watson  <cjwatson@debian.org>
57939             Bruno Haible  <bruno@clisp.org>
57940
57941         * doc/gnulib-tool.texi (Localization): New section.
57942
57943 2008-01-02  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57946         variables to 'unsigned char *' type.
57947         Reported by Paul Eggert.
57948
57949 2008-01-02  Jim Meyering  <jim@meyering.net>
57950
57951         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57952
57953 2007-12-31  Jim Meyering  <jim@meyering.net>
57954
57955         Avoid use of private FTS type name.
57956         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57957
57958 2007-12-30  Karl Berry  <karl@gnu.org>
57959
57960         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57961         work around defect in Texinfo and/or the standalone Info browser.
57962
57963 2007-12-30  Bruno Haible  <bruno@clisp.org>
57964
57965         Unify 5 copies of the KMP code.
57966         * lib/str-kmp.h: New file.
57967         * lib/c-strcasestr.c: Include str-kmp.h.
57968         (knuth_morris_pratt): Remove function.
57969         (c_strcasestr): Update.
57970         * lib/c-strstr.c: Include str-kmp.h.
57971         (knuth_morris_pratt): Remove function.
57972         (c_strcasestr): Update.
57973         * lib/mbscasestr.c: Include str-kmp.h.
57974         (knuth_morris_pratt_unibyte): Remove function.
57975         * lib/mbsstr.c: Include str-kmp.h.
57976         (knuth_morris_pratt_unibyte): Remove function.
57977         * lib/strcasestr.c: Include str-kmp.h.
57978         (knuth_morris_pratt): Remove function.
57979         (strcasestr): Update.
57980         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57981         * modules/c-strstr (Files): Likewise.
57982         * modules/mbscasestr (Files): Likewise.
57983         * modules/mbsstr (Files): Likewise.
57984         * modules/strcasestr (Files): Likewise.
57985         Suggested by Paul Eggert.
57986
57987 2007-12-30  Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57990         defined.
57991
57992 2007-12-30  Bruno Haible  <bruno@clisp.org>
57993
57994         * lib/xmalloca.h: Include xalloc.h.
57995         (xnmalloca): New macro.
57996
57997 2007-12-30  Bruno Haible  <bruno@clisp.org>
57998
57999         * lib/malloca.h (nmalloca): New macro.
58000         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58001         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58002         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58003         knuth_morris_pratt_multibyte): Likewise.
58004         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58005         knuth_morris_pratt_multibyte): Likewise.
58006         * lib/memmem.c (knuth_morris_pratt): Likewise.
58007         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58008
58009 2007-12-25  Bruno Haible  <bruno@clisp.org>
58010
58011         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58012         * lib/glob.c: Don't include openat.h.
58013         (link_exists2_p): Add back the code that deals with the
58014         !GLOB_ALTDIRFUNC case.
58015         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58016         let it do the filename concatenation.
58017         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58018         * modules/glob (Depends-on): Remove openat.
58019
58020 2007-12-31  Bruno Haible  <bruno@clisp.org>
58021
58022         * modules/dirfd (License): Change to LGPLv2+.
58023         Approved by Jim Meyering.
58024
58025 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58026
58027         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58028         when multiplying M by sizeof (size_t).
58029
58030 2007-12-10  Martin Lambers  <marlam@marlam.de>
58031
58032         Override getpagesize on mingw.
58033         * lib/getpagesize.c: New file.
58034         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58035         * modules/getpagesize (Files): Add lib/getpagesize.c.
58036         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58038         REPLACE_GETPAGESIZE.
58039         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58040
58041 2007-12-25  Bruno Haible  <bruno@clisp.org>
58042
58043         * modules/localcharset (Notice): New field.
58044         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58045         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58046
58047 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58048             Bruno Haible  <bruno@clisp.org>
58049
58050         Avoid using the syntax symbol() in formatted documentation.
58051         * MODULES.html.sh (func_module): When replacing symbol() with a
58052         hyperlink, remove the parentheses. Show an error if some remain.
58053         Recognize and render the '...' syntax.
58054         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58055         Rework. Add paragraph about GCC's inlining.
58056         * doc/alloca.texi: Likewise.
58057         * doc/error.texi: Remove parentheses from symbol reference.
58058         * doc/gnulib-intro.texi: Likewise.
58059         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58060         * modules/fnmatch (Description): Reword to say "the ... function".
58061         * modules/full-read (Description): Likewise.
58062         * modules/full-write (Description): Likewise.
58063         * modules/safe-read (Description): Likewise.
58064         * modules/safe-write (Description): Likewise.
58065         * modules/strchrnul (Description): Likewise.
58066         * modules/trim (Description): Likewise.
58067         * modules/error (Description): Remove parentheses from symbol
58068         references.
58069         * modules/verror (Description): Likewise.
58070         Reported by Karl Berry.
58071
58072 2007-12-25  Bruno Haible  <bruno@clisp.org>
58073
58074         Fixup after 2007-10-16 commit.
58075         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58076
58077 2007-12-24  Bruno Haible  <bruno@clisp.org>
58078
58079         Make --enable-relocatable work with DESTDIR.
58080         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58081         to compute installdir from destprog.
58082         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58083         also set the RELOC_DESTDIR variable.
58084         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58085
58086 2007-12-24  Bruno Haible  <bruno@clisp.org>
58087
58088         Fix link error due to xalloc_die().
58089         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58090         of xreadlink.
58091         * lib/relocwrapper.c: Update comments.
58092         * build-aux/install-reloc: Remove xreadlink.c from file list.
58093         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58094         xreadlink.c.
58095         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58096
58097 2007-12-24  Bruno Haible  <bruno@clisp.org>
58098
58099         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58100         * lib/setenv.h: Remove file.
58101         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58102         lib/setenv.h.
58103         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58104         (Depends-on): Add stdlib.
58105         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58106         gl_FUNC_UNSETENV.
58107         (Include): Replace setenv.h with <stdlib.h>.
58108         * modules/unsetenv: New file.
58109         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58110         * lib/unsetenv.c: Include <stdlib.h> first.
58111         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58112         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58113         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58114         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58115         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58116         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58118         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58119         * doc/functions/unsetenv.texi: Update.
58120         * modules/xsetenv (Depends-on): Add unsetenv.
58121         * modules/getdate (Depends-on): Likewise.
58122         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58123         * lib/xsetenv.c: Don't include setenv.h.
58124         * lib/getdate.y: Likewise.
58125         * lib/relocwrapper.c: Likewise.
58126         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58127         (Depends-on): Add stdlib.
58128         * NEWS: Mention the changes.
58129         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58130
58131 2007-12-23  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58134         indentation.
58135
58136 2007-12-23  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/c-strcasestr.c: Add more comments.
58139         * lib/c-strstr.c: Likewise.
58140         * lib/mbscasestr.c: Likewise.
58141         * lib/mbsstr.c: Likewise.
58142         * lib/strcasestr.c: Likewise.
58143         * lib/memmem.c: Likewise.
58144
58145 2007-12-23  Bruno Haible  <bruno@clisp.org>
58146
58147         * tests/test-memmem.c: Include <string.h> first.
58148
58149 2007-12-22  Bruno Haible  <bruno@clisp.org>
58150
58151         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58152         the contents of $testsbase.
58153         Reported by Ralf Wildenhues.
58154
58155 2007-12-22  Bruno Haible  <bruno@clisp.org>
58156
58157         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58158         two variables local_ldadd_before, local_ldadd_last.
58159
58160 2007-12-20  Eric Blake  <ebb9@byu.net>
58161
58162         Work around circular library issue when cross-compiling.
58163         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58164         that progname.o does not need to pull in rpl_memcmp.
58165
58166 2007-12-19  Eric Blake  <ebb9@byu.net>
58167
58168         Fix memmem to avoid O(n^2) worst-case complexity.
58169         * lib/memmem.c (knuth_morris_pratt): New function.
58170         (memmem): Use it if first few naive iterations fail.
58171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58172         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58173         * modules/memchr (License): Likewise.
58174         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58175         malloca.
58176         * tests/test-memmem.c: Rewrite, borrowing ideas from
58177         test-mbsstr1.c; the old version wouldn't even compile!
58178         * modules/memmem-tests: New file.
58179         * lib/string.in.h (rpl_memmem): Add declaration.
58180         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58182         REPLACE_MEMMEM.
58183
58184 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58187         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58188         before any system include files, and undef after them all.  This
58189         should fix a problem on VMS reported by John E. Malmberg in
58190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58191
58192 2007-12-17  Eric Blake  <ebb9@byu.net>
58193
58194         Revert addition of verify, for BSD/OS.
58195         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58196         can't handle large files, for the sake of obsolete platforms.
58197         * modules/fseeko (Depends-on): Remove verify.
58198         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58199         * doc/functions/ftello.texi (ftello): Likewise.
58200         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58201         Reported by Larry Jones.
58202
58203 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58204
58205         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58206         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58207
58208 2007-12-17  Jim Meyering  <meyering@redhat.com>
58209
58210         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58211         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58212         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58213         * modules/getcwd (Depends-on): Add openat.
58214         Reported by Petr Salinger.
58215
58216 2007-12-17  Bruno Haible  <bruno@clisp.org>
58217
58218         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58219         avoid a segmentation fault of the configure test on x86_64 systems.
58220
58221 2007-12-15  Jim Meyering  <meyering@redhat.com>
58222
58223         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58224
58225 2007-12-13  Eric Blake  <ebb9@byu.net>
58226
58227         Another fseek test.
58228         * tests/test-fseek.c (main): Also test ungetc handling.
58229         * tests/test-fseeko.c (main): Likewise.
58230         * modules/fseeko (Depends-on): Add verify.
58231         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58232         large.
58233         Reported by Larry Jones.
58234
58235         Fix fseeko on mingw.
58236         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58237         seek.
58238
58239         Beef up fseek tests.
58240         * tests/test-fseek.c (main): Also test eof handling.
58241         * tests/test-fseeko.c (main): Likewise.
58242         Reported by Larry Jones.
58243
58244 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58245
58246         Fix fseeko on BSD-based platforms.
58247         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58248         successful seek.
58249
58250 2007-12-12  Eric Blake  <ebb9@byu.net>
58251
58252         Allow circular dependency of separate libtests.a
58253         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58254         when use_libtests.
58255
58256 2007-12-11  Eric Blake  <ebb9@byu.net>
58257
58258         Fix bug with -0.0L in previous patch.
58259         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58260         * tests/test-isnan.c (main): Also test on zeroes.
58261         * tests/test-isnanf.c (main): Likewise.
58262         * tests/test-isnanl.h (main): Likewise.
58263
58264         Detect pseudo-denormals on x86 even when cross-compiling.
58265         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58266         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58267         invalid bit patterns that happen to satisfy ==.
58268
58269         Avoid link failures with separate libtests.a.
58270         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58271         last, to satisfy circular dependencies.
58272
58273 2007-12-11  Eric Blake  <ebb9@byu.net>
58274         and Bruno Haible  <bruno@clisp.org>
58275
58276         Fix OpenBSD 4.0 <float.h> handling of long double.
58277         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58278         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58279         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58280
58281 2007-12-11  Jim Meyering  <meyering@redhat.com>
58282
58283         * users.txt: Add libvirt.
58284
58285         Support versions of autoconf prior to 2.59c.
58286         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58287         if it is not already defined.
58288
58289 2007-12-09  Bruno Haible  <bruno@clisp.org>
58290
58291         Let 'gnulib-tool --import' collect sources needed for the tests in
58292         tests/ rather than in lib/.
58293         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58294         argument. If true, add rules to generate libtests.a, and put libtests.a
58295         into $(LDADD). Consider source files in subdirectories and set
58296         uses_subdirs.
58297         (func_emit_initmacro_start, func_emit_initmacro_end,
58298         func_emit_initmacro_done): Pass all arguments explicitly.
58299         (func_import): Determine two module lists main_modules,
58300         testsrelated_modules. Determine use_libtests. Determine two variables
58301         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58302         instead of just sed_transform_lib_file. Determine two variables
58303         main_files and testsrelated_files. Compute 'files' as the union of
58304         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58305         func_add_or_update. In the generated gnulib-comp.m4, collect the
58306         object files for tests/ in different variables than those for lib/.
58307         Substitute LIBTESTS_LIBDEPS.
58308         (func_create_testdir): Combine the uses_subdirs results from
58309         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58310
58311 2007-12-09  Bruno Haible  <bruno@clisp.org>
58312
58313         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58314         the build-aux directory.
58315
58316 2007-12-09  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58319         introduced on 2006-09-09.
58320
58321 2007-12-07  Jim Meyering  <meyering@redhat.com>
58322
58323         Let these macros work also with autoconf-2.59.
58324         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58325         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58327
58328 2007-12-06  Jim Meyering  <meyering@redhat.com>
58329
58330         Avoid a configure-time syntax error in gl_FUNC_ACL.
58331         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58332         function in each branch, before testing the cache variable.
58333
58334 2007-12-04  Eric Blake  <ebb9@byu.net>
58335
58336         Make scripts executable.
58337         * build-aux/config.guess: Add execute permissions.
58338         * build-aux/config.sub: Likewise.
58339         * build-aux/gendocs.sh: Likewise.
58340
58341         Fix frexp on mingw.
58342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58343         cross-compiling.
58344         * doc/functions/frexp.texi (frexp): Document the bug.
58345
58346         Make cygwin fseeko check more reliable.
58347         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58348         version numbers, rather than unrelated feature check.
58349         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58350         * doc/functions/ftello.texi (ftello): Likewise.
58351         Reported by Bruno Haible.
58352
58353         * m4/strerror.m4: Bump version number.
58354
58355 2007-12-03  Bruno Haible  <bruno@clisp.org>
58356
58357         * doc/functions/mprotect.texi: Mention the mingw problem.
58358
58359 2007-12-03  Eric Blake  <ebb9@byu.net>
58360
58361         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58362         REPLACE_STRERROR is initialized before this macro.
58363
58364 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58365
58366         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58367         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58368         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58369         put -lsec in even for programs other than 'ls'.  This fixes a problem
58370         for gettext reported by Bruno Haible in
58371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58372         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58373         Add support for Solaris 10.  This isn't efficient, but should get the
58374         job done for now.
58375
58376 2007-12-03  James Youngman  <jay@gnu.org>
58377
58378         * doc/regexprops-generic.texi: change "an close-group" to "a
58379         close-group" and "illegal" to "not allowed".
58380
58381 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58382
58383         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58384         pr_byname.h. Needed for the rare case when the maintainer has done
58385         "make maintainer-clean" in the source directory and then attempts a
58386         build outside the source directory.
58387         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58388         scripts_byname.h.
58389
58390 2007-12-02  Martin Lambers <marlam@marlam.de>
58391             Bruno Haible  <bruno@clisp.org>
58392
58393         * lib/getpagesize.h: Remove file.
58394         * lib/unistd.in.h: Include declaration of getpagesize here.
58395         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58396         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58397         HAVE_SYS_PARAM_H.
58398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58399         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58400         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58401         (Depends-on): Add unistd.
58402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58403         (Include): Use <unistd.h> instead of getpagesize.h.
58404         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58405         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58406         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58407         gl_GETPAGESIZE invocation, already handled by module dependency.
58408         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58409
58410 2007-12-02  Bruno Haible  <bruno@clisp.org>
58411
58412         * modules/strings-tests: New file.
58413         * tests/test-strings.c: New file.
58414
58415         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58416         * lib/strings.in.h: New file.
58417         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58418         * m4/strings_h.m4: New file.
58419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58420         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58421         * modules/strings: New file.
58422         * modules/string (Makefile.am): Update.
58423         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58424         Reported by Karl Berry.
58425
58426 2007-12-01  Eric Blake  <ebb9@byu.net>
58427
58428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58429         accomodate fix in cygwin 1.5.25.
58430
58431 2007-12-01  Jim Meyering  <meyering@redhat.com>
58432
58433         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58434         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58435         that would inhibit utf8-optimization of a regexp containing line-
58436         or buffer-anchors, e.g., `^', `$'.
58437
58438 2007-11-30  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58441         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58442         glthread_recursive_lock_init.
58443         * lib/lock.c (glthread_recursive_lock_init)
58444         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58446
58447 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         New function qset_acl, like set_acl but with syscall semantics.
58450         * lib/acl.h (qset_acl): New decl.
58451         * lib/acl.c (qset_acl): New function.
58452         (set_acl): Use new function.  Use more-consistent diagnostics.
58453
58454 2007-11-28  Jim Meyering  <meyering@redhat.com>
58455
58456         * modules/physmem (License): Change from GPL to LGPLv2+.
58457
58458 2007-11-26  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58461         'long double' type has excess precision.
58462         Reported by Jim Meyering in
58463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58464
58465 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58466
58467         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58468         Sync from <http://gnu.org/licenses>.
58469         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58470         with license text from same location.
58471         * doc/maintain.texi, doc/standards.texi:  Sync from
58472         <http://savannah.gnu.org/projects/gnustandards>.
58473
58474 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58475         and Jim Meyering  <meyering@redhat.com>
58476
58477         Adjust getdate' grammar to accept a slightly more regular language.
58478         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58479         Before, the former was rejected.
58480         * lib/getdate.y (digits_to_date_time): New function, factored
58481         out of ...
58482         (number): ...here.  Just call digits_to_date_time.
58483         (hybrid): New non-terminal to handle an <unsigned number,
58484         signed relative offset> sequence consistently.
58485
58486 2007-11-18  Jim Meyering  <meyering@redhat.com>
58487
58488         Pull my changes from coreutils:
58489         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58490         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58491         use of $gnulib_tool_option_extras, so that it's separated from the
58492         preceding argument.
58493
58494         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58495         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58496         parent destination directories before copying a file into place.
58497
58498 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58499
58500         bootstrap: work also with 4-argument variant of AC_INIT
58501         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58502
58503 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58504
58505         Port test-getaddrinfo to Solaris.
58506         Problem reported by Bruno Haible in
58507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58508         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58509         explanation of setting 'hints'.
58510         Don't reject an implementation merely because it returns EAI_SERVICE.
58511         (EAI_SERVICE): Define to 0 if not defined.
58512
58513 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         The license of gnu-make and posix-shell is now "GPLed build tool".
58516         * modules/gnu-make (License): Likewise.
58517         * modules/posix-shell (License): Likewise.
58518
58519         New module posix-shell, for determining a POSIX shell
58520         or perhaps something that is close enough to a POSIX shell.
58521         * m4/posix-shell.m4: New file.
58522         * modules/posix-shell: New file.
58523
58524         * MODULES.html.sh: Mention new module.
58525
58526         New module gnu-make, for determining whether we're using GNU Make.
58527         * m4/gnu-make.m4: New file.
58528         * modules/gnu-make: New file.
58529         * MODULES.html.sh: Mention new module.
58530
58531 2007-11-14  Jim Meyering  <meyering@redhat.com>
58532
58533         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58534         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58535         use this macro to create a function _definition_.
58536         Remove useless "#undef ARGMATCH_DIE".
58537
58538 2007-11-14  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/config.charset: Update for OpenBSD 4.1.
58541         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58542
58543 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         Document 64-bit #if problems in stdint.texi.
58546         * doc/headers/stdint.texi (stdint.h): Mention problems with
58547         64-bit-#if, and how to work around them.
58548
58549         Don't insist on 'long long int' support in the preprocessor.  It
58550         breaks too many things.  For example, PRIdMAX still uses a 'long
58551         long int' format with the latest Sun compiler, even though
58552         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58553         preprocessor problem.  This causes the latest coreutils to dump
58554         core on Solaris 10 sparc with the Sun C compiler.
58555         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58556         the troublesome expressions at configure-time, not at #if-time.
58557         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58558         preprocessor.
58559         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58560         compile-time C checks, done at 'configure'-time.
58561         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58562         * modules/inttypes (Makefile): Substitute the new symbols that
58563         gl_INTTYPES_H now generates.
58564         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58565
58566 2007-11-12  Bruno Haible  <bruno@clisp.org>
58567
58568         Tests for Unicode character classification functions.
58569
58570         * modules/unictype/bidicategory-byname-tests: New file.
58571         * modules/unictype/bidicategory-name-tests: New file.
58572         * modules/unictype/bidicategory-of-tests: New file.
58573         * modules/unictype/bidicategory-test-tests: New file.
58574         * modules/unictype/block-list-tests: New file.
58575         * modules/unictype/block-of-tests: New file.
58576         * modules/unictype/block-test-tests: New file.
58577         * modules/unictype/category-C-tests: New file.
58578         * modules/unictype/category-Cc-tests: New file.
58579         * modules/unictype/category-Cf-tests: New file.
58580         * modules/unictype/category-Cn-tests: New file.
58581         * modules/unictype/category-Co-tests: New file.
58582         * modules/unictype/category-Cs-tests: New file.
58583         * modules/unictype/category-L-tests: New file.
58584         * modules/unictype/category-Ll-tests: New file.
58585         * modules/unictype/category-Lm-tests: New file.
58586         * modules/unictype/category-Lo-tests: New file.
58587         * modules/unictype/category-Lt-tests: New file.
58588         * modules/unictype/category-Lu-tests: New file.
58589         * modules/unictype/category-M-tests: New file.
58590         * modules/unictype/category-Mc-tests: New file.
58591         * modules/unictype/category-Me-tests: New file.
58592         * modules/unictype/category-Mn-tests: New file.
58593         * modules/unictype/category-N-tests: New file.
58594         * modules/unictype/category-Nd-tests: New file.
58595         * modules/unictype/category-Nl-tests: New file.
58596         * modules/unictype/category-No-tests: New file.
58597         * modules/unictype/category-P-tests: New file.
58598         * modules/unictype/category-Pc-tests: New file.
58599         * modules/unictype/category-Pd-tests: New file.
58600         * modules/unictype/category-Pe-tests: New file.
58601         * modules/unictype/category-Pf-tests: New file.
58602         * modules/unictype/category-Pi-tests: New file.
58603         * modules/unictype/category-Po-tests: New file.
58604         * modules/unictype/category-Ps-tests: New file.
58605         * modules/unictype/category-S-tests: New file.
58606         * modules/unictype/category-Sc-tests: New file.
58607         * modules/unictype/category-Sk-tests: New file.
58608         * modules/unictype/category-Sm-tests: New file.
58609         * modules/unictype/category-So-tests: New file.
58610         * modules/unictype/category-Z-tests: New file.
58611         * modules/unictype/category-Zl-tests: New file.
58612         * modules/unictype/category-Zp-tests: New file.
58613         * modules/unictype/category-Zs-tests: New file.
58614         * modules/unictype/category-and-not-tests: New file.
58615         * modules/unictype/category-and-tests: New file.
58616         * modules/unictype/category-byname-tests: New file.
58617         * modules/unictype/category-name-tests: New file.
58618         * modules/unictype/category-none-tests: New file.
58619         * modules/unictype/category-of-tests: New file.
58620         * modules/unictype/category-or-tests: New file.
58621         * modules/unictype/category-test-withtable-tests: New file.
58622         * modules/unictype/combining-class-tests: New file.
58623         * modules/unictype/ctype-alnum-tests: New file.
58624         * modules/unictype/ctype-alpha-tests: New file.
58625         * modules/unictype/ctype-blank-tests: New file.
58626         * modules/unictype/ctype-cntrl-tests: New file.
58627         * modules/unictype/ctype-digit-tests: New file.
58628         * modules/unictype/ctype-graph-tests: New file.
58629         * modules/unictype/ctype-lower-tests: New file.
58630         * modules/unictype/ctype-print-tests: New file.
58631         * modules/unictype/ctype-punct-tests: New file.
58632         * modules/unictype/ctype-space-tests: New file.
58633         * modules/unictype/ctype-upper-tests: New file.
58634         * modules/unictype/ctype-xdigit-tests: New file.
58635         * modules/unictype/decimal-digit-tests: New file.
58636         * modules/unictype/digit-tests: New file.
58637         * modules/unictype/mirror-tests: New file.
58638         * modules/unictype/numeric-tests: New file.
58639         * modules/unictype/property-alphabetic-tests: New file.
58640         * modules/unictype/property-ascii-hex-digit-tests: New file.
58641         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58642         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58643         * modules/unictype/property-bidi-block-separator-tests: New file.
58644         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58645         * modules/unictype/property-bidi-common-separator-tests: New file.
58646         * modules/unictype/property-bidi-control-tests: New file.
58647         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58648         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58649         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58650         * modules/unictype/property-bidi-european-digit-tests: New file.
58651         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58652         * modules/unictype/property-bidi-left-to-right-tests: New file.
58653         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58654         * modules/unictype/property-bidi-other-neutral-tests: New file.
58655         * modules/unictype/property-bidi-pdf-tests: New file.
58656         * modules/unictype/property-bidi-segment-separator-tests: New file.
58657         * modules/unictype/property-bidi-whitespace-tests: New file.
58658         * modules/unictype/property-byname-tests: New file.
58659         * modules/unictype/property-combining-tests: New file.
58660         * modules/unictype/property-composite-tests: New file.
58661         * modules/unictype/property-currency-symbol-tests: New file.
58662         * modules/unictype/property-dash-tests: New file.
58663         * modules/unictype/property-decimal-digit-tests: New file.
58664         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58665         * modules/unictype/property-deprecated-tests: New file.
58666         * modules/unictype/property-diacritic-tests: New file.
58667         * modules/unictype/property-extender-tests: New file.
58668         * modules/unictype/property-format-control-tests: New file.
58669         * modules/unictype/property-grapheme-base-tests: New file.
58670         * modules/unictype/property-grapheme-extend-tests: New file.
58671         * modules/unictype/property-grapheme-link-tests: New file.
58672         * modules/unictype/property-hex-digit-tests: New file.
58673         * modules/unictype/property-hyphen-tests: New file.
58674         * modules/unictype/property-id-continue-tests: New file.
58675         * modules/unictype/property-id-start-tests: New file.
58676         * modules/unictype/property-ideographic-tests: New file.
58677         * modules/unictype/property-ids-binary-operator-tests: New file.
58678         * modules/unictype/property-ids-trinary-operator-tests: New file.
58679         * modules/unictype/property-ignorable-control-tests: New file.
58680         * modules/unictype/property-iso-control-tests: New file.
58681         * modules/unictype/property-join-control-tests: New file.
58682         * modules/unictype/property-left-of-pair-tests: New file.
58683         * modules/unictype/property-line-separator-tests: New file.
58684         * modules/unictype/property-logical-order-exception-tests: New file.
58685         * modules/unictype/property-lowercase-tests: New file.
58686         * modules/unictype/property-math-tests: New file.
58687         * modules/unictype/property-non-break-tests: New file.
58688         * modules/unictype/property-not-a-character-tests: New file.
58689         * modules/unictype/property-numeric-tests: New file.
58690         * modules/unictype/property-other-alphabetic-tests: New file.
58691         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58692         * modules/unictype/property-other-grapheme-extend-tests: New file.
58693         * modules/unictype/property-other-id-continue-tests: New file.
58694         * modules/unictype/property-other-id-start-tests: New file.
58695         * modules/unictype/property-other-lowercase-tests: New file.
58696         * modules/unictype/property-other-math-tests: New file.
58697         * modules/unictype/property-other-uppercase-tests: New file.
58698         * modules/unictype/property-paired-punctuation-tests: New file.
58699         * modules/unictype/property-paragraph-separator-tests: New file.
58700         * modules/unictype/property-pattern-syntax-tests: New file.
58701         * modules/unictype/property-pattern-white-space-tests: New file.
58702         * modules/unictype/property-private-use-tests: New file.
58703         * modules/unictype/property-punctuation-tests: New file.
58704         * modules/unictype/property-quotation-mark-tests: New file.
58705         * modules/unictype/property-radical-tests: New file.
58706         * modules/unictype/property-sentence-terminal-tests: New file.
58707         * modules/unictype/property-soft-dotted-tests: New file.
58708         * modules/unictype/property-space-tests: New file.
58709         * modules/unictype/property-terminal-punctuation-tests: New file.
58710         * modules/unictype/property-test-tests: New file.
58711         * modules/unictype/property-titlecase-tests: New file.
58712         * modules/unictype/property-unassigned-code-value-tests: New file.
58713         * modules/unictype/property-unified-ideograph-tests: New file.
58714         * modules/unictype/property-uppercase-tests: New file.
58715         * modules/unictype/property-variation-selector-tests: New file.
58716         * modules/unictype/property-white-space-tests: New file.
58717         * modules/unictype/property-xid-continue-tests: New file.
58718         * modules/unictype/property-xid-start-tests: New file.
58719         * modules/unictype/property-zero-width-tests: New file.
58720         * modules/unictype/scripts-tests: New file.
58721         * modules/unictype/syntax-c-ident-tests: New file.
58722         * modules/unictype/syntax-c-whitespace-tests: New file.
58723         * modules/unictype/syntax-java-ident-tests: New file.
58724         * modules/unictype/syntax-java-whitespace-tests: New file.
58725         * tests/unictype/test-bidi_byname.c: New file.
58726         * tests/unictype/test-bidi_name.c: New file.
58727         * tests/unictype/test-bidi_of.c: New file.
58728         * tests/unictype/test-bidi_test.c: New file.
58729         * tests/unictype/test-block_list.c: New file.
58730         * tests/unictype/test-block_of.c: New file.
58731         * tests/unictype/test-block_test.c: New file.
58732         * tests/unictype/test-categ_and.c: New file.
58733         * tests/unictype/test-categ_and_not.c: New file.
58734         * tests/unictype/test-categ_byname.c: New file.
58735         * tests/unictype/test-categ_name.c: New file.
58736         * tests/unictype/test-categ_none.c: New file.
58737         * tests/unictype/test-categ_of.c: New file.
58738         * tests/unictype/test-categ_or.c: New file.
58739         * tests/unictype/test-categ_test_withtable.c: New file.
58740         * tests/unictype/test-combining.c: New file.
58741         * tests/unictype/test-decdigit.c: New file.
58742         * tests/unictype/test-digit.c: New file.
58743         * tests/unictype/test-mirror.c: New file.
58744         * tests/unictype/test-numeric.c: New file.
58745         * tests/unictype/test-pr_byname.c: New file.
58746         * tests/unictype/test-pr_test.c: New file.
58747         * tests/unictype/test-predicate-part1.h: New file.
58748         * tests/unictype/test-predicate-part2.h: New file.
58749         * tests/unictype/test-scripts.c: New file.
58750         * tests/unictype/test-sy_c_ident.c: New file.
58751         * tests/unictype/test-sy_java_ident.c: New file.
58752
58753         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58754         for Unicode 5.0.0.
58755         * tests/unictype/test-categ_Cc.c: Likewise.
58756         * tests/unictype/test-categ_Cf.c: Likewise.
58757         * tests/unictype/test-categ_Cn.c: Likewise.
58758         * tests/unictype/test-categ_Co.c: Likewise.
58759         * tests/unictype/test-categ_Cs.c: Likewise.
58760         * tests/unictype/test-categ_L.c: Likewise.
58761         * tests/unictype/test-categ_Ll.c: Likewise.
58762         * tests/unictype/test-categ_Lm.c: Likewise.
58763         * tests/unictype/test-categ_Lo.c: Likewise.
58764         * tests/unictype/test-categ_Lt.c: Likewise.
58765         * tests/unictype/test-categ_Lu.c: Likewise.
58766         * tests/unictype/test-categ_M.c: Likewise.
58767         * tests/unictype/test-categ_Mc.c: Likewise.
58768         * tests/unictype/test-categ_Me.c: Likewise.
58769         * tests/unictype/test-categ_Mn.c: Likewise.
58770         * tests/unictype/test-categ_N.c: Likewise.
58771         * tests/unictype/test-categ_Nd.c: Likewise.
58772         * tests/unictype/test-categ_Nl.c: Likewise.
58773         * tests/unictype/test-categ_No.c: Likewise.
58774         * tests/unictype/test-categ_P.c: Likewise.
58775         * tests/unictype/test-categ_Pc.c: Likewise.
58776         * tests/unictype/test-categ_Pd.c: Likewise.
58777         * tests/unictype/test-categ_Pe.c: Likewise.
58778         * tests/unictype/test-categ_Pf.c: Likewise.
58779         * tests/unictype/test-categ_Pi.c: Likewise.
58780         * tests/unictype/test-categ_Po.c: Likewise.
58781         * tests/unictype/test-categ_Ps.c: Likewise.
58782         * tests/unictype/test-categ_S.c: Likewise.
58783         * tests/unictype/test-categ_Sc.c: Likewise.
58784         * tests/unictype/test-categ_Sk.c: Likewise.
58785         * tests/unictype/test-categ_Sm.c: Likewise.
58786         * tests/unictype/test-categ_So.c: Likewise.
58787         * tests/unictype/test-categ_Z.c: Likewise.
58788         * tests/unictype/test-categ_Zl.c: Likewise.
58789         * tests/unictype/test-categ_Zp.c: Likewise.
58790         * tests/unictype/test-categ_Zs.c: Likewise.
58791         * tests/unictype/test-ctype_alnum.c: Likewise.
58792         * tests/unictype/test-ctype_alpha.c: Likewise.
58793         * tests/unictype/test-ctype_blank.c: Likewise.
58794         * tests/unictype/test-ctype_cntrl.c: Likewise.
58795         * tests/unictype/test-ctype_digit.c: Likewise.
58796         * tests/unictype/test-ctype_graph.c: Likewise.
58797         * tests/unictype/test-ctype_lower.c: Likewise.
58798         * tests/unictype/test-ctype_print.c: Likewise.
58799         * tests/unictype/test-ctype_punct.c: Likewise.
58800         * tests/unictype/test-ctype_space.c: Likewise.
58801         * tests/unictype/test-ctype_upper.c: Likewise.
58802         * tests/unictype/test-ctype_xdigit.c: Likewise.
58803         * tests/unictype/test-decdigit.h: Likewise.
58804         * tests/unictype/test-digit.h: Likewise.
58805         * tests/unictype/test-numeric.h: Likewise.
58806         * tests/unictype/test-pr_alphabetic.c: Likewise.
58807         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58808         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58809         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58810         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58811         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58812         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58813         * tests/unictype/test-pr_bidi_control.c: Likewise.
58814         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58815         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58816         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58817         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58818         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58819         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58820         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58821         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58822         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58823         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58824         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58825         * tests/unictype/test-pr_combining.c: Likewise.
58826         * tests/unictype/test-pr_composite.c: Likewise.
58827         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58828         * tests/unictype/test-pr_dash.c: Likewise.
58829         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58830         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58831         * tests/unictype/test-pr_deprecated.c: Likewise.
58832         * tests/unictype/test-pr_diacritic.c: Likewise.
58833         * tests/unictype/test-pr_extender.c: Likewise.
58834         * tests/unictype/test-pr_format_control.c: Likewise.
58835         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58836         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58837         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58838         * tests/unictype/test-pr_hex_digit.c: Likewise.
58839         * tests/unictype/test-pr_hyphen.c: Likewise.
58840         * tests/unictype/test-pr_id_continue.c: Likewise.
58841         * tests/unictype/test-pr_id_start.c: Likewise.
58842         * tests/unictype/test-pr_ideographic.c: Likewise.
58843         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58844         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58845         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58846         * tests/unictype/test-pr_iso_control.c: Likewise.
58847         * tests/unictype/test-pr_join_control.c: Likewise.
58848         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58849         * tests/unictype/test-pr_line_separator.c: Likewise.
58850         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58851         * tests/unictype/test-pr_lowercase.c: Likewise.
58852         * tests/unictype/test-pr_math.c: Likewise.
58853         * tests/unictype/test-pr_non_break.c: Likewise.
58854         * tests/unictype/test-pr_not_a_character.c: Likewise.
58855         * tests/unictype/test-pr_numeric.c: Likewise.
58856         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58857         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58858         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58859         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58860         * tests/unictype/test-pr_other_id_start.c: Likewise.
58861         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58862         * tests/unictype/test-pr_other_math.c: Likewise.
58863         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58864         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58865         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58866         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58867         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58868         * tests/unictype/test-pr_private_use.c: Likewise.
58869         * tests/unictype/test-pr_punctuation.c: Likewise.
58870         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58871         * tests/unictype/test-pr_radical.c: Likewise.
58872         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58873         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58874         * tests/unictype/test-pr_space.c: Likewise.
58875         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58876         * tests/unictype/test-pr_titlecase.c: Likewise.
58877         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58878         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58879         * tests/unictype/test-pr_uppercase.c: Likewise.
58880         * tests/unictype/test-pr_variation_selector.c: Likewise.
58881         * tests/unictype/test-pr_white_space.c: Likewise.
58882         * tests/unictype/test-pr_xid_continue.c: Likewise.
58883         * tests/unictype/test-pr_xid_start.c: Likewise.
58884         * tests/unictype/test-pr_zero_width.c: Likewise.
58885         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58886         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58887
58888 2007-11-12  Bruno Haible  <bruno@clisp.org>
58889
58890         Unicode character classification functions.
58891         * lib/unictype.h: New file.
58892         * modules/unictype/base: New file.
58893         * modules/unictype/category-L: New file.
58894         * modules/unictype/category-Lu: New file.
58895         * modules/unictype/category-Ll: New file.
58896         * modules/unictype/category-Lt: New file.
58897         * modules/unictype/category-Lm: New file.
58898         * modules/unictype/category-Lo: New file.
58899         * modules/unictype/category-M: New file.
58900         * modules/unictype/category-Mn: New file.
58901         * modules/unictype/category-Mc: New file.
58902         * modules/unictype/category-Me: New file.
58903         * modules/unictype/category-N: New file.
58904         * modules/unictype/category-Nd: New file.
58905         * modules/unictype/category-Nl: New file.
58906         * modules/unictype/category-No: New file.
58907         * modules/unictype/category-P: New file.
58908         * modules/unictype/category-Pc: New file.
58909         * modules/unictype/category-Pd: New file.
58910         * modules/unictype/category-Ps: New file.
58911         * modules/unictype/category-Pe: New file.
58912         * modules/unictype/category-Pi: New file.
58913         * modules/unictype/category-Pf: New file.
58914         * modules/unictype/category-Po: New file.
58915         * modules/unictype/category-S: New file.
58916         * modules/unictype/category-Sm: New file.
58917         * modules/unictype/category-Sc: New file.
58918         * modules/unictype/category-Sk: New file.
58919         * modules/unictype/category-So: New file.
58920         * modules/unictype/category-Z: New file.
58921         * modules/unictype/category-Zs: New file.
58922         * modules/unictype/category-Zl: New file.
58923         * modules/unictype/category-Zp: New file.
58924         * modules/unictype/category-C: New file.
58925         * modules/unictype/category-Cc: New file.
58926         * modules/unictype/category-Cf: New file.
58927         * modules/unictype/category-Cs: New file.
58928         * modules/unictype/category-Co: New file.
58929         * modules/unictype/category-Cn: New file.
58930         * modules/unictype/category-or: New file.
58931         * modules/unictype/category-of: New file.
58932         * modules/unictype/category-test: New file.
58933         * modules/unictype/category-test-withtable: New file.
58934         * modules/unictype/category-byname: New file.
58935         * modules/unictype/category-none: New file.
58936         * modules/unictype/category-and: New file.
58937         * modules/unictype/category-and-not: New file.
58938         * modules/unictype/category-name: New file.
58939         * modules/unictype/combining-class: New file.
58940         * modules/unictype/category-all: New file.
58941         * modules/unictype/bidicategory-all: New file.
58942         * modules/unictype/bidicategory-byname: New file.
58943         * modules/unictype/bidicategory-name: New file.
58944         * modules/unictype/bidicategory-of: New file.
58945         * modules/unictype/bidicategory-test: New file.
58946         * modules/unictype/decimal-digit: New file.
58947         * modules/unictype/digit: New file.
58948         * modules/unictype/numeric: New file.
58949         * modules/unictype/mirror: New file.
58950         * modules/unictype/property-white-space: New file.
58951         * modules/unictype/property-alphabetic: New file.
58952         * modules/unictype/property-other-alphabetic: New file.
58953         * modules/unictype/property-not-a-character: New file.
58954         * modules/unictype/property-default-ignorable-code-point: New file.
58955         * modules/unictype/property-other-default-ignorable-code-point: New
58956         file.
58957         * modules/unictype/property-deprecated: New file.
58958         * modules/unictype/property-logical-order-exception: New file.
58959         * modules/unictype/property-variation-selector: New file.
58960         * modules/unictype/property-private-use: New file.
58961         * modules/unictype/property-unassigned-code-value: New file.
58962         * modules/unictype/property-uppercase: New file.
58963         * modules/unictype/property-other-uppercase: New file.
58964         * modules/unictype/property-lowercase: New file.
58965         * modules/unictype/property-other-lowercase: New file.
58966         * modules/unictype/property-titlecase: New file.
58967         * modules/unictype/property-soft-dotted: New file.
58968         * modules/unictype/property-id-start: New file.
58969         * modules/unictype/property-other-id-start: New file.
58970         * modules/unictype/property-id-continue: New file.
58971         * modules/unictype/property-other-id-continue: New file.
58972         * modules/unictype/property-xid-start: New file.
58973         * modules/unictype/property-xid-continue: New file.
58974         * modules/unictype/property-pattern-white-space: New file.
58975         * modules/unictype/property-pattern-syntax: New file.
58976         * modules/unictype/property-join-control: New file.
58977         * modules/unictype/property-grapheme-base: New file.
58978         * modules/unictype/property-grapheme-extend: New file.
58979         * modules/unictype/property-other-grapheme-extend: New file.
58980         * modules/unictype/property-grapheme-link: New file.
58981         * modules/unictype/property-bidi-control: New file.
58982         * modules/unictype/property-bidi-left-to-right: New file.
58983         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58984         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58985         * modules/unictype/property-bidi-european-digit: New file.
58986         * modules/unictype/property-bidi-eur-num-separator: New file.
58987         * modules/unictype/property-bidi-eur-num-terminator: New file.
58988         * modules/unictype/property-bidi-arabic-digit: New file.
58989         * modules/unictype/property-bidi-common-separator: New file.
58990         * modules/unictype/property-bidi-block-separator: New file.
58991         * modules/unictype/property-bidi-segment-separator: New file.
58992         * modules/unictype/property-bidi-whitespace: New file.
58993         * modules/unictype/property-bidi-non-spacing-mark: New file.
58994         * modules/unictype/property-bidi-boundary-neutral: New file.
58995         * modules/unictype/property-bidi-pdf: New file.
58996         * modules/unictype/property-bidi-embedding-or-override: New file.
58997         * modules/unictype/property-bidi-other-neutral: New file.
58998         * modules/unictype/property-hex-digit: New file.
58999         * modules/unictype/property-ascii-hex-digit: New file.
59000         * modules/unictype/property-ideographic: New file.
59001         * modules/unictype/property-unified-ideograph: New file.
59002         * modules/unictype/property-radical: New file.
59003         * modules/unictype/property-ids-binary-operator: New file.
59004         * modules/unictype/property-ids-trinary-operator: New file.
59005         * modules/unictype/property-zero-width: New file.
59006         * modules/unictype/property-space: New file.
59007         * modules/unictype/property-non-break: New file.
59008         * modules/unictype/property-iso-control: New file.
59009         * modules/unictype/property-format-control: New file.
59010         * modules/unictype/property-dash: New file.
59011         * modules/unictype/property-hyphen: New file.
59012         * modules/unictype/property-punctuation: New file.
59013         * modules/unictype/property-line-separator: New file.
59014         * modules/unictype/property-paragraph-separator: New file.
59015         * modules/unictype/property-quotation-mark: New file.
59016         * modules/unictype/property-sentence-terminal: New file.
59017         * modules/unictype/property-terminal-punctuation: New file.
59018         * modules/unictype/property-currency-symbol: New file.
59019         * modules/unictype/property-math: New file.
59020         * modules/unictype/property-other-math: New file.
59021         * modules/unictype/property-paired-punctuation: New file.
59022         * modules/unictype/property-left-of-pair: New file.
59023         * modules/unictype/property-combining: New file.
59024         * modules/unictype/property-composite: New file.
59025         * modules/unictype/property-decimal-digit: New file.
59026         * modules/unictype/property-numeric: New file.
59027         * modules/unictype/property-diacritic: New file.
59028         * modules/unictype/property-extender: New file.
59029         * modules/unictype/property-ignorable-control: New file.
59030         * modules/unictype/property-test: New file.
59031         * modules/unictype/property-byname: New file.
59032         * modules/unictype/property-all: New file.
59033         * modules/unictype/scripts: New file.
59034         * modules/unictype/scripts-all: New file.
59035         * modules/unictype/block-of: New file.
59036         * modules/unictype/block-test: New file.
59037         * modules/unictype/block-list: New file.
59038         * modules/unictype/block-all: New file.
59039         * modules/unictype/syntax-c-whitespace: New file.
59040         * modules/unictype/syntax-java-whitespace: New file.
59041         * modules/unictype/syntax-c-ident: New file.
59042         * modules/unictype/syntax-java-ident: New file.
59043         * modules/unictype/ctype-alnum: New file.
59044         * modules/unictype/ctype-alpha: New file.
59045         * modules/unictype/ctype-cntrl: New file.
59046         * modules/unictype/ctype-digit: New file.
59047         * modules/unictype/ctype-graph: New file.
59048         * modules/unictype/ctype-lower: New file.
59049         * modules/unictype/ctype-print: New file.
59050         * modules/unictype/ctype-punct: New file.
59051         * modules/unictype/ctype-space: New file.
59052         * modules/unictype/ctype-upper: New file.
59053         * modules/unictype/ctype-xdigit: New file.
59054         * modules/unictype/ctype-blank: New file.
59055         * lib/unictype/bidi_byname.c: New file.
59056         * lib/unictype/bidi_name.c: New file.
59057         * lib/unictype/bidi_of.c: New file.
59058         * lib/unictype/bidi_test.c: New file.
59059         * lib/unictype/bitmap.h: New file.
59060         * lib/unictype/block_test.c: New file.
59061         * lib/unictype/blocks.c: New file.
59062         * lib/unictype/categ_C.c: New file.
59063         * lib/unictype/categ_Cc.c: New file.
59064         * lib/unictype/categ_Cf.c: New file.
59065         * lib/unictype/categ_Cn.c: New file.
59066         * lib/unictype/categ_Co.c: New file.
59067         * lib/unictype/categ_Cs.c: New file.
59068         * lib/unictype/categ_L.c: New file.
59069         * lib/unictype/categ_Ll.c: New file.
59070         * lib/unictype/categ_Lm.c: New file.
59071         * lib/unictype/categ_Lo.c: New file.
59072         * lib/unictype/categ_Lt.c: New file.
59073         * lib/unictype/categ_Lu.c: New file.
59074         * lib/unictype/categ_M.c: New file.
59075         * lib/unictype/categ_Mc.c: New file.
59076         * lib/unictype/categ_Me.c: New file.
59077         * lib/unictype/categ_Mn.c: New file.
59078         * lib/unictype/categ_N.c: New file.
59079         * lib/unictype/categ_Nd.c: New file.
59080         * lib/unictype/categ_Nl.c: New file.
59081         * lib/unictype/categ_No.c: New file.
59082         * lib/unictype/categ_P.c: New file.
59083         * lib/unictype/categ_Pc.c: New file.
59084         * lib/unictype/categ_Pd.c: New file.
59085         * lib/unictype/categ_Pe.c: New file.
59086         * lib/unictype/categ_Pf.c: New file.
59087         * lib/unictype/categ_Pi.c: New file.
59088         * lib/unictype/categ_Po.c: New file.
59089         * lib/unictype/categ_Ps.c: New file.
59090         * lib/unictype/categ_S.c: New file.
59091         * lib/unictype/categ_Sc.c: New file.
59092         * lib/unictype/categ_Sk.c: New file.
59093         * lib/unictype/categ_Sm.c: New file.
59094         * lib/unictype/categ_So.c: New file.
59095         * lib/unictype/categ_Z.c: New file.
59096         * lib/unictype/categ_Zl.c: New file.
59097         * lib/unictype/categ_Zp.c: New file.
59098         * lib/unictype/categ_Zs.c: New file.
59099         * lib/unictype/categ_and.c: New file.
59100         * lib/unictype/categ_and_not.c: New file.
59101         * lib/unictype/categ_byname.c: New file.
59102         * lib/unictype/categ_name.c: New file.
59103         * lib/unictype/categ_none.c: New file.
59104         * lib/unictype/categ_of.c: New file.
59105         * lib/unictype/categ_or.c: New file.
59106         * lib/unictype/categ_test.c: New file.
59107         * lib/unictype/combining.c: New file.
59108         * lib/unictype/ctype_alnum.c: New file.
59109         * lib/unictype/ctype_alpha.c: New file.
59110         * lib/unictype/ctype_blank.c: New file.
59111         * lib/unictype/ctype_cntrl.c: New file.
59112         * lib/unictype/ctype_digit.c: New file.
59113         * lib/unictype/ctype_graph.c: New file.
59114         * lib/unictype/ctype_lower.c: New file.
59115         * lib/unictype/ctype_print.c: New file.
59116         * lib/unictype/ctype_punct.c: New file.
59117         * lib/unictype/ctype_space.c: New file.
59118         * lib/unictype/ctype_upper.c: New file.
59119         * lib/unictype/ctype_xdigit.c: New file.
59120         * lib/unictype/decdigit.c: New file.
59121         * lib/unictype/digit.c: New file.
59122         * lib/unictype/identsyntaxmap.h: New file.
59123         * lib/unictype/mirror.c: New file.
59124         * lib/unictype/numeric.c: New file.
59125         * lib/unictype/pr_alphabetic.c: New file.
59126         * lib/unictype/pr_ascii_hex_digit.c: New file.
59127         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59128         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59129         * lib/unictype/pr_bidi_block_separator.c: New file.
59130         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59131         * lib/unictype/pr_bidi_common_separator.c: New file.
59132         * lib/unictype/pr_bidi_control.c: New file.
59133         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59134         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59135         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59136         * lib/unictype/pr_bidi_european_digit.c: New file.
59137         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59138         * lib/unictype/pr_bidi_left_to_right.c: New file.
59139         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59140         * lib/unictype/pr_bidi_other_neutral.c: New file.
59141         * lib/unictype/pr_bidi_pdf.c: New file.
59142         * lib/unictype/pr_bidi_segment_separator.c: New file.
59143         * lib/unictype/pr_bidi_whitespace.c: New file.
59144         * lib/unictype/pr_byname.c: New file.
59145         * lib/unictype/pr_byname.gperf: New file.
59146         * lib/unictype/pr_combining.c: New file.
59147         * lib/unictype/pr_composite.c: New file.
59148         * lib/unictype/pr_currency_symbol.c: New file.
59149         * lib/unictype/pr_dash.c: New file.
59150         * lib/unictype/pr_decimal_digit.c: New file.
59151         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59152         * lib/unictype/pr_deprecated.c: New file.
59153         * lib/unictype/pr_diacritic.c: New file.
59154         * lib/unictype/pr_extender.c: New file.
59155         * lib/unictype/pr_format_control.c: New file.
59156         * lib/unictype/pr_grapheme_base.c: New file.
59157         * lib/unictype/pr_grapheme_extend.c: New file.
59158         * lib/unictype/pr_grapheme_link.c: New file.
59159         * lib/unictype/pr_hex_digit.c: New file.
59160         * lib/unictype/pr_hyphen.c: New file.
59161         * lib/unictype/pr_id_continue.c: New file.
59162         * lib/unictype/pr_id_start.c: New file.
59163         * lib/unictype/pr_ideographic.c: New file.
59164         * lib/unictype/pr_ids_binary_operator.c: New file.
59165         * lib/unictype/pr_ids_trinary_operator.c: New file.
59166         * lib/unictype/pr_ignorable_control.c: New file.
59167         * lib/unictype/pr_iso_control.c: New file.
59168         * lib/unictype/pr_join_control.c: New file.
59169         * lib/unictype/pr_left_of_pair.c: New file.
59170         * lib/unictype/pr_line_separator.c: New file.
59171         * lib/unictype/pr_logical_order_exception.c: New file.
59172         * lib/unictype/pr_lowercase.c: New file.
59173         * lib/unictype/pr_math.c: New file.
59174         * lib/unictype/pr_non_break.c: New file.
59175         * lib/unictype/pr_not_a_character.c: New file.
59176         * lib/unictype/pr_numeric.c: New file.
59177         * lib/unictype/pr_other_alphabetic.c: New file.
59178         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59179         * lib/unictype/pr_other_grapheme_extend.c: New file.
59180         * lib/unictype/pr_other_id_continue.c: New file.
59181         * lib/unictype/pr_other_id_start.c: New file.
59182         * lib/unictype/pr_other_lowercase.c: New file.
59183         * lib/unictype/pr_other_math.c: New file.
59184         * lib/unictype/pr_other_uppercase.c: New file.
59185         * lib/unictype/pr_paired_punctuation.c: New file.
59186         * lib/unictype/pr_paragraph_separator.c: New file.
59187         * lib/unictype/pr_pattern_syntax.c: New file.
59188         * lib/unictype/pr_pattern_white_space.c: New file.
59189         * lib/unictype/pr_private_use.c: New file.
59190         * lib/unictype/pr_punctuation.c: New file.
59191         * lib/unictype/pr_quotation_mark.c: New file.
59192         * lib/unictype/pr_radical.c: New file.
59193         * lib/unictype/pr_sentence_terminal.c: New file.
59194         * lib/unictype/pr_soft_dotted.c: New file.
59195         * lib/unictype/pr_space.c: New file.
59196         * lib/unictype/pr_terminal_punctuation.c: New file.
59197         * lib/unictype/pr_test.c: New file.
59198         * lib/unictype/pr_titlecase.c: New file.
59199         * lib/unictype/pr_unassigned_code_value.c: New file.
59200         * lib/unictype/pr_unified_ideograph.c: New file.
59201         * lib/unictype/pr_uppercase.c: New file.
59202         * lib/unictype/pr_variation_selector.c: New file.
59203         * lib/unictype/pr_white_space.c: New file.
59204         * lib/unictype/pr_xid_continue.c: New file.
59205         * lib/unictype/pr_xid_start.c: New file.
59206         * lib/unictype/pr_zero_width.c: New file.
59207         * lib/unictype/scripts.c: New file.
59208         * lib/unictype/sy_c_ident.c: New file.
59209         * lib/unictype/sy_c_whitespace.c: New file.
59210         * lib/unictype/sy_java_ident.c: New file.
59211         * lib/unictype/sy_java_whitespace.c: New file.
59212
59213         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59214         Unicode 5.0.0.
59215         * lib/unictype/blocks.h: Likewise.
59216         * lib/unictype/categ_C.h: Likewise.
59217         * lib/unictype/categ_Cc.h: Likewise.
59218         * lib/unictype/categ_Cf.h: Likewise.
59219         * lib/unictype/categ_Cn.h: Likewise.
59220         * lib/unictype/categ_Co.h: Likewise.
59221         * lib/unictype/categ_Cs.h: Likewise.
59222         * lib/unictype/categ_L.h: Likewise.
59223         * lib/unictype/categ_Ll.h: Likewise.
59224         * lib/unictype/categ_Lm.h: Likewise.
59225         * lib/unictype/categ_Lo.h: Likewise.
59226         * lib/unictype/categ_Lt.h: Likewise.
59227         * lib/unictype/categ_Lu.h: Likewise.
59228         * lib/unictype/categ_M.h: Likewise.
59229         * lib/unictype/categ_Mc.h: Likewise.
59230         * lib/unictype/categ_Me.h: Likewise.
59231         * lib/unictype/categ_Mn.h: Likewise.
59232         * lib/unictype/categ_N.h: Likewise.
59233         * lib/unictype/categ_Nd.h: Likewise.
59234         * lib/unictype/categ_Nl.h: Likewise.
59235         * lib/unictype/categ_No.h: Likewise.
59236         * lib/unictype/categ_P.h: Likewise.
59237         * lib/unictype/categ_Pc.h: Likewise.
59238         * lib/unictype/categ_Pd.h: Likewise.
59239         * lib/unictype/categ_Pe.h: Likewise.
59240         * lib/unictype/categ_Pf.h: Likewise.
59241         * lib/unictype/categ_Pi.h: Likewise.
59242         * lib/unictype/categ_Po.h: Likewise.
59243         * lib/unictype/categ_Ps.h: Likewise.
59244         * lib/unictype/categ_S.h: Likewise.
59245         * lib/unictype/categ_Sc.h: Likewise.
59246         * lib/unictype/categ_Sk.h: Likewise.
59247         * lib/unictype/categ_Sm.h: Likewise.
59248         * lib/unictype/categ_So.h: Likewise.
59249         * lib/unictype/categ_Z.h: Likewise.
59250         * lib/unictype/categ_Zl.h: Likewise.
59251         * lib/unictype/categ_Zp.h: Likewise.
59252         * lib/unictype/categ_Zs.h: Likewise.
59253         * lib/unictype/categ_of.h: Likewise.
59254         * lib/unictype/combining.h: Likewise.
59255         * lib/unictype/ctype_alnum.h: Likewise.
59256         * lib/unictype/ctype_alpha.h: Likewise.
59257         * lib/unictype/ctype_blank.h: Likewise.
59258         * lib/unictype/ctype_cntrl.h: Likewise.
59259         * lib/unictype/ctype_digit.h: Likewise.
59260         * lib/unictype/ctype_graph.h: Likewise.
59261         * lib/unictype/ctype_lower.h: Likewise.
59262         * lib/unictype/ctype_print.h: Likewise.
59263         * lib/unictype/ctype_punct.h: Likewise.
59264         * lib/unictype/ctype_space.h: Likewise.
59265         * lib/unictype/ctype_upper.h: Likewise.
59266         * lib/unictype/ctype_xdigit.h: Likewise.
59267         * lib/unictype/decdigit.h: Likewise.
59268         * lib/unictype/digit.h: Likewise.
59269         * lib/unictype/mirror.h: Likewise.
59270         * lib/unictype/numeric.h: Likewise.
59271         * lib/unictype/pr_alphabetic.h: Likewise.
59272         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59273         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59274         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59275         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59276         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59277         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59278         * lib/unictype/pr_bidi_control.h: Likewise.
59279         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59280         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59281         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59282         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59283         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59284         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59285         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59286         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59287         * lib/unictype/pr_bidi_pdf.h: Likewise.
59288         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59289         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59290         * lib/unictype/pr_combining.h: Likewise.
59291         * lib/unictype/pr_composite.h: Likewise.
59292         * lib/unictype/pr_currency_symbol.h: Likewise.
59293         * lib/unictype/pr_dash.h: Likewise.
59294         * lib/unictype/pr_decimal_digit.h: Likewise.
59295         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59296         * lib/unictype/pr_deprecated.h: Likewise.
59297         * lib/unictype/pr_diacritic.h: Likewise.
59298         * lib/unictype/pr_extender.h: Likewise.
59299         * lib/unictype/pr_format_control.h: Likewise.
59300         * lib/unictype/pr_grapheme_base.h: Likewise.
59301         * lib/unictype/pr_grapheme_extend.h: Likewise.
59302         * lib/unictype/pr_grapheme_link.h: Likewise.
59303         * lib/unictype/pr_hex_digit.h: Likewise.
59304         * lib/unictype/pr_hyphen.h: Likewise.
59305         * lib/unictype/pr_id_continue.h: Likewise.
59306         * lib/unictype/pr_id_start.h: Likewise.
59307         * lib/unictype/pr_ideographic.h: Likewise.
59308         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59309         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59310         * lib/unictype/pr_ignorable_control.h: Likewise.
59311         * lib/unictype/pr_iso_control.h: Likewise.
59312         * lib/unictype/pr_join_control.h: Likewise.
59313         * lib/unictype/pr_left_of_pair.h: Likewise.
59314         * lib/unictype/pr_line_separator.h: Likewise.
59315         * lib/unictype/pr_logical_order_exception.h: Likewise.
59316         * lib/unictype/pr_lowercase.h: Likewise.
59317         * lib/unictype/pr_math.h: Likewise.
59318         * lib/unictype/pr_non_break.h: Likewise.
59319         * lib/unictype/pr_not_a_character.h: Likewise.
59320         * lib/unictype/pr_numeric.h: Likewise.
59321         * lib/unictype/pr_other_alphabetic.h: Likewise.
59322         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59323         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59324         * lib/unictype/pr_other_id_continue.h: Likewise.
59325         * lib/unictype/pr_other_id_start.h: Likewise.
59326         * lib/unictype/pr_other_lowercase.h: Likewise.
59327         * lib/unictype/pr_other_math.h: Likewise.
59328         * lib/unictype/pr_other_uppercase.h: Likewise.
59329         * lib/unictype/pr_paired_punctuation.h: Likewise.
59330         * lib/unictype/pr_paragraph_separator.h: Likewise.
59331         * lib/unictype/pr_pattern_syntax.h: Likewise.
59332         * lib/unictype/pr_pattern_white_space.h: Likewise.
59333         * lib/unictype/pr_private_use.h: Likewise.
59334         * lib/unictype/pr_punctuation.h: Likewise.
59335         * lib/unictype/pr_quotation_mark.h: Likewise.
59336         * lib/unictype/pr_radical.h: Likewise.
59337         * lib/unictype/pr_sentence_terminal.h: Likewise.
59338         * lib/unictype/pr_soft_dotted.h: Likewise.
59339         * lib/unictype/pr_space.h: Likewise.
59340         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59341         * lib/unictype/pr_titlecase.h: Likewise.
59342         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59343         * lib/unictype/pr_unified_ideograph.h: Likewise.
59344         * lib/unictype/pr_uppercase.h: Likewise.
59345         * lib/unictype/pr_variation_selector.h: Likewise.
59346         * lib/unictype/pr_white_space.h: Likewise.
59347         * lib/unictype/pr_xid_continue.h: Likewise.
59348         * lib/unictype/pr_xid_start.h: Likewise.
59349         * lib/unictype/pr_zero_width.h: Likewise.
59350         * lib/unictype/scripts.h: Likewise.
59351         * lib/unictype/scripts_byname.gperf: Likewise.
59352         * lib/unictype/sy_c_ident.h: Likewise.
59353         * lib/unictype/sy_c_whitespace.h: Likewise.
59354         * lib/unictype/sy_java_ident.h: Likewise.
59355         * lib/unictype/sy_java_whitespace.h: Likewise.
59356
59357         * lib/unictype/Makefile: New file.
59358         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59359         glibc.
59360         * lib/unictype/3level.h: New file, copied from glibc.
59361         * lib/unictype/3levelbit.h: New file.
59362
59363 2007-11-11  Bruno Haible  <bruno@clisp.org>
59364
59365         * modules/gperf: New file.
59366         * modules/iconv_open (Depends-on): Add it.
59367         (Makefile.am): Remove the GPERF definition.
59368
59369 2007-11-11  Bruno Haible  <bruno@clisp.org>
59370
59371         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59372         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59373
59374 2007-11-11  Bruno Haible  <bruno@clisp.org>
59375
59376         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59377         (usage): Remove function.
59378
59379 2007-11-11  Bruno Haible  <bruno@clisp.org>
59380
59381         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59382         gl_FUNC_CEILF_LIBS.
59383         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59384         gl_FUNC_CEIL_LIBS.
59385         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59386         gl_FUNC_CEILL_LIBS.
59387         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59388         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59389         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59390
59391 2007-11-11  Bruno Haible  <bruno@clisp.org>
59392
59393         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59394         roundf were declared but do not exist on functions.
59395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59396         roundl were declared but do not exist on functions.
59397         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59398         HAVE_FLOORL_AND_CEILL, respectively.
59399         Needed for Sun C on Solaris 10.
59400
59401 2007-11-11  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59404         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59405         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59406         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59408         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59409         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59410         HAVE_DECL_ROUNDF.
59411         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59412         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59414         of HAVE_DECL_ROUND*.
59415         * modules/math (Makefile.am): Update.
59416
59417 2007-11-10  Bruno Haible  <bruno@clisp.org>
59418
59419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59420         ptrdiff_t as m4/intl.m4.
59421
59422 2007-11-10  Jim Meyering  <meyering@redhat.com>
59423
59424         Avoid link failure for the argmatch test.
59425         * tests/test-argmatch.c (usage): Define function to avoid a link
59426         failure: argmatch_die requires a usage function.
59427
59428 2007-11-09  Bruno Haible  <bruno@clisp.org>
59429
59430         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59431         * doc/functions/vsnprintf.texi: Likewise.
59432         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59433         with a size argument < 2.
59434
59435 2007-11-09  Bruno Haible  <bruno@clisp.org>
59436
59437         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59438         buffer. Fixes an inefficiency introduced on 2007-11-03.
59439
59440 2007-11-09  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59443         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59444
59445 2007-11-08  Jim Meyering  <meyering@redhat.com>
59446
59447         Change cache variable name prefix "jm_" to "gl_" everywhere.
59448         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59449         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59450         * m4/uptime.m4: s/gl_/jm_/
59451
59452 2007-11-07  Bruno Haible  <bruno@clisp.org>
59453
59454         Update to GNU gettext 0.17.
59455         * m4/intl.m4: Update to GNU gettext 0.17.
59456         * m4/po.m4: Likewise.
59457         * modules/gettext (Files): Remove m4/ulonglong.m4.
59458         (configure.ac): Require gettext infrastructure from version 0.17.
59459
59460 2007-11-06  Bruno Haible  <bruno@clisp.org>
59461
59462         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59463         symbolic values are not defined in a public header.
59464         * lib/freadable.c (freadable) [QNX]: Likewise.
59465         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59466         * lib/freading.c (freading) [QNX]: Likewise.
59467         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59468         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59469         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59470         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59471         Reported by Alain Magloire.
59472
59473         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59474
59475 2007-11-05  Bruno Haible  <bruno@clisp.org>
59476
59477         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59478         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59479         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59480         Reported by Eric Blake.
59481
59482 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59483             Bruno Haible  <bruno@clisp.org>
59484
59485         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59486         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59487         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59488         (malloc): Undefine also before including <stdlib.h>.
59489         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59490         Needed on OSF/1 4.0.
59491
59492 2007-11-05  Jim Meyering  <meyering@redhat.com>
59493
59494         git-version-gen: sync from coreutils.
59495         * build-aux/git-version-gen: Add comments.
59496         Change the first '-' to '.' in the snapshot version string,
59497         e.g., 6.9-377-08144 -> 6.9.377-08144
59498         Remove first parameter.
59499         Don't declare a version "-dirty" merely because a time
59500         stamp has changed.
59501
59502 2007-11-04  Bruno Haible  <bruno@clisp.org>
59503
59504         * lib/lock.h: Protect all macro definitions containing an 'if'
59505         statement through a "do { ... } while (0)".
59506         * lib/tls.h: Likewise.
59507
59508 2007-11-04  Bruno Haible  <bruno@clisp.org>
59509
59510         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59511
59512 2007-11-04  Bruno Haible  <bruno@clisp.org>
59513
59514         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59515         * modules/fprintf-posix (Depends-on): Add nocrash.
59516         * modules/snprintf-posix (Depends-on): Likewise.
59517         * modules/sprintf-posix (Depends-on): Likewise.
59518         * modules/vasnprintf-posix (Depends-on): Likewise.
59519         * modules/vasprintf-posix (Depends-on): Likewise.
59520         * modules/vfprintf-posix (Depends-on): Likewise.
59521         * modules/vsnprintf-posix (Depends-on): Likewise.
59522         * modules/vsprintf-posix (Depends-on): Likewise.
59523         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59524         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59525         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59526         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59527         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59528         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59529         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59530
59531 2007-11-04  Bruno Haible  <bruno@clisp.org>
59532
59533         * modules/nocrash: New file.
59534         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59535         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59536
59537 2007-11-04  Bruno Haible  <bruno@clisp.org>
59538
59539         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59540         precision handling.
59541         * tests/test-vasprintf-posix.c (test_function): Likewise.
59542         * tests/test-snprintf-posix.h (test_function): Likewise.
59543         * tests/test-sprintf-posix.h (test_function): Likewise.
59544
59545         Fix *printf behaviour for large precisions on mingw and BeOS.
59546         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59547         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59549         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59551         gl_PRINTF_PRECISION and test its result. Invoke
59552         gl_PREREQ_VASNPRINTF_PRECISION.
59553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59559         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59560         * doc/functions/fprintf.texi: Update.
59561         * doc/functions/printf.texi: Update.
59562         * doc/functions/snprintf.texi: Update.
59563         * doc/functions/sprintf.texi: Update.
59564         * doc/functions/vfprintf.texi: Update.
59565         * doc/functions/vprintf.texi: Update.
59566         * doc/functions/vsnprintf.texi: Update.
59567         * doc/functions/vsprintf.texi: Update.
59568
59569 2007-11-04  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59572
59573 2007-11-04  Bruno Haible  <bruno@clisp.org>
59574
59575         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59576         Reported by Sylvain Beucler <beuc@gnu.org>.
59577
59578 2007-11-03  Bruno Haible  <bruno@clisp.org>
59579
59580         * tests/test-fprintf-posix2.sh: New file.
59581         * tests/test-fprintf-posix2.c: New file.
59582         * modules/fprintf-posix-tests (Files): Add them.
59583         (TESTS): Add test-fprintf-posix2.sh.
59584         (configure.ac): Check for getrlimit and setrlimit.
59585         (check_PROGRAMS): Add test-fprintf-posix2.
59586
59587         * tests/test-printf-posix2.sh: New file.
59588         * tests/test-printf-posix2.c: New file.
59589         * modules/printf-posix-tests (Files): Add them.
59590         (TESTS): Add test-printf-posix2.sh.
59591         (configure.ac): Check for getrlimit and setrlimit.
59592         (check_PROGRAMS): Add test-printf-posix2.
59593
59594         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59595         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59596         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59597         (decode_double): New function, copied from decode_long_double.
59598         (scale10_round_decimal_decoded): New function, extracted from
59599         scale10_round_decimal_long_double.
59600         (scale10_round_decimal_long_double): Use it.
59601         (scale10_round_decimal_double): New function.
59602         (floorlog10): New function.
59603         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59605         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59606         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59607         gl_PRINTF_ENOMEM and test its result. Invoke
59608         gl_PREREQ_VASNPRINTF_ENOMEM.
59609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59616         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59617         * modules/snprintf-posix (Depends-on): Likewise.
59618         * modules/sprintf-posix (Depends-on): Likewise.
59619         * modules/vasnprintf-posix (Depends-on): Likewise.
59620         * modules/vasprintf-posix (Depends-on): Likewise.
59621         * modules/vfprintf-posix (Depends-on): Likewise.
59622         * modules/vsnprintf-posix (Depends-on): Likewise.
59623         * modules/vsprintf-posix (Depends-on): Likewise.
59624         * doc/functions/fprintf.texi: Update.
59625         * doc/functions/printf.texi: Update.
59626         * doc/functions/snprintf.texi: Update.
59627         * doc/functions/sprintf.texi: Update.
59628         * doc/functions/vfprintf.texi: Update.
59629         * doc/functions/vprintf.texi: Update.
59630         * doc/functions/vsnprintf.texi: Update.
59631         * doc/functions/vsprintf.texi: Update.
59632
59633 2007-11-03  Bruno Haible  <bruno@clisp.org>
59634
59635         * modules/frexp-nolibm-tests: New file.
59636
59637         * modules/frexp-nolibm: New file.
59638         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59639
59640 2007-11-03  Bruno Haible  <bruno@clisp.org>
59641
59642         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59643         value is C99 compliant.
59644         Needed for OSF/1 5.1.
59645
59646 2007-11-03  Bruno Haible  <bruno@clisp.org>
59647
59648         Fix out-of-memory handling of vasnprintf.
59649         * lib/printf-parse.c: Include <errno.h>.
59650         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59651         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59652         is already set.
59653
59654 2007-11-02  Eric Blake  <ebb9@byu.net>
59655
59656         Fix tests on cygwin.
59657         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59658
59659 2007-11-01  Bruno Haible  <bruno@clisp.org>
59660
59661         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59662         warning.
59663         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59664         needed for POSIX compatibility.
59665
59666 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59667
59668         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59669         for compatibility with GNU.
59670
59671 2007-11-01  Bruno Haible  <bruno@clisp.org>
59672
59673         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59674         (putenv): Renamed from rpl_putenv. Change argument type from
59675         'const char *' to 'char *'.
59676         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59677         of defining putenv in config.h, just set REPLACE_PUTENV.
59678         * modules/putenv (Depends-on): Add stdlib.
59679         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59680         (Include): Use <stdlib.h>.
59681         * lib/stdlib.in.h (putenv): New declaration.
59682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59683         REPLACE_PUTENV.
59684         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59685         REPLACE_PUTENV.
59686         Needed for MacOS X 10.5.0.
59687         Reported by Peter O'Gorman <peter@pogma.com>.
59688
59689 2007-11-01  Jim Meyering  <meyering@redhat.com>
59690
59691         Treat an empty date string exactly like "0".
59692         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59693         if the remaining date string (to be parsed) is empty, use "0".
59694         Reported by Mischa Molhoek and discussed in this thread:
59695         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59696
59697 2007-10-31  Bruno Haible  <bruno@clisp.org>
59698
59699         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59700         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59701         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59702         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59703         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59704         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59705
59706 2007-10-31  Bruno Haible  <bruno@clisp.org>
59707
59708         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59709         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59710         (AC_TYPE_LONG_LONG_INT): Use it.
59711         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59712         it as well.
59713         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59714         to m4/longlong.m4.
59715         * modules/stdint (Files): Remove m4/ulonglong.m4.
59716         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59717         m4/ulonglong.m4.
59718         * modules/strtoumax (Files): Likewise.
59719
59720 2007-10-30  Bruno Haible  <bruno@clisp.org>
59721
59722         * modules/xvasprintf-posix: New file.
59723         Suggested by Eric Blake.
59724
59725 2007-10-30  Bruno Haible  <bruno@clisp.org>
59726
59727         * modules/xprintf-posix-tests: New file.
59728         * tests/test-xprintf-posix.sh: New file.
59729         * tests/test-xprintf-posix.c: New file.
59730         * tests/test-xfprintf-posix.c: New file.
59731
59732         * modules/xprintf-posix: New file.
59733
59734 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59735
59736         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59737         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59738         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59739
59740 2007-10-29  Bruno Haible  <bruno@clisp.org>
59741
59742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59743         contain the special marker '_cv_'.
59744         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59747         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59749         Reported by Ralf Wildenhues.
59750
59751 2007-10-29  Bruno Haible  <bruno@clisp.org>
59752
59753         * gnulib-tool (func_import): When --lgpl is not specified, set
59754         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59755         GPLv3.
59756         Reported by Simon Josefsson.
59757
59758 2007-10-28  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59761         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59762         HAVE_DECL_ISFINITE.
59763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59764         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59765         HAVE_DECL_ISFINITE.
59766
59767 2007-10-28  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59770         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59771
59772 2007-10-28  Bruno Haible  <bruno@clisp.org>
59773
59774         Fix link errors with Sun C 5.0 on Solaris 10.
59775         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59776         function is declared but not present in the compiler's libm.
59777         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59778         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59779         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59780         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59781         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59782         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59783         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59785         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59786         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59787         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59788         HAVE_DECL_FLOORL.
59789
59790 2007-10-28  Bruno Haible  <bruno@clisp.org>
59791
59792         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59793         gl_FUNC_FLOORL. Cache the result.
59794         (gl_FUNC_FLOORL): Use it.
59795         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59796         gl_FUNC_CEILL. Cache the result.
59797         (gl_FUNC_CEILL): Use it.
59798
59799         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59800         gl_FUNC_FLOOR. Cache the result.
59801         (gl_FUNC_FLOOR): Use it.
59802         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59803         gl_FUNC_CEIL. Cache the result.
59804         (gl_FUNC_CEIL): Use it.
59805
59806         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59807         gl_FUNC_FLOORF. Cache the result.
59808         (gl_FUNC_FLOORF): Use it.
59809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59810         gl_FUNC_CEILF. Cache the result.
59811         (gl_FUNC_CEILF): Use it.
59812
59813 2007-10-28  Bruno Haible  <bruno@clisp.org>
59814
59815         * gnulib-tool: Allow specifying the LGPL version number through
59816         --lgpl=2 or --lgpl=3.
59817         (func_usage): Document --lgpl with argument.
59818         Handle --lgpl=... arguments.
59819         (func_import): Recognize also gl_LGPL calls with an argument. When
59820         --lgpl=2 is used and the module's license is just LGPL, report an
59821         error. Set sed_transform_lib_file according to the lgpl variable. In
59822         the generated files, use --lgpl or gl_LGPL invocations with argument,
59823         if necessary.
59824         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59825         an LGPv2+ license.
59826         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59827         gl_LGPL macro.
59828
59829 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59830             Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59833         (u16_uctomb_aux): Likewise.
59834         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59835         !HAVE_INLINE.
59836         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59837
59838 2007-10-28  Bruno Haible  <bruno@clisp.org>
59839
59840         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59841         Invoke AM_GETTEXT_OPTION if it exists.
59842         * modules/vasprintf: Likewise.
59843         * modules/verror: Likewise.
59844         * modules/xprintf: Likewise.
59845         * modules/xvasprintf: Likewise.
59846
59847 2007-10-27  Ben Pfaff  <blp@gnu.org>
59848
59849         * lib/math.in.h: Define isfinite macro and prototypes for
59850         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59851         implementations.
59852         * m4/math_h.m4: New substitutions for isfinite module.
59853         * lib/isfinite.c: New file.
59854         * m4/isfinite.m4: New file.
59855         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59856         * modules/isfinite: New file.
59857         * modules/isfinite-tests: New file.
59858         * tests/tests-isfinite.c: New file.
59859         * doc/functions/isfinite.texi: Mention isfinite module.
59860         * MODULES.html.sh: Mention new module.
59861
59862 2007-10-27  Ben Pfaff  <blp@gnu.org>
59863
59864         Ralf Wildenhues reported that Tru64 4.0D declares the round
59865         functions but does not have definitions.
59866         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59867         cannot be found in any library, set the output variable to
59868         "missing" instead of "".
59869         * m4/round.m4: Also use our substitute if we cannot find round in
59870         any library, even if it is declared.
59871         * m4/roundf.m4: Likewise for roundf.
59872         * m4/roundl.m4: Likewise for roundl.
59873         * lib/math.in.h: Undefine roundf, round, roundl before defining
59874         their replacements, to allow for hypothetical systems where these
59875         may be defined as macros but not available in libraries.
59876
59877 2007-10-27  Bruno Haible  <bruno@clisp.org>
59878
59879         * doc/gnulib.texi: Invoke @firstparagraphindent.
59880         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59881         changes in gnulib.
59882         (Source changes): New section.
59883
59884 2007-10-26  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59887         borrowed from autoconf.
59888
59889 2007-10-26  Bruno Haible  <bruno@clisp.org>
59890
59891         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59892         strerror returned the empty string. Needed on HP-UX 11.00.
59893
59894 2007-10-24  Micah Cowan  <micah@cowan.name>
59895
59896         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59897         * build-aux/bootstrap: Remove support for now-unnecessary option,
59898         --cvs-user, and envvars CVS_USER, CVS_RSH.
59899
59900 2007-10-24  Jim Meyering  <meyering@redhat.com>
59901
59902         Avoid diagnostics from sha1sum when there is no cached checksum.
59903         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59904         if the po.s1 file hasn't been created yet.
59905
59906         * build-aux/bootstrap: Sync from coreutils:
59907         2007-10-24  Jim Meyering  <meyering@redhat.com>
59908         Get gnulib from the git repository, not from an obsolete cvs one.
59909         * build-aux/bootstrap: Suggestion from Micah Cowan.
59910         2007-10-04  Jim Meyering  <jim@meyering.net>
59911         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59912         (update_po_files): Work also when there are no .po files in po/.
59913
59914 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * README: Append ".git" to git and cg examples.
59917         Problem reported by Benoit Sigoure.
59918
59919 2007-10-23  Micah Cowan  <micah@cowan.name>
59920
59921         * users.txt: Add wget.
59922
59923 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59924
59925         Fix linking of some unistdio tests on FreeBSD.
59926         * modules/unistdio/u16-vsnprintf-tests
59927         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59928         * modules/unistdio/u16-vsprintf-tests
59929         (test_u16_vsnprintf1_LDADD): Likewise.
59930         * modules/unistdio/u32-vsnprintf-tests
59931         (test_u32_vsnprintf1_LDADD): Likewise.
59932         * modules/unistdio/u32-vsprintf-tests
59933         (test_u32_vsprintf1_LDADD): Likewise.
59934         * modules/unistdio/u8-vsnprintf-tests
59935         (test_u8_vsnprintf1_LDADD): Likewise.
59936         * modules/unistdio/u8-vsprintf-tests
59937         (test_u8_vsprintf1_LDADD): Likewise.
59938         * modules/unistdio/ulc-vsnprintf-tests
59939         (test_ulc_vsnprintf1_LDADD): Likewise.
59940         * modules/unistdio/ulc-vsprintf-tests
59941         (test_ulc_vsprintf1_LDADD): Likewise.
59942
59943         Fix linking of some uniconv tests on FreeBSD.
59944         * modules/uniconv/u16-conv-from-enc-tests
59945         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59946         * modules/uniconv/u16-conv-to-enc-tests
59947         (test_u16_conv_to_enc_LDADD): Likewise.
59948         * modules/uniconv/u16-strconv-from-enc-tests
59949         (test_u16_strconv_from_enc_LDADD): Likewise.
59950         * modules/uniconv/u16-strconv-to-enc-tests
59951         (test_u16_strconv_to_enc_LDADD): Likewise.
59952         * modules/uniconv/u32-conv-from-enc-tests
59953         (test_u32_conv_from_enc_LDADD): Likewise.
59954         * modules/uniconv/u32-conv-to-enc-tests
59955         (test_u32_conv_to_enc_LDADD): Likewise.
59956         * modules/uniconv/u32-strconv-from-enc-tests
59957         (test_u32_strconv_from_enc_LDADD): Likewise.
59958         * modules/uniconv/u32-strconv-to-enc-tests
59959         (test_u32_strconv_to_enc_LDADD): Likewise.
59960         * modules/uniconv/u8-conv-from-enc-tests
59961         (test_u8_conv_from_enc_LDADD): Likewise.
59962         * modules/uniconv/u8-conv-to-enc-tests
59963         (test_u8_conv_to_enc_LDADD): Likewise.
59964         * modules/uniconv/u8-strconv-from-enc-tests
59965         (test_u8_strconv_from_enc_LDADD): Likewise.
59966         * modules/uniconv/u8-strconv-to-enc-tests
59967         (test_u8_strconv_to_enc_LDADD): Likewise.
59968
59969 2007-10-22  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59972         size.
59973
59974 2007-10-22  Eric Blake  <ebb9@byu.net>
59975
59976         Tweak x*printf documentation.
59977         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59978         variable name and comments.
59979         Suggested by Bruno Haible.
59980
59981 2007-10-22  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/acl.c (copy_acl): Fix file name in comment.
59984
59985 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59986
59987         Fix Tru64 problem with stdbool.h.
59988         * lib/stdbool.in.h (false, true):
59989         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59990         Don't declare as an enum in this situation; it runs afoul of Tru64.
59991         Problem reported by Steven M. Schweda in
59992         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59993
59994 2007-10-22  Eric Blake  <ebb9@byu.net>
59995
59996         Also wrap vf?printf.
59997         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59998         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59999         (xvprintf, xvfprintf): New functions.
60000
60001 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60002
60003         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60004         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60005
60006         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60007         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60008
60009 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60010
60011         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60012         by Bruno Haible.
60013
60014 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60015
60016         * lib/getloadavg.c
60017         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60018         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60019
60020         * tests/test-i-ring.c: Work for C89.
60021
60022 2007-10-22  Bruno Haible  <bruno@clisp.org>
60023
60024         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60025         -1u, in preprocessor expression, so that we don't test for the bug
60026         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60027         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60028
60029 2007-10-22  Eric Blake  <ebb9@byu.net>
60030
60031         * tests/test-yesno.sh: Silence stderr during test.
60032
60033 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60034
60035         * modules/crypto/gc-camellia: New file.
60036
60037         * m4/gc-camellia.m4: New file.
60038
60039         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60040
60041         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60042
60043 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60044
60045         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60046         --help to stdout.  Reported by sms@antinode.org (Steven
60047         M. Schweda).
60048
60049 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60050
60051         * users.txt: Fix link to libksba.
60052
60053 2007-10-21  Ben Pfaff  <blp@gnu.org>
60054
60055         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60056         round.c roundf implementation that depends on floorf and ceilf to
60057         be tested unconditionally.
60058
60059 2007-10-21  Ben Pfaff  <blp@gnu.org>
60060
60061         * m4/check-libm-func.m4: Removed.
60062         * m4/check-math-lib.m4: New file.
60063         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60064         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60065         definition and lack of AC_LIBOBJ([roundf]).
60066         * m4/roundl.m4: Ditto, and similarly for roundl.
60067         * modules/round: Reference new m4 file.
60068         * modules/roundf: Ditto.
60069         * modules/roundl: Ditto.
60070         * tests/test-round2.c (main): Use ROUND instead of round.
60071         Bug report from Bruno Haible.
60072
60073 2007-10-21  Bruno Haible  <bruno@clisp.org>
60074
60075         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60076         context.
60077
60078 2007-10-21  Bruno Haible  <bruno@clisp.org>
60079
60080         * tests/test-wcwidth.c (main): Allow negative result for some control
60081         characters.
60082
60083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60084         Needed on OSF/1 5.1.
60085
60086 2007-10-21  Bruno Haible  <bruno@clisp.org>
60087
60088         * tests/test-floorf1.c: Include isnanf.h.
60089         (main): Use isnanf() instead of isnan().
60090         * tests/test-ceilf1.c: Include isnanf.h.
60091         (main): Use isnanf() instead of isnan().
60092         * tests/test-truncf1.c: Include isnanf.h.
60093         (main): Use isnanf() instead of isnan().
60094         * tests/test-roundf1.c: Include isnanf.h.
60095         (main): Use isnanf() instead of isnan().
60096
60097 2007-10-21  Eric Blake  <ebb9@byu.net>
60098
60099         * users.txt: Update URL for m4.
60100
60101 2007-10-21  Bruno Haible  <bruno@clisp.org>
60102
60103         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60104
60105 2007-10-21  Bruno Haible  <bruno@clisp.org>
60106
60107         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60108         Git's management files if the CVS files are not present.
60109
60110 2007-10-20  Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60113         gcc-3.4.x.
60114
60115 2007-10-20  Ben Pfaff  <blp@gnu.org>
60116
60117         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60118         implementations.
60119         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60120         * lib/round.c: New file.
60121         * lib/roundf.c: New file.
60122         * lib/roundl.c: New file.
60123         * m4/round.m4: New file.
60124         * m4/roundf.m4: New file.
60125         * m4/roundl.m4: New file.
60126         * m4/check-libm-func-m4: New file.
60127         * modules/math: Replace round, roundf, roundl related @VARS@ in
60128         math.in.h.
60129         * modules/round: New file.
60130         * modules/round-tests: New file.
60131         * modules/roundf: New file.
60132         * modules/roundf-tests: New file.
60133         * modules/roundl: New file.
60134         * modules/roundl-tests: New file.
60135         * tests/test-round1.c: New file.
60136         * tests/test-round2.c: New file.
60137         * tests/test-roundf1.c: New file.
60138         * tests/test-roundf2.c: New file.
60139         * tests/test-roundl.c: New file.
60140         * doc/functions/round.texi: Mention round module.
60141         * doc/functions/roundf.texi: Mention roundf module.
60142         * doc/functions/roundl.texi: Mention roundl module.
60143         * MODULES.html.sh: Mention new modules.
60144         Thanks to Bruno Haible for suggestions.
60145
60146 2007-10-20  Jim Meyering  <meyering@redhat.com>
60147
60148         * lib/xprintf.c: Include <config.h> unconditionally.
60149
60150         Change xprintf's license to GPL.
60151         * modules/xprintf (License): s/LGPL/GPL/, since this module
60152         depends on modules (exit and exitfail) which are GPL.
60153         Suggestion from Bruno Haible.
60154
60155         xprintf fixes.
60156         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60157         Use a clearer diagnostic.
60158         Patch from Bruno Haible.
60159
60160 2007-10-20  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60163         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60165
60166 2007-10-20  Bruno Haible  <bruno@clisp.org>
60167
60168         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60169         precision in the comparison result > x - 1 or similar.
60170         * tests/test-ceilf2.c (correct_result_p): Likewise.
60171         * tests/test-truncf2.c (correct_result_p): Likewise.
60172         * tests/test-trunc2.c (correct_result_p): Likewise.
60173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60174
60175 2007-10-20  Bruno Haible  <bruno@clisp.org>
60176
60177         * modules/ceil: New file.
60178         * m4/ceil.m4: New file.
60179         * doc/functions/ceil.texi: Mention the 'ceil' module.
60180
60181 2007-10-20  Bruno Haible  <bruno@clisp.org>
60182
60183         * modules/floor: New file.
60184         * m4/floor.m4: New file.
60185         * doc/functions/floor.texi: Mention the 'floor' module.
60186
60187 2007-10-20  Bruno Haible  <bruno@clisp.org>
60188
60189         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60190         of %a.
60191         * modules/floorf-tests (Depends-on): Likewise.
60192         * modules/truncf-tests (Depends-on): Likewise.
60193         * modules/trunc-tests (Depends-on): Likewise.
60194         Reported by Ben Pfaff.
60195
60196 2007-10-19  Jim Meyering  <meyering@redhat.com>
60197
60198         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60199         Don't bother testing specific errno values.  Just test ferror.
60200
60201         New module: xprintf
60202         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60203
60204 2007-10-19  Bruno Haible  <bruno@clisp.org>
60205
60206         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60207         syntax.
60208         * modules/javaexec (Makefile.am): Likewise.
60209         * modules/relocatable-prog (Makefile.am): Likewise.
60210         Suggested by Jim Meyering.
60211
60212 2007-10-18  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60215         Reported by Jim Meyering.
60216
60217 2007-10-18  Eric Blake  <ebb9@byu.net>
60218
60219         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60220
60221 2007-10-18  Bruno Haible  <bruno@clisp.org>
60222
60223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60224         the format string into writable memory. Needed in Fortify conditions.
60225
60226 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60227             Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60230         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60231         * modules/trim (Depends-on): Add mbchar.
60232         (configure.ac): Add gl_FUNC_MBRTOWC.
60233         (Makefile.am): Augment lib_SOURCES.
60234
60235 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60236
60237         Modify glob.c to use fstatat and dirfd, to simplify it.
60238         Suggested by Eric Blake.
60239         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60240         Don't include <stdbool.h>; not used.
60241         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60242         (link_exists_p): Simplify implementation, since we can now assume
60243         dirfd and fstatat.
60244         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60245
60246 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60247
60248         * gnulib-tool (func_get_dependencies): Fix sed script to
60249         match only tests.
60250
60251 2007-10-17  Bruno Haible  <bruno@clisp.org>
60252
60253         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60254         allow locale names without encoding suffix.
60255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60257
60258 2007-10-16  Bruno Haible  <bruno@clisp.org>
60259
60260         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60261         * lib/getgroups.c (getgroups): Likewise.
60262         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60263
60264 2007-10-16  Bruno Haible  <bruno@clisp.org>
60265
60266         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60267         * modules/malloc-posix (License): Likewise.
60268         * modules/realloc-posix (License): Likewise.
60269         * modules/calloc-posix (License): Likewise.
60270         * modules/intprops (License): Change from GPL to LGPL, with
60271         Paul Eggert's approval.
60272
60273 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         Merge glibc changes into lib/glob.c.
60276
60277         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60278         2007-10-15 04:59:03 UTC.  Here are the changes:
60279
60280         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60281
60282         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60283
60284         * lib/glob.c: Add some branch prediction throughout.
60285
60286         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60287
60288         [BZ #5103]
60289         * lib/glob.c (glob): Recognize patterns starting \/.
60290
60291         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60292
60293         [BZ #3996]
60294         * lib/glob.c (attribute_hidden): Define if not defined.
60295         (glob): Unescape dirname, filename or username when needed and not
60296         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60297         is NULL.  Handle unescaped [ in pattern without closing ].
60298         Don't pass GLOB_CHECK down to recursive glob for directories.
60299         (__glob_pattern_type): New function.
60300         (__glob_pattern_p): Implement using __glob_pattern_type.
60301         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60302         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60303         Remove unreachable code.
60304
60305         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60306
60307         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60308         explain why there are no leaks.
60309
60310         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60311
60312         [BZ #3253]
60313         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60314         time, rather allocate increasingly bigger arrays of pointers, if
60315         possible with alloca, if too large with malloc.
60316
60317 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60318
60319         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60320         Problem reported by H.Merijn Brand in
60321         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60322         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60323         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60324
60325 2007-10-15  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60328         with explicit rpl_ prefix.
60329         * lib/fopen.c (fopen): Likewise.
60330         * lib/freopen.c (freopen): Likewise.
60331         * lib/iconv.c (iconv): Likewise.
60332         * lib/iconv_close.c (iconv_close): Likewise.
60333
60334 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60335
60336         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60337
60338 2007-10-15  Bruno Haible  <bruno@clisp.org>
60339
60340         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60341         <stddef.h> instead of <stdlib.h> since we only need NULL.
60342         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60343
60344 2007-10-15  Bruno Haible  <bruno@clisp.org>
60345
60346         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60347         Replace paragraph talking about LIBOBJS.
60348         Reported by Colin Watson <cjwatson@debian.org>.
60349
60350 2007-10-15  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60353         <stdlib.h> before using NULL.
60354
60355 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60356
60357         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60358         Reported by Albert Chin <china@thewrittenword.com>.
60359
60360 2007-10-14  Bruno Haible  <bruno@clisp.org>
60361
60362         * modules/iconv_open-utf-tests: New file.
60363         * tests/test-iconv-utf.c: New file.
60364
60365         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60366         * modules/iconv_open-utf: New file.
60367         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60368         (iconv, iconv_close): New declarations.
60369         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60370         be defined.
60371         (iconv_open): Add special handling of conversion between UTF-8 and
60372         UTF-{16,32}{BE,LE}.
60373         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60374         * lib/iconv_close.c: New file.
60375         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60376         gl_FUNC_ICONV_OPEN.
60377         (gl_FUNC_ICONV_OPEN): Use it.
60378         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60379         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60380         and REPLACE_ICONV_UTF.
60381         * modules/iconv_open (Depends-on): Add c-strcase.
60382         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60383         ICONV_CONST.
60384         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60385
60386 2007-10-13  Albert Chin  <china@thewrittenword.com>
60387             Bruno Haible  <bruno@clisp.org>
60388
60389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60390         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60391
60392 2007-10-13  Bruno Haible  <bruno@clisp.org>
60393
60394         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60395         defined, use the ISO C99 inline semantics.
60396         * lib/argp.h (ARGP_EI): Likewise.
60397
60398 2007-10-13  Bruno Haible  <bruno@clisp.org>
60399
60400         Handle 'inline' change in gcc 4.3.0.
60401         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60402         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60403         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60404         argp_fmtstream_point): Disable 'extern' declaration if the function
60405         definition is going to be provided inline.
60406         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60407         semantics, not the ISO C99 inline semantics.
60408         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60409         'extern' declaration if the function definition is going to be provided
60410         inline.
60411         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60412         the GNU C inline semantics, not the ISO C99 inline semantics. With
60413         GCC 4.2, avoid a warning.
60414
60415 2007-10-13  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/freading.h (freading): Enable the use of __freading for
60418         glibc >= 2.7.
60419         * lib/freading.c (freading): Likewise.
60420
60421 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60422
60423         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60424         "warning: C99 inline functions are not supported; using GNU89".
60425
60426 2007-10-12  Bruno Haible  <bruno@clisp.org>
60427
60428         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60429         of 2.
60430         * tests/test-ceilf2.c: New file.
60431         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60432
60433         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60434         * modules/ceilf-tests: Update.
60435
60436 2007-10-12  Bruno Haible  <bruno@clisp.org>
60437
60438         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60439         of 2.
60440         * tests/test-floorf2.c: New file.
60441         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60442
60443         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60444         * modules/floorf-tests: Update.
60445
60446 2007-10-12  Bruno Haible  <bruno@clisp.org>
60447
60448         * tests/test-trunc2.c: New file.
60449         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60450
60451         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60452         * modules/trunc-tests: Update.
60453
60454 2007-10-12  Bruno Haible  <bruno@clisp.org>
60455
60456         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60457         of 2.
60458         * tests/test-truncf2.c: New file.
60459         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60460
60461         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60462         * modules/truncf-tests: Update.
60463
60464 2007-10-11  Eric Blake  <ebb9@byu.net>
60465
60466         Don't claim strerror is broken on Interix.
60467         * doc/functions/strerror.texi (strerror): Known broken systems are
60468         now Solaris 8, and not Interix.
60469         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60470         Interix on cross-compile.
60471         Reported by Martin Koeppe in
60472         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60473
60474 2007-10-11  Bruno Haible  <bruno@clisp.org>
60475
60476         * modules/i-ring-tests: New file.
60477         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60478         instead of assert.
60479
60480 2007-10-11  Bruno Haible  <bruno@clisp.org>
60481
60482         * modules/filenamecat-tests: New file.
60483         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60484         * lib/filenamecat.c: Remove test code.
60485
60486 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60487
60488         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60489
60490         * lib/strerror.c: Include <string.h> always, to test interface,
60491         and to remove the need for the dummy.
60492         Include intprops.h to compute width instead of doing it ourselves
60493         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60494         (strerror): Define it to return NULL if there's no system strerror.
60495         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60496         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60497         ancient pre-strerror Unix systems well any more.  Saying "unknown
60498         system error" is enough.
60499         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60500         simpler strerror.c implementation.
60501         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60502         Simplify the tests to reflect the simpler strerror implementation.
60503         * modules/strerror (Depends-on): Add intprops.
60504
60505 2007-10-09  Eric Blake  <ebb9@byu.net>
60506
60507         Silence test-fpending.
60508         * modules/fpending-tests (Files): Add wrapper script.
60509         * tests/test-fpending.sh: New file.
60510
60511 2007-10-09  Bruno Haible  <bruno@clisp.org>
60512
60513         * MODULES.html.sh (func_module): Don't create a hyperlink for
60514         function names like 'printf_frexp'.
60515         (Misc): Add crc, memxor.
60516         (Characteristics of floating types): New section.
60517         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60518         isnanf-nolibm, signbit, trunc, truncf, truncl.
60519         (Enhancements for ISO C 99 functions): New subsection Input/output.
60520         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60521         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60522         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60523         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60524         (Enhancements for POSIX:2001 functions): Add chdir-long.
60525         (File system functions): Add areadlink, chdir-safer, read-file.
60526         Remove cycle-check.
60527         (File system as inode set): New section.
60528         (Date and time): Add gethrxtime.
60529         (Multithreading): Add openmp.
60530         (Internationalization functions): Add localename.
60531         (Unicode string functions): Add unistr/u*-mbsnlen.
60532         (Support for maintaining and releasing projects): Add git-version-gen.
60533         (Lone files): Remove directories.
60534
60535 2007-10-08  Ben Pfaff  <blp@gnu.org>
60536
60537         * lib/xmalloca.h: Fix typo in comment.
60538
60539 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60542         when avoiding problems with integer overflow.  Use a portable test
60543         instead.
60544
60545 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60546
60547         * modules/dummy (License): Change to LGPLv2+.
60548         * modules/float (License): Likewise
60549         * modules/realloc (License): Likewise
60550         * modules/stdlib (License): Likewise
60551
60552 2007-10-07  Bruno Haible  <bruno@clisp.org>
60553
60554         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60555         * floor.c (TWO_MANT_DIG): Likewise.
60556         * ceil.c (TWO_MANT_DIG): Likewise.
60557         Reported by Ben Pfaff.
60558
60559 2007-10-07  Bruno Haible  <bruno@clisp.org>
60560
60561         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60562         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60563         * lib/frexp.c (FUNC): Likewise.
60564         * lib/printf-frexp.h (printf_frexp): Likewise.
60565         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60566         * lib/printf-frexp.c (FUNC): Likewise.
60567         Suggested by Jim Meyering.
60568
60569 2007-10-07  Jim Meyering  <meyering@redhat.com>
60570
60571         Make xnanosleep's integer overflow test more robust.
60572         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60573         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60574
60575 2007-10-07  Bruno Haible  <bruno@clisp.org>
60576
60577         * NEWS: Mention the license change.
60578
60579         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60580         abbreviations in the modules files.
60581
60582         Change copyright notice from GPLv2+ to GPLv3+.
60583         * README: Change copyright notice.
60584         * MODULES.html.sh: Likewise.
60585         * build-aux/bootstrap.conf: Likewise.
60586         * build-aux/config.libpath: Likewise.
60587         * build-aux/csharpcomp.sh.in: Likewise.
60588         * build-aux/csharpexec.sh.in: Likewise.
60589         * build-aux/install-reloc: Likewise.
60590         * build-aux/javacomp.sh.in: Likewise.
60591         * build-aux/javaexec.sh.in: Likewise.
60592         * build-aux/ldd.sh.in: Likewise.
60593         * build-aux/reloc-ldflags: Likewise.
60594         * build-aux/relocatable.sh.in: Likewise.
60595         * build-aux/x-to-1.in: Likewise.
60596         * check-module: Likewise.
60597         * config/srclistvars.sh: Likewise.
60598         * gnulib-tool: Likewise.
60599         * lib/acl-internal.h: Likewise.
60600         * lib/acl.c: Likewise.
60601         * lib/acl.h: Likewise.
60602         * lib/acl_entries.c: Likewise.
60603         * lib/areadlink-with-size.c: Likewise.
60604         * lib/areadlink.c: Likewise.
60605         * lib/areadlink.h: Likewise.
60606         * lib/argmatch.c: Likewise.
60607         * lib/argmatch.h: Likewise.
60608         * lib/argp-ba.c: Likewise.
60609         * lib/argp-eexst.c: Likewise.
60610         * lib/argp-fmtstream.c: Likewise.
60611         * lib/argp-fmtstream.h: Likewise.
60612         * lib/argp-fs-xinl.c: Likewise.
60613         * lib/argp-help.c: Likewise.
60614         * lib/argp-namefrob.h: Likewise.
60615         * lib/argp-parse.c: Likewise.
60616         * lib/argp-pin.c: Likewise.
60617         * lib/argp-pv.c: Likewise.
60618         * lib/argp-pvh.c: Likewise.
60619         * lib/argp-xinl.c: Likewise.
60620         * lib/argp.h: Likewise.
60621         * lib/at-func.c: Likewise.
60622         * lib/atanl.c: Likewise.
60623         * lib/backupfile.c: Likewise.
60624         * lib/backupfile.h: Likewise.
60625         * lib/basename.c: Likewise.
60626         * lib/binary-io.h: Likewise.
60627         * lib/byteswap.in.h: Likewise.
60628         * lib/c-stack.c: Likewise.
60629         * lib/c-stack.h: Likewise.
60630         * lib/c-strcasestr.c: Likewise.
60631         * lib/c-strcasestr.h: Likewise.
60632         * lib/c-strstr.c: Likewise.
60633         * lib/c-strstr.h: Likewise.
60634         * lib/c-strtod.c: Likewise.
60635         * lib/calloc.c: Likewise.
60636         * lib/canon-host.c: Likewise.
60637         * lib/canon-host.h: Likewise.
60638         * lib/canonicalize-lgpl.c: Likewise.
60639         * lib/canonicalize.c: Likewise.
60640         * lib/canonicalize.h: Likewise.
60641         * lib/ceil.c: Likewise.
60642         * lib/ceilf.c: Likewise.
60643         * lib/ceill.c: Likewise.
60644         * lib/chdir-long.c: Likewise.
60645         * lib/chdir-long.h: Likewise.
60646         * lib/chdir-safer.c: Likewise.
60647         * lib/chdir-safer.h: Likewise.
60648         * lib/chown.c: Likewise.
60649         * lib/classpath.c: Likewise.
60650         * lib/classpath.h: Likewise.
60651         * lib/clean-temp.c: Likewise.
60652         * lib/clean-temp.h: Likewise.
60653         * lib/cloexec.c: Likewise.
60654         * lib/close-stream.c: Likewise.
60655         * lib/closein.c: Likewise.
60656         * lib/closein.h: Likewise.
60657         * lib/closeout.c: Likewise.
60658         * lib/closeout.h: Likewise.
60659         * lib/concat-filename.c: Likewise.
60660         * lib/copy-file.c: Likewise.
60661         * lib/copy-file.h: Likewise.
60662         * lib/count-one-bits.h: Likewise.
60663         * lib/crc.c: Likewise.
60664         * lib/crc.h: Likewise.
60665         * lib/creat-safer.c: Likewise.
60666         * lib/csharpcomp.c: Likewise.
60667         * lib/csharpcomp.h: Likewise.
60668         * lib/csharpexec.c: Likewise.
60669         * lib/csharpexec.h: Likewise.
60670         * lib/cycle-check.c: Likewise.
60671         * lib/cycle-check.h: Likewise.
60672         * lib/diacrit.c: Likewise.
60673         * lib/diacrit.h: Likewise.
60674         * lib/diffseq.h: Likewise.
60675         * lib/dirchownmod.c: Likewise.
60676         * lib/dirent.in.h: Likewise.
60677         * lib/dirfd.c: Likewise.
60678         * lib/dirfd.h: Likewise.
60679         * lib/dirname.c: Likewise.
60680         * lib/dirname.h: Likewise.
60681         * lib/dummy.c: Likewise.
60682         * lib/dup-safer.c: Likewise.
60683         * lib/dup2.c: Likewise.
60684         * lib/eealloc.h: Likewise.
60685         * lib/error.c: Likewise.
60686         * lib/error.h: Likewise.
60687         * lib/euidaccess.c: Likewise.
60688         * lib/exclude.c: Likewise.
60689         * lib/exclude.h: Likewise.
60690         * lib/execute.c: Likewise.
60691         * lib/execute.h: Likewise.
60692         * lib/exitfail.c: Likewise.
60693         * lib/exitfail.h: Likewise.
60694         * lib/expl.c: Likewise.
60695         * lib/fatal-signal.c: Likewise.
60696         * lib/fatal-signal.h: Likewise.
60697         * lib/fbufmode.c: Likewise.
60698         * lib/fbufmode.h: Likewise.
60699         * lib/fchdir.c: Likewise.
60700         * lib/fchmodat.c: Likewise.
60701         * lib/fchownat.c: Likewise.
60702         * lib/fcntl--.h: Likewise.
60703         * lib/fcntl-safer.h: Likewise.
60704         * lib/fcntl.in.h: Likewise.
60705         * lib/fd-safer.c: Likewise.
60706         * lib/fflush.c: Likewise.
60707         * lib/file-has-acl.c: Likewise.
60708         * lib/file-set.c: Likewise.
60709         * lib/file-type.c: Likewise.
60710         * lib/file-type.h: Likewise.
60711         * lib/fileblocks.c: Likewise.
60712         * lib/filemode.c: Likewise.
60713         * lib/filemode.h: Likewise.
60714         * lib/filename.h: Likewise.
60715         * lib/filenamecat.c: Likewise.
60716         * lib/filenamecat.h: Likewise.
60717         * lib/findprog.c: Likewise.
60718         * lib/findprog.h: Likewise.
60719         * lib/float.in.h: Likewise.
60720         * lib/floor.c: Likewise.
60721         * lib/floorf.c: Likewise.
60722         * lib/floorl.c: Likewise.
60723         * lib/fopen-safer.c: Likewise.
60724         * lib/fopen.c: Likewise.
60725         * lib/fpending.c: Likewise.
60726         * lib/fpending.h: Likewise.
60727         * lib/fprintf.c: Likewise.
60728         * lib/fprintftime.h: Likewise.
60729         * lib/fpucw.h: Likewise.
60730         * lib/fpurge.c: Likewise.
60731         * lib/fpurge.h: Likewise.
60732         * lib/freadable.c: Likewise.
60733         * lib/freadable.h: Likewise.
60734         * lib/freadahead.c: Likewise.
60735         * lib/freadahead.h: Likewise.
60736         * lib/freading.c: Likewise.
60737         * lib/freading.h: Likewise.
60738         * lib/free.c: Likewise.
60739         * lib/freopen.c: Likewise.
60740         * lib/frexp.c: Likewise.
60741         * lib/frexpl.c: Likewise.
60742         * lib/fseek.c: Likewise.
60743         * lib/fseterr.c: Likewise.
60744         * lib/fseterr.h: Likewise.
60745         * lib/fstatat.c: Likewise.
60746         * lib/fstrcmp.c: Likewise.
60747         * lib/fstrcmp.h: Likewise.
60748         * lib/fsusage.c: Likewise.
60749         * lib/fsusage.h: Likewise.
60750         * lib/ftell.c: Likewise.
60751         * lib/ftello.c: Likewise.
60752         * lib/fts-cycle.c: Likewise.
60753         * lib/fts.c: Likewise.
60754         * lib/fts_.h: Likewise.
60755         * lib/full-read.c: Likewise.
60756         * lib/full-read.h: Likewise.
60757         * lib/full-write.c: Likewise.
60758         * lib/full-write.h: Likewise.
60759         * lib/fwritable.c: Likewise.
60760         * lib/fwritable.h: Likewise.
60761         * lib/fwriteerror.c: Likewise.
60762         * lib/fwriteerror.h: Likewise.
60763         * lib/fwriting.c: Likewise.
60764         * lib/fwriting.h: Likewise.
60765         * lib/gcd.c: Likewise.
60766         * lib/gcd.h: Likewise.
60767         * lib/getcwd.c: Likewise.
60768         * lib/getdate.h: Likewise.
60769         * lib/getdate.y: Likewise.
60770         * lib/getdomainname.c: Likewise.
60771         * lib/getdomainname.h: Likewise.
60772         * lib/getgroups.c: Likewise.
60773         * lib/gethostname.c: Likewise.
60774         * lib/gethrxtime.c: Likewise.
60775         * lib/gethrxtime.h: Likewise.
60776         * lib/getloadavg.c: Likewise.
60777         * lib/getndelim2.c: Likewise.
60778         * lib/getndelim2.h: Likewise.
60779         * lib/getnline.c: Likewise.
60780         * lib/getnline.h: Likewise.
60781         * lib/getopt.c: Likewise.
60782         * lib/getopt.in.h: Likewise.
60783         * lib/getopt1.c: Likewise.
60784         * lib/getopt_int.h: Likewise.
60785         * lib/getpagesize.h: Likewise.
60786         * lib/getsubopt.c: Likewise.
60787         * lib/gettime.c: Likewise.
60788         * lib/getugroups.c: Likewise.
60789         * lib/getugroups.h: Likewise.
60790         * lib/getusershell.c: Likewise.
60791         * lib/gl_anyavltree_list1.h: Likewise.
60792         * lib/gl_anyavltree_list2.h: Likewise.
60793         * lib/gl_anyhash_list1.h: Likewise.
60794         * lib/gl_anyhash_list2.h: Likewise.
60795         * lib/gl_anylinked_list1.h: Likewise.
60796         * lib/gl_anylinked_list2.h: Likewise.
60797         * lib/gl_anyrbtree_list1.h: Likewise.
60798         * lib/gl_anyrbtree_list2.h: Likewise.
60799         * lib/gl_anytree_list1.h: Likewise.
60800         * lib/gl_anytree_list2.h: Likewise.
60801         * lib/gl_anytree_oset.h: Likewise.
60802         * lib/gl_anytreehash_list1.h: Likewise.
60803         * lib/gl_anytreehash_list2.h: Likewise.
60804         * lib/gl_array_list.c: Likewise.
60805         * lib/gl_array_list.h: Likewise.
60806         * lib/gl_array_oset.c: Likewise.
60807         * lib/gl_array_oset.h: Likewise.
60808         * lib/gl_avltree_list.c: Likewise.
60809         * lib/gl_avltree_list.h: Likewise.
60810         * lib/gl_avltree_oset.c: Likewise.
60811         * lib/gl_avltree_oset.h: Likewise.
60812         * lib/gl_avltreehash_list.c: Likewise.
60813         * lib/gl_avltreehash_list.h: Likewise.
60814         * lib/gl_carray_list.c: Likewise.
60815         * lib/gl_carray_list.h: Likewise.
60816         * lib/gl_linked_list.c: Likewise.
60817         * lib/gl_linked_list.h: Likewise.
60818         * lib/gl_linkedhash_list.c: Likewise.
60819         * lib/gl_linkedhash_list.h: Likewise.
60820         * lib/gl_list.c: Likewise.
60821         * lib/gl_list.h: Likewise.
60822         * lib/gl_oset.c: Likewise.
60823         * lib/gl_oset.h: Likewise.
60824         * lib/gl_rbtree_list.c: Likewise.
60825         * lib/gl_rbtree_list.h: Likewise.
60826         * lib/gl_rbtree_oset.c: Likewise.
60827         * lib/gl_rbtree_oset.h: Likewise.
60828         * lib/gl_rbtreehash_list.c: Likewise.
60829         * lib/gl_rbtreehash_list.h: Likewise.
60830         * lib/gl_sublist.c: Likewise.
60831         * lib/gl_sublist.h: Likewise.
60832         * lib/group-member.c: Likewise.
60833         * lib/group-member.h: Likewise.
60834         * lib/hard-locale.c: Likewise.
60835         * lib/hard-locale.h: Likewise.
60836         * lib/hash-pjw.c: Likewise.
60837         * lib/hash-pjw.h: Likewise.
60838         * lib/hash-triple.c: Likewise.
60839         * lib/hash.c: Likewise.
60840         * lib/hash.h: Likewise.
60841         * lib/human.c: Likewise.
60842         * lib/human.h: Likewise.
60843         * lib/i-ring.c: Likewise.
60844         * lib/i-ring.h: Likewise.
60845         * lib/idcache.c: Likewise.
60846         * lib/imaxabs.c: Likewise.
60847         * lib/imaxdiv.c: Likewise.
60848         * lib/inet_pton.c: Likewise.
60849         * lib/inet_pton.h: Likewise.
60850         * lib/intprops.h: Likewise.
60851         * lib/inttostr.c: Likewise.
60852         * lib/inttostr.h: Likewise.
60853         * lib/inttypes.in.h: Likewise.
60854         * lib/isapipe.c: Likewise.
60855         * lib/isdir.c: Likewise.
60856         * lib/isnan.c: Likewise.
60857         * lib/isnan.h: Likewise.
60858         * lib/isnanf.c: Likewise.
60859         * lib/isnanf.h: Likewise.
60860         * lib/isnanl-nolibm.h: Likewise.
60861         * lib/isnanl.c: Likewise.
60862         * lib/isnanl.h: Likewise.
60863         * lib/javacomp.c: Likewise.
60864         * lib/javacomp.h: Likewise.
60865         * lib/javaexec.c: Likewise.
60866         * lib/javaexec.h: Likewise.
60867         * lib/javaversion.c: Likewise.
60868         * lib/javaversion.h: Likewise.
60869         * lib/javaversion.java: Likewise.
60870         * lib/lbrkprop.h: Likewise.
60871         * lib/lchmod.h: Likewise.
60872         * lib/lchown.c: Likewise.
60873         * lib/ldexpl.c: Likewise.
60874         * lib/linebreak.c: Likewise.
60875         * lib/linebreak.h: Likewise.
60876         * lib/linebuffer.c: Likewise.
60877         * lib/linebuffer.h: Likewise.
60878         * lib/locale.in.h: Likewise.
60879         * lib/logl.c: Likewise.
60880         * lib/long-options.c: Likewise.
60881         * lib/long-options.h: Likewise.
60882         * lib/lstat.c: Likewise.
60883         * lib/lstat.h: Likewise.
60884         * lib/math.in.h: Likewise.
60885         * lib/mbchar.c: Likewise.
60886         * lib/mbchar.h: Likewise.
60887         * lib/mbfile.h: Likewise.
60888         * lib/mbiter.h: Likewise.
60889         * lib/mbscasecmp.c: Likewise.
60890         * lib/mbscasestr.c: Likewise.
60891         * lib/mbschr.c: Likewise.
60892         * lib/mbscspn.c: Likewise.
60893         * lib/mbslen.c: Likewise.
60894         * lib/mbsncasecmp.c: Likewise.
60895         * lib/mbsnlen.c: Likewise.
60896         * lib/mbspbrk.c: Likewise.
60897         * lib/mbspcasecmp.c: Likewise.
60898         * lib/mbsrchr.c: Likewise.
60899         * lib/mbssep.c: Likewise.
60900         * lib/mbsspn.c: Likewise.
60901         * lib/mbsstr.c: Likewise.
60902         * lib/mbstok_r.c: Likewise.
60903         * lib/mbswidth.c: Likewise.
60904         * lib/mbswidth.h: Likewise.
60905         * lib/mbuiter.h: Likewise.
60906         * lib/memcasecmp.c: Likewise.
60907         * lib/memcasecmp.h: Likewise.
60908         * lib/memchr.c: Likewise.
60909         * lib/memcmp.c: Likewise.
60910         * lib/memcoll.c: Likewise.
60911         * lib/memcoll.h: Likewise.
60912         * lib/memcpy.c: Likewise.
60913         * lib/memrchr.c: Likewise.
60914         * lib/mkancesdirs.c: Likewise.
60915         * lib/mkdir-p.c: Likewise.
60916         * lib/mkdir-p.h: Likewise.
60917         * lib/mkdir.c: Likewise.
60918         * lib/mkdirat.c: Likewise.
60919         * lib/mkdtemp.c: Likewise.
60920         * lib/mkstemp-safer.c: Likewise.
60921         * lib/mkstemp.c: Likewise.
60922         * lib/modechange.c: Likewise.
60923         * lib/modechange.h: Likewise.
60924         * lib/mountlist.c: Likewise.
60925         * lib/mountlist.h: Likewise.
60926         * lib/mpsort.c: Likewise.
60927         * lib/nanosleep.c: Likewise.
60928         * lib/obstack.c: Likewise.
60929         * lib/obstack.h: Likewise.
60930         * lib/open-safer.c: Likewise.
60931         * lib/open.c: Likewise.
60932         * lib/openat-die.c: Likewise.
60933         * lib/openat-priv.h: Likewise.
60934         * lib/openat-proc.c: Likewise.
60935         * lib/openat.c: Likewise.
60936         * lib/openat.h: Likewise.
60937         * lib/pagealign_alloc.c: Likewise.
60938         * lib/pagealign_alloc.h: Likewise.
60939         * lib/physmem.c: Likewise.
60940         * lib/physmem.h: Likewise.
60941         * lib/pipe-safer.c: Likewise.
60942         * lib/pipe.c: Likewise.
60943         * lib/pipe.h: Likewise.
60944         * lib/posixtm.c: Likewise.
60945         * lib/posixtm.h: Likewise.
60946         * lib/posixver.c: Likewise.
60947         * lib/printf-frexp.c: Likewise.
60948         * lib/printf-frexp.h: Likewise.
60949         * lib/printf-frexpl.c: Likewise.
60950         * lib/printf-frexpl.h: Likewise.
60951         * lib/printf.c: Likewise.
60952         * lib/progname.c: Likewise.
60953         * lib/progname.h: Likewise.
60954         * lib/progreloc.c: Likewise.
60955         * lib/putenv.c: Likewise.
60956         * lib/quote.c: Likewise.
60957         * lib/quote.h: Likewise.
60958         * lib/quotearg.c: Likewise.
60959         * lib/quotearg.h: Likewise.
60960         * lib/raise.c: Likewise.
60961         * lib/readline.c: Likewise.
60962         * lib/readline.h: Likewise.
60963         * lib/readlink.c: Likewise.
60964         * lib/readtokens.c: Likewise.
60965         * lib/readtokens.h: Likewise.
60966         * lib/readtokens0.c: Likewise.
60967         * lib/readtokens0.h: Likewise.
60968         * lib/readutmp.c: Likewise.
60969         * lib/readutmp.h: Likewise.
60970         * lib/realloc.c: Likewise.
60971         * lib/relocwrapper.c: Likewise.
60972         * lib/rename-dest-slash.c: Likewise.
60973         * lib/rename.c: Likewise.
60974         * lib/rmdir.c: Likewise.
60975         * lib/rpmatch.c: Likewise.
60976         * lib/safe-read.c: Likewise.
60977         * lib/safe-read.h: Likewise.
60978         * lib/safe-write.c: Likewise.
60979         * lib/safe-write.h: Likewise.
60980         * lib/same-inode.h: Likewise.
60981         * lib/same.c: Likewise.
60982         * lib/same.h: Likewise.
60983         * lib/save-cwd.c: Likewise.
60984         * lib/save-cwd.h: Likewise.
60985         * lib/savedir.c: Likewise.
60986         * lib/savedir.h: Likewise.
60987         * lib/savewd.c: Likewise.
60988         * lib/savewd.h: Likewise.
60989         * lib/search.in.h: Likewise.
60990         * lib/setenv.c: Likewise.
60991         * lib/setenv.h: Likewise.
60992         * lib/settime.c: Likewise.
60993         * lib/sh-quote.c: Likewise.
60994         * lib/sh-quote.h: Likewise.
60995         * lib/sig2str.c: Likewise.
60996         * lib/sig2str.h: Likewise.
60997         * lib/signal.in.h: Likewise.
60998         * lib/signbitd.c: Likewise.
60999         * lib/signbitf.c: Likewise.
61000         * lib/signbitl.c: Likewise.
61001         * lib/sigprocmask.c: Likewise.
61002         * lib/sincosl.c: Likewise.
61003         * lib/sleep.c: Likewise.
61004         * lib/sprintf.c: Likewise.
61005         * lib/sqrtl.c: Likewise.
61006         * lib/stat-time.h: Likewise.
61007         * lib/stdio--.h: Likewise.
61008         * lib/stdio-safer.h: Likewise.
61009         * lib/stdlib--.h: Likewise.
61010         * lib/stdlib-safer.h: Likewise.
61011         * lib/stdlib.in.h: Likewise.
61012         * lib/stpcpy.c: Likewise.
61013         * lib/stpncpy.c: Likewise.
61014         * lib/strchrnul.c: Likewise.
61015         * lib/strcspn.c: Likewise.
61016         * lib/strerror.c: Likewise.
61017         * lib/strftime.c: Likewise.
61018         * lib/strftime.h: Likewise.
61019         * lib/striconveh.c: Likewise.
61020         * lib/striconveh.h: Likewise.
61021         * lib/striconveha.c: Likewise.
61022         * lib/striconveha.h: Likewise.
61023         * lib/stripslash.c: Likewise.
61024         * lib/strnlen1.c: Likewise.
61025         * lib/strnlen1.h: Likewise.
61026         * lib/strtod.c: Likewise.
61027         * lib/strtoimax.c: Likewise.
61028         * lib/strtok_r.c: Likewise.
61029         * lib/strtol.c: Likewise.
61030         * lib/strtoll.c: Likewise.
61031         * lib/strtoul.c: Likewise.
61032         * lib/strtoull.c: Likewise.
61033         * lib/sysexits.in.h: Likewise.
61034         * lib/tempname.c: Likewise.
61035         * lib/tempname.h: Likewise.
61036         * lib/timespec.h: Likewise.
61037         * lib/tls.c: Likewise.
61038         * lib/tls.h: Likewise.
61039         * lib/tmpdir.c: Likewise.
61040         * lib/tmpdir.h: Likewise.
61041         * lib/tmpfile-safer.c: Likewise.
61042         * lib/tmpfile.c: Likewise.
61043         * lib/trigl.c: Likewise.
61044         * lib/trigl.h: Likewise.
61045         * lib/trim.c: Likewise.
61046         * lib/trim.h: Likewise.
61047         * lib/trunc.c: Likewise.
61048         * lib/truncf.c: Likewise.
61049         * lib/truncl.c: Likewise.
61050         * lib/tsearch.c: Likewise.
61051         * lib/unicodeio.c: Likewise.
61052         * lib/unicodeio.h: Likewise.
61053         * lib/unistd--.h: Likewise.
61054         * lib/unistd-safer.h: Likewise.
61055         * lib/unistdio/ulc-fprintf.c: Likewise.
61056         * lib/unistdio/ulc-vfprintf.c: Likewise.
61057         * lib/unlinkdir.c: Likewise.
61058         * lib/unlinkdir.h: Likewise.
61059         * lib/unlocked-io.h: Likewise.
61060         * lib/unsetenv.c: Likewise.
61061         * lib/userspec.c: Likewise.
61062         * lib/utime.c: Likewise.
61063         * lib/utimecmp.c: Likewise.
61064         * lib/utimecmp.h: Likewise.
61065         * lib/utimens.c: Likewise.
61066         * lib/verify.h: Likewise.
61067         * lib/verror.c: Likewise.
61068         * lib/verror.h: Likewise.
61069         * lib/version-etc-fsf.c: Likewise.
61070         * lib/version-etc.c: Likewise.
61071         * lib/version-etc.h: Likewise.
61072         * lib/vfprintf.c: Likewise.
61073         * lib/vprintf.c: Likewise.
61074         * lib/vsprintf.c: Likewise.
61075         * lib/w32spawn.h: Likewise.
61076         * lib/wait-process.c: Likewise.
61077         * lib/wait-process.h: Likewise.
61078         * lib/wcwidth.c: Likewise.
61079         * lib/write-any-file.c: Likewise.
61080         * lib/xalloc-die.c: Likewise.
61081         * lib/xalloc.h: Likewise.
61082         * lib/xasprintf.c: Likewise.
61083         * lib/xgetcwd.c: Likewise.
61084         * lib/xgetcwd.h: Likewise.
61085         * lib/xgetdomainname.c: Likewise.
61086         * lib/xgetdomainname.h: Likewise.
61087         * lib/xgethostname.c: Likewise.
61088         * lib/xmalloc.c: Likewise.
61089         * lib/xmalloca.c: Likewise.
61090         * lib/xmalloca.h: Likewise.
61091         * lib/xmemcoll.c: Likewise.
61092         * lib/xnanosleep.c: Likewise.
61093         * lib/xreadlink.c: Likewise.
61094         * lib/xreadlink.h: Likewise.
61095         * lib/xsetenv.c: Likewise.
61096         * lib/xsetenv.h: Likewise.
61097         * lib/xstriconv.c: Likewise.
61098         * lib/xstriconv.h: Likewise.
61099         * lib/xstrndup.c: Likewise.
61100         * lib/xstrndup.h: Likewise.
61101         * lib/xstrtod.c: Likewise.
61102         * lib/xstrtod.h: Likewise.
61103         * lib/xstrtol-error.c: Likewise.
61104         * lib/xstrtol.c: Likewise.
61105         * lib/xstrtol.h: Likewise.
61106         * lib/xtime.h: Likewise.
61107         * lib/xvasprintf.c: Likewise.
61108         * lib/xvasprintf.h: Likewise.
61109         * lib/yesno.c: Likewise.
61110         * lib/yesno.h: Likewise.
61111         * posix-modules: Likewise.
61112         * tests/test-alloca-opt.c: Likewise.
61113         * tests/test-arcfour.c: Likewise.
61114         * tests/test-arctwo.c: Likewise.
61115         * tests/test-argmatch.c: Likewise.
61116         * tests/test-argp-2.sh: Likewise.
61117         * tests/test-argp.c: Likewise.
61118         * tests/test-arpa_inet.c: Likewise.
61119         * tests/test-array_list.c: Likewise.
61120         * tests/test-array_oset.c: Likewise.
61121         * tests/test-atexit.c: Likewise.
61122         * tests/test-avltree_list.c: Likewise.
61123         * tests/test-avltree_oset.c: Likewise.
61124         * tests/test-avltreehash_list.c: Likewise.
61125         * tests/test-base64.c: Likewise.
61126         * tests/test-binary-io.c: Likewise.
61127         * tests/test-byteswap.c: Likewise.
61128         * tests/test-c-ctype.c: Likewise.
61129         * tests/test-c-strcasecmp.c: Likewise.
61130         * tests/test-c-strcasestr.c: Likewise.
61131         * tests/test-c-strncasecmp.c: Likewise.
61132         * tests/test-c-strstr.c: Likewise.
61133         * tests/test-canonicalize-lgpl.c: Likewise.
61134         * tests/test-canonicalize.c: Likewise.
61135         * tests/test-carray_list.c: Likewise.
61136         * tests/test-ceilf.c: Likewise.
61137         * tests/test-ceill.c: Likewise.
61138         * tests/test-count-one-bits.c: Likewise.
61139         * tests/test-crc.c: Likewise.
61140         * tests/test-dirname.c: Likewise.
61141         * tests/test-fbufmode.c: Likewise.
61142         * tests/test-fcntl.c: Likewise.
61143         * tests/test-fflush.c: Likewise.
61144         * tests/test-floorf.c: Likewise.
61145         * tests/test-floorl.c: Likewise.
61146         * tests/test-fopen.c: Likewise.
61147         * tests/test-fprintf-posix.c: Likewise.
61148         * tests/test-fprintf-posix.h: Likewise.
61149         * tests/test-fpurge.c: Likewise.
61150         * tests/test-freadable.c: Likewise.
61151         * tests/test-freadahead.c: Likewise.
61152         * tests/test-freading.c: Likewise.
61153         * tests/test-freopen.c: Likewise.
61154         * tests/test-frexp.c: Likewise.
61155         * tests/test-frexpl.c: Likewise.
61156         * tests/test-fseek.c: Likewise.
61157         * tests/test-fseeko.c: Likewise.
61158         * tests/test-fseterr.c: Likewise.
61159         * tests/test-fstrcmp.c: Likewise.
61160         * tests/test-ftell.c: Likewise.
61161         * tests/test-ftello.c: Likewise.
61162         * tests/test-fwritable.c: Likewise.
61163         * tests/test-fwriting.c: Likewise.
61164         * tests/test-getaddrinfo.c: Likewise.
61165         * tests/test-getpass.c: Likewise.
61166         * tests/test-gettimeofday.c: Likewise.
61167         * tests/test-hmac-md5.c: Likewise.
61168         * tests/test-hmac-sha1.c: Likewise.
61169         * tests/test-iconv.c: Likewise.
61170         * tests/test-iconvme.c: Likewise.
61171         * tests/test-inttypes.c: Likewise.
61172         * tests/test-isnan.c: Likewise.
61173         * tests/test-isnanf.c: Likewise.
61174         * tests/test-isnanl-nolibm.c: Likewise.
61175         * tests/test-isnanl.c: Likewise.
61176         * tests/test-isnanl.h: Likewise.
61177         * tests/test-ldexpl.c: Likewise.
61178         * tests/test-linked_list.c: Likewise.
61179         * tests/test-linkedhash_list.c: Likewise.
61180         * tests/test-locale.c: Likewise.
61181         * tests/test-localename.c: Likewise.
61182         * tests/test-lock.c: Likewise.
61183         * tests/test-lseek.c: Likewise.
61184         * tests/test-malloca.c: Likewise.
61185         * tests/test-math.c: Likewise.
61186         * tests/test-mbscasecmp.c: Likewise.
61187         * tests/test-mbscasestr1.c: Likewise.
61188         * tests/test-mbscasestr2.c: Likewise.
61189         * tests/test-mbscasestr3.c: Likewise.
61190         * tests/test-mbscasestr4.c: Likewise.
61191         * tests/test-mbschr.c: Likewise.
61192         * tests/test-mbscspn.c: Likewise.
61193         * tests/test-mbsncasecmp.c: Likewise.
61194         * tests/test-mbspbrk.c: Likewise.
61195         * tests/test-mbspcasecmp.c: Likewise.
61196         * tests/test-mbsrchr.c: Likewise.
61197         * tests/test-mbsspn.c: Likewise.
61198         * tests/test-mbsstr1.c: Likewise.
61199         * tests/test-mbsstr2.c: Likewise.
61200         * tests/test-mbsstr3.c: Likewise.
61201         * tests/test-md5.c: Likewise.
61202         * tests/test-memmem.c: Likewise.
61203         * tests/test-netinet_in.c: Likewise.
61204         * tests/test-open.c: Likewise.
61205         * tests/test-printf-frexp.c: Likewise.
61206         * tests/test-printf-frexpl.c: Likewise.
61207         * tests/test-printf-posix.c: Likewise.
61208         * tests/test-printf-posix.h: Likewise.
61209         * tests/test-rbtree_list.c: Likewise.
61210         * tests/test-rbtree_oset.c: Likewise.
61211         * tests/test-rbtreehash_list.c: Likewise.
61212         * tests/test-read-file.c: Likewise.
61213         * tests/test-rijndael.c: Likewise.
61214         * tests/test-search.c: Likewise.
61215         * tests/test-signbit.c: Likewise.
61216         * tests/test-sleep.c: Likewise.
61217         * tests/test-snprintf-posix.c: Likewise.
61218         * tests/test-snprintf-posix.h: Likewise.
61219         * tests/test-snprintf.c: Likewise.
61220         * tests/test-sprintf-posix.c: Likewise.
61221         * tests/test-sprintf-posix.h: Likewise.
61222         * tests/test-stat-time.c: Likewise.
61223         * tests/test-stdbool.c: Likewise.
61224         * tests/test-stdint.c: Likewise.
61225         * tests/test-stdio.c: Likewise.
61226         * tests/test-stdlib.c: Likewise.
61227         * tests/test-stpncpy.c: Likewise.
61228         * tests/test-strcasestr.c: Likewise.
61229         * tests/test-striconv.c: Likewise.
61230         * tests/test-striconveh.c: Likewise.
61231         * tests/test-striconveha.c: Likewise.
61232         * tests/test-string.c: Likewise.
61233         * tests/test-sys_select.c: Likewise.
61234         * tests/test-sys_socket.c: Likewise.
61235         * tests/test-sys_stat.c: Likewise.
61236         * tests/test-sys_time.c: Likewise.
61237         * tests/test-sysexits.c: Likewise.
61238         * tests/test-time.c: Likewise.
61239         * tests/test-tls.c: Likewise.
61240         * tests/test-trunc.c: Likewise.
61241         * tests/test-truncf.c: Likewise.
61242         * tests/test-truncl.c: Likewise.
61243         * tests/test-unistd.c: Likewise.
61244         * tests/test-vasnprintf-posix.c: Likewise.
61245         * tests/test-vasnprintf-posix2.c: Likewise.
61246         * tests/test-vasnprintf.c: Likewise.
61247         * tests/test-vasprintf-posix.c: Likewise.
61248         * tests/test-vasprintf.c: Likewise.
61249         * tests/test-verify.c: Likewise.
61250         * tests/test-vfprintf-posix.c: Likewise.
61251         * tests/test-vprintf-posix.c: Likewise.
61252         * tests/test-vsnprintf-posix.c: Likewise.
61253         * tests/test-vsnprintf.c: Likewise.
61254         * tests/test-vsprintf-posix.c: Likewise.
61255         * tests/test-wchar.c: Likewise.
61256         * tests/test-wctype.c: Likewise.
61257         * tests/test-wcwidth.c: Likewise.
61258         * tests/test-xstrtol.c: Likewise.
61259         * tests/test-xvasprintf.c: Likewise.
61260         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61261         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61262         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61263         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61264         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61265         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61266         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61267         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61268         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61269         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61270         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61271         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61272         * tests/uniname/test-uninames.c: Likewise.
61273         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61274         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61275         * tests/unistdio/test-u16-printf1.h: Likewise.
61276         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61277         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61278         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61279         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61280         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61281         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61282         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61283         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61284         * tests/unistdio/test-u32-printf1.h: Likewise.
61285         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61286         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61287         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61288         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61289         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61290         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61291         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61292         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61293         * tests/unistdio/test-u8-printf1.h: Likewise.
61294         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61295         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61296         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61297         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61298         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61299         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61300         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61301         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61302         * tests/unistdio/test-ulc-printf1.h: Likewise.
61303         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61304         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61305         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61306         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61307         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61308         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61309         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61310         * tests/uniwidth/test-u16-width.c: Likewise.
61311         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61312         * tests/uniwidth/test-u32-width.c: Likewise.
61313         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61314         * tests/uniwidth/test-u8-width.c: Likewise.
61315         * tests/uniwidth/test-uc_width.c: Likewise.
61316         * config/srclist-update: Likewise.
61317         (fixlicense): Update to GPLv3+.
61318
61319         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61320         * tests/test-tsearch.c: Change copyright notice.
61321
61322         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61323         * lib/c-strcaseeq.h: Change copyright notice.
61324         * lib/streq.h: Likewise.
61325         * lib/uniconv.h: Likewise.
61326         * lib/uniconv/u-conv-from-enc.h: Likewise.
61327         * lib/uniconv/u-conv-to-enc.h: Likewise.
61328         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61329         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61330         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61331         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61332         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61333         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61334         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61335         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61336         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61337         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61338         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61339         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61340         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61341         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61342         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61343         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61344         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61345         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61346         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61347         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61348         * lib/uniname.h: Likewise.
61349         * lib/uniname/uniname.c: Likewise.
61350         * lib/unistdio.h: Likewise.
61351         * lib/unistdio/u-asnprintf.h: Likewise.
61352         * lib/unistdio/u-asprintf.h: Likewise.
61353         * lib/unistdio/u-printf-args.c: Likewise.
61354         * lib/unistdio/u-printf-args.h: Likewise.
61355         * lib/unistdio/u-printf-parse.h: Likewise.
61356         * lib/unistdio/u-snprintf.h: Likewise.
61357         * lib/unistdio/u-sprintf.h: Likewise.
61358         * lib/unistdio/u-vasprintf.h: Likewise.
61359         * lib/unistdio/u-vsnprintf.h: Likewise.
61360         * lib/unistdio/u-vsprintf.h: Likewise.
61361         * lib/unistdio/u16-asnprintf.c: Likewise.
61362         * lib/unistdio/u16-asprintf.c: Likewise.
61363         * lib/unistdio/u16-printf-parse.c: Likewise.
61364         * lib/unistdio/u16-snprintf.c: Likewise.
61365         * lib/unistdio/u16-sprintf.c: Likewise.
61366         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61367         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61368         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61369         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61370         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61371         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61372         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61373         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61374         * lib/unistdio/u16-vasnprintf.c: Likewise.
61375         * lib/unistdio/u16-vasprintf.c: Likewise.
61376         * lib/unistdio/u16-vsnprintf.c: Likewise.
61377         * lib/unistdio/u16-vsprintf.c: Likewise.
61378         * lib/unistdio/u32-asnprintf.c: Likewise.
61379         * lib/unistdio/u32-asprintf.c: Likewise.
61380         * lib/unistdio/u32-printf-parse.c: Likewise.
61381         * lib/unistdio/u32-snprintf.c: Likewise.
61382         * lib/unistdio/u32-sprintf.c: Likewise.
61383         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61384         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61385         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61386         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61387         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61388         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61389         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61390         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61391         * lib/unistdio/u32-vasnprintf.c: Likewise.
61392         * lib/unistdio/u32-vasprintf.c: Likewise.
61393         * lib/unistdio/u32-vsnprintf.c: Likewise.
61394         * lib/unistdio/u32-vsprintf.c: Likewise.
61395         * lib/unistdio/u8-asnprintf.c: Likewise.
61396         * lib/unistdio/u8-asprintf.c: Likewise.
61397         * lib/unistdio/u8-printf-parse.c: Likewise.
61398         * lib/unistdio/u8-snprintf.c: Likewise.
61399         * lib/unistdio/u8-sprintf.c: Likewise.
61400         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61401         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61402         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61403         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61404         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61405         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61406         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61407         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61408         * lib/unistdio/u8-vasnprintf.c: Likewise.
61409         * lib/unistdio/u8-vasprintf.c: Likewise.
61410         * lib/unistdio/u8-vsnprintf.c: Likewise.
61411         * lib/unistdio/u8-vsprintf.c: Likewise.
61412         * lib/unistdio/ulc-asnprintf.c: Likewise.
61413         * lib/unistdio/ulc-asprintf.c: Likewise.
61414         * lib/unistdio/ulc-printf-parse.c: Likewise.
61415         * lib/unistdio/ulc-snprintf.c: Likewise.
61416         * lib/unistdio/ulc-sprintf.c: Likewise.
61417         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61418         * lib/unistdio/ulc-vasprintf.c: Likewise.
61419         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61420         * lib/unistdio/ulc-vsprintf.c: Likewise.
61421         * lib/unistr.h: Likewise.
61422         * lib/unistr/u-cpy-alloc.h: Likewise.
61423         * lib/unistr/u-cpy.h: Likewise.
61424         * lib/unistr/u-endswith.h: Likewise.
61425         * lib/unistr/u-move.h: Likewise.
61426         * lib/unistr/u-set.h: Likewise.
61427         * lib/unistr/u-startswith.h: Likewise.
61428         * lib/unistr/u-stpcpy.h: Likewise.
61429         * lib/unistr/u-stpncpy.h: Likewise.
61430         * lib/unistr/u-strcat.h: Likewise.
61431         * lib/unistr/u-strcpy.h: Likewise.
61432         * lib/unistr/u-strcspn.h: Likewise.
61433         * lib/unistr/u-strdup.h: Likewise.
61434         * lib/unistr/u-strlen.h: Likewise.
61435         * lib/unistr/u-strncat.h: Likewise.
61436         * lib/unistr/u-strncpy.h: Likewise.
61437         * lib/unistr/u-strnlen.h: Likewise.
61438         * lib/unistr/u-strpbrk.h: Likewise.
61439         * lib/unistr/u-strspn.h: Likewise.
61440         * lib/unistr/u-strstr.h: Likewise.
61441         * lib/unistr/u-strtok.h: Likewise.
61442         * lib/unistr/u16-check.c: Likewise.
61443         * lib/unistr/u16-chr.c: Likewise.
61444         * lib/unistr/u16-cmp.c: Likewise.
61445         * lib/unistr/u16-cpy-alloc.c: Likewise.
61446         * lib/unistr/u16-cpy.c: Likewise.
61447         * lib/unistr/u16-endswith.c: Likewise.
61448         * lib/unistr/u16-mblen.c: Likewise.
61449         * lib/unistr/u16-mbsnlen.c: Likewise.
61450         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61451         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61452         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61453         * lib/unistr/u16-mbtouc.c: Likewise.
61454         * lib/unistr/u16-mbtoucr.c: Likewise.
61455         * lib/unistr/u16-move.c: Likewise.
61456         * lib/unistr/u16-next.c: Likewise.
61457         * lib/unistr/u16-prev.c: Likewise.
61458         * lib/unistr/u16-set.c: Likewise.
61459         * lib/unistr/u16-startswith.c: Likewise.
61460         * lib/unistr/u16-stpcpy.c: Likewise.
61461         * lib/unistr/u16-stpncpy.c: Likewise.
61462         * lib/unistr/u16-strcat.c: Likewise.
61463         * lib/unistr/u16-strchr.c: Likewise.
61464         * lib/unistr/u16-strcmp.c: Likewise.
61465         * lib/unistr/u16-strcpy.c: Likewise.
61466         * lib/unistr/u16-strcspn.c: Likewise.
61467         * lib/unistr/u16-strdup.c: Likewise.
61468         * lib/unistr/u16-strlen.c: Likewise.
61469         * lib/unistr/u16-strmblen.c: Likewise.
61470         * lib/unistr/u16-strmbtouc.c: Likewise.
61471         * lib/unistr/u16-strncat.c: Likewise.
61472         * lib/unistr/u16-strncmp.c: Likewise.
61473         * lib/unistr/u16-strncpy.c: Likewise.
61474         * lib/unistr/u16-strnlen.c: Likewise.
61475         * lib/unistr/u16-strpbrk.c: Likewise.
61476         * lib/unistr/u16-strrchr.c: Likewise.
61477         * lib/unistr/u16-strspn.c: Likewise.
61478         * lib/unistr/u16-strstr.c: Likewise.
61479         * lib/unistr/u16-strtok.c: Likewise.
61480         * lib/unistr/u16-to-u32.c: Likewise.
61481         * lib/unistr/u16-to-u8.c: Likewise.
61482         * lib/unistr/u16-uctomb-aux.c: Likewise.
61483         * lib/unistr/u16-uctomb.c: Likewise.
61484         * lib/unistr/u32-check.c: Likewise.
61485         * lib/unistr/u32-chr.c: Likewise.
61486         * lib/unistr/u32-cmp.c: Likewise.
61487         * lib/unistr/u32-cpy-alloc.c: Likewise.
61488         * lib/unistr/u32-cpy.c: Likewise.
61489         * lib/unistr/u32-endswith.c: Likewise.
61490         * lib/unistr/u32-mblen.c: Likewise.
61491         * lib/unistr/u32-mbsnlen.c: Likewise.
61492         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61493         * lib/unistr/u32-mbtouc.c: Likewise.
61494         * lib/unistr/u32-mbtoucr.c: Likewise.
61495         * lib/unistr/u32-move.c: Likewise.
61496         * lib/unistr/u32-next.c: Likewise.
61497         * lib/unistr/u32-prev.c: Likewise.
61498         * lib/unistr/u32-set.c: Likewise.
61499         * lib/unistr/u32-startswith.c: Likewise.
61500         * lib/unistr/u32-stpcpy.c: Likewise.
61501         * lib/unistr/u32-stpncpy.c: Likewise.
61502         * lib/unistr/u32-strcat.c: Likewise.
61503         * lib/unistr/u32-strchr.c: Likewise.
61504         * lib/unistr/u32-strcmp.c: Likewise.
61505         * lib/unistr/u32-strcpy.c: Likewise.
61506         * lib/unistr/u32-strcspn.c: Likewise.
61507         * lib/unistr/u32-strdup.c: Likewise.
61508         * lib/unistr/u32-strlen.c: Likewise.
61509         * lib/unistr/u32-strmblen.c: Likewise.
61510         * lib/unistr/u32-strmbtouc.c: Likewise.
61511         * lib/unistr/u32-strncat.c: Likewise.
61512         * lib/unistr/u32-strncmp.c: Likewise.
61513         * lib/unistr/u32-strncpy.c: Likewise.
61514         * lib/unistr/u32-strnlen.c: Likewise.
61515         * lib/unistr/u32-strpbrk.c: Likewise.
61516         * lib/unistr/u32-strrchr.c: Likewise.
61517         * lib/unistr/u32-strspn.c: Likewise.
61518         * lib/unistr/u32-strstr.c: Likewise.
61519         * lib/unistr/u32-strtok.c: Likewise.
61520         * lib/unistr/u32-to-u16.c: Likewise.
61521         * lib/unistr/u32-to-u8.c: Likewise.
61522         * lib/unistr/u32-uctomb.c: Likewise.
61523         * lib/unistr/u8-check.c: Likewise.
61524         * lib/unistr/u8-chr.c: Likewise.
61525         * lib/unistr/u8-cmp.c: Likewise.
61526         * lib/unistr/u8-cpy-alloc.c: Likewise.
61527         * lib/unistr/u8-cpy.c: Likewise.
61528         * lib/unistr/u8-endswith.c: Likewise.
61529         * lib/unistr/u8-mblen.c: Likewise.
61530         * lib/unistr/u8-mbsnlen.c: Likewise.
61531         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61532         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61533         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61534         * lib/unistr/u8-mbtouc.c: Likewise.
61535         * lib/unistr/u8-mbtoucr.c: Likewise.
61536         * lib/unistr/u8-move.c: Likewise.
61537         * lib/unistr/u8-next.c: Likewise.
61538         * lib/unistr/u8-prev.c: Likewise.
61539         * lib/unistr/u8-set.c: Likewise.
61540         * lib/unistr/u8-startswith.c: Likewise.
61541         * lib/unistr/u8-stpcpy.c: Likewise.
61542         * lib/unistr/u8-stpncpy.c: Likewise.
61543         * lib/unistr/u8-strcat.c: Likewise.
61544         * lib/unistr/u8-strchr.c: Likewise.
61545         * lib/unistr/u8-strcmp.c: Likewise.
61546         * lib/unistr/u8-strcpy.c: Likewise.
61547         * lib/unistr/u8-strcspn.c: Likewise.
61548         * lib/unistr/u8-strdup.c: Likewise.
61549         * lib/unistr/u8-strlen.c: Likewise.
61550         * lib/unistr/u8-strmblen.c: Likewise.
61551         * lib/unistr/u8-strmbtouc.c: Likewise.
61552         * lib/unistr/u8-strncat.c: Likewise.
61553         * lib/unistr/u8-strncmp.c: Likewise.
61554         * lib/unistr/u8-strncpy.c: Likewise.
61555         * lib/unistr/u8-strnlen.c: Likewise.
61556         * lib/unistr/u8-strpbrk.c: Likewise.
61557         * lib/unistr/u8-strrchr.c: Likewise.
61558         * lib/unistr/u8-strspn.c: Likewise.
61559         * lib/unistr/u8-strstr.c: Likewise.
61560         * lib/unistr/u8-strtok.c: Likewise.
61561         * lib/unistr/u8-to-u16.c: Likewise.
61562         * lib/unistr/u8-to-u32.c: Likewise.
61563         * lib/unistr/u8-uctomb-aux.c: Likewise.
61564         * lib/unistr/u8-uctomb.c: Likewise.
61565         * lib/unitypes.h: Likewise.
61566         * lib/uniwidth.h: Likewise.
61567         * lib/uniwidth/cjk.h: Likewise.
61568         * lib/uniwidth/u16-strwidth.c: Likewise.
61569         * lib/uniwidth/u16-width.c: Likewise.
61570         * lib/uniwidth/u32-strwidth.c: Likewise.
61571         * lib/uniwidth/u32-width.c: Likewise.
61572         * lib/uniwidth/u8-strwidth.c: Likewise.
61573         * lib/uniwidth/u8-width.c: Likewise.
61574         * lib/uniwidth/width.c: Likewise.
61575
61576 2007-10-07  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61579         The file is still under LGPL (see modules/inttypes).
61580
61581 2007-10-06  Bruno Haible  <bruno@clisp.org>
61582
61583         * modules/trunc (Dependencies): Add 'extensions'.
61584         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61585         Reported by Ben Pfaff <blp@gnu.org>.
61586
61587 2007-10-06  Bruno Haible  <bruno@clisp.org>
61588
61589         * modules/freopen-tests: New file.
61590         * tests/test-freopen.c: New file.
61591
61592         * modules/fopen-tests: New file.
61593         * tests/test-fopen.c: New file.
61594
61595         * modules/fopen: New file.
61596         * lib/fopen.c: New file.
61597         * m4/fopen.m4: New file.
61598         * modules/freopen: New file.
61599         * lib/freopen.c: New file.
61600         * m4/freopen.m4: New file.
61601         * lib/stdio.in.h (fopen, freopen): New declarations.
61602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61603         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61604         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61605         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61606         * doc/functions/fopen.texi: Mention the 'fopen' module.
61607         * doc/functions/freopen.texi: Mention the 'freopen' module.
61608
61609 2007-10-06  Bruno Haible  <bruno@clisp.org>
61610
61611         * modules/open-tests: New file.
61612         * tests/test-open.c: New file.
61613
61614         * modules/open: New file.
61615         * lib/open.c: New file.
61616         * m4/open.m4: New file.
61617         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61618         lib/open.c does.
61619         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61620         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61621         macros.
61622         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61623         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61624         REPLACE_OPEN.
61625         * doc/functions/open.texi: Mention the 'open' module.
61626
61627 2007-10-04  Bruno Haible  <bruno@clisp.org>
61628
61629         * modules/ceill-tests: New file.
61630         * tests/test-ceill.c: New file.
61631
61632         * modules/ceill: New file.
61633         * lib/ceill.c: Replace entire file.
61634         * m4/ceill.m4: New file.
61635         * lib/math.in.h (ceill): Replace declaration.
61636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61637         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61638         * doc/functions/ceill.texi: Mention the 'ceill' module.
61639         * modules/mathl (Files): Remove lib/ceill.c.
61640         (Depends-on): Add ceill.
61641
61642 2007-10-04  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/ceilf-tests: New file.
61645         * tests/test-ceilf.c: New file.
61646
61647         * modules/ceilf: New file.
61648         * lib/ceil.c: New file.
61649         * lib/ceilf.c: New file.
61650         * m4/ceilf.m4: New file.
61651         * lib/math.in.h (ceilf): New declaration.
61652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61653         HAVE_DECL_CEILF.
61654         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61655         HAVE_DECL_CEILF.
61656         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61657
61658 2007-10-04  Bruno Haible  <bruno@clisp.org>
61659
61660         * modules/floorl-tests: New file.
61661         * tests/test-floorl.c: New file.
61662
61663         * modules/floorl: New file.
61664         * lib/floorl.c: Replace entire file.
61665         * m4/floorl.m4: New file.
61666         * lib/math.in.h (floorl): Replace declaration.
61667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61668         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61669         * doc/functions/floorl.texi: Mention the 'floorl' module.
61670         * modules/mathl (Files): Remove lib/floorl.c.
61671         (Depends-on): Add floorl.
61672
61673 2007-10-04  Bruno Haible  <bruno@clisp.org>
61674
61675         * modules/floorf-tests: New file.
61676         * tests/test-floorf.c: New file.
61677
61678         * modules/floorf: New file.
61679         * lib/floor.c: New file.
61680         * lib/floorf.c: New file.
61681         * m4/floorf.m4: New file.
61682         * lib/math.in.h (floorf): New declaration.
61683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61684         HAVE_DECL_FLOORF.
61685         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61686         HAVE_DECL_FLOORF.
61687         * doc/functions/floorf.texi: Mention the 'floorf' module.
61688
61689 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61690             Bruno Haible  <bruno@clisp.org>
61691
61692         Advertise for the Git server instead of the CVS server.
61693         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61694         repository instead of the CVS one.
61695         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61696         about all VCS systems generically.
61697         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61698
61699 2007-10-04  Bruno Haible  <bruno@clisp.org>
61700
61701         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61702         means.
61703         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61704
61705 2007-10-04  Bruno Haible  <bruno@clisp.org>
61706
61707         * modules/truncl-tests: New file.
61708         * tests/test-truncl.c: New file.
61709
61710         * modules/truncl: New file.
61711         * lib/truncl.c: New file.
61712         * m4/truncl.m4: New file.
61713         * lib/math.in.h (truncl): New declaration.
61714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61715         HAVE_DECL_TRUNCL.
61716         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61717         HAVE_DECL_TRUNCL.
61718         * doc/functions/truncl.texi: Mention the 'truncl' module.
61719
61720 2007-10-04  Bruno Haible  <bruno@clisp.org>
61721
61722         * modules/truncf-tests: New file.
61723         * tests/test-truncf.c: New file.
61724
61725         * modules/truncf: New file.
61726         * lib/trunc.c: Make paramerizable through USE_* macros.
61727         * lib/truncf.c: New file.
61728         * m4/truncf.m4: New file.
61729         * lib/math.in.h (truncf): New declaration.
61730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61731         HAVE_DECL_TRUNCF.
61732         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61733         HAVE_DECL_TRUNCF.
61734         * doc/functions/truncf.texi: Mention the 'truncf' module.
61735
61736 2007-10-03  Bruno Haible  <bruno@clisp.org>
61737
61738         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61739         augmentation also for tests modules.
61740         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61741         * modules/atexit-tests (Makefile.am): Likewise.
61742         * modules/binary-io-tests (Makefile.am): Likewise.
61743         * modules/c-strcase-tests (Makefile.am): Likewise.
61744         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61745         * modules/canonicalize-tests (Makefile.am): Likewise.
61746         * modules/closein-tests (Makefile.am): Likewise.
61747         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61748         * modules/freadahead-tests (Makefile.am): Likewise.
61749         * modules/fseek-tests (Makefile.am): Likewise.
61750         * modules/fseeko-tests (Makefile.am): Likewise.
61751         * modules/ftell-tests (Makefile.am): Likewise.
61752         * modules/ftello-tests (Makefile.am): Likewise.
61753         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61754         * modules/isnanl-tests (Makefile.am): Likewise.
61755         * modules/lseek-tests (Makefile.am): Likewise.
61756         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61757         * modules/mbscasestr-tests (Makefile.am): Likewise.
61758         * modules/mbschr-tests (Makefile.am): Likewise.
61759         * modules/mbscspn-tests (Makefile.am): Likewise.
61760         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61761         * modules/mbspbrk-tests (Makefile.am): Likewise.
61762         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61763         * modules/mbsrchr-tests (Makefile.am): Likewise.
61764         * modules/mbsspn-tests (Makefile.am): Likewise.
61765         * modules/mbsstr-tests (Makefile.am): Likewise.
61766         * modules/printf-posix-tests (Makefile.am): Likewise.
61767         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61768         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61769         * modules/tsearch-tests (Makefile.am): Likewise.
61770         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61771         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61772         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61773         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61774         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61775         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61776         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61777         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61778         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61779         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61780         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61781         * modules/xstrtol-tests (Makefile.am): Likewise.
61782         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61783         * modules/yesno-tests (Makefile.am): Likewise.
61784
61785 2007-10-03  Bruno Haible  <bruno@clisp.org>
61786
61787         * modules/trunc-tests: New file.
61788         * tests/test-trunc.c: New file.
61789
61790         * modules/trunc: New file.
61791         * lib/trunc.c: New file.
61792         * m4/trunc.m4: New file.
61793         * lib/math.in.h (trunc): New declaration.
61794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61795         HAVE_DECL_TRUNC.
61796         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61797         HAVE_DECL_TRUNC.
61798         * doc/functions/trunc.texi: Mention the 'trunc' module.
61799
61800 2007-10-03  Bruno Haible  <bruno@clisp.org>
61801
61802         * tests/test-fpending.c: New file, mostly copied
61803         from coreutils/lib/t-fpending.c.
61804         * modules/fpending-tests: New file.
61805
61806 2007-10-03  Bruno Haible  <bruno@clisp.org>
61807
61808         Port the stdio extensions to QNX (untested).
61809         * lib/fseterr.c (fseterr): Add support for QNX.
61810         * lib/fbufmode.c (fbufmode): Likewise.
61811         * lib/freadable.c (freadable): Likewise.
61812         * lib/fwritable.c (fwritable): Likewise.
61813         * lib/freading.c (freading): Likewise.
61814         * lib/fwriting.c (fwriting): Likewise.
61815         * lib/freadahead.c (freadahed): Likewise.
61816         * lib/fpurge.c (fpurge): Likewise.
61817         * lib/fseeko.c (rpl_fseeko): Likewise.
61818
61819 2007-10-03  Bruno Haible  <bruno@clisp.org>
61820             Jim Meyering  <jim@meyering.net>
61821             Eric Blake  <ebb9@byu.net>
61822
61823         * doc/relocatable.texi: Use @command instead of @program.
61824
61825 2007-10-02  Jim Meyering  <jim@meyering.net>
61826
61827         Perform one more "_.h" -> ".in.h" substitution.
61828         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61829         instead of unistd_.h here, too.
61830
61831 2007-10-01  Bruno Haible  <bruno@clisp.org>
61832
61833         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61834         Needed for the alloca-opt module.
61835
61836 2007-09-30  Bruno Haible  <bruno@clisp.org>
61837
61838         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61839         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61840         alloca_.h.
61841         * lib/argz.in.h: Renamed from lib/argz_.h.
61842         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61843         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61844         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61845         byteswap_.h.
61846         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61847         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61848         dirent_.h.
61849         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61850         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61851         fcntl_.h.
61852         * lib/float.in.h: Renamed from lib/float_.h.
61853         * modules/float (Files, Makefile.am): Use float.in.h instead of
61854         float_.h.
61855         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61856         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61857         fnmatch_.h.
61858         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61859         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61860         getopt_.h.
61861         * lib/glob.in.h: Renamed from lib/glob_.h.
61862         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61863         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61864         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61865         iconv_.h.
61866         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61867         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61868         inttypes_.h.
61869         * lib/locale.in.h: Renamed from lib/locale_.h.
61870         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61871         locale_.h.
61872         * lib/math.in.h: Renamed from lib/math_.h.
61873         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61874         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61875         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61876         of netinet_in_.h. Add dependency.
61877         * lib/poll.in.h: Renamed from lib/poll_.h.
61878         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61879         * lib/search.in.h: Renamed from lib/search_.h.
61880         * modules/search (Files, Makefile.am): Use search.in.h instead of
61881         search_.h.
61882         * lib/signal.in.h: Renamed from lib/signal_.h.
61883         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61884         _signal.h.
61885         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61886         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61887         stdbool_.h.
61888         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61889         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61890         stdint_.h.
61891         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61892         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61893         stdio_.h.
61894         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61895         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61896         stdlib_.h.
61897         * lib/string.in.h: Renamed from lib/string_.h.
61898         * modules/string (Files, Makefile.am): Use string.in.h instead of
61899         string_.h.
61900         * doc/gnulib-tool.texi (Initial import): Update.
61901         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61902         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61903         of sys_select_.h. Add dependency.
61904         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61905         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61906         of sys_socket_.h.
61907         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61908         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61909         sys_stat_.h.
61910         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61911         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61912         sys_time_.h.
61913         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61914         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61915         sysexits_.h.
61916         * lib/time.in.h: Renamed from lib/time_.h.
61917         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61918         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61919         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61920         unistd_.h.
61921         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61922         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61923         wchar_.h.
61924         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61925         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61926         wctype_.h.
61927         * build-aux/bootstrap (slurp): Update.
61928         * lib/.cppi-disable: Update.
61929
61930 2007-09-30  Bruno Haible  <bruno@clisp.org>
61931
61932         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61933         Needed on BeOS.
61934
61935 2007-09-30  Bruno Haible  <bruno@clisp.org>
61936
61937         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61938
61939 2007-09-29  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61942
61943 2007-09-29  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61946         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61947         * build-aux/install-reloc: Compile also areadlink.c.
61948         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61949
61950 2007-09-29  Bruno Haible  <bruno@clisp.org>
61951
61952         * gnulib-tool (func_emit_initmacro_done): Indentation.
61953
61954 2007-09-29  Bruno Haible  <bruno@clisp.org>
61955
61956         * README: Add CVS checkout update instructions.
61957         Info from Bob Proulx <bob@proulx.com>.
61958
61959 2007-09-28  Eric Blake  <ebb9@byu.net>
61960
61961         Provide move-if-change.
61962         * build-aux/move-if-change: New file, based on best practice
61963         rather than any canonical upstream location.
61964
61965 2007-09-28  Jim Meyering  <jim@meyering.net>
61966
61967         Fix canonicalize loop-detection corner case.
61968         Do not attempt to stat the symlink values stored via seen_triple.
61969         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61970         on linux-2.6.18, (but not 2.6.22).
61971         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61972         triple_compare.  The former compares dev,ino,filename, while the latter
61973         would actually stat dirname(filename) when dev and ino were equal.
61974         * lib/hash-triple.c: Install <string.h>.
61975         (STREQ): Define.
61976         (triple_compare_ino_str): New function.
61977         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61978
61979 2007-09-28  Eric Blake  <ebb9@byu.net>
61980
61981         Enforce that AC_REPLACE_FUNCS files exist.
61982         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61983         override check for typos.
61984
61985         Fix test-closein on Solaris 10.
61986         * tests/test-closein.c (main): Don't assume stdin can be inherited
61987         closed on all systems.
61988         * tests/test-closein.sh: Likewise.
61989         Reported by Piotr Tarnowski.
61990
61991 2007-09-28  Jim Meyering  <jim@meyering.net>
61992
61993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61994
61995 2007-09-27  Jim Meyering  <jim@meyering.net>
61996
61997         canonicalize: Avoid a false-positive cycle failure.
61998         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61999         Sort.  Remove cycle-check.
62000         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62001         not cycle-check.h.
62002         (seen_triple): New function.
62003         (canonicalize_filename_mode): Use it instead of cycle-check.
62004         * tests/test-canonicalize.c: Add a test for this bug.
62005         * tests/test-canonicalize.sh: Set up and run the test.
62006
62007         New module, file-set, from coreutils.
62008         * modules/file-set: Define it.
62009         * lib/file-set.c, lib/file-set.h: Implement.
62010
62011         New module, hash-triple, from coreutils.
62012         * modules/hash-triple: Define it.
62013         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62014
62015 2007-09-25  Eric Blake  <ebb9@byu.net>
62016
62017         Fix strerror on Interix.
62018         * lib/string_.h (strerror): Declare replacement.
62019         * doc/functions/strerror.texi (strerror): Document the Interix
62020         shortcoming.
62021         * modules/string (Makefile.am): Support new hooks.
62022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62023         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62024         gl_FUNC_STRERROR_SEPARATE.
62025         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62026         * lib/strerror.c (rpl_strerror): Provide replacement.
62027         * modules/strerror (Depends-on): Add string.
62028         (configure.ac): Detect use of module.
62029         * tests/test-strerror.c: New file.
62030         * modules/strerror-tests: New test module.
62031         * modules/argp (Depends-on): Add strerror.
62032         * modules/error (Depends-on): Likewise.
62033         Reported by Martin Koeppe.
62034
62035 2007-09-24  Bruno Haible  <bruno@clisp.org>
62036
62037         * README: Update git instructions.
62038
62039 2007-09-24  Eric Blake  <ebb9@byu.net>
62040
62041         Revert fpending breakage from 2007-09-08.
62042         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62043         __fpending.c.
62044
62045 2007-09-24  Jim Meyering  <jim@meyering.net>
62046
62047         filenamecat.c: Add a test.
62048         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62049         showing how the function works when DIR is the empty string.
62050
62051 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62052
62053         * tests/test-canonicalize.sh: Turn on executable bit.
62054
62055 2007-09-19  Eric Blake  <ebb9@byu.net>
62056
62057         * README: Update CVS instructions.
62058
62059 2007-09-18  Bruno Haible  <bruno@clisp.org>
62060
62061         * modules/areadlink: New file.
62062         * lib/areadlink.h (areadlink): New declaration.
62063         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62064
62065 2007-09-17  Jim Meyering  <jim@meyering.net>
62066
62067         * lib/savewd.c (ESTALE) [!defined]: Define.
62068         Reported to be required on Interix by Martin Koeppe.
62069
62070 2007-09-17  Bruno Haible  <bruno@clisp.org>
62071
62072         * gnulib-tool (func_version): Use $version.
62073
62074 2007-09-16  Bruno Haible  <bruno@clisp.org>
62075
62076         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62077         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62078         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62079         Reported by Greg Schafer <gschafer@zip.com.au>.
62080
62081 2007-09-15  Bruno Haible  <bruno@clisp.org>
62082
62083         * gnulib-tool (sed): Try a little harder to make bash understand the
62084         alias.
62085         Reported by Bruce Korb <bruce.korb@gmail.com>.
62086
62087 2007-09-13  Eric Blake  <ebb9@byu.net>
62088
62089         * ChangeLog: Remove conflict markers.
62090
62091 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62092
62093         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62094         Reported by Bruno Haible <bruno@clisp.org>.
62095
62096 2007-09-12  Bruno Haible  <bruno@clisp.org>
62097
62098         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62099         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62100         is not defined.
62101
62102 2007-09-12  Eric Blake  <ebb9@byu.net>
62103
62104         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62105         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62106         Autoconf definition.
62107         * modules/euidaccess (Depends-on): Add extensions, for
62108         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62109         * modules/fnmatch (Depends-on): Likewise.
62110         * modules/getaddrinfo (Depends-on): Likewise.
62111         * modules/getdelim (Depends-on): Likewise.
62112         * modules/getline (Depends-on): Likewise.
62113         * modules/getsubopt (Depends-on): Likewise.
62114         * modules/gettext (Depends-on): Likewise.
62115         * modules/group-member (Depends-on): Likewise.
62116         * modules/mbchar (Depends-on): Likewise.
62117         * modules/memmem (Depends-on): Likewise.
62118         * modules/mempcpy (Depends-on): Likewise.
62119         * modules/memrchr (Depends-on): Likewise.
62120         * modules/pagealign_alloc (Depends-on): Likewise.
62121         * modules/readutmp (Depends-on): Likewise.
62122         * modules/stpcpy (Depends-on): Likewise.
62123         * modules/stpncpy (Depends-on): Likewise.
62124         * modules/strchrnul (Depends-on): Likewise.
62125         * modules/strndup (Depends-on): Likewise.
62126         * modules/strsep (Depends-on): Likewise.
62127         * modules/strverscmp (Depends-on): Likewise.
62128         * modules/vasprintf (Depends-on): Likewise.
62129         * modules/wcwidth (Depends-on): Likewise.
62130         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62131         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62132         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62134         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62135         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62136         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62137         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62138         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62139         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62141         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62142         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62143         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62144         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62145         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62146         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62147         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62149         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62152         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62153         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62154         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62156         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62157         so that lock.m4 can be used in gettext without extensions module.
62158
62159 2007-09-11  Bruno Haible  <bruno@clisp.org>
62160
62161         * m4/isc-posix.m4: Remove file.
62162         Suggested by Eric Blake.
62163
62164 2007-09-11  Eric Blake  <ebb9@byu.net>
62165
62166         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62167
62168 2007-09-10  Bruno Haible  <bruno@clisp.org>
62169
62170         * posix-modules: Fix typo in error message.
62171         Reported by Matt <mkraai@beckman.com>.
62172
62173 2007-09-09  Bruno Haible  <bruno@clisp.org>
62174
62175         * doc/functions/getdelim.texi: Update list of platforms lacking the
62176         function.
62177         * doc/functions/getline.texi: Likewise.
62178
62179 2007-09-09  Jim Meyering  <jim@meyering.net>
62180
62181         * lib/hash.c (hash_initialize): Detect calloc failure.
62182         Reported by Bruno Haible.
62183
62184 2007-09-09  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62187         malloc or realloc fails.
62188
62189 2007-09-09  Bruno Haible  <bruno@clisp.org>
62190
62191         * modules/getcwd (Depends-on): Add malloc-posix.
62192         * modules/glob (Depends-on): Likewise.
62193         * modules/putenv (Depends-on): Likewise.
62194         * modules/strdup (Depends-on): Likewise.
62195         * modules/getdelim (Depends-on): Add realloc-posix.
62196         * modules/read-file (Depends-on): Likewise.
62197
62198 2007-09-09  Bruno Haible  <bruno@clisp.org>
62199
62200         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62201         (gl_FUNC_MALLOC_POSIX): Require it.
62202         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62203         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62204         * modules/realloc (Files): Add m4/malloc.m4.
62205         * modules/calloc (Files): Likewise.
62206
62207 2007-09-09  Bruno Haible  <bruno@clisp.org>
62208
62209         * modules/malloc-posix: New file.
62210         * modules/malloc (Depends-on): Add malloc-posix.
62211         * lib/malloc.c: Include errno.h.
62212         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62213         and a POSIX-compatible malloc into a single function. Set ENOMEM
62214         when returning NULL.
62215         * m4/malloc.m4: New file.
62216         * doc/functions/malloc.texi: Mention the malloc-posix module.
62217         * lib/stdlib_.h (malloc): New declaration.
62218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62219         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62220         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62221         and HAVE_MALLOC_POSIX.
62222
62223 2007-09-09  Bruno Haible  <bruno@clisp.org>
62224
62225         * modules/realloc-posix: New file.
62226         * modules/realloc (Depends-on): Add realloc-posix.
62227         * lib/realloc.c: Include errno.h.
62228         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62229         and a POSIX-compatible realloc into a single function. Set ENOMEM
62230         when returning NULL.
62231         * m4/realloc.m4: New file.
62232         * doc/functions/realloc.texi: Mention the realloc-posix module.
62233         * lib/stdlib_.h (realloc): New declaration.
62234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62235         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62236         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62237         and HAVE_REALLOC_POSIX.
62238
62239 2007-09-09  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/calloc-posix: New file.
62242         * modules/calloc (Depends-on): Add calloc-posix.
62243         * lib/calloc.c: Include errno.h.
62244         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62245         and a POSIX-compatible calloc into a single function. Set ENOMEM
62246         when returning NULL.
62247         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62248         * doc/functions/calloc.texi: Mention the calloc-posix module.
62249         * lib/stdlib_.h (calloc): New declaration.
62250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62251         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62252         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62253         and HAVE_CALLOC_POSIX.
62254
62255 2007-09-09  Bruno Haible  <bruno@clisp.org>
62256
62257         Allow for modules to show an arbitrary notice.
62258         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62259         * gnulib-tool: New option --extract-notice.
62260         (func_usage): Document it.
62261         (sed_extract_prog): Update.
62262         (func_get_notice): New function.
62263         (func_modules_notice): New function.
62264         (func_import, func_create_testdir): Invoke it.
62265         Suggested by Jim Meyering.
62266
62267 2007-09-09  Bruno Haible  <bruno@clisp.org>
62268
62269         * gnulib-tool: New options --verbose, --quiet.
62270         (func_usage): Document them.
62271         (verbose): New variable.
62272         (func_execute_command): New function.
62273         (func_import): Don't show the module list and the file list if
62274         $verbose < 0.
62275         (func_create_testdir): Likewise. Use func_execute_command.
62276         (func_create_megatestdir): Use func_execute_command.
62277
62278 2007-09-08  Bruno Haible  <bruno@clisp.org>
62279
62280         * gnulib-tool (func_import): Prefer rsync over wget when available,
62281         for fetching the PO files.
62282
62283 2007-09-08  Bruno Haible  <bruno@clisp.org>
62284
62285         * posix-modules: New file. Portions copied from gnulib-tool.
62286         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62287
62288 2007-09-08  Jim Meyering  <jim@meyering.net>
62289
62290         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62291         * lib/fpending.h: Rename from __fpending.h.
62292         * lib/fpending.c: Rename from __fpending.c.
62293         Include "fpending.h", not "__fpending.h".
62294         * lib/__fpending.h, lib/__fpending.c: Remove files.
62295         * modules/fpending (Files): Reflect new file names.
62296         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62297
62298 2007-09-08  Bruno Haible  <bruno@clisp.org>
62299
62300         * m4/inttypes-h.m4: Remove stub file.
62301
62302 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62303
62304         * doc/headers/stdint.texi: Discuss #include_next issue.
62305
62306 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62309
62310 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62311
62312         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62313         in variable name.
62314
62315 2007-09-03  Jim Meyering  <jim@meyering.net>
62316
62317         New module: git-version-gen.
62318         * modules/git-version-gen: New file.
62319
62320         Import changes from coreutils for bootstrap script.
62321
62322         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62323
62324         bootstrap: uses rsync to download the .po files
62325         * build-aux/bootstrap (po_download_command_format): New global.
62326         (download_po_files): Use rsync.
62327         (update_po_files): Don't remove .po files after download,
62328         so future rsync runs can take advantage of the copies.
62329
62330         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62331
62332         Solve the unnecessary-.po-file-regeneration problem once and for all.
62333         * build-aux/bootstrap (download_po_files): New function, renamed from
62334         get_translations.  Now, downloads, but doesn't update LINGUAS.
62335         (update_po_files): New function.
62336
62337         bootstrap: Ignore more.
62338         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62339         uniwidth to e.g., lib/.gitignore.
62340         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62341
62342         * build-aux/bootstrap: New setting: vc_ignore.
62343         (insert_sorted_if_absent): Create $file if absent.
62344         Adapt to new, possibly empty, list: $vc_ignore.
62345
62346         bootstrap: generate more ignorable names
62347         * build-aux/bootstrap (slurp): When generating ignorable names,
62348         also map .sin to .sed, .gperf to .c, and .y to .c.
62349
62350 2007-09-03  Jim Meyering  <jim@meyering.net>
62351
62352         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62353         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62354
62355 2007-09-02  Bruno Haible  <bruno@clisp.org>
62356
62357         Fix mis-recognition of 'mcs' on QNX 6.
62358         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62359         output contains the string "Mono".
62360         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62361         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62362
62363 2007-09-01  Bruno Haible  <bruno@clisp.org>
62364
62365         Fix collision between uniwidth/* and linebreak modules.
62366         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62367         u32_width): Remove declarations.
62368         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62369         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62370         streq3, streq2, streq1, streq0): Remove functions.
62371         (STREQ): Remove macro.
62372         (is_cjk_encoding): Remove function.
62373         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62374         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62375         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62376         * NEWS: Document the change.
62377
62378 2007-09-01  Bruno Haible  <bruno@clisp.org>
62379
62380         * lib/streq.h: Add double-inclusion guard.
62381
62382 2007-09-01  Karl Berry  <karl@gnu.org>
62383
62384         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62385
62386 2007-08-28  Jim Meyering  <jim@meyering.net>
62387
62388         Rename mreadlink_with_size to areadlink_with_size.
62389         * NEWS: Document the change.
62390         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62391         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62392         * lib/mreadlink.h: Rename this to...
62393         * lib/areadlink.h: ...this.
62394         * modules/mreadlink-with-size: Rename this to...
62395         * modules/areadlink-with-size: ...this.
62396         * lib/canonicalize.c: Reflect the renaming.
62397         * modules/canonicalize: Likewise.
62398
62399 2007-08-26  Bruno Haible  <bruno@clisp.org>
62400
62401         * gnulib-tool (func_import): When deciding which files to remove,
62402         consider also dangling symbolic links.
62403         Reported by Eric Blake.
62404
62405 2007-08-26  Bruno Haible  <bruno@clisp.org>
62406
62407         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62408
62409 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62410
62411         * lib/readline.c: Don't include getline.h, the prototype is now
62412         found in stdio.h.
62413
62414 2007-08-23  Jim Meyering  <jim@meyering.net>
62415
62416         Getdelim touchup.
62417         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62418         around the funlockfile call, since funlockfile never sets errno.
62419         Don't set errno upon failed realloc.
62420
62421 2007-08-22  Eric Blake  <ebb9@byu.net>
62422
62423         Getline touchups.
62424         * lib/getdelim.c (getdelim): Revert regression that required *n to
62425         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62427         getdelim, rather than whether implementation is missing.
62428         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62429         * lib/stdio_.h (getline): Also declare if replacement is
62430         required.
62431         * doc/functions/getdelim.texi: New file.
62432         * doc/functions/getline.texi: Likewise.
62433         * doc/gnulib.texi (Function Substitutes): Add new files.
62434         Reported by Bruno Haible.
62435
62436 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62437
62438         * users.txt: Add Guile.
62439
62440 2007-08-22  Eric Blake  <ebb9@byu.net>
62441
62442         * tests/test-getdelim.c (main): Use remove, not unlink.
62443         * tests/test-getline.c (main): Likewise.
62444
62445         Move getline and getdelim into stdio.h, per POSIX 200x.
62446         * modules/getline (Files): Remove getline.h.
62447         (Depends-on): Add stdio.
62448         (configure.ac): Add module indicator.
62449         * modules/getdelim (Files): Remove getdelim.h.
62450         (Depends-on): Add stdio.
62451         (configure.ac): Add module indicator.
62452         * modules/stdio (Makefile.am): Work with new indicators.
62453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62455         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62456         * lib/getdelim.h: Delete.
62457         * lib/getline.h: Delete.
62458         * lib/stdio_.h (getdelim, getline): Declare.
62459         * modules/getdelim-tests: New module.
62460         * modules/getline-tests: Likewise.
62461         * tests/test-getdelim.c: New file.
62462         * tests/test-getline.c: Likewise.
62463         * NEWS: Document the change.
62464         * lib/getline.c: Update choice of header.
62465         * lib/csharpcomp.c: Likewise.
62466         * lib/getpass.c: Likewise.
62467         * lib/javacomp.c: Likewise.
62468         * lib/javaversion.c: Likewise.
62469         * lib/yesno.c: Likewise.
62470         * lib/getdelim.c: Likewise.
62471         (getdelim): Set errno on failure, and avoid memory leak.
62472
62473 2007-08-19  Bruno Haible  <bruno@clisp.org>
62474
62475         * modules/closein (Depends-on): Add freadahead.
62476         * lib/closein.c: Include freadahead.h.
62477         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62478         is zero.
62479
62480 2007-08-19  Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/freadahead-tests: New file.
62483         * tests/test-freadahead.sh: New file.
62484         * tests/test-freadahead.c: New file.
62485
62486         * modules/freadahead: New file.
62487         * lib/freadahead.h: New file.
62488         * lib/freadahead.c: New file.
62489         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62490         fbufmode, fpurge, freadable, fwritable.
62491
62492 2007-08-19  Eric Blake  <ebb9@byu.net>
62493
62494         Test yesno in combination with closein.
62495         * lib/yesno.c (yesno): Document use of stdin.
62496         * modules/yesno-tests (Files): New module.
62497         * tests/test-yesno.c (main): New file.
62498         * tests/test-yesno.sh: Likewise.
62499
62500 2007-08-19  Bruno Haible  <bruno@clisp.org>
62501
62502         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62503         * lib/fseeko.c (rpl_fseeko): Likewise.
62504         * lib/fseterr.c (fseterr): Likewise.
62505
62506 2007-08-19  Bruno Haible  <bruno@clisp.org>
62507
62508         * tests/test-lseek.c (main): Disable a test for BeOS.
62509         * doc/functions/lseek.texi: Document the BeOS bug.
62510
62511 2007-08-19  Bruno Haible  <bruno@clisp.org>
62512             Eric Blake  <ebb9@byu.net>
62513
62514         * lib/lseek.c: Include <sys/stat.h>.
62515         (rpl_lseek): Add workaround code also for Unix platforms.
62516         Needed for BeOS.
62517         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62518         * doc/functions/lseek.texi: Document BeOS definiency.
62519
62520 2007-08-18  Bruno Haible  <bruno@clisp.org>
62521
62522         * modules/fstrcmp-tests: New file.
62523         * tests/test-fstrcmp.c: New file.
62524
62525 2007-08-18  Bruno Haible  <bruno@clisp.org>
62526
62527         * modules/fstrcmp: New file, from GNU gettext with modifications.
62528         * lib/fstrcmp.h: New file, from GNU gettext.
62529         * lib/fstrcmp.c: New file, from GNU gettext.
62530         * MODULES.html.sh (String handling): Add fstrcmp.
62531
62532 2007-08-18  Bruno Haible  <bruno@clisp.org>
62533
62534         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62535         'bool'.
62536         (diag, compareseq): Remove const from the ctxt argument.
62537         (USE_HEURISTIC): Undefine at the end.
62538
62539 2007-08-18  Jim Meyering  <jim@meyering.net>
62540
62541         New file: lib/idcache.h
62542         * NEWS: Mention the addition.
62543         * modules/idcache (Files): Add lib/idcache.h
62544         * lib/idcache.c: Include "idcache.h".
62545         Don't include <sys/types.h>.
62546         Add a FIXME comment.
62547         Move file-scoped "static" declarations to the top.
62548         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62549
62550 2007-08-17  Bruno Haible  <bruno@clisp.org>
62551         and Paul Eggert  <eggert@cs.ucla.edu>
62552
62553         * MODULES.html.sh: Add diffseq.
62554         * modules/diffseq: New file.
62555         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62556         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62557
62558 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62559
62560         Import changes from coreutils for bootstrap script.
62561
62562         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62563
62564         * build-aux/bootstrap (slurp): Work even in environments where
62565         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62566         current code does not slurp files whose names start with ".", and
62567         this looks like it might be a troublesome area.
62568
62569         2007-07-11  Jim Meyering  <jim@meyering.net>
62570
62571         If there's a GPL vN copyright comment, require that N == 3.
62572
62573         2007-07-08  Jim Meyering  <jim@meyering.net>
62574
62575         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62576         * build-aux/bootstrap (mam_template): Move definition out of loop.
62577
62578         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62579
62580         * build-aux/bootstrap (symlink_to_dir): Rename function from
62581         symlink_to_gnulib.  Add a directory parameter.  Update all
62582         callers.
62583         (cp_mark_as_generated): Also check for -- and link to -- files in
62584         gl/.
62585
62586         2007-07-08  Jim Meyering  <jim@meyering.net>
62587
62588         Adapt to deeper hierarchy in gnulib.
62589         * build-aux/bootstrap (symlink_to_dir): If the destination
62590         directory doesn't exist, create it. This is required at least for
62591         "lib/uniwidth/cjk.h".
62592
62593         2007-05-15  Jim Meyering  <jim@meyering.net>
62594
62595         * build-aux/bootstrap: Now that generated Makefile.am files
62596         are no longer under version control, they must be created at
62597         bootstrap time.
62598
62599 2007-08-14  Ben Pfaff  <blp@gnu.org>
62600
62601         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62602
62603 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62606         given the changes below.
62607         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62608         even on hosts that have padding bits beyond the supported 64.
62609
62610 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62611
62612         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62613         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62614         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62615         depends on it.
62616         (xstrtol_error): Remove.
62617         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62618         but with a different signature.
62619         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62620         * lib/xstrtol-error.c: Include exitfail.h.
62621         (xstrtol_fatal): New function, with a different signature from the
62622         old xstrtol_error, so that the caller need not worry about passing
62623         in an exit status, or about storage management of the option argument.
62624         (xstrtol_error): Now a static function.  Redo signature to
62625         implement xstrtol_fatal.  Output the correct number of hyphens in
62626         front of the option so that the caller need not worry about
62627         storage management.
62628         (N_): New macro.
62629         (_): Remove; not used now.
62630         * modules/xstrtol: Depend on getopt.
62631         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62632         of old STRTOL_FATAL_ERROR macro.
62633         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62634         of test program.
62635         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62636         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62637
62638 2007-08-08  Eric Blake  <ebb9@byu.net>
62639
62640         * lib/xstrtol-error.c: Add missing include.
62641
62642         Move xstrtol messages into gnulib domain, when --pobase is used.
62643         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62644         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62645         * modules/xstrtol (Files): Distribute new file.
62646         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62647         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62648         * tests/test-xstrtol.c: ...into new file.
62649         * tests/test-xstrtoul.c: Also test xstrtoul.
62650         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62651         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62652         * tests/test-xstrtol.sh: Drive the tests.
62653         * tests/test-xstrtoimax.sh: Likewise.
62654         * tests/test-xstrtoumax.sh: Likewise.
62655         * modules/xstrtol-tests: New module.
62656         * modules/xstrtoimax-tests: Likewise.
62657         * modules/xstrtoumax-tests: Likewise.
62658
62659 2007-08-08  Jim Meyering  <jim@meyering.net>
62660
62661         New function: mfile_name_concat.
62662         * lib/filenamecat.c (mfile_name_concat): New function, just like
62663         file_name_concat, but return NULL upon failure rather than exiting
62664         with a diagnostic.
62665         * lib/filenamecat.h: Declare it.
62666
62667 2007-08-07  Bruno Haible  <bruno@clisp.org>
62668
62669         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62670         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62671         warning from gcc.
62672         Reported by Eric Blake.
62673
62674 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62675
62676         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62677         * modules/crypto/arcfour (License): Likewise.
62678         * modules/crypto/des-tests (License): Likewise.
62679         * modules/crypto/gc-arctwo-tests (License): Likewise.
62680         * modules/crypto/gc-des-tests (License): Likewise.
62681         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62682         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62683         * modules/crypto/gc-md2-tests (License): Likewise.
62684         * modules/crypto/gc-md4-tests (License): Likewise.
62685         * modules/crypto/gc-md5-tests (License): Likewise.
62686         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62687         * modules/crypto/gc-rijndael-tests (License): Likewise.
62688         * modules/crypto/gc-sha1-tests (License): Likewise.
62689         * modules/crypto/gc-tests (License): Likewise.
62690         * modules/crypto/hmac-md5 (License): Likewise.
62691         * modules/crypto/hmac-sha1 (License): Likewise.
62692         * modules/crypto/md2-tests (License): Likewise.
62693         * modules/crypto/md4-tests (License): Likewise.
62694         * modules/crypto/md5 (License): Likewise.
62695         * modules/crypto/rijndael (License): Likewise.
62696         * modules/crypto/sha1 (License): Likewise.
62697         * modules/memxor (License): Likewise.
62698
62699 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62700         and Bruno Haible  <bruno@clisp.org>
62701
62702         * NEWS: Describe interface changes to human, xstrtol.
62703         * lib/human.h: Include <xstrtol.h>.
62704         (human_options): Return enum strtol_error, not int.  Remove
62705         bool arg; take int * instead.
62706         * lib/human.c: Don't include "gettext.h".
62707         (_): Remove; no longer used.
62708         Don't include <xstrtol.h>, since human.h does it.
62709         (human_options): Adjust to abovementioned interface changes.
62710         Do not report error to stderr; that's now the caller's
62711         responsibility.
62712         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62713         interface change.
62714         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62715         Str, Argument_type_string.  All uses changed.  Put " argument"
62716         in diagnostics to make them clearer.  Change wording of suffix
62717         message for clarity.
62718         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62719         Argument_type_string.
62720         (STRTOL_FATAL_WARN): Remove; no longer used.
62721         * modules/human (Depends-on): Remove gettext-h.
62722
62723 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62724
62725         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62726
62727 2007-07-31  Bruno Haible  <bruno@clisp.org>
62728
62729         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62730         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62731         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62732
62733 2007-07-31  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62736         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62737
62738 2007-07-30  Bruno Haible  <bruno@clisp.org>
62739
62740         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62741         * modules/c-ctype (License): Likewise.
62742         * modules/c-strcase (License): Likewise.
62743         * modules/check-version (License): Likewise.
62744         * modules/iconv (License): Likewise.
62745         * modules/iconv_open (License): Likewise.
62746         * modules/read-file (License): Likewise.
62747         * modules/striconv (License): Likewise.
62748         * modules/strverscmp (License): Likewise.
62749         * modules/vasprintf (License): Likewise.
62750         * modules/crypto/des (License): Likewise.
62751         * modules/crypto/gc (License): Likewise.
62752         * modules/crypto/gc-arcfour (License): Likewise.
62753         * modules/crypto/gc-arctwo (License): Likewise.
62754         * modules/crypto/gc-des (License): Likewise.
62755         * modules/crypto/gc-hmac-md5 (License): Likewise.
62756         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62757         * modules/crypto/gc-md2 (License): Likewise.
62758         * modules/crypto/gc-md4 (License): Likewise.
62759         * modules/crypto/gc-md5 (License): Likewise.
62760         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62761         * modules/crypto/gc-random (License): Likewise.
62762         * modules/crypto/gc-rijndael (License): Likewise.
62763         * modules/crypto/gc-sha1 (License): Likewise.
62764         * modules/crypto/md2 (License): Likewise.
62765         * modules/crypto/md4 (License): Likewise.
62766
62767 2007-07-30  Jim Meyering  <jim@meyering.net>
62768
62769         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62770         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62771         it has valid stat data.  This bug would cause du not to count the
62772         sizes of inaccessible directories.
62773         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62774         in <http://bugzilla.redhat.com/250077>.
62775
62776 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62777             Bruno Haible  <bruno@clisp.org>
62778
62779         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62780         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62781         #include_next, gives a diagnostic about it, but reports no error in
62782         the exit code.
62783         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62784
62785 2007-07-24  Ben Pfaff  <blp@gnu.org>
62786
62787         Improve name: "count-one-bits" is better than "popcount".
62788         * MODULES.html.sh: Update name.
62789         * lib/popcount.h: Renamed lib/count-one-bits.h.
62790         (popcount): Renamed count_one_bits.
62791         (popcountl): Renamed count_one_bits_l.
62792         (popcountll): Renamed count_one_bits_ll.
62793         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62794         * modules/popcount: Renamed module/count-one-bits.
62795         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62796         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62797
62798 2007-07-23  Ben Pfaff  <blp@gnu.org>
62799
62800         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62801         better code generation, and add U to large constants to avoid
62802         warnings, in non-GCC case.
62803         Suggested by Bruno Haible.
62804
62805 2007-07-23  Ben Pfaff  <blp@gnu.org>
62806
62807         * lib/popcount.h: Use verify_true instead of if...abort.
62808         * modules/popcount: Depend on verify module.
62809         Suggested by Jim Meyering.
62810
62811 2007-07-23  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool (func_import): Create a .cvsignore file also when the
62814         directory is not yet in CVS but the toplevel directory is. When
62815         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62816         Reported by Karl Berry.
62817
62818 2007-07-22  Ben Pfaff  <blp@gnu.org>
62819
62820         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62821         case.
62822         Suggested by Eric Blake.
62823
62824 2007-07-22  Ben Pfaff  <blp@gnu.org>
62825
62826         New module: popcount.
62827         * MODULES.html.sh: Add popcount.
62828         * modules/popcount: New file.
62829         * modules/popcount-tests: New file.
62830         * tests/test-popcount.c: New file.
62831         * lib/popcount.h: New file.
62832         * m4/popcount.m4: New file.
62833
62834 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62835
62836         * build-aux/announce-gen: Update to GPLv3.
62837
62838         * build-aux/config.guess: Update from config.
62839
62840 2007-07-21  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62843         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62844
62845 2007-07-20  Jim Meyering  <jim@meyering.net>
62846
62847         * check-module: Diagnose a self-dependency.
62848
62849 2007-07-19  Bruno Haible  <bruno@clisp.org>
62850
62851         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62852         empty.
62853         Reported by Eric Blake.
62854
62855 2007-07-18  Bruno Haible  <bruno@clisp.org>
62856
62857         * gnulib-tool: New options --po-base, --po-domain.
62858         (func_usage): Document them.
62859         (pobase, po_domain): New variables.
62860         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62861         DEFAULT_TEXT_DOMAIN.
62862         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62863         (func_import): Consider pobase and po_domain. Create a po/ directory.
62864         (func_create_testdir): Set pobase and po_domain to empty.
62865         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62866         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62867
62868 2007-07-18  Bruno Haible  <bruno@clisp.org>
62869
62870         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62871         EXTRA_DIST augmentation for files in build-aux/.
62872
62873 2007-07-16  Bruno Haible  <bruno@clisp.org>
62874
62875         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62876         * modules/getdelim (License): Likewise.
62877
62878 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62879
62880         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62881         * modules/d-type (License): Likewise.
62882         * modules/extensions (License): Likewise.
62883         * modules/fnmatch (License): Likewise.
62884         * modules/fseeko (License): Likewise.
62885         * modules/getaddrinfo (License): Likewise.
62886         * modules/getline (License): Likewise.
62887         * modules/getlogin_r (License): Likewise.
62888         * modules/getpass (License): Likewise.
62889         * modules/gettimeofday (License): Likewise.
62890         * modules/glob (License): Likewise.
62891         * modules/inet_ntop (License): Likewise.
62892         * modules/malloc (License): Likewise.
62893         * modules/malloca (License): Likewise.
62894         * modules/memmem (License): Likewise.
62895         * modules/mempcpy (License): Likewise.
62896         * modules/memset (License): Likewise.
62897         * modules/minmax (License): Likewise.
62898         * modules/mktime (License): Likewise.
62899         * modules/netinet_in (License): Likewise.
62900         * modules/pathmax (License): Likewise.
62901         * modules/poll (License): Likewise.
62902         * modules/regex (License): Likewise.
62903         * modules/snprintf (License): Likewise.
62904         * modules/stdbool (License): Likewise.
62905         * modules/stdint (License): Likewise.
62906         * modules/stdio (License): Likewise.
62907         * modules/strcase (License): Likewise.
62908         * modules/strcasestr (License): Likewise.
62909         * modules/strdup (License): Likewise.
62910         * modules/string (License): Likewise.
62911         * modules/strndup (License): Likewise.
62912         * modules/strnlen (License): Likewise.
62913         * modules/strpbrk (License): Likewise.
62914         * modules/strptime (License): Likewise.
62915         * modules/strsep (License): Likewise.
62916         * modules/sys_select (License): Likewise.
62917         * modules/sys_socket (License): Likewise.
62918         * modules/sys_stat (License): Likewise.
62919         * modules/sys_time (License): Likewise.
62920         * modules/time (License): Likewise.
62921         * modules/time_r (License): Likewise.
62922         * modules/timegm (License): Likewise.
62923         * modules/unistd (License): Likewise.
62924         * modules/vsnprintf (License): Likewise.
62925         * modules/wctype (License): Likewise.
62926
62927 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62928
62929         * modules/argz (License): LGPLv2+.
62930
62931 2007-07-15  Karl Berry  <karl@gnu.org>
62932
62933         * doc/gnulib.texi: revise node structure per new fdl.texi.
62934
62935 2007-07-14  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62938         the output file.
62939         * lib/uniname/uninames.h: Regenerated.
62940
62941 2007-07-14  Karl Berry  <karl@gnu.org>
62942
62943         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62944         omitting sectioning and index commands.
62945
62946 2007-07-13  Bruno Haible  <bruno@clisp.org>
62947
62948         New gnulib-tool option --more-symlinks.
62949         * gnulib-tool (func_usage): Document --more-symlinks.
62950         (do_copyrights): New variable.
62951         Recognize option --more-symlinks.
62952         (func_import): Don't add a copyright notice transform to
62953         sed_transform_lib_file if do_copyrights is empty.
62954
62955 2007-07-13  Bruno Haible  <bruno@clisp.org>
62956
62957         * lib/vasnprintf.c (decimal_point_char): Define also if
62958         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62959         && !NEED_PRINTF_DIRECTIVE_A.
62960         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62961         Gary V. Vaughan <gary@gnu.org>.
62962
62963 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62964
62965         * lib/inttypes_.h: Undo previous change, since it was fixed
62966         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62967
62968 2007-07-13  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62971         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62972
62973 2007-07-13  Jim Meyering  <jim@meyering.net>
62974
62975         df: Don't fail for Tru64's "file-on-file mount".
62976         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62977         so we fall through and use statfs instead.  Details here:
62978         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62979         Reported by Albert Chin.
62980
62981 2007-07-13  Bruno Haible  <bruno@clisp.org>
62982
62983         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62984         * modules/configmake (License): Likewise.
62985         * modules/gettext (License): Likewise.
62986         * modules/gettext-h (License): Likewise.
62987         * modules/include_next (License): Likewise.
62988         * modules/link-warning (License): Likewise.
62989         * modules/localcharset (License): Likewise.
62990         * modules/localename (License): Likewise.
62991         * modules/lock (License): Likewise.
62992         * modules/relocatable-lib-lgpl (License): Likewise.
62993         * modules/size_max (License): Likewise.
62994         * modules/vasnprintf (License): Likewise.
62995         * modules/wchar (License): Likewise.
62996         * modules/xsize (License): Likewise.
62997
62998 2007-07-13  Bruno Haible  <bruno@clisp.org>
62999
63000         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63001         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63002
63003 2007-07-12  Bruno Haible  <bruno@clisp.org>
63004
63005         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63006         in the modules files.
63007
63008 2007-07-11  Karl Berry  <karl@gnu.org>
63009
63010         * MODULES.html.sh (func_module): use
63011          sed -e '\|^'"${includefile}"'$|d'
63012          instead of /.../d, to avoid errors on $includefile's containing /.
63013
63014 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63015
63016         * gnulib-tool (func_import): Avoid duplication of --avoid
63017         statements
63018         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63019         names to `_' in variable names.
63020
63021 2007-07-10  Eric Blake  <ebb9@byu.net>
63022
63023         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63024         * NEWS: Document this change.
63025
63026 2007-07-08  Bruno Haible  <bruno@clisp.org>
63027
63028         Update to Unicode 5.0.
63029         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63030         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63031         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63032         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63033         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63034         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63035         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63036         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63037         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63038         U+10A3F, U+1D242..U+1D244.
63039         (nonspacing_table_ind): Update.
63040         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63041         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63042
63043 2007-07-08  Bruno Haible  <bruno@clisp.org>
63044
63045         Update to Unicode 5.0.
63046         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63047         code transform. Extend the name index field of unicode_name_to_code and
63048         unicode_code_to_name from 16 to 24 bits.
63049         * lib/uniname/uniname.c (unicode_character_name,
63050         unicode_name_character): Add the range 0x12xxx to the code transform.
63051         * lib/uniname/uninames.h: Regenerated.
63052         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63053
63054 2007-07-07  Bruno Haible  <bruno@clisp.org>
63055
63056         * modules/wcwidth-tests: New file.
63057         * tests/test-wcwidth.c: New file.
63058
63059         Work around MacOS X wcwidth() bug.
63060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63061         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63062         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63063         original wcwidth in non-UTF-8 locales.
63064         * modules/wcwidth (Depends-on): Add localcharset, streq,
63065         uniwidth/width.
63066         * doc/functions/wcwidth.texi: Update.
63067
63068 2007-07-07  Bruno Haible  <bruno@clisp.org>
63069
63070         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63071         (wcwidth): New declaration.
63072         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63073         macros.
63074         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63075         here. Prepare for creating <wchar.h> unconditionally.
63076         * modules/wchar (Depends-on): Add link-warning.
63077         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63078         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63079         * lib/wcwidth.h: Remove file.
63080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63081         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63082         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63083         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63084         (Include): Replace wcwidth.h with <wchar.h>.
63085         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63086         * lib/mbchar.h: Don't include wcwidth.h.
63087         * lib/mbswidth.c: Likewise.
63088         * NEWS: Mention the change.
63089
63090 2007-07-07  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63093         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63094         definition with an external declaration.
63095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63096         defined as a function. Remove AC_C_INLINE requirement.
63097         * modules/wcwidth (Files): Add lib/wcwidth.c.
63098         (Makefile.am): Remove redundant statement.
63099
63100 2007-07-07  Bruno Haible  <bruno@clisp.org>
63101
63102         * MODULES.html.sh (Unicode string functions): Add the new modules.
63103
63104         * tests/uniwidth/test-u32-strwidth.c: New file.
63105         * modules/uniwidth/u32-strwidth-tests: New file.
63106
63107         * lib/uniwidth/u32-strwidth.c: New file.
63108         * modules/uniwidth/u32-strwidth: New file.
63109
63110         * tests/uniwidth/test-u16-strwidth.c: New file.
63111         * modules/uniwidth/u16-strwidth-tests: New file.
63112
63113         * lib/uniwidth/u16-strwidth.c: New file.
63114         * modules/uniwidth/u16-strwidth: New file.
63115
63116         * tests/uniwidth/test-u8-strwidth.c: New file.
63117         * modules/uniwidth/u8-strwidth-tests: New file.
63118
63119         * lib/uniwidth/u8-strwidth.c: New file.
63120         * modules/uniwidth/u8-strwidth: New file.
63121
63122         * tests/uniwidth/test-u32-width.c: New file.
63123         * modules/uniwidth/u32-width-tests: New file.
63124
63125         * lib/uniwidth/u32-width.c: New file.
63126         * modules/uniwidth/u32-width: New file.
63127
63128         * tests/uniwidth/test-u16-width.c: New file.
63129         * modules/uniwidth/u16-width-tests: New file.
63130
63131         * lib/uniwidth/u16-width.c: New file.
63132         * modules/uniwidth/u16-width: New file.
63133
63134         * tests/uniwidth/test-u8-width.c: New file.
63135         * modules/uniwidth/u8-width-tests: New file.
63136
63137         * lib/uniwidth/u8-width.c: New file.
63138         * modules/uniwidth/u8-width: New file.
63139
63140         * tests/uniwidth/test-uc_width.c: New file.
63141         * modules/uniwidth/width-tests: New file.
63142
63143         * lib/uniwidth/width.c: New file, from GNU libiconv.
63144         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63145         * modules/uniwidth/width: New file.
63146
63147         * lib/uniwidth.h: New file, from GNU libiconv.
63148         * modules/uniwidth/base: New file.
63149
63150 2007-07-07  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/uniname.h: New file, from GNU gettext.
63153         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63154         * lib/uniname/uninames.h: New file, from GNU gettext.
63155         * lib/uniname/uniname.c: New file, from GNU gettext.
63156         * tests/uniname/test-uninames.sh: New file.
63157         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63158         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63159         * modules/uniname/base: New file.
63160         * modules/uniname/uniname: New file.
63161         * modules/uniname/uniname-tests: New file.
63162         * MODULES.html.sh (Unicode string functions): Add the new modules.
63163
63164 2007-07-06  Bruno Haible  <bruno@clisp.org>
63165
63166         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63167
63168 2007-07-06  Bruno Haible  <bruno@clisp.org>
63169
63170         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63171         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63172         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63173         include <sys/time.h>.
63174         Reported by Eric Blake.
63175
63176 2007-07-06  Eric Blake  <ebb9@byu.net>
63177
63178         Fix testing canonicalize on cygwin.
63179         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63180         Revert patch from 2007-06-19.
63181         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63182         canonicalize module is also in use.
63183         * tests/test-canonicalize.c: New file.
63184         * tests/test-canonicalize.sh: Likewise.
63185         * modules/canonicalize-tests: Likewise.
63186
63187 2007-07-06  Jim Meyering  <jim@meyering.net>
63188
63189         * lib/getugroups.c (getugroups): Detect getgrent failure.
63190         Adjust comment to reflect reality: this function may return -1.
63191
63192 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63193
63194         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63195         the new TP address.
63196         (usage): Fix typo
63197         (gnulib_mk): New variable.
63198
63199 2007-07-05  Jim Meyering  <jim@meyering.net>
63200
63201         Don't let endgrent clobber errno, no matter how improbable.
63202         * lib/getugroups.c (getugroups): Save and restore errno around
63203         endgrent call.
63204
63205         Close the group DB even when failing with 2^31 or more members.
63206         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63207
63208 2007-07-04  Jim Meyering  <jim@meyering.net>
63209
63210         * lib/getugroups.h: New file.
63211         * lib/getugroups.c: Include "getugroups.h".
63212         Remove uses of "register" keyword.
63213         Move local variable, "cp", down into scope where used.
63214         Give "username" parameter the "const" attribute.
63215         * modules/getugroups (Files): Add lib/getugroups.h
63216
63217 2007-07-04  Karl Berry  <karl@gnu.org>
63218
63219         * MODULES.html.sh (func_all_modules): Complete rename of
63220         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63221
63222 2007-07-02  Bruno Haible  <bruno@clisp.org>
63223
63224         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63225         mode, when inttypes.h comes from gnulib.
63226         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63227
63228 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63229
63230         * NEWS: Mention lgpl module name change.
63231
63232         * modules/lgpl-2.1: Renamed from lgpl.
63233
63234         * NEWS: Mention gpl module name change.
63235
63236         * modules/gpl-3.0: New file, based on gpl-2.0.
63237
63238         * modules/gpl-2.0: Renamed from gpl.
63239
63240         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63241         doc/gpl-2.0.texi.
63242
63243 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63244
63245         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63246         #define __STDC_LIMIT_MACROS temporarily while including
63247         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63248         Problem reported by Joel E. Denny in
63249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63250
63251 2007-07-01  Bruno Haible  <bruno@clisp.org>
63252
63253         * lib/unistdio.h: New file.
63254         * lib/unistdio/u-asnprintf.h: New file.
63255         * lib/unistdio/u-asprintf.h: New file.
63256         * lib/unistdio/u-printf-args.c: New file.
63257         * lib/unistdio/u-printf-args.h: New file.
63258         * lib/unistdio/u-printf-parse.h: New file.
63259         * lib/unistdio/u-snprintf.h: New file.
63260         * lib/unistdio/u-sprintf.h: New file.
63261         * lib/unistdio/u-vasprintf.h: New file.
63262         * lib/unistdio/u-vsnprintf.h: New file.
63263         * lib/unistdio/u-vsprintf.h: New file.
63264         * lib/unistdio/ulc-asnprintf.c: New file.
63265         * lib/unistdio/ulc-asprintf.c: New file.
63266         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63267         * lib/unistdio/ulc-printf-parse.c: New file.
63268         * lib/unistdio/ulc-snprintf.c: New file.
63269         * lib/unistdio/ulc-sprintf.c: New file.
63270         * lib/unistdio/ulc-vasnprintf.c: New file.
63271         * lib/unistdio/ulc-vasprintf.c: New file.
63272         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63273         * lib/unistdio/ulc-vsnprintf.c: New file.
63274         * lib/unistdio/ulc-vsprintf.c: New file.
63275         * lib/unistdio/u8-asnprintf.c: New file.
63276         * lib/unistdio/u8-asprintf.c: New file.
63277         * lib/unistdio/u8-printf-parse.c: New file.
63278         * lib/unistdio/u8-snprintf.c: New file.
63279         * lib/unistdio/u8-sprintf.c: New file.
63280         * lib/unistdio/u8-vasnprintf.c: New file.
63281         * lib/unistdio/u8-vasprintf.c: New file.
63282         * lib/unistdio/u8-vsnprintf.c: New file.
63283         * lib/unistdio/u8-vsprintf.c: New file.
63284         * lib/unistdio/u8-u8-asnprintf.c: New file.
63285         * lib/unistdio/u8-u8-asprintf.c: New file.
63286         * lib/unistdio/u8-u8-snprintf.c: New file.
63287         * lib/unistdio/u8-u8-sprintf.c: New file.
63288         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63289         * lib/unistdio/u8-u8-vasprintf.c: New file.
63290         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63291         * lib/unistdio/u8-u8-vsprintf.c: New file.
63292         * lib/unistdio/u16-asnprintf.c: New file.
63293         * lib/unistdio/u16-asprintf.c: New file.
63294         * lib/unistdio/u16-printf-parse.c: New file.
63295         * lib/unistdio/u16-snprintf.c: New file.
63296         * lib/unistdio/u16-sprintf.c: New file.
63297         * lib/unistdio/u16-vasnprintf.c: New file.
63298         * lib/unistdio/u16-vasprintf.c: New file.
63299         * lib/unistdio/u16-vsnprintf.c: New file.
63300         * lib/unistdio/u16-vsprintf.c: New file.
63301         * lib/unistdio/u16-u16-asnprintf.c: New file.
63302         * lib/unistdio/u16-u16-asprintf.c: New file.
63303         * lib/unistdio/u16-u16-snprintf.c: New file.
63304         * lib/unistdio/u16-u16-sprintf.c: New file.
63305         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63306         * lib/unistdio/u16-u16-vasprintf.c: New file.
63307         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63308         * lib/unistdio/u16-u16-vsprintf.c: New file.
63309         * lib/unistdio/u32-asnprintf.c: New file.
63310         * lib/unistdio/u32-asprintf.c: New file.
63311         * lib/unistdio/u32-printf-parse.c: New file.
63312         * lib/unistdio/u32-snprintf.c: New file.
63313         * lib/unistdio/u32-sprintf.c: New file.
63314         * lib/unistdio/u32-vasnprintf.c: New file.
63315         * lib/unistdio/u32-vasprintf.c: New file.
63316         * lib/unistdio/u32-vsnprintf.c: New file.
63317         * lib/unistdio/u32-vsprintf.c: New file.
63318         * lib/unistdio/u32-u32-asnprintf.c: New file.
63319         * lib/unistdio/u32-u32-asprintf.c: New file.
63320         * lib/unistdio/u32-u32-snprintf.c: New file.
63321         * lib/unistdio/u32-u32-sprintf.c: New file.
63322         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63323         * lib/unistdio/u32-u32-vasprintf.c: New file.
63324         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63325         * lib/unistdio/u32-u32-vsprintf.c: New file.
63326         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63327         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63328         * tests/unistdio/test-ulc-printf1.h: New file.
63329         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63330         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63331         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63332         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63333         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63334         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63335         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63336         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63337         * tests/unistdio/test-u8-asnprintf1.c: New file.
63338         * tests/unistdio/test-u8-asnprintf1.h: New file.
63339         * tests/unistdio/test-u8-printf1.h: New file.
63340         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63341         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63342         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63343         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63344         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63345         * tests/unistdio/test-u8-vasprintf1.c: New file.
63346         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63347         * tests/unistdio/test-u8-vsprintf1.c: New file.
63348         * tests/unistdio/test-u16-asnprintf1.c: New file.
63349         * tests/unistdio/test-u16-asnprintf1.h: New file.
63350         * tests/unistdio/test-u16-printf1.h: New file.
63351         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63352         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63353         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63354         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63355         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63356         * tests/unistdio/test-u16-vasprintf1.c: New file.
63357         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63358         * tests/unistdio/test-u16-vsprintf1.c: New file.
63359         * tests/unistdio/test-u32-asnprintf1.c: New file.
63360         * tests/unistdio/test-u32-asnprintf1.h: New file.
63361         * tests/unistdio/test-u32-printf1.h: New file.
63362         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63363         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63364         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63365         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63366         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63367         * tests/unistdio/test-u32-vasprintf1.c: New file.
63368         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63369         * tests/unistdio/test-u32-vsprintf1.c: New file.
63370         * modules/unistdio/base: New file.
63371         * modules/unistdio/u-printf-args: New file.
63372         * modules/unistdio/ulc-asnprintf: New file.
63373         * modules/unistdio/ulc-asprintf: New file.
63374         * modules/unistdio/ulc-fprintf: New file.
63375         * modules/unistdio/ulc-printf-parse: New file.
63376         * modules/unistdio/ulc-snprintf: New file.
63377         * modules/unistdio/ulc-sprintf: New file.
63378         * modules/unistdio/ulc-vasnprintf: New file.
63379         * modules/unistdio/ulc-vasprintf: New file.
63380         * modules/unistdio/ulc-vfprintf: New file.
63381         * modules/unistdio/ulc-vsnprintf: New file.
63382         * modules/unistdio/ulc-vsprintf: New file.
63383         * modules/unistdio/u8-asnprintf: New file.
63384         * modules/unistdio/u8-asprintf: New file.
63385         * modules/unistdio/u8-printf-parse: New file.
63386         * modules/unistdio/u8-snprintf: New file.
63387         * modules/unistdio/u8-sprintf: New file.
63388         * modules/unistdio/u8-vasnprintf: New file.
63389         * modules/unistdio/u8-vasprintf: New file.
63390         * modules/unistdio/u8-vsnprintf: New file.
63391         * modules/unistdio/u8-vsprintf: New file.
63392         * modules/unistdio/u8-u8-asnprintf: New file.
63393         * modules/unistdio/u8-u8-asprintf: New file.
63394         * modules/unistdio/u8-u8-snprintf: New file.
63395         * modules/unistdio/u8-u8-sprintf: New file.
63396         * modules/unistdio/u8-u8-vasnprintf: New file.
63397         * modules/unistdio/u8-u8-vasprintf: New file.
63398         * modules/unistdio/u8-u8-vsnprintf: New file.
63399         * modules/unistdio/u8-u8-vsprintf: New file.
63400         * modules/unistdio/u16-asnprintf: New file.
63401         * modules/unistdio/u16-asprintf: New file.
63402         * modules/unistdio/u16-printf-parse: New file.
63403         * modules/unistdio/u16-snprintf: New file.
63404         * modules/unistdio/u16-sprintf: New file.
63405         * modules/unistdio/u16-vasnprintf: New file.
63406         * modules/unistdio/u16-vasprintf: New file.
63407         * modules/unistdio/u16-vsnprintf: New file.
63408         * modules/unistdio/u16-vsprintf: New file.
63409         * modules/unistdio/u16-u16-asnprintf: New file.
63410         * modules/unistdio/u16-u16-asprintf: New file.
63411         * modules/unistdio/u16-u16-snprintf: New file.
63412         * modules/unistdio/u16-u16-sprintf: New file.
63413         * modules/unistdio/u16-u16-vasnprintf: New file.
63414         * modules/unistdio/u16-u16-vasprintf: New file.
63415         * modules/unistdio/u16-u16-vsnprintf: New file.
63416         * modules/unistdio/u16-u16-vsprintf: New file.
63417         * modules/unistdio/u32-asnprintf: New file.
63418         * modules/unistdio/u32-asprintf: New file.
63419         * modules/unistdio/u32-printf-parse: New file.
63420         * modules/unistdio/u32-snprintf: New file.
63421         * modules/unistdio/u32-sprintf: New file.
63422         * modules/unistdio/u32-vasnprintf: New file.
63423         * modules/unistdio/u32-vasprintf: New file.
63424         * modules/unistdio/u32-vsnprintf: New file.
63425         * modules/unistdio/u32-vsprintf: New file.
63426         * modules/unistdio/u32-u32-asnprintf: New file.
63427         * modules/unistdio/u32-u32-asprintf: New file.
63428         * modules/unistdio/u32-u32-snprintf: New file.
63429         * modules/unistdio/u32-u32-sprintf: New file.
63430         * modules/unistdio/u32-u32-vasnprintf: New file.
63431         * modules/unistdio/u32-u32-vasprintf: New file.
63432         * modules/unistdio/u32-u32-vsnprintf: New file.
63433         * modules/unistdio/u32-u32-vsprintf: New file.
63434         * modules/unistdio/ulc-asnprintf-tests: New file.
63435         * modules/unistdio/ulc-vasnprintf-tests: New file.
63436         * modules/unistdio/ulc-vasprintf-tests: New file.
63437         * modules/unistdio/ulc-vsnprintf-tests: New file.
63438         * modules/unistdio/ulc-vsprintf-tests: New file.
63439         * modules/unistdio/u8-asnprintf-tests: New file.
63440         * modules/unistdio/u8-vasnprintf-tests: New file.
63441         * modules/unistdio/u8-vasprintf-tests: New file.
63442         * modules/unistdio/u8-vsnprintf-tests: New file.
63443         * modules/unistdio/u8-vsprintf-tests: New file.
63444         * modules/unistdio/u16-asnprintf-tests: New file.
63445         * modules/unistdio/u16-vasnprintf-tests: New file.
63446         * modules/unistdio/u16-vasprintf-tests: New file.
63447         * modules/unistdio/u16-vsnprintf-tests: New file.
63448         * modules/unistdio/u16-vsprintf-tests: New file.
63449         * modules/unistdio/u32-asnprintf-tests: New file.
63450         * modules/unistdio/u32-vasnprintf-tests: New file.
63451         * modules/unistdio/u32-vasprintf-tests: New file.
63452         * modules/unistdio/u32-vsnprintf-tests: New file.
63453         * modules/unistdio/u32-vsprintf-tests: New file.
63454         * MODULES.html.sh (Unicode string functions): Add the new modules.
63455
63456 2007-07-01  Bruno Haible  <bruno@clisp.org>
63457
63458         * lib/sprintf.c (sprintf): Limit the available length estimation,
63459         to avoid address wraparound.
63460         * lib/vsprintf.c (vsprintf): Likewise.
63461         * modules/sprintf-posix (Dependencies): Add stdint.
63462         * modules/vsprintf-posix (Dependencies): Likewise.
63463
63464 2007-07-01  Bruno Haible  <bruno@clisp.org>
63465
63466         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63467         Windows PATH as well. Conservative double-quoting. Comments.
63468
63469 2007-07-01  Bruno Haible  <bruno@clisp.org>
63470             Eric Blake  <ebb9@byu.net>
63471             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63472
63473         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63474         empty components in $PATH, denoting '.'.
63475
63476 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63477
63478         * gnulib-tool: Fix indentation.
63479         (func_create_megatestdir): Likewise.
63480         Report by Bruno Haible.
63481
63482 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63483
63484         Sync from Automake.
63485         * build-aux/gnupload: Fix shell portability issues with for loops.
63486         Report by Karl Berry.
63487
63488 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63489
63490         * build-aux/maint.mk (POURL): Use translationproject.org.
63491
63492 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63493             Bruno Haible  <bruno@clisp.org>
63494
63495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63496         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63497         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63498         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63499         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63500
63501 2007-06-27  Bruno Haible  <bruno@clisp.org>
63502
63503         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63504         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63505
63506 2007-06-26  Karl Berry  <karl@gnu.org>
63507
63508         * MODULES.html.sh: remove xreadlink-with-size.
63509
63510 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63513         method that I hope also handles the double-include problem noted
63514         by Bruno Haible in
63515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63516
63517 2007-06-23  Bruno Haible  <bruno@clisp.org>
63518
63519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63520         Don't let the 'mostlyclean' target fail if the last subdirectory could
63521         not be removed.
63522         Reported by Karl Berry.
63523
63524 2007-06-23  Bruno Haible  <bruno@clisp.org>
63525
63526         * gnulib-tool (echo): Add a speedier workaround for ksh.
63527         * tests/test-echo.sh: Likewise.
63528
63529 2007-06-23  Bruno Haible  <bruno@clisp.org>
63530
63531         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63532         * tests/test-echo.sh: Likewise.
63533
63534 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63535
63536         * gnulib-tool (IFS): Initialize early, so we don't set it to
63537         empty later.
63538         (self_abspathname): Rewrite algorithm to set it, reindent.
63539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63540         (func_create_megatestdir): Merge some sed scripts.
63541
63542 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63545         exposed by Sun Studio 11 cc on Solaris 8.
63546
63547 2007-06-22  Bruno Haible  <bruno@clisp.org>
63548
63549         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63550         backslashes.
63551         * tests/test-echo.sh: New file.
63552
63553 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63554
63555         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63556         simplify `sed_replace_build_aux' scripts, they are portable but
63557         echoing them with `echo' is not.
63558         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63559
63560 2007-06-21  Karl Berry  <karl@gnu.org>
63561
63562         * config/srclist.txt: guess we can't handle the licenses via
63563         srclist at the moment.
63564
63565 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63566
63567         * MODULES.html.sh: Add include_next.
63568         * modules/include_next: New file.
63569
63570 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63573         INCLUDE_NEXT.
63574         (gl_CHECK_NEXT_HEADERS): New macro.
63575         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63576         the obsolescent gl_ABSOLUTE_HEADER.
63577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63578         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63579         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63581         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63582         * m4/math_h.m4 (gl_MATH_H): Likewise.
63583         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63584         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63585         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63586         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63587         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63588         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63593         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63594         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63595         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63596         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63597         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63598         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63599         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63600         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63601         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63602         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63603         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63604         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63605         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63606         * lib/float_.h: Likewise.
63607         * lib/inttypes_.h: Likewise.
63608         * lib/math_.h: Likewise.
63609         * lib/search_.h: Likewise.
63610         * lib/signal_.h: Likewise.
63611         * lib/stdint_.h: Likewise.
63612         * lib/stdio_.h: Likewise.
63613         * lib/stdlib_.h: Likewise.
63614         * lib/string_.h: Likewise.
63615         * lib/sys_stat_.h: Likewise.
63616         * lib/sys_time_.h: Likewise.
63617         * lib/time_.h: Likewise.
63618         * lib/unistd_.h: Likewise.
63619         * lib/wchar_.h: Likewise.
63620         * lib/wctype_.h: Likewise.
63621         * lib/dirent_.h: Likewise.
63622         * lib/iconv_.h: Likewise.
63623         * lib/locale_.h: Likewise.
63624         * lib/netinet_in_.h: Likewise.
63625         * lib/sys_select_.h: Likewise.
63626         * lib/sys_socket_.h: Likewise.
63627         * lib/sysexits_.h: Likewise.
63628         * modules/fcntl (Depends-on): Depend on include_next, not
63629         absolute_header.
63630         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63631         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63632         * modules/fchdir: Likewise.
63633         * modules/float: Likewise.
63634         * modules/iconv_open: Likewise.
63635         * modules/inttypes: Likewise.
63636         * modules/locale: Likewise.
63637         * modules/math: Likewise.
63638         * modules/netinet_in: Likewise.
63639         * modules/search: Likewise.
63640         * modules/signal: Likewise.
63641         * modules/stdint: Likewise.
63642         * modules/stdio: Likewise.
63643         * modules/stdlib: Likewise.
63644         * modules/string: Likewise.
63645         * modules/sys_select: Likewise.
63646         * modules/sys_socket: Likewise.
63647         * modules/sys_stat: Likewise.
63648         * modules/sys_time: Likewise.
63649         * modules/sysexits: Likewise.
63650         * modules/time: Likewise.
63651         * modules/unistd: Likewise.
63652         * modules/wchar: Likewise.
63653         * modules/wctype: Likewise.
63654         * modules/sys_stat: Change maintainer to "all".
63655         * modules/unistd: Likewise.
63656
63657 2007-06-20  Karl Berry  <karl@gnu.org>
63658
63659         * config/srclist.txt: track www changes in license files.
63660
63661 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63662
63663         * build-aux/bootstrap: Remove stray dot.
63664         Make sure build_aux settings are honored when linking
63665         gnulib_extra_files.
63666
63667 2007-06-19  Eric Blake  <ebb9@byu.net>
63668
63669         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63670         Allow compilation on cygwin.
63671
63672 2007-06-19  Jim Meyering  <jim@meyering.net>
63673
63674         xreadlink-with-size: Remove module.  No longer used.
63675         Ex-callers now use xreadlink or mreadlink-with-size.
63676         * modules/xreadlink-with-size: Remove module.
63677         * lib/xreadlink-with-size.c: Remove file.
63678         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63679         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63680         just before the function definition *is* accurate.
63681
63682         Eliminate one way canonicalize_filename_mode could exit.
63683         * lib/canonicalize.c (canonicalize_filename_mode):
63684         Use mreadlink_with_size, not xreadlink_with_size.
63685
63686 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63687
63688         Detect porting problems to FreeBSD/arm, which has time_t wider than
63689         long int.  Original problem reported for GNU diff by Xin Li in
63690         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63691         * modules/getdate (Depends-on): Add intprops, verify.
63692         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63693         is an integer type no wider than long int.
63694
63695 2007-06-18  Jim Meyering  <jim@meyering.net>
63696
63697         New module: mreadlink-with-size.
63698         * MODULES.html.sh: Add mreadlink-with-size.
63699         * modules/mreadlink-with-size: New module
63700         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63701         not xreadlink-with-size.
63702         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63703
63704 2007-06-16  Bruno Haible  <bruno@clisp.org>
63705
63706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63707         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63708         Reported by Gary V. Vaughan <gary@gnu.org>.
63709
63710 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         Revamp lchown so that it lives in unistd.h where it belongs.
63713         * lib/lchown.h: Remove.
63714         * lib/dirchownmod.c: Don't include lib/lchown.h.
63715         * lib/fchownat.c: Likewise.
63716         * lib/openat.c: Likewise.
63717         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63718         does not follow symlinks.
63719         (EOPNOTSUPP): Define if not defined.
63720         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63721         is defined to 0.
63722         (lchown): New decl.
63723         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63724         Do not check for lchown decl.
63725         Set REPLACE_LCHOWN.
63726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63727         REPLACE_LCHOWN.
63728         * modules/chown: Make it clear it follows symlinks.
63729         * modules/lchown: Make it clear it doesn't follow symlinks.
63730         (Files): Remove lib/lchown.h
63731         (Depends-on): Add unistd.
63732         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63733         (Include): Include <unistd.h>, not "lchown.h".
63734         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63735         REPLACE_LCHOWN.
63736
63737 2007-06-15  Jim Meyering  <jim@meyering.net>
63738
63739         Change license (GPL to LGPL) of fsusage and dependents.
63740         * modules/fsusage (License): Change to LGPL.
63741         * modules/full-read (License): Likewise.
63742         * modules/full-write (License): Likewise.
63743         * modules/safe-read (License): Likewise.
63744         * modules/safe-write (License): Likewise.
63745
63746 2007-06-14  Ben Pfaff  <blp@gnu.org>
63747
63748         Missing part of allocsa -> malloca transition.
63749         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63750         gl_MALLOCA.
63751
63752 2007-06-12  Bruno Haible  <bruno@clisp.org>
63753
63754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63755         to ia64, x86_64, i386.
63756         Reported by Eric Blake.
63757
63758 2007-06-12  Bruno Haible  <bruno@clisp.org>
63759
63760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63761         cross-compiling to x86_64.
63762
63763 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63766         glitch reported by Ralf Wildenhues in
63767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63768
63769         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63770         Vin Shelton.
63771
63772 2007-06-11  Bruno Haible  <bruno@clisp.org>
63773
63774         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63775         replacement string.
63776         Reported by Eric Blake.
63777
63778 2007-06-10  Bruno Haible  <bruno@clisp.org>
63779
63780         Prepare vasnprintf code for use with Unicode strings.
63781         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63782         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63783         TYPE_U32_STRING.
63784         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63785         a_u32_string variants.
63786         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63787         * lib/printf-args.c: Don't include config.h and the specification
63788         header if PRINTF_FETCHARGS is already defined.
63789         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63790         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63791         TYPE_U16_STRING, TYPE_U32_STRING.
63792         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63793         u16_directive, u16_directives, u32_directive, u32_directives): New
63794         types.
63795         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63796         New declarations.
63797         * lib/printf-parse.c: Don't include config.h and the specification
63798         header if PRINTF_PARSE is already defined. Eliminate the set of
63799         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63800         them now. Include c-ctype.h.
63801         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63802         directive and CHAR_T_ONLY_ASCII.
63803         * lib/vasnprintf.c: Don't include config.h and the specification header
63804         if VASNPRINTF is already defined.
63805         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63806         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63807         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63808         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63809         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63810         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63811         code accordingly.
63812         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63813         pad_ourselves also in this case, with the 'c' and 's' directives, and
63814         with a different notion of "width".
63815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63816
63817 2007-06-10  Bruno Haible  <bruno@clisp.org>
63818
63819         * modules/unistr/u32-mbsnlen: New file.
63820         * lib/unistr/u32-mbsnlen.c: New file.
63821
63822         * modules/unistr/u16-mbsnlen: New file.
63823         * lib/unistr/u16-mbsnlen.c: New file.
63824
63825         * modules/unistr/u8-mbsnlen: New file.
63826         * lib/unistr/u8-mbsnlen.c: New file.
63827
63828         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63829         declarations.
63830
63831 2007-06-10  Bruno Haible  <bruno@clisp.org>
63832
63833         * lib/string_.h (mbsnlen): New declaration.
63834         * lib/mbsnlen.c: New file.
63835         * m4/mbsnlen.m4: New file.
63836         * modules/mbsnlen: New file.
63837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63838         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63839         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63840
63841 2007-06-10  Bruno Haible  <bruno@clisp.org>
63842
63843         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63844
63845 2007-06-10  Bruno Haible  <bruno@clisp.org>
63846
63847         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63848         * lib/mbuiter.h: Likewise.
63849
63850 2007-06-10  Bruno Haible  <bruno@clisp.org>
63851
63852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63853         declaration.
63854
63855 2007-06-10  Karl Berry  <karl@gnu.org>
63856
63857         * config/srclist.txt: remove gettext entries, Bruno prefers
63858         to update individually.
63859
63860 2007-06-10  Bruno Haible  <bruno@clisp.org>
63861
63862         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63863         'maxlen'. Ensure only length + width bytes are allocated, not
63864         length + 1 + width.
63865
63866 2007-06-09  Bruno Haible  <bruno@clisp.org>
63867
63868         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63869         (CHAR_T): Remove macro.
63870         (VASNPRINTF): Update.
63871
63872 2007-06-09  Bruno Haible  <bruno@clisp.org>
63873
63874         * MODULES.html.sh (Unicode string functions): Add the new modules.
63875
63876         * modules/uniconv/u32-conv-to-enc: New file.
63877         * lib/uniconv/u32-conv-to-enc.c: New file.
63878         * modules/uniconv/u32-conv-to-enc-tests: New file.
63879         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63880
63881         * modules/uniconv/u16-conv-to-enc: New file.
63882         * lib/uniconv/u16-conv-to-enc.c: New file.
63883         * lib/uniconv/u-conv-to-enc.h: New file.
63884         * modules/uniconv/u16-conv-to-enc-tests: New file.
63885         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63886
63887         * modules/uniconv/u8-conv-to-enc: New file.
63888         * lib/uniconv/u8-conv-to-enc.c: New file.
63889         * modules/uniconv/u8-conv-to-enc-tests: New file.
63890         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63891
63892         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63893         u32_conv_to_encoding): New declarations.
63894
63895 2007-06-09  Bruno Haible  <bruno@clisp.org>
63896
63897         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63898
63899 2007-06-09  Bruno Haible  <bruno@clisp.org>
63900
63901         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63902         * modules/malloca: Renamed from modules/allocsa, updated.
63903         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63904         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63905         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63906         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63907         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63908         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63909         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63910         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63911         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63912         * modules/c-strcasestr (Depends-on): Update.
63913         * lib/c-strcasestr.c: Update.
63914         * modules/c-strstr (Depends-on): Update.
63915         * lib/c-strstr.c: Update.
63916         * modules/canonicalize-lgpl (Depends-on): Update.
63917         * lib/canonicalize-lgpl.c: Update.
63918         * modules/clean-temp (Depends-on): Update.
63919         * lib/clean-temp.c: Update.
63920         * modules/csharpcomp (Depends-on): Update.
63921         * lib/csharpcomp.c: Update.
63922         * modules/csharpexec (Depends-on): Update.
63923         * lib/csharpexec.c: Update.
63924         * modules/javacomp (Depends-on): Update.
63925         * lib/javacomp.c: Update.
63926         * modules/javaexec (Depends-on): Update.
63927         * lib/javaexec.c: Update.
63928         * modules/mbscasestr (Depends-on): Update.
63929         * lib/mbscasestr.c: Update.
63930         * modules/mbsstr (Depends-on): Update.
63931         * lib/mbsstr.c: Update.
63932         * modules/setenv (Depends-on): Update.
63933         * lib/setenv.c: Update.
63934         * modules/strcasestr (Depends-on): Update.
63935         * lib/strcasestr.c: Update.
63936         * modules/striconveha (Depends-on): Update.
63937         * lib/striconveha.c: Update.
63938         * modules/relocatable-prog-wrapper (Files): Update.
63939         * lib/relocwrapper.c: Update.
63940         * build-aux/install-reloc: Update.
63941         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63942
63943 2007-06-08  Bruno Haible  <bruno@clisp.org>
63944
63945         Port to uClibc.
63946         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63947         * lib/fpurge.c (fpurge): Likewise.
63948         * lib/freading.c (freading): Likewise.
63949         * lib/fseeko.c (rpl_fseeko): Likewise.
63950         * lib/fseterr.c (fseterr): Likewise.
63951         * lib/fwriting.c (fwriting): Likewise.
63952         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63953
63954 2007-06-08  Bruno Haible  <bruno@clisp.org>
63955
63956         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63957         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63958         * modules/gettext (Files): Add m4/intlmacosx.m4.
63959
63960 2007-06-07  Bruno Haible  <bruno@clisp.org>
63961
63962         * modules/localename-tests: New file.
63963         * tests/test-localename.c: New file.
63964
63965         New module 'localename'.
63966         * lib/localename.h: New file.
63967         * lib/localename.c: New file, from GNU gettext.
63968         * m4/localename.m4: New file.
63969         * modules/localename: New file.
63970
63971 2007-06-07  Bruno Haible  <bruno@clisp.org>
63972
63973         Work around the lack of <wchar.h> on some builds of uClibc.
63974         * doc/headers/wchar.texi: Update.
63975         * lib/wchar_.h: Include <wchar.h> only if it exists.
63976         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63977         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63978         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63979         doesn't exist.
63980         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63981         * modules/mbfile (Depends-on): Add wchar.
63982         * modules/mbiter (Depends-on): Likewise.
63983         * modules/mbuiter (Depends-on): Likewise.
63984         Reported by Simon Josefsson.
63985
63986 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63987
63988         Work around problem reported by Steven M. Schweda in
63989         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63990         Tru64 5.1B with the Compaq compiler environment installed declares
63991         an 'isblank' function but does not define it in the C library.
63992         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63993         * lib/regex_internal.h (isblank): Likewise.
63994         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63995         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63996
63997 2007-06-05  Bruno Haible  <bruno@clisp.org>
63998
63999         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64000         ia64.
64001         * modules/printf-safe: New file.
64002         * modules/fprintf-posix (Depends-on): Add printf-safe.
64003         * modules/printf-posix (Depends-on): Likewise.
64004         * modules/snprintf-posix (Depends-on): Likewise.
64005         * modules/sprintf-posix (Depends-on): Likewise.
64006         * modules/vasnprintf-posix (Depends-on): Likewise.
64007         * modules/vasprintf-posix (Depends-on): Likewise.
64008         * modules/vfprintf-posix (Depends-on): Likewise.
64009         * modules/vprintf-posix (Depends-on): Likewise.
64010         * modules/vsnprintf-posix (Depends-on): Likewise.
64011         * modules/vsprintf-posix (Depends-on): Likewise.
64012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64013         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64014         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64015         "no" on i386, x86_64, ia64.
64016         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64017         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64018         on i386, x86_64, ia64.
64019         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64020         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64021         on i386, x86_64, ia64.
64022         * tests/test-vasnprintf-posix.c: Include float.h.
64023         (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-vasprintf-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-snprintf-posix.c: Include float.h.
64031         * tests/test-sprintf-posix.c: Likewise.
64032         * tests/test-vsnprintf-posix.c: Likewise.
64033         * tests/test-vsprintf-posix.c: Likewise.
64034
64035 2007-06-05  Bruno Haible  <bruno@clisp.org>
64036
64037         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64039         non-IEEE numbers on i386, x86_64, ia64.
64040         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64041         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64042         * tests/test-isnanl.h: Include float.h.
64043         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64044
64045 2007-06-05  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64048         also the %a / %A. Handle the %a / %A code before this extra handling.
64049
64050 2007-06-05  Bruno Haible  <bruno@clisp.org>
64051
64052         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64053         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64054
64055 2007-06-05  Bruno Haible  <bruno@clisp.org>
64056
64057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64058         typo in variable name.
64059
64060 2007-06-05  Eric Blake  <ebb9@byu.net>
64061
64062         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64063         Reported by Simon Josefsson.
64064
64065 2007-06-04  Bruno Haible  <bruno@clisp.org>
64066
64067         Avoid test failures on some PowerPC platforms.
64068         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64069         Define differently for PowerPC.
64070         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64071         Reported by Gary V. Vaughan <gary@gnu.org>.
64072
64073 2007-06-02  Bruno Haible  <bruno@clisp.org>
64074
64075         Fix test-stdint failure on FreeBSD/ia64.
64076         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64077         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64078         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64079         * doc/headers/stdint.texi: Update.
64080
64081 2007-06-01  Bruno Haible  <bruno@clisp.org>
64082
64083         * tests/test-binary-io.c (main): Pass a third argument to open().
64084         Reported by Gary V. Vaughan <gary@gnu.org>.
64085
64086 2007-06-01  Bruno Haible  <bruno@clisp.org>
64087
64088         * doc/functions/frexpl.texi: Update for mingw.
64089
64090 2007-06-01  Bruno Haible  <bruno@clisp.org>
64091
64092         * tests/test-lseek.c (main): Disable test of errno for invalid third
64093         argument.
64094         * doc/functions/lseek.texi: Update.
64095         Reported by Gary V. Vaughan <gary@gnu.org>.
64096
64097 2007-05-28  Bruno Haible  <bruno@clisp.org>
64098
64099         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64100
64101 2007-05-31  Eric Blake  <ebb9@byu.net>
64102
64103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64104         cross compiling.
64105
64106 2007-05-30  Eric Blake  <ebb9@byu.net>
64107         and Bruno Haible  <bruno@clisp.org>
64108
64109         Work around mingw test failures exposed by m4-1.4.9b.
64110         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64111         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64112         moment.
64113
64114 2007-05-30  Bruno Haible  <bruno@clisp.org>
64115
64116         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64117         assuming that they are closed. Needed on HP-UX 11.
64118
64119 2007-05-29  Bruno Haible  <bruno@clisp.org>
64120
64121         Fix a problem with #include_next.
64122         * lib/dirent_.h: Split the double-inclusion guard.
64123         * lib/fcntl_.h: Likewise.
64124         * lib/float_.h: Likewise.
64125         * lib/iconv_.h: Likewise.
64126         * lib/inttypes_.h: Likewise.
64127         * lib/locale_.h: Likewise.
64128         * lib/math_.h: Likewise.
64129         * lib/netinet_in_.h: Likewise.
64130         * lib/search_.h: Likewise.
64131         * lib/signal_.h: Likewise.
64132         * lib/stdint_.h: Likewise.
64133         * lib/stdio_.h: Likewise.
64134         * lib/stdlib_.h: Likewise.
64135         * lib/string_.h: Likewise.
64136         * lib/sys_select_.h: Likewise.
64137         * lib/sys_socket_.h: Likewise.
64138         * lib/sys_stat_.h: Likewise.
64139         * lib/sys_time_.h: Likewise.
64140         * lib/sysexits_.h: Likewise.
64141         * lib/time_.h: Likewise.
64142         * lib/unistd_.h: Likewise.
64143         * lib/wchar_.h: Likewise.
64144         * lib/wctype_.h: Likewise.
64145
64146 2007-05-29  Bruno Haible  <bruno@clisp.org>
64147
64148         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64149         for the moment.
64150
64151 2007-05-29  Bruno Haible  <bruno@clisp.org>
64152
64153         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64154         invocation.
64155         Reported by Eric Blake.
64156
64157 2007-05-29  Bruno Haible  <bruno@clisp.org>
64158
64159         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64160         compiling case.
64161
64162 2007-05-29  Eric Blake  <ebb9@byu.net>
64163             Bruno Haible  <bruno@clisp.org>
64164
64165         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64166         cross compiles.
64167
64168 2007-05-28  Eric Blake  <ebb9@byu.net>
64169
64170         * modules/closein-tests (test_closein_LDADD): Support test on
64171         cygwin with libtool.
64172
64173 2007-05-28  Bruno Haible  <bruno@clisp.org>
64174
64175         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64176         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64177         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64178         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64179         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64180         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64181         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64182         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64183         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64184
64185 2007-05-28  Eric Blake  <ebb9@byu.net>
64186
64187         Unconditionally include <config.h> in unit tests.
64188         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64189         * tests/test-allocsa.c, tests/test-arcfour.c,
64190         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64191         tests/test-array_list.c, tests/test-array_oset.c,
64192         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64193         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64194         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64195         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64196         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64197         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64198         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64199         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64200         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64201         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64202         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64203         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64204         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64205         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64206         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64207         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64208         test-md5.c, test-memmem.c, test-printf-posix.c,
64209         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64210         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64211         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64212         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64213         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64214         test-vasnprintf-posix2.c, test-vasnprintf.c,
64215         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64216         test-vfprintf-posix.c, test-vprintf-posix.c,
64217         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64218         test-xvasprintf.c: Likewise.
64219
64220 2007-05-28  Bruno Haible  <bruno@clisp.org>
64221
64222         * gnulib-tool (func_import): Remember the --with-tests command-line
64223         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64224         Reported by Eric Blake.
64225
64226 2007-05-28  Bruno Haible  <bruno@clisp.org>
64227
64228         * modules/ftell-tests: New file.
64229         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64230         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64231
64232         * lib/ftell.c: New file.
64233         * modules/ftell: New file.
64234         * m4/ftell.m4: New file.
64235         * doc/functions/ftell.texi: Update.
64236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64237         REPLACE_FTELL.
64238         * lib/stdio_.h (rpl_ftell): New declaration.
64239         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64240         REPLACE_FTELL.
64241
64242 2007-05-28  Eric Blake  <ebb9@byu.net>
64243
64244         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64245
64246 2007-05-28  Bruno Haible  <bruno@clisp.org>
64247
64248         * modules/fseek-tests: New file.
64249         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64250         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64251
64252         * lib/fseek.c: New file.
64253         * modules/fseek: New file.
64254         * m4/fseek.m4: New file.
64255         * doc/functions/fseek.texi: Update.
64256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64257         REPLACE_FSEEK.
64258         * lib/stdio_.h (rpl_fseek): New declaration.
64259         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64260         REPLACE_FSEEK.
64261
64262 2007-05-28  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/stdio_.h (fflush): More comments.
64265
64266 2007-05-28  Bruno Haible  <bruno@clisp.org>
64267
64268         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64269         runtime test.
64270
64271 2007-05-28  Eric Blake  <ebb9@byu.net>
64272
64273         Improve lseek module.
64274         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64275         * lib/unistd_.h (lseek): Scale back link warning message.
64276         * tests/test-lseek.c: Beef up test.
64277         * tests/test-lseek.sh: Exercise more facets of lseek.
64278         Reported by Bruno Haible.
64279
64280 2007-05-28  Bruno Haible  <bruno@clisp.org>
64281
64282         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64283         to define.
64284
64285 2007-05-27  Bruno Haible  <bruno@clisp.org>
64286
64287         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64288
64289 2007-05-27  Bruno Haible  <bruno@clisp.org>
64290
64291         * modules/openmp: New file.
64292         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64293         Noah Misch.
64294
64295 2007-05-26  Bruno Haible  <bruno@clisp.org>
64296
64297         * modules/chdir-long (Depends-on): Add fchdir.
64298         * modules/chdir-safer (Depends-on): Likewise.
64299         * modules/fts (Depends-on): Likewise.
64300         * modules/fts-lgpl (Depends-on): Likewise.
64301         * modules/openat (Depends-on): Likewise.
64302         * modules/savewd (Depends-on): Likewise.
64303
64304 2007-05-24  Eric Blake  <ebb9@byu.net>
64305
64306         Fix lseek on mingw.
64307         * modules/lseek: New module.
64308         * m4/lseek.m4: New file.
64309         * lib/lseek.c: New file.
64310         * modules/lseek-tests: New file.
64311         * tests/test-lseek.c: New file.
64312         * tests/test-lseek.sh: New file.
64313         * MODULES.html.sh: Document lseek module.
64314         * modules/fflush (Depends-on): Add lseek, fseeko.
64315         * modules/fseeko (Depends-on): Likewise.
64316         * modules/ftello (Depends-on): Likewise.
64317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64318         broken.
64319         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64320         broken.
64321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64322         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64323         * lib/ftello.c (rpl_ftello): Likewise.
64324         * tests/test-fseeko.c (main): Test this.
64325         * tests/test-fseeko.sh: Likewise.
64326         * tests/test-ftello.c (main): Likewise.
64327         * tests/test-ftello.sh: Likewise.
64328         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64329         implies replacing fseek.
64330         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64331         HAVE_FTELLO.
64332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64333         * modules/unistd (Makefile.am): Likewise.
64334         * lib/unistd_.h (lseek): Declare a replacement.
64335         * doc/functions/lseek.texi (lseek): Document this fix.
64336         * doc/functions/fseek.texi (fseek): Likewise.
64337         * doc/functions/ftell.texi (ftell): Likewise.
64338
64339 2007-05-24  Bruno Haible  <bruno@clisp.org>
64340
64341         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64342         in the printed representation of a NaN.
64343         * tests/test-vasprintf-posix.c (test_function): Likewise.
64344         * tests/test-snprintf-posix.h (test_function): Likewise.
64345         * tests/test-sprintf-posix.h (test_function): Likewise.
64346         Reported by Eric Blake.
64347
64348 2007-05-23  Eric Blake  <ebb9@byu.net>
64349
64350         Fix fseeko/ftello on cygwin 1.5.24.
64351         * doc/functions/fseeko.texi (fseeko): Document the fix.
64352         * doc/functions/ftello.texi (ftello): Document the fix.
64353         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64354         * doc/functions/stdout.text (stdout): New file.
64355         * doc/functions/stderr.text (stderr): New file.
64356         * doc/gnulib.texi (Function Substitutes): Use new files.
64357         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64358         prior to 1.7.0.
64359         * tests/test-ftello.c (main): Likewise for ftello.
64360         * tests/test-fseeko.sh: New file.
64361         * tests/test-ftello.sh: New file.
64362         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64363         with seekable stdin.
64364         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64366         (gl_REPLACE_FSEEKO): New macro.
64367         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64368         * modules/fseeko (Files): Distribute fseeko.c.
64369         * modules/ftello (Files): Distribute ftello.c.
64370         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64371         mode.
64372         * lib/ftello.c (rpl_ftello): New file.
64373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64374         fseeko, ftello.
64375         (gl_STDIN_LARGE_OFFSET): New macro.
64376         * modules/stdio (Makefile.am): Perform the replacement.
64377         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64378
64379 2007-05-23  Bruno Haible  <bruno@clisp.org>
64380
64381         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64382         GNULIB_POSIXCHECK is defined.
64383
64384 2007-05-21  Bruno Haible  <bruno@clisp.org>
64385
64386         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64387         Check also the output for NaN arguments. When cross-compiling, guess
64388         no on IRIX.
64389         * lib/vasnprintf.c: Update comments.
64390         * tests/test-vasnprintf-posix.c (strisnan): New function.
64391         (test_function): Use it.
64392         * tests/test-vasprintf-posix.c (strisnan): New function.
64393         (test_function): Use it.
64394         * tests/test-snprintf-posix.h (strisnan): New function.
64395         (test_function): Use it.
64396         * tests/test-sprintf-posix.h (strisnan): New function.
64397         (test_function): Use it.
64398         Reported by Eric Blake.
64399
64400 2007-05-20  Bruno Haible  <bruno@clisp.org>
64401
64402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64403         numbers that fails on BeOS.
64404         * doc/functions/frexpl.texi: Update.
64405
64406 2007-05-20  Jim Meyering  <jim@meyering.net>
64407
64408         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64409         forced upon us by glibc-2.6.
64410
64411 2007-05-20  Bruno Haible  <bruno@clisp.org>
64412
64413         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64414         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64415         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64416         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64417         NEED_PRINTF_INFINITE.
64418         (is_infinitel): New function.
64419         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64421         gl_PREREQ_VASNPRINTF_INFINITE.
64422         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64424         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64425         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64426         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64427         gl_PREREQ_VASNPRINTF_INFINITE.
64428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64435         * doc/functions/fprintf.texi: Update.
64436         * doc/functions/printf.texi: Update.
64437         * doc/functions/snprintf.texi: Update.
64438         * doc/functions/sprintf.texi: Update.
64439         * doc/functions/vfprintf.texi: Update.
64440         * doc/functions/vprintf.texi: Update.
64441         * doc/functions/vsnprintf.texi: Update.
64442         * doc/functions/vsprintf.texi: Update.
64443
64444 2007-05-20  Bruno Haible  <bruno@clisp.org>
64445
64446         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64447         was not found in libc.
64448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64449
64450 2007-05-20  Bruno Haible  <bruno@clisp.org>
64451
64452         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64453         printed as "-nan" instead of "nan".
64454         * tests/test-vasprintf-posix.c (test_function): Likewise.
64455         * tests/test-snprintf-posix.h (test_function): Likewise.
64456         * tests/test-sprintf-posix.h (test_function): Likewise.
64457         Needed for HP-UX 11.
64458
64459 2007-05-20  Jim Meyering  <jim@meyering.net>
64460
64461         Fix buggy test for the fchownat-deref bug.
64462         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64463         symlink required for the run-test.  Without it, this test would
64464         always declare that fchownat doesn't work, and client code would
64465         unnecessarily use the replacement function with fixed libc.
64466         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64467         Reported by Greg Schafer.
64468
64469 2007-05-19  Bruno Haible  <bruno@clisp.org>
64470
64471         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64472         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64473         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64474         Needed for IRIX 6.5 and Solaris 2.5.1.
64475
64476 2007-05-19  Bruno Haible  <bruno@clisp.org>
64477
64478         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64479         (test_function): Skip tests involving -0.0 on platforms where
64480         -0.0 = 0.0.
64481         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64482         (test_function): Skip tests involving -0.0 on platforms where
64483         -0.0 = 0.0.
64484         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64485         (test_function): Skip tests involving -0.0 on platforms where
64486         -0.0 = 0.0.
64487         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64488         (test_function): Skip tests involving -0.0 on platforms where
64489         -0.0 = 0.0.
64490         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64491         tests.
64492         * tests/test-printf-posix.h (test_function): Likewise.
64493         * tests/test-printf-posix.output: Remove all -0.0 related results.
64494         Needed for IRIX 6.5.
64495
64496 2007-05-19  Bruno Haible  <bruno@clisp.org>
64497
64498         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64499         printed as "nan0x7fffffff" instead of "nan".
64500         * tests/test-vasprintf-posix.c (test_function): Likewise.
64501         * tests/test-snprintf-posix.h (test_function): Likewise.
64502         * tests/test-sprintf-posix.h (test_function): Likewise.
64503         * tests/test-fprintf-posix.h (NaN): Remove macro.
64504         (test_function): Remove all NaN related tests.
64505         * tests/test-printf-posix.h (NaN): Remove macro.
64506         (test_function): Remove all NaN related tests.
64507         * tests/test-printf-posix.output: Remove all NaN related results.
64508         Needed for IRIX 6.5.
64509
64510 2007-05-19  Bruno Haible  <bruno@clisp.org>
64511
64512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64514
64515 2007-05-19  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/float_.h: New file.
64518         * m4/float_h.m4: New file.
64519         * modules/float: New file.
64520         * modules/isnanl (Dependencies): Add float.
64521         * modules/isnanl-nolibm (Dependencies): Likewise.
64522         * modules/mathl (Dependencies): Likewise.
64523         * modules/printf-frexpl (Dependencies): Likewise.
64524         * modules/signbit (Dependencies): Likewise.
64525         * modules/vasnprintf (Dependencies): Likewise.
64526         * doc/headers/float.texi: Update.
64527
64528 2007-05-19  Jim Meyering  <jim@meyering.net>
64529
64530         * lib/utimens.c (gl_futimens): Rename from futimens,
64531         now that glibc-2.6 declares futimens.
64532         * lib/utimens.h: Likewise.
64533
64534 2007-05-19  Bruno Haible  <bruno@clisp.org>
64535
64536         Avoid test failures on mingw.
64537         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64538         * tests/test-printf-posix.sh: Likewise.
64539         * tests/test-vfprintf-posix.sh: Likewise.
64540         * tests/test-vprintf-posix.sh: Likewise.
64541
64542 2007-05-19  Bruno Haible  <bruno@clisp.org>
64543
64544         Fix *printf result for NaN, Inf, -0.0 on mingw.
64545         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64546         * lib/vasnprintf.c: Include math.h and isnan.h.
64547         (is_infinite_or_zero): New function.
64548         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64549         values in the %f, %F, %e, %E, %g, %G directives.
64550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64552         gl_PRINTF_INFINITE and test its result. Invoke
64553         gl_PREREQ_VASNPRINTF_INFINITE.
64554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64561         * doc/functions/fprintf.texi: Update.
64562         * doc/functions/printf.texi: Update.
64563         * doc/functions/snprintf.texi: Update.
64564         * doc/functions/sprintf.texi: Update.
64565         * doc/functions/vfprintf.texi: Update.
64566         * doc/functions/vprintf.texi: Update.
64567         * doc/functions/vsnprintf.texi: Update.
64568         * doc/functions/vsprintf.texi: Update.
64569
64570 2007-05-19  Bruno Haible  <bruno@clisp.org>
64571
64572         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64573         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64574         Instead of multiplying with 10^k, set extra_zeroes to k.
64575         (scale10_round_long_double): Remove function.
64576
64577 2007-05-18  Bruno Haible  <bruno@clisp.org>
64578
64579         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64580         introduced on 2007-05-06.
64581
64582 2007-05-18  Bruno Haible  <bruno@clisp.org>
64583
64584         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64585         %g directives.
64586         * tests/test-vasprintf-posix.c (test_function): Likewise.
64587         * tests/test-snprintf-posix.h (test_function): Likewise.
64588         * tests/test-sprintf-posix.h (test_function): Likewise.
64589
64590 2007-05-18  Bruno Haible  <bruno@clisp.org>
64591
64592         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64593         (strmatch): New function.
64594         (test_function): Test the %f directive on numbers of various exponents.
64595         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64596         (strmatch): New function.
64597         (test_function): Test the %f directive on numbers of various exponents.
64598         * tests/test-snprintf-posix.h (strmatch): New function.
64599         (test_function): Test the %f directive on numbers of various exponents.
64600         * tests/test-sprintf-posix.h (strmatch): New function.
64601         (test_function): Test the %f directive on numbers of various exponents.
64602         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64603         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64604         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64605         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64606
64607 2007-05-18  Bruno Haible  <bruno@clisp.org>
64608
64609         Add support for 'long double' number output.
64610         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64611         * lib/vasnprintf.c: Include math.h and float+.h.
64612         (mp_limb_t): New type.
64613         (GMP_LIMB_BITS): New macro.
64614         (mp_twolimb_t): New type.
64615         (GMP_TWOLIMB_BITS): New macro.
64616         (mpn_t): New type.
64617         (multiply, divide, convert_to_decimal, decode_long_double,
64618         scale10_round_long_double, scale10_round_decimal_long_double,
64619         floorlog10l): New functions.
64620         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64621         for the %f, %F, %e, %E, %g, %G directives.
64622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64624         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64625         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64633         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64634         * modules/snprintf-posix (Depends-on): Likewise.
64635         * modules/sprintf-posix (Depends-on): Likewise.
64636         * modules/vasnprintf-posix (Depends-on): Likewise.
64637         * modules/vasprintf-posix (Depends-on): Likewise.
64638         * modules/vfprintf-posix (Depends-on): Likewise.
64639         * modules/vsnprintf-posix (Depends-on): Likewise.
64640         * modules/vsprintf-posix (Depends-on): Likewise.
64641         * modules/vasnprintf (Files): Add lib/float+.h.
64642         * doc/functions/fprintf.texi: Update.
64643         * doc/functions/printf.texi: Update.
64644         * doc/functions/snprintf.texi: Update.
64645         * doc/functions/sprintf.texi: Update.
64646         * doc/functions/vfprintf.texi: Update.
64647         * doc/functions/vprintf.texi: Update.
64648         * doc/functions/vsnprintf.texi: Update.
64649         * doc/functions/vsprintf.texi: Update.
64650
64651 2007-05-18  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64654
64655 2007-05-18  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64658         for printing 64-bit integers. Needed for mingw.
64659
64660 2007-05-18  Bruno Haible  <bruno@clisp.org>
64661
64662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64663         gl_FUNC_FREXPL_WORKS.
64664         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64665
64666 2007-05-18  Bruno Haible  <bruno@clisp.org>
64667
64668         * modules/frexpl-nolibm-tests: New file.
64669
64670         * modules/frexpl-nolibm: New file.
64671         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64672
64673 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64674
64675         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64676         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64677         GCC 4.2, which otherwise issues a lot of warnings.
64678         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64679         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64680         Likewise.
64681         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64682         * modules/iconv_open (iconv.h): Likewise.
64683         * modules/locale (locale.h): Likewise.
64684         * modules/netinet_in (netinet/in.h): Likewise.
64685         * modules/sys_select (sys_select.h): Likewise.
64686         * modules/sys_socket (sys/socket.h): Likewise.
64687         * modules/sys_stat (sys/stat.h): Likewise.
64688         * modules/sysexits (sysexits.h): Likewise.
64689         * modules/unistd (unistd.h): Likewise.
64690
64691 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64692
64693         * modules/closein-tests (Makefile.am): Distribute
64694         `test-closein.sh'.
64695
64696 2007-05-17  Bruno Haible  <bruno@clisp.org>
64697
64698         * tests/test-printf-posix.output: Renamed from
64699         tests/test-fprintf-posix.out.
64700         * modules/fprintf-posix-tests: Update.
64701         * modules/printf-posix-tests: Update.
64702         * modules/vfprintf-posix-tests: Update.
64703         * modules/vprintf-posix-tests: Update.
64704         * tests/test-fprintf-posix.sh: Update.
64705         * tests/test-printf-posix.sh: Update.
64706         * tests/test-vfprintf-posix.sh: Update.
64707         * tests/test-vprintf-posix.sh: Update.
64708         Reported by Ralf Wildenhues.
64709
64710 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64713         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64714         GCC 4.2, which otherwise issues a lot of warnings.
64715         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64716         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64717         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64718         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64719         it should no longer be needed.
64720         * lib/string_.h: Likewise.
64721         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64722         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64723         * modules/inttypes (inttypes.h): Likewise.
64724         * modules/math (math.h): Likewise.
64725         * modules/search (search.h): Likewise.
64726         * modules/signal (signal.h): Likewise.
64727         * modules/stdint (stdint.h): Likewise.
64728         * modules/stdio (stdio.h): Likewise.
64729         * modules/stdlib (stdlib.h): Likewise.
64730         * modules/string (string.h): Likewise.
64731         * modules/sys_time (sys/time.h): Likewise.
64732         * modules/time (time.h): Likewise.
64733         * modules/wchar (wchar.h): Likewise.
64734         * modules/wctype (wtype.h): Likewise.
64735
64736 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64737
64738         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64739
64740 2007-05-13  Bruno Haible  <bruno@clisp.org>
64741
64742         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64743         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64744         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64745         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64746         (gl_PREREQ_STRTOK_R): Don't require it here.
64747
64748 2007-05-13  Bruno Haible  <bruno@clisp.org>
64749
64750         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64751         when used in C++ mode.
64752
64753 2007-05-12  Bruno Haible  <bruno@clisp.org>
64754
64755         * lib/linebuffer.h: Tweak doc.
64756         * lib/linebuffer.c: Likewise.
64757
64758 2007-05-12  James Youngman  <jay@gnu.org>
64759
64760         * lib/linebuffer.c (readlinebuffer_delim): New function,
64761         like readlinebuffer, but use a caller-specified delimiter.
64762         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64763         as the delimiter.
64764         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64765
64766 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64767
64768         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64769         * modules/openat (Files): Remove openat-die.c.
64770         (Depends-on): Add openat-die.
64771         * modules/openat-die: New module.
64772
64773 2007-05-06  Bruno Haible  <bruno@clisp.org>
64774
64775         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64776         Update with info about Cygwin.
64777         * doc/functions/fprintf.texi: Update.
64778         * doc/functions/printf.texi: Update.
64779         * doc/functions/snprintf.texi: Update.
64780         * doc/functions/sprintf.texi: Update.
64781         * doc/functions/vfprintf.texi: Update.
64782         * doc/functions/vprintf.texi: Update.
64783         * doc/functions/vsnprintf.texi: Update.
64784         * doc/functions/vsprintf.texi: Update.
64785         Reported by Eric Blake.
64786
64787 2007-05-06  Bruno Haible  <bruno@clisp.org>
64788
64789         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64790         padding ourselves for the floating-point directives.
64791         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64794         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64795         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64803         * tests/test-snprintf-posix.h (test_function): Also check the width
64804         and some flags in the %f directive.
64805         * tests/test-sprintf-posix.h (test_function): Likewise.
64806         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64807         * tests/test-vasprintf-posix.c (test_function): Likewise.
64808         * doc/functions/fprintf.texi: Update.
64809         * doc/functions/printf.texi: Update.
64810         * doc/functions/snprintf.texi: Update.
64811         * doc/functions/sprintf.texi: Update.
64812         * doc/functions/vfprintf.texi: Update.
64813         * doc/functions/vprintf.texi: Update.
64814         * doc/functions/vsnprintf.texi: Update.
64815         * doc/functions/vsprintf.texi: Update.
64816
64817 2007-05-06  Bruno Haible  <bruno@clisp.org>
64818
64819         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64820         pass the ' flag character to sprintf or snprintf.
64821         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64824         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64825         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64833         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64834         flag.
64835         * tests/test-sprintf-posix.h (test_function): Likewise.
64836         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64837         * tests/test-vasprintf-posix.c (test_function): Likewise.
64838         * doc/functions/fprintf.texi: Update.
64839         * doc/functions/printf.texi: Update.
64840         * doc/functions/snprintf.texi: Update.
64841         * doc/functions/sprintf.texi: Update.
64842         * doc/functions/vfprintf.texi: Update.
64843         * doc/functions/vprintf.texi: Update.
64844         * doc/functions/vsnprintf.texi: Update.
64845         * doc/functions/vsprintf.texi: Update.
64846
64847 2007-05-01  Bruno Haible  <bruno@clisp.org>
64848
64849         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64850
64851 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64852
64853         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64854         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64855
64856 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64857
64858         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64859         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64860         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64861
64862 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64863
64864         * lib/argp-help.c (struct hol_entry): New member `ord'.
64865         (HOL_ENTRY_PTRCMP): Use ord for comparison
64866         (hol_sort): Initialize ord.
64867
64868 2007-05-01  Bruno Haible  <bruno@clisp.org>
64869
64870         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64871         Reported by Eric Blake.
64872         * doc/gnulib.texi (Function Substitutes): Update.
64873
64874 2007-05-01  Bruno Haible  <bruno@clisp.org>
64875
64876         * doc/functions.texi: Remove file, now redundant through
64877         doc/functions/*.texi.
64878
64879 2007-05-01  Bruno Haible  <bruno@clisp.org>
64880
64881         * modules/argp (Depends-on): Add sleep.
64882
64883 2007-05-01  Bruno Haible  <bruno@clisp.org>
64884
64885         * modules/sleep-tests: New file.
64886         * tests/test-sleep.c: New file.
64887
64888         * modules/sleep: New file.
64889         * lib/sleep.c: New file.
64890         * m4/sleep.m4: New file.
64891         * lib/unistd_.h (sleep): New declaration.
64892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64893         HAVE_SLEEP.
64894         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64895         * doc/functions/sleep.texi: Document the sleep module.
64896
64897 2007-05-01  Bruno Haible  <bruno@clisp.org>
64898
64899         * lib/sigprocmask.h: Remove file.
64900         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64901         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64902         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64903         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64904         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64905         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64906         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64907         HAVE_SIGSET_T as a shell variable.
64908         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64909         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64910         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64911         (Depends-on): Add signal. Remove verify.
64912         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64913         (Include): Mention <signal.h> instead of sigprocmask.h.
64914         * NEWS: Mention the change.
64915         * lib/fatal-signal.c: Don't include sigprocmask.h.
64916
64917 2007-05-01  Bruno Haible  <bruno@clisp.org>
64918
64919         * modules/signal: New file.
64920         * lib/signal_.h: New file.
64921         * m4/signal_h.m4: New file.
64922
64923 2007-05-01  Bruno Haible  <bruno@clisp.org>
64924
64925         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64926         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64927         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64928         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64929
64930 2007-05-01  Bruno Haible  <bruno@clisp.org>
64931
64932         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64933         configure time.
64934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64935         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64936         * modules/sys_stat (Makefile.am): Substitute their values into
64937         sys/stat.h.
64938
64939 2007-05-01  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64942         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64943         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64944
64945 2007-05-01  Bruno Haible  <bruno@clisp.org>
64946
64947         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64948         'assert' module here.
64949
64950 2007-05-01  Bruno Haible  <bruno@clisp.org>
64951
64952         * doc/functions/*.texi: New files.
64953         * doc/functions/google-ranking.txt: New file.
64954         * doc/gnulib.texi (Function Substitutes): New chapter.
64955         (ctime, inet_ntoa): Remove sections.
64956         * doc/ctime.texi: Remove file.
64957         * doc/inet_ntoa.texi: Remove file.
64958         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64959         dependencies.
64960         (%.info): New rule, specifying a --reference-limit.
64961
64962 2007-05-01  Bruno Haible  <bruno@clisp.org>
64963
64964         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64965
64966 2007-05-01  Bruno Haible  <bruno@clisp.org>
64967
64968         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64969         the portability of 'mkdir' to mingw systems.
64970
64971 2007-05-01  Bruno Haible  <bruno@clisp.org>
64972
64973         * doc/headers/google-ranking.txt: New file.
64974
64975 2007-04-30  Eric Blake  <ebb9@byu.net>
64976
64977         Prefer fseeko to fseek.
64978         * modules/getpass (Depends-on): Add fseeko.
64979         * lib/getpass.c (getpass): Use fseeko, not fseek.
64980
64981 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64982
64983         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64984         assumes the sorting is stable, while most qsort implementations
64985         are not.  Use argument addresses to ensure they never compare as
64986         equal.
64987
64988         * tests/test-argp-2.sh (usage-indent test): Fix output
64989         (func_compare): Restore diff options
64990         * tests/test-argp.c: Restore #include "progname.h"
64991
64992 2007-04-29  Bruno Haible  <bruno@clisp.org>
64993
64994         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64996         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64998         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64999         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65000         (TESTS, check_PROGRAMS): Add test-snprintf.
65001         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65002         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65003         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65004         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65005         assertions that fail on HP-UX, OSF/1, or IRIX.
65006         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65007
65008 2007-04-29  Bruno Haible  <bruno@clisp.org>
65009
65010         * MODULES.html.sh (posix_functions): Remove 'contents'.
65011
65012 2007-04-29  Karl Berry  <karl@gnu.org>
65013
65014         * config/srclist.txt (gendocs_template_min): new entry.
65015
65016 2007-04-29  Bruno Haible  <bruno@clisp.org>
65017
65018         Work around fpurge bug on BSD systems.
65019         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65021         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65022         fpurge to rpl_fpurge if the system already has this function.
65023         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65024         the case where the system already has this function. Correct invariants
65025         on BSD systems.
65026         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65027         BSD systems.
65028
65029 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65030
65031         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65032         proposed by Sven Verdoolaege.
65033
65034         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65035         options.
65036         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65037         (usage and help tests): Update
65038
65039 2007-04-29  Bruno Haible  <bruno@clisp.org>
65040
65041         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65042         Print more information in case of failure. Disable a test on BeOS.
65043
65044 2007-04-29  Bruno Haible  <bruno@clisp.org>
65045
65046         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65047         This helps debugging on systems on which no gdb is available.
65048
65049 2007-04-29  Bruno Haible  <bruno@clisp.org>
65050
65051         * lib/freading.h: Improve comments.
65052         * lib/fwriting.h: Likewise.
65053         * tests/test-freading.c (main): Don't check freading immediately after
65054         repositioning. Needed for glibc.
65055
65056 2007-04-29  Bruno Haible  <bruno@clisp.org>
65057
65058         * lib/freading.c (freading): Trivial simplification.
65059
65060 2007-04-28  Bruno Haible  <bruno@clisp.org>
65061
65062         * tests/test-fwriting.c (main): Also test the interaction between
65063         fflush and fwriting.
65064         * modules/fwriting-tests (Depends-on): Add fflush.
65065
65066         * tests/test-freading.c (main): Also test the interaction between
65067         fflush and freading.
65068         * modules/freading-tests (Depends-on): Add fflush.
65069
65070 2007-04-28  Bruno Haible  <bruno@clisp.org>
65071
65072         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65073         fseeko and ftello.
65074         Suggested by Eric Blake.
65075
65076 2007-04-28  Jim Meyering  <jim@meyering.net>
65077
65078         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65079         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65080         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65081
65082 2007-04-27  Eric Blake  <ebb9@byu.net>
65083
65084         * doc/headers/assert.texi (assert.h): Document assert module use.
65085
65086 2007-04-27  Bruno Haible  <bruno@clisp.org>
65087
65088         * doc/headers/*.texi: New files.
65089         * doc/gnulib.texi (Header File Substitutes): New chapter.
65090         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65091         dependencies.
65092         (standards.info ,standards.html, standards.dvi): Update dependencies.
65093         (mostlyclean, clean): New targets.
65094
65095 2007-04-27  Bruno Haible  <bruno@clisp.org>
65096
65097         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65098         * modules/sysexits (Files, Makefile.am): Update.
65099
65100         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65101         * modules/sys_socket (Files, Makefile.am): Update.
65102
65103         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65104         * modules/sys_stat (Files, Makefile.am): Update.
65105
65106 2007-04-27  Eric Blake  <ebb9@byu.net>
65107
65108         * lib/freading.h: Improve comments.
65109         * lib/fwriting.h: Likewise.
65110         * lib/fflush.c: Likewise.
65111
65112         Fix closein for mingw.
65113         * modules/closein-tests: Add tests for closein.
65114         * tests/test-closein.c: New file.
65115         * tests/test-closein.sh: Likewise.
65116         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65117         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65118
65119 2007-04-27  Bruno Haible  <bruno@clisp.org>
65120
65121         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65122         version is < 6.
65123         * lib/math_.h [__DECC]: Likewise.
65124         * lib/stdio_.h [__DECC]: Likewise.
65125         * lib/stdlib_.h [__DECC]: Likewise.
65126         * lib/string_.h [__DECC]: Likewise.
65127         * lib/time_.h [__DECC]: Likewise.
65128         * lib/wchar_.h [__DECC]: Likewise.
65129         * lib/wctype_.h [__DECC]: Likewise.
65130
65131 2007-04-27  Bruno Haible  <bruno@clisp.org>
65132
65133         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65134
65135 2007-04-27  Bruno Haible  <bruno@clisp.org>
65136
65137         * lib/fflush.c: Add comments.
65138         * modules/fpurge-tests (Depends-on): Add fflush.
65139         * modules/freadable-tests (Depends-on): Likewise.
65140         * modules/fwritable-tests (Depends-on): Likewise.
65141
65142 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65143
65144         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65145         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65146         Report by Bruno Haible <bruno@clisp.org>.
65147
65148 2007-04-26  Eric Blake  <ebb9@byu.net>
65149
65150         Fix fflush on mingw.
65151         * modules/fflush (Depends-on): Add freading.
65152         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65153         but unread data.
65154
65155 2007-04-26  Eric Blake  <ebb9@byu.net>
65156         and Bruno Haible  <bruno@clisp.org>
65157
65158         Implement freading and fwriting.
65159         * lib/freading.c: New file.
65160         * lib/freading.h: Likewise.
65161         * m4/freading.m4: Likewise.
65162         * modules/freading: Likewise.
65163         * modules/freading-tests: Likewise.
65164         * tests/test-freading.c: Likewise.
65165         * lib/fwriting.c: New file.
65166         * lib/fwriting.h: Likewise.
65167         * m4/fwriting.m4: Likewise.
65168         * modules/fwriting: Likewise.
65169         * modules/fwriting-tests: Likewise.
65170         * tests/test-fwriting.c: Likewise.
65171         * MODULES.html.sh (File stream based Input/Output): Mention them.
65172
65173 2007-04-26  Bruno Haible  <bruno@clisp.org>
65174
65175         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65176         'long' when we assume it.
65177         Suggested by Eric Blake.
65178
65179 2007-04-26  Bruno Haible  <bruno@clisp.org>
65180
65181         Ensure fseeko, ftello are declared on glibc systems.
65182         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65183         * modules/fseeko (configure.ac-early): Likewise.
65184         * modules/ftello (configure.ac-early): Likewise.
65185         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65186         AC_FUNC_FSEEKO for this.
65187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65188         (gl_CHECK_FSEEKO): Remove macro.
65189
65190 2007-04-26  Bruno Haible  <bruno@clisp.org>
65191
65192         * tests/test-fflush.c (main): Also check the ftell result after
65193         fflush and fseek/fseeko.
65194         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65195         file descriptor position cache in the stream.
65196         * lib/fseeko.c (rpl_fseeko): Likewise.
65197
65198 2007-04-26  Bruno Haible  <bruno@clisp.org>
65199
65200         * modules/fflush-tests (Depends-on): Add fseeko.
65201
65202 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65203             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65204
65205         * lib/argz_.h: ensure error_t definition is obtained in same
65206         mechanism system argz.h would have.
65207         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65208         argz facilities are known bad.  Err on the side of caution if
65209         cross-compiling.
65210
65211 2007-04-25  Eric Blake  <ebb9@byu.net>
65212
65213         * lib/fpurge.c (includes): Use stdlib.h for free.
65214         * tests/test-fflush.c (main): Also test fflush-fseeko.
65215
65216 2007-04-25  Bruno Haible  <bruno@clisp.org>
65217
65218         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65219         * lib/fseeko.c: New file.
65220         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65221         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65222         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65223         gl_FUNC_FSEEKO.
65224         (gl_FUNC_FSEEKO): Invoke it.
65225         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65226         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65227         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65228
65229 2007-04-25  Bruno Haible  <bruno@clisp.org>
65230
65231         * modules/fflush (Depends-on): Add ftello.
65232
65233 2007-04-25  Bruno Haible  <bruno@clisp.org>
65234
65235         * modules/ftello-tests: New file.
65236         * tests/test-ftello.c: New file.
65237
65238         * modules/ftello: New file.
65239         * m4/ftello.m4: New file.
65240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65241         HAVE_FTELLO.
65242         * lib/stdio_.h (ftello): New declaration.
65243         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65244         HAVE_FTELLO.
65245
65246 2007-04-25  Bruno Haible  <bruno@clisp.org>
65247
65248         * modules/fseeko-tests: New file.
65249         * tests/test-fseeko.c: New file.
65250
65251         * modules/fseeko: New file.
65252         * m4/fseeko.m4: New file.
65253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65254         HAVE_FSEEKO.
65255         * lib/stdio_.h (fseeko): New declaration.
65256         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65257         HAVE_FSEEKO.
65258
65259 2007-04-25  Bruno Haible  <bruno@clisp.org>
65260
65261         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65262
65263 2007-04-25  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65266         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65267         * tests/test-unistd.c: Likewise.
65268         * tests/test-fcntl.c: Likewise.
65269
65270 2007-04-23  Eric Blake  <ebb9@byu.net>
65271
65272         * lib/fflush.c: Fix missing include.
65273         Reported by Bruno Haible.
65274
65275 2007-04-23  Bruno Haible  <bruno@clisp.org>
65276
65277         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65278         Reported by Eric Blake.
65279
65280 2007-04-23  Bruno Haible  <bruno@clisp.org>
65281
65282         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65283
65284 2007-04-23  Bruno Haible  <bruno@clisp.org>
65285
65286         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65287
65288 2007-04-23  Bruno Haible  <bruno@clisp.org>
65289
65290         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65291         Needed on HP-UX 11.
65292
65293 2007-04-16  Eric Blake  <ebb9@byu.net>
65294
65295         Make fflush rely on fpurge.
65296         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65297         open coding all variants.
65298         * modules/fflush (Depends-on): Add fpurge and unistd.
65299         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65300         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65301
65302         Fix --with-tests compilation on cygwin.
65303         * modules/argmatch-tests (Makefile.am): List gnulib library first
65304         in LDADD.
65305         * modules/argp-tests (Makefile.am): Likewise.
65306         * modules/array-list-tests (Makefile.am): Likewise.
65307         * modules/array-oset-tests (Makefile.am): Likewise.
65308         * modules/avltree-list-tests (Makefile.am): Likewise.
65309         * modules/avltree-oset-tests (Makefile.am): Likewise.
65310         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65311         * modules/carray-list-tests (Makefile.am): Likewise.
65312         * modules/dirname-tests (Makefile.am): Likewise.
65313         * modules/frexp-tests (Makefile.am): Likewise.
65314         * modules/isnanl-tests (Makefile.am): Likewise.
65315         * modules/linked-list-tests (Makefile.am): Likewise.
65316         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65317         * modules/lock-tests (Makefile.am): Likewise.
65318         * modules/rbtree-list-tests (Makefile.am): Likewise.
65319         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65320         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65321         * modules/tls-tests (Makefile.am): Likewise.
65322         * modules/tsearch-tests (Makefile.am): Likewise.
65323         * modules/xvasprintf-tests (Makefile.am): Likewise.
65324
65325         Fix fpurge for cygwin.
65326         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65327         value.
65328         * modules/fpurge-tests (Depends-on): Clean up trash.
65329
65330 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65331
65332         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65333
65334         * m4/autobuild.m4: Re-indent.
65335
65336 2007-04-13  Bruno Haible  <bruno@clisp.org>
65337
65338         * modules/fpurge-tests: New file.
65339         * tests/test-fpurge.c: New file.
65340
65341         * modules/fpurge: New file.
65342         * lib/fpurge.h: New file.
65343         * lib/fpurge.c: New file.
65344         * m4/fpurge.m4: New file.
65345
65346 2007-04-13  Bruno Haible  <bruno@clisp.org>
65347
65348         * modules/fbufmode-tests: New file.
65349         * tests/test-fbufmode.c: New file.
65350
65351         * modules/fbufmode: New file.
65352         * lib/fbufmode.h: New file.
65353         * lib/fbufmode.c: New file.
65354         * m4/fbufmode.m4: New file.
65355
65356 2007-04-13  Bruno Haible  <bruno@clisp.org>
65357
65358         * modules/fwritable-tests: New file.
65359         * tests/test-fwritable.c: New file.
65360
65361         * modules/fwritable: New file.
65362         * lib/fwritable.h: New file.
65363         * lib/fwritable.c: New file.
65364         * m4/fwritable.m4: New file.
65365
65366 2007-04-13  Bruno Haible  <bruno@clisp.org>
65367
65368         * modules/freadable-tests: New file.
65369         * tests/test-freadable.c: New file.
65370
65371         * modules/freadable: New file.
65372         * lib/freadable.h: New file.
65373         * lib/freadable.c: New file.
65374         * m4/freadable.m4: New file.
65375
65376 2007-04-13  Bruno Haible  <bruno@clisp.org>
65377
65378         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65379         MOSTLYCLEANFILES.
65380
65381 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65382
65383         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65384         gzip bootstrap.conf to avoid dragging in i18n machinery.
65385         (gnulib_tool_option): Use it.
65386
65387 2007-04-13  Bruno Haible  <bruno@clisp.org>
65388
65389         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65390         %F directives.
65391         * tests/test-vasprintf-posix.c (test_function): Likewise.
65392         * tests/test-snprintf-posix.h (test_function): Likewise.
65393         * tests/test-sprintf-posix.h (test_function): Likewise.
65394         * tests/test-fprintf-posix.h (test_function): Likewise.
65395         * tests/test-printf-posix.h (test_function): Likewise.
65396         * tests/test-fprintf-posix.out: Likewise.
65397
65398 2007-04-13  Bruno Haible  <bruno@clisp.org>
65399
65400         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65401         * modules/tls-tests (configure.ac): Likewise.
65402         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65403
65404 2007-04-13  Bruno Haible  <bruno@clisp.org>
65405
65406         * lib/tls.c (glthread_tls_get): Fix return type.
65407         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65408
65409 2007-04-12  Eric Blake  <ebb9@byu.net>
65410
65411         * modules/gettime (Depends-on): Remove gettime.
65412         Reported by Dmitry V. Levin.
65413
65414 2007-04-12  Bruno Haible  <bruno@clisp.org>
65415
65416         * modules/fflush (Include): Mention <stdio.h>.
65417         * modules/strtoimax (Include): Mention <inttypes.h>.
65418         * modules/strtoumax (Include): Likewise.
65419
65420 2007-04-12  Eric Blake  <ebb9@byu.net>
65421
65422         * .cvsignore: New file.
65423         * .gitignore: Likewise.
65424
65425 2007-04-12  Bruno Haible  <bruno@clisp.org>
65426
65427         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65428         not before, since $(LDADD) often contains libgnu.a.
65429         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65430         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65431         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65432         Needed on Cygwin.
65433
65434 2007-04-12  Eric Blake  <ebb9@byu.net>
65435
65436         Work around glibc's failure to flush stdin on fclose.
65437         * lib/closein.c (close_stdin): Flush stdin before closing.
65438
65439         Work around glibc's failure to reset seekable stdin on exit.
65440         * modules/closein: New module.
65441         * lib/closein.c: New file.
65442         * lib/closein.h: Likewise.
65443         * m4/closein.m4: Likewise.
65444         * MODULES.html.sh (File stream based Input/Output): Document it.
65445
65446 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65447
65448         * gnulib-tool: Rename generated 'autobuild' script to
65449         'do-autobuild' in --create-megatestdir output.
65450
65451         * doc/gnulib.texi (Build robot for gnulib): Fix.
65452
65453 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65454
65455         * modules/sysexits (Depends-on): Add absolute-header.
65456
65457 2007-04-12  Eric Blake  <ebb9@byu.net>
65458
65459         No need to preserve errno on success.
65460         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65461         Reported by Bruno Haible.
65462
65463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65464
65465         * MODULES.html.sh (Support for maintaining and releasing
65466         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65467
65468 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65469
65470         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65471
65472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65473
65474         * modules/autobuild: New module.
65475
65476         * m4/autobuild.m4: New file.
65477
65478 2007-04-11  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65481         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65485         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65486         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65488         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65489         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65491         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65492         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65494         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65495         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65497         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65498         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65500         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65501         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65503         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65504         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65506         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65507         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65508         Reported by Eric Blake.
65509
65510 2007-04-11  Bruno Haible  <bruno@clisp.org>
65511
65512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65513
65514 2007-04-10  Bruno Haible  <bruno@clisp.org>
65515
65516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65517         for NaN and Infinity. Needed on FreeBSD 6.1.
65518         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65519         regarding results for "%010a" of Infinity and NaN.
65520         * tests/test-vasprintf-posix.c (test_function): Likewise.
65521         * tests/test-snprintf-posix.h (test_function): Likewise.
65522         * tests/test-sprintf-posix.h (test_function): Likewise.
65523         * tests/test-fprintf-posix.h (test_function): Likewise.
65524         * tests/test-printf-posix.h (test_function): Likewise.
65525         * tests/test-fprintf-posix.out: Likewise.
65526
65527 2007-04-10  Bruno Haible  <bruno@clisp.org>
65528
65529         * modules/locale-tests: New file.
65530         * tests/test-locale.c: New file.
65531
65532         * modules/locale: New file.
65533         * lib/locale_.h: New file.
65534         * m4/locale_h.m4: New file.
65535
65536 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65537             Bruno Haible  <bruno@clisp.org>
65538
65539         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65540         be determined, test for availability of the copysignf, copysign,
65541         copysignl functions.
65542         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65543         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65544         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65545
65546 2007-04-09  Eric Blake  <ebb9@byu.net>
65547
65548         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65549         * modules/stdio (Makefile.am): Support fflush.
65550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65551         * modules/fflush: New file.
65552         * lib/fflush.c: Likewise.
65553         * m4/fflush.m4: Likewise.
65554         * modules/fflush-tests: New test.
65555         * tests/test-fflush.c: Likewise.
65556         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65557
65558 2007-04-06  Bruno Haible  <bruno@clisp.org>
65559
65560         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65561         (VASNPRINTF): Use signbit for faster determination whether to print a
65562         minus sign.
65563         * modules/vasnprintf (Files): Remove lib/float+.h.
65564         * modules/fprintf-posix (Depends-on): Add signbit.
65565         * modules/snprintf-posix (Depends-on): Likewise.
65566         * modules/sprintf-posix (Depends-on): Likewise.
65567         * modules/vasnprintf-posix (Depends-on): Likewise.
65568         * modules/vasprintf-posix (Depends-on): Likewise.
65569         * modules/vfprintf-posix (Depends-on): Likewise.
65570         * modules/vsnprintf-posix (Depends-on): Likewise.
65571         * modules/vsprintf-posix (Depends-on): Likewise.
65572
65573 2007-04-06  Bruno Haible  <bruno@clisp.org>
65574
65575         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65576         * tests/test-frexpl.c (main): Likewise.
65577         * tests/test-ldexpl.c (main): Likewise.
65578         * modules/frexp-tests (Depends-on): Add signbit.
65579         * modules/frexpl-tests (Depdends-on): Likewise.
65580         * modules/ldexpl-tests (Depdends-on): Likewise.
65581
65582 2007-04-06  Bruno Haible  <bruno@clisp.org>
65583
65584         * modules/signbit-tests: New file.
65585         * tests/test-signbit.c: New file.
65586
65587         * modules/signbit: New file.
65588         * lib/signbitf.c: New file.
65589         * lib/signbitd.c: New file.
65590         * lib/signbitl.c: New file.
65591         * m4/signbit.m4: New file.
65592         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65593         (signbit): New macro.
65594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65595         REPLACE_SIGNBIT.
65596         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65597         REPLACE_FREXPL into math.h.
65598
65599 2007-04-06  Bruno Haible  <bruno@clisp.org>
65600
65601         * modules/isnanf-nolibm-tests: New file.
65602         * tests/test-isnanf.c: New file.
65603
65604         * modules/isnanf-nolibm: New file.
65605         * lib/isnanf.h: New file.
65606         * lib/isnanf.c: New file.
65607         * lib/isnan.c: Consider the USE_FLOAT macro.
65608         * m4/isnanf.m4: New file.
65609
65610 2007-04-06  Bruno Haible  <bruno@clisp.org>
65611
65612         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65613         (Link): New section.
65614
65615         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65616
65617 2007-04-06  Bruno Haible  <bruno@clisp.org>
65618
65619         Assume the 'long double' type.
65620         * m4/longdouble.m4: Remove file.
65621         * config/srclist.txt: Don't mention longdouble.m4.
65622         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65623         * lib/float+.h: Likewise.
65624         * lib/frexp.c: Likewise.
65625         * lib/printf-args.h: Likewise.
65626         * lib/printf-args.c: Likewise.
65627         * lib/printf-frexp.c: Likewise.
65628         * lib/printf-parse.c: Likewise.
65629         * lib/vasnprintf.c: Likewise.
65630         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65631         * m4/intl.m4: Likewise.
65632         * m4/isnanl.m4: Likewise.
65633         * m4/printf.m4: Likewise.
65634         * m4/printf-frexpl.m4: Likewise.
65635         * m4/vasnprintf.m4: Likewise.
65636         * modules/allocsa (Files): Remove m4/longdouble.m4.
65637         * modules/gettext (Files): Likewise.
65638         * modules/relocatable-prog-wrapper (Files): Likewise.
65639         * modules/vasnprintf (Files): Likewise.
65640         * modules/isnanl (Files): Likewise.
65641         (Include): Simplify.
65642         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65643         (Include): Simplify.
65644         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65645         (Include): Simplify.
65646         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65647         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65648         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65649         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65650         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65651         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65652         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65653         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65654         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65656         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65658         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65659         * tests/test-isnanl.c: Likewise.
65660         * tests/test-snprintf-posix.h: Likewise.
65661         * tests/test-sprintf-posix.h: Likewise.
65662         * tests/test-vasnprintf-posix.c: Likewise.
65663         * tests/test-vasnprintf-posix2.c: Likewise.
65664         * tests/test-vasprintf-posix.c: Likewise.
65665
65666 2007-04-06  Bruno Haible  <bruno@clisp.org>
65667
65668         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65669         * lib/math_.h [__DECC]: Include the overridden include file through
65670         #include_next, outside the double-inclusion guard.
65671         * lib/stdio_.h [__DECC]: Likewise.
65672         * lib/stdlib_.h [__DECC]: Likewise.
65673         * lib/string_.h [__DECC]: Likewise.
65674         * lib/time_.h [__DECC]: Likewise.
65675         * lib/wchar_.h [__DECC]: Likewise.
65676         * lib/wctype_.h [__DECC]: Likewise.
65677         * lib/inttypes_.h [__DECC]: Likewise.
65678         Reported by Albert Chin <china@thewrittenword.com> in
65679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65680
65681 2007-04-04  Eric Blake  <ebb9@byu.net>
65682
65683         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65684         1.5.x.
65685
65686 2007-04-04  Bruno Haible  <bruno@clisp.org>
65687
65688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65689         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65690
65691 2007-04-04  Bruno Haible  <bruno@clisp.org>
65692
65693         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65694         results for "%010a" of Infinity and NaN.
65695         * tests/test-vasprintf-posix.c (test_function): Likewise.
65696         * tests/test-snprintf-posix.h (test_function): Likewise.
65697         * tests/test-sprintf-posix.h (test_function): Likewise.
65698         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65699         * tests/test-printf-posix.h (test_function): Likewise.
65700         * tests/test-fprintf-posix.out: Update.
65701         Needed for FreeBSD 6.1.
65702
65703 2007-04-04  Bruno Haible  <bruno@clisp.org>
65704
65705         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65706         directly used by the gnulib modules nor by gnulib-tool.
65707
65708 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65709
65710         * DEPENDENCIES: Give overall description of version dependency
65711         desirability.  Use more-typical names for apps.
65712         Add shell, coreutils, diffutils, grep, tar, gzip.
65713
65714 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65715
65716         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65717
65718 2007-04-04  Karl Berry  <karl@gnu.org>
65719
65720         * MODULES.html.sh (func_module): missing '.
65721
65722 2007-04-03  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/argmatch-tests (Makefile.am): New variable
65725         test_argmatch_LDADD.
65726         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65727         * modules/array-list-tests (Makefile.am): New variable
65728         test_array_list_LDADD.
65729         * modules/array-oset-tests (Makefile.am): New variable
65730         test_array_oset_LDADD.
65731         * modules/avltree-list-tests (Makefile.am): New variable
65732         test_avltree_list_LDADD.
65733         * modules/avltree-oset-tests (Makefile.am): New variable
65734         test_avltree_oset_LDADD.
65735         * modules/avltreehash-list-tests (Makefile.am): New variable
65736         test_avltreehash_list_LDADD.
65737         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65738         test_canonicalize_lgpl_LDADD.
65739         * modules/carray-list-tests (Makefile.am): New variable
65740         test_carray_list_LDADD.
65741         * modules/dirname-tests (Makefile.am): New variable
65742         test_dirname_LDADD.
65743         * modules/linked-list-tests (Makefile.am): New variable
65744         test_linked_list_LDADD.
65745         * modules/linkedhash-list-tests (Makefile.am): New variable
65746         test_linkedhash_list_LDADD.
65747         * modules/rbtree-list-tests (Makefile.am): New variable
65748         test_rbtree_list_LDADD.
65749         * modules/rbtree-oset-tests (Makefile.am): New variable
65750         test_rbtree_oset_LDADD.
65751         * modules/rbtreehash-list-tests (Makefile.am): New variable
65752         test_rbtreehash_list_LDADD.
65753         * modules/xvasprintf-tests (Makefile.am): New variable
65754         test_xvasprintf_LDADD.
65755         Reported by Eric Blake.
65756
65757 2007-04-03  Eric Blake  <ebb9@byu.net>
65758
65759         * DEPENDENCIES: Weaken m4 requirements.
65760
65761 2007-04-03  Bruno Haible  <bruno@clisp.org>
65762
65763         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65764         * modules/isnanl-tests (configure.ac): Likewise.
65765
65766 2007-04-03  Ben Pfaff  <blp@gnu.org>
65767
65768         * modules/iconv_open: Add $(srcdir)/ to source directory
65769         references in Makefile fragments that call gperf, to fix VPATH
65770         builds.
65771
65772 2007-04-03  Bruno Haible  <bruno@clisp.org>
65773
65774         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65775         * lib/ldexpl.c: Undo last change.
65776
65777 2007-04-03  Bruno Haible  <bruno@clisp.org>
65778
65779         * modules/printf-frexpl (Depends-on): Undo last change.
65780         (Files): Add m4/ldexpl.m4.
65781
65782 2007-04-03  Bruno Haible  <bruno@clisp.org>
65783
65784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65785         * modules/isnanl (Link): New section.
65786
65787         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65788         * modules/frexp (Link): New section.
65789
65790         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65791         * modules/frexpl (Link): New section.
65792
65793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65794         * modules/ldexpl (Link): New section.
65795
65796 2007-04-03  Bruno Haible  <bruno@clisp.org>
65797
65798         * modules/TEMPLATE-EXTENDED: New file.
65799         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65800
65801 2007-04-03  Bruno Haible  <bruno@clisp.org>
65802
65803         * DEPENDENCIES: New file.
65804         Suggested by Simon Josefsson.
65805
65806 2007-04-03  Bruno Haible  <bruno@clisp.org>
65807
65808         * doc/gnulib.texi: Escape @.
65809
65810 2007-04-03  James Youngman  <jay@gnu.org>
65811         and Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65814         birthtime on all systems that have birthtime, not just those which
65815         use st_birthtimensec rather than st_birthtim.  Putting zero in
65816         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65817         that the birth time is not available for files on an NFS mount.
65818
65819 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65820
65821         * modules/memxor: Move back from crypto/, suggested by Bruno.
65822         * modules/crypto/hmac-sha1: Fix memxor dependency.
65823
65824         * modules/crypto/gc: Moved from ../.
65825
65826 2007-04-02  Eric Blake  <ebb9@byu.net>
65827
65828         * lib/ldexpl.c (includes): Avoid libm.
65829
65830         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65831
65832 2007-04-02  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65835         on IRIX.
65836
65837 2007-04-02  Bruno Haible  <bruno@clisp.org>
65838
65839         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65840         x86 or x86_64 platforms running MacOS X.
65841         Reported by Ryan Schmidt <@ryandesign.com>.
65842
65843 2007-04-02  Bruno Haible  <bruno@clisp.org>
65844
65845         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65846         i386.
65847
65848 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65849
65850         * modules/crypto/arcfour: Moved from ../.
65851         * modules/crypto/arcfour-tests: Moved from ../.
65852         * modules/crypto/arctwo: Moved from ../.
65853         * modules/crypto/arctwo-tests: Moved from ../.
65854         * modules/crypto/des: Moved from ../.
65855         * modules/crypto/des-tests: Moved from ../.
65856         * modules/crypto/gc-arcfour: Moved from ../.
65857         * modules/crypto/gc-arcfour-tests: Moved from ../.
65858         * modules/crypto/gc-arctwo: Moved from ../.
65859         * modules/crypto/gc-arctwo-tests: Moved from ../.
65860         * modules/crypto/gc-des: Moved from ../.
65861         * modules/crypto/gc-des-tests: Moved from ../.
65862         * modules/crypto/gc-hmac-md5: Moved from ../.
65863         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65864         * modules/crypto/gc-hmac-sha1: Moved from ../.
65865         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65866         * modules/crypto/gc-md2: Moved from ../.
65867         * modules/crypto/gc-md2-tests: Moved from ../.
65868         * modules/crypto/gc-md4: Moved from ../.
65869         * modules/crypto/gc-md4-tests: Moved from ../.
65870         * modules/crypto/gc-md5: Moved from ../.
65871         * modules/crypto/gc-md5-tests: Moved from ../.
65872         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65873         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65874         * modules/crypto/gc-random: Moved from ../.
65875         * modules/crypto/gc-rijndael: Moved from ../.
65876         * modules/crypto/gc-rijndael-tests: Moved from ../.
65877         * modules/crypto/gc-sha1: Moved from ../.
65878         * modules/crypto/gc-sha1-tests: Moved from ../.
65879         * modules/crypto/gc-tests: Moved from ../.
65880         * modules/crypto/hmac-md5: Moved from ../.
65881         * modules/crypto/hmac-md5-tests: Moved from ../.
65882         * modules/crypto/hmac-sha1: Moved from ../.
65883         * modules/crypto/hmac-sha1-tests: Moved from ../.
65884         * modules/crypto/md2: Moved from ../.
65885         * modules/crypto/md2-tests: Moved from ../.
65886         * modules/crypto/md4: Moved from ../.
65887         * modules/crypto/md4-tests: Moved from ../.
65888         * modules/crypto/md5: Moved from ../.
65889         * modules/crypto/md5-tests: Moved from ../.
65890         * modules/crypto/memxor: Moved from ../.
65891         * modules/crypto/rijndael: Moved from ../.
65892         * modules/crypto/rijndael-tests: Moved from ../.
65893         * modules/crypto/sha1: Moved from ../.
65894
65895 2007-03-30  James Youngman  <jay@gnu.org>
65896
65897         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65898         rename() to change the ctime of a file (because ctime is unaffected
65899         by rename on jfs2 on AIX 5.1).
65900         (main): Start by doing cleanup, in case a previous run failed leaving
65901         test files behind.
65902
65903 2007-03-31  Bruno Haible  <bruno@clisp.org>
65904
65905         Support old proprietary implementations of iconv.
65906         * modules/iconv_open: New file.
65907         * lib/iconv_.h: New file.
65908         * m4/iconv_h.m4: New file.
65909         * lib/iconv_open.c: New file.
65910         * lib/iconv_open-aix.gperf: New file.
65911         * lib/iconv_open-hpux.gperf: New file.
65912         * lib/iconv_open-irix.gperf: New file.
65913         * lib/iconv_open-osf.gperf: New file.
65914         * m4/iconv_open.m4: New file.
65915         * modules/linebreak (Depends-on): Add iconv_open.
65916         * modules/striconv (Depends-on): Likewise.
65917         * modules/striconveh (Depends-on): Likewise.
65918         * modules/unicodeio (Depends-on): Likewise.
65919         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65920         (iconv_t)(-1).
65921         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65922         conversion if cd is (iconv_t)(-1).
65923         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65924         is not possible.
65925
65926 2007-03-31  Bruno Haible  <bruno@clisp.org>
65927
65928         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65929         work on Solaris either. Protect also second use of "autodetect_jp".
65930
65931 2007-03-31  Bruno Haible  <bruno@clisp.org>
65932
65933         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65934         the function is not present.
65935
65936 2007-03-31  Bruno Haible  <bruno@clisp.org>
65937
65938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65939         the function is not present.
65940
65941 2007-03-31  Bruno Haible  <bruno@clisp.org>
65942
65943         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65944         a bug in HP-UX iconv_open().
65945
65946 2007-03-31  Bruno Haible  <bruno@clisp.org>
65947
65948         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65949         (Mathematics <math.h>): New section, add fpieee.
65950         (Input/output <stdio.h>): Add fseterr.
65951         (Mathematics <math.h>): New section, add printf-frexp.
65952         (Container data structures): Add sublist.
65953         (Core language properties): Add fpucw, inline.
65954         (Functions for greatest-width integer types <inttypes.h>): Add
65955         imaxabs, imaxdiv, inttypes.
65956         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65957         isnanl-nolibm, ldexp.
65958         (Mathematics <math.h>): New section, add printf-frexpl.
65959         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65960         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65961         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65962         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65963         (Unicode string functions): Add unistr/u*-mbtoucr.
65964         (Java): Add javacomp-script, javaexec-script.
65965         (C#): Add csharpcomp-script, csharpexec-script.
65966         (Support for building libraries and executables): Add havelib,
65967         relocatable-*.
65968         (Support for maintaining and releasing projects): Renamed from
65969         'Support for maintaining and release projects'. Add announce-gen.
65970
65971 2007-03-31  Bruno Haible  <bruno@clisp.org>
65972
65973         * README: Talk primarily about git.
65974         (git and CVS): Renamed from CVS.
65975         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65976         gnulib is available through git.
65977         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65978
65979 2007-03-30  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65982         * lib/poll_.h: Likewise.
65983         * lib/stat_.h: Likewise.
65984         * lib/sys_time_.h: Likewise.
65985         * lib/sysexit_.h: Likewise.
65986         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65987         * lib/stdbool_.h: Likewise.
65988         * lib/byteswap_.h: Add double-inclusion guard.
65989
65990 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65991
65992         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65993
65994 2007-03-30  Karl Berry  <karl@gnu.org>
65995
65996         * config/srclist-update: double space after USA in the license
65997         substitution, since that's how it's usually (?) written.
65998
65999 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66002         reported by Bruno Haible.
66003
66004 2007-03-29  Bruno Haible  <bruno@clisp.org>
66005
66006         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66007         a bug in AIX iconv().
66008
66009 2007-03-29  Bruno Haible  <bruno@clisp.org>
66010
66011         * modules/ldexpl-tests: New file.
66012         * tests/test-ldexpl.c: New file.
66013
66014 2007-03-29  Bruno Haible  <bruno@clisp.org>
66015
66016         * lib/ldexpl.c: Include fpucw.h.
66017         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66018         multiplication.
66019         * modules/ldexpl (Depends-on): Add fpucw.
66020
66021 2007-03-29  Bruno Haible  <bruno@clisp.org>
66022
66023         * modules/ldexpl: New file.
66024         * m4/ldexpl.m4: New file.
66025         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66026         set.
66027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66028         REPLACE_LDEXPL.
66029         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66030         REPLACE_LDEXPL.
66031         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66032         gl_FUNC_LDEXPL_WORKS.
66033         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66034         * modules/mathl (Files): Remove lib/ldexpl.c.
66035         (Depends-on): Add ldexpl.
66036
66037 2007-03-29  Bruno Haible  <bruno@clisp.org>
66038
66039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66040
66041 2007-03-29  Bruno Haible  <bruno@clisp.org>
66042
66043         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66044         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66045         and possibly also HP-UX.
66046         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66047         work on AIX, IRIX, HP-UX, OSF/1.
66048         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66049         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66050         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66051         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66052         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66053         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66054
66055 2007-03-29  Bruno Haible  <bruno@clisp.org>
66056
66057         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66058
66059 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66062         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66063
66064 2007-03-29  Eric Blake  <ebb9@byu.net>
66065
66066         * lib/acl-internal.h: Remove redundant include.
66067         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66068         Cygwin when a file is locked.
66069
66070 2007-03-29  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66073         file.
66074         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66075
66076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66079         try to remove a parent directory if the child couldn't be removed
66080         (except for the first rmdir, which could fail because the child
66081         doesn't exist).  Problem reported by Jeff Blaine in
66082         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66083
66084 2007-03-28  Bruno Haible  <bruno@clisp.org>
66085
66086         * lib/striconveh.c (utf8conv_carefully): New function.
66087         (mem_cd_iconveh_internal): Invoke it.
66088
66089 2007-03-28  Bruno Haible  <bruno@clisp.org>
66090
66091         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66092         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66093         input.
66094         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66095         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66096         unistr/u8-uctomb.
66097
66098 2007-03-28  Bruno Haible  <bruno@clisp.org>
66099
66100         * modules/unistr/u8-mbtoucr: New file.
66101         * lib/unistr/u8-mbtoucr.c: New file.
66102         * modules/unistr/u16-mbtoucr: New file.
66103         * lib/unistr/u16-mbtoucr.c: New file.
66104         * modules/unistr/u16-mbtoucr: New file.
66105         * lib/unistr/u16-mbtoucr.c: New file.
66106         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66107
66108 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66109             Bruno Haible  <bruno@clisp.org>
66110
66111         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66112         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66113         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66114
66115         * m4/stdio_h.m4: Add stubs for vasprintf too.
66116
66117         * modules/stdio: Support vasprintf in sed command.
66118
66119         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66120         vasprintf.h.  Add stdio module indicator.
66121
66122         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66123         vasprintf.h.
66124
66125         * lib/vasprintf.h: File removed.
66126
66127         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66128         * lib/vasprintf.c: Ditto.
66129         * lib/xvasprintf.c: Ditto.
66130         * tests/test-vasprintf-posix.c: Ditto.
66131         * tests/test-vasprintf.c: Ditto.
66132
66133 2007-03-27  Bruno Haible  <bruno@clisp.org>
66134
66135         Make vasnprintf multithread-safe.
66136         * lib/vasnprintf.c (decimal_point_char): New function.
66137         (VASNPRINTF): Use it.
66138         Suggested by Simon Josefsson.
66139
66140 2007-03-27  Eric Blake  <ebb9@byu.net>
66141
66142         Support sub-second birthtime on cygwin.
66143         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66144         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66145         (get_stat_birthtime): Also work with st_birthtim.
66146
66147 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66148
66149         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66150         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66151         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66152         (get_stat_birthtime_ns): Simplify compile-time tests.
66153         (get_stat_birthtime): Change the API to look like
66154         get_stat_mtime etc., except return a negative tv_nsec on error.
66155         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66156         Don't check for "spare" fields.
66157         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66158         or for struct stat.st_birthtime, as these tests aren't used.
66159         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66160
66161 2007-03-27  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/stat-time.h: Include <sys/stat.h>.
66164
66165 2007-03-27  James Youngman  <jay@gnu.org>
66166
66167         * lib/stat-time.h (get_stat_birthtime): New function for
66168           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66169         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66170           and its variants.
66171         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66172         * modules/stat-time-test: New file.
66173         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66174
66175 2007-03-26  Bruno Haible  <bruno@clisp.org>
66176
66177         Better support of signalling NaNs.
66178         * lib/atanl.c: Include isnanl.h.
66179         (atanl): Perform test for NaN at the beginning of the function and
66180         through a call to isnanl.
66181         * lib/cosl.c: Include isnanl.h.
66182         (cosl): Perform test for NaN at the beginning of the function and
66183         through a call to isnanl.
66184         * lib/ldexpl.c: Include isnanl.h.
66185         (ldexpl): Perform test for NaN through a call to isnanl.
66186         * lib/logl.c: Include isnanl.h.
66187         (logl): Perform test for NaN at the beginning of the function and
66188         through a call to isnanl.
66189         * lib/sinl.c: Include isnanl.h.
66190         (sinl): Perform test for NaN at the beginning of the function and
66191         through a call to isnanl.
66192         * lib/sqrtl.c: Include isnanl.h.
66193         (sqrtl): Perform test for NaN at the beginning of the function and
66194         through a call to isnanl.
66195         * lib/tanl.c: Include isnanl.h.
66196         (tanl): Perform test for NaN at the beginning of the function and
66197         through a call to isnanl.
66198         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66199         * modules/mathl (Depends-on): Add isnanl.
66200
66201 2007-03-26  Eric Blake  <ebb9@byu.net>
66202
66203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66204         regression in logic sense of previous patch.
66205
66206 2007-03-26  Bruno Haible  <bruno@clisp.org>
66207
66208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66209         unportable shell command "if ! ...".
66210         Reported by Ralf Wildenhues.
66211
66212 2007-03-25  Bruno Haible  <bruno@clisp.org>
66213
66214         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66215         <sysexits.h> file, and only add EX_CONFIG.
66216         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66217         absolute file name and whether it is sufficient. Substitute also
66218         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66219         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66220         ABSOLUTE_SYSEXITS_H into sysexits.h.
66221
66222 2007-03-25  Bruno Haible  <bruno@clisp.org>
66223
66224         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66225         hints is NULL.
66226
66227 2007-03-25  Bruno Haible  <bruno@clisp.org>
66228
66229         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66230         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66231
66232 2007-03-25  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/vasnprintf.c: Include langinfo.h.
66235         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66236         multithread-safe.
66237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66246         Reported by Simon Josefsson.
66247
66248 2007-03-25  Bruno Haible  <bruno@clisp.org>
66249
66250         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66251         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66252         * modules/vasnprintf (Depends-on): Add stdint.
66253
66254 2007-03-25  Bruno Haible  <bruno@clisp.org>
66255
66256         * modules/fpieee: New file.
66257         * m4/fpieee.m4: New file.
66258         * modules/isnan-nolibm (Depends-on): Add fpieee.
66259         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66260         * modules/isnanl (Depends-on): Add fpieee.
66261
66262 2007-03-25  Bruno Haible  <bruno@clisp.org>
66263
66264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66265
66266 2007-03-25  Bruno Haible  <bruno@clisp.org>
66267
66268         Avoid test failures on IRIX 6.5.
66269         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66270         (main): Use it.
66271         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66272         macros.
66273         (main): Use them.
66274
66275 2007-03-25  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66278         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66279         exists but doesn't work.
66280         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66281         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66283         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66284         math.h.
66285
66286 2007-03-25  Bruno Haible  <bruno@clisp.org>
66287
66288         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66289         returns inf. Needed on IRIX 6.5.
66290
66291 2007-03-25  Bruno Haible  <bruno@clisp.org>
66292
66293         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66294         (main): Use isnanl instead of x != x idiom.
66295         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66296
66297         * tests/test-frexp.c: Include isnan.h.
66298         (main): Use isnan instead of x != x idiom.
66299         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66300
66301 2007-03-25  Bruno Haible  <bruno@clisp.org>
66302
66303         * tests/test-frexp.c (NaN): New function/macro.
66304         (main): Use it instead of 0.0 / 0.0.
66305         * tests/test-isnan.c (NaN): New function/macro.
66306         (main): Use it instead of 0.0 / 0.0.
66307         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66308         (test_function): Use it instead of 0.0 / 0.0.
66309         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66310         (test_function): Use it instead of 0.0 / 0.0.
66311         * tests/test-snprintf-posix.h (NaN): New function/macro.
66312         (test_function): Use it instead of 0.0 / 0.0.
66313         * tests/test-sprintf-posix.h (NaN): New function/macro.
66314         (test_function): Use it instead of 0.0 / 0.0.
66315         * tests/test-fprintf-posix.h (NaN): New function/macro.
66316         (test_function): Use it instead of 0.0 / 0.0.
66317         * tests/test-printf-posix.h (NaN): New function/macro.
66318         (test_function): Use it instead of 0.0 / 0.0.
66319
66320         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66321
66322 2007-03-25  Bruno Haible  <bruno@clisp.org>
66323
66324         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66325
66326 2007-03-25  Bruno Haible  <bruno@clisp.org>
66327
66328         * lib/regexec.c (merge_state_with_log): Make static.
66329
66330 2007-03-25  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/trigl.c (kernel_rem_pio2): Make static.
66333
66334 2007-03-25  Bruno Haible  <bruno@clisp.org>
66335
66336         * lib/sincosl.c (sincosl_table): Make static.
66337
66338 2007-03-25  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66341         if the compiler does not support C99.
66342
66343 2007-03-25  Bruno Haible  <bruno@clisp.org>
66344
66345         * modules/time (Makefile.am): Ensure all rule action lines start with a
66346         tab.
66347
66348 2007-03-24  Bruno Haible  <bruno@clisp.org>
66349
66350         * modules/tsearch-tests: New file.
66351         * tests/test-tsearch.sh: New file.
66352         * tests/test-tsearch.c: New file, mostly copied from glibc.
66353
66354         * modules/search-tests: New file.
66355         * tests/test-search.c: New file.
66356
66357         * modules/search: New file.
66358         * lib/search_.h: New file, incorporating lib/tsearch.h.
66359         * m4/search_h.m4: New file.
66360         * lib/tsearch.h: Remove file.
66361         * lib/tsearch.c: Include search.h instead of tsearch.h.
66362         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66363         HAVE_TSEARCH.
66364         * modules/tsearch (Files): Remove lib/tsearch.h.
66365         (Depends-on): Add search.
66366         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66367         (Include): Change tsearch.h into search.h.
66368
66369 2007-03-24  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/fpucw: New file.
66372         * lib/fpucw.h: New file.
66373         * lib/frexp.c: Include fpucw.h.
66374         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66375         (FUNC): Use them.
66376         * lib/printf-frexp.c: Include fpucw.h.
66377         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66378         (FUNC): Use them.
66379         * lib/vasnprintf.c: Include fpucw.h.
66380         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66381         'long double' calculations.
66382         * tests/test-frexpl.c: Include fpucw.h.
66383         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66384         * tests/test-printf-frexpl.c: Include fpucw.h.
66385         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66386         * modules/frexpl (Depends-on): Add fpucw.
66387         * modules/printf-frexpl (Depends-on): Likewise.
66388         * modules/fprintf-posix (Depends-on): Likewise.
66389         * modules/snprintf-posix (Depends-on): Likewise.
66390         * modules/sprintf-posix (Depends-on): Likewise.
66391         * modules/vasnprintf-posix (Depends-on): Likewise.
66392         * modules/vasprintf-posix (Depends-on): Likewise.
66393         * modules/vfprintf-posix (Depends-on): Likewise.
66394         * modules/vsnprintf-posix (Depends-on): Likewise.
66395         * modules/vsprintf-posix (Depends-on): Likewise.
66396         * modules/frexpl-tests (Depends-on): Likewise.
66397         * modules/printf-frexpl-tests (Depends-on): Likewise.
66398
66399 2007-03-24  Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/float+.h: New file.
66402         * lib/isnan.c: Include float+.h.
66403         (SIZE): New macro.
66404         (FUNC): Compare only SIZE bytes of the value.
66405         * lib/vasnprintf.c: Include float+.h.
66406         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66407         SIZEOF_LDBL or SIZEOF_DBL bytes.
66408         * modules/isnan-nolibm (Files): Add lib/float+.h.
66409         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66410         * modules/isnanl (Files): Add lib/float+.h.
66411         * modules/vasnprintf (Files): Add lib/float+.h.
66412
66413 2007-03-24  Bruno Haible  <bruno@clisp.org>
66414
66415         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66416         include isnanl-nolibm.h.
66417
66418 2007-03-24  Bruno Haible  <bruno@clisp.org>
66419
66420         * tests/test-read-file.c (main): Don't produce spurious output for
66421         expected situations. Make the test fail if it encountered unexpected
66422         results.
66423
66424 2007-03-24  Bruno Haible  <bruno@clisp.org>
66425
66426         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66427         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66428
66429 2007-03-24  Bruno Haible  <bruno@clisp.org>
66430
66431         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66432
66433 2007-03-24  Bruno Haible  <bruno@clisp.org>
66434
66435         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66436         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66437
66438         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66439         * modules/utf8-ucs4: Turn into a symbolic link to module
66440         unistr/u8-mbtouc.
66441
66442         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66443         utf8-ucs4-unsafe.
66444         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66445         unistr/u8-mbtouc-unsafe.
66446
66447         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66448         * modules/utf16-ucs4: Turn into a symbolic link to module
66449         unistr/u16-mbtouc.
66450
66451         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66452         utf16-ucs4-unsafe.
66453         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66454         unistr/u16-mbtouc-unsafe.
66455
66456         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66457         * modules/ucs4-utf8: Turn into a symbolic link to module
66458         unistr/u8-ubtomb.
66459
66460         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66461         * modules/ucs4-utf16: Turn into a symbolic link to module
66462         unistr/u16-ubtomb.
66463
66464 2007-03-24  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66467         Enable the function only if HAVE_INLINE.
66468         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66469         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66470         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66471         Enable the function only if HAVE_INLINE.
66472         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66473         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66474         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66475         Enable the function only if HAVE_INLINE.
66476         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66477         Enable the function only if HAVE_INLINE.
66478         * modules/utf8-ucs4: Update.
66479         * modules/utf8-ucs4-unsafe: Update.
66480         * modules/utf16-ucs4: Update.
66481         * modules/utf16-ucs4-unsafe: Update.
66482         * modules/ucs4-utf8: Update.
66483         * modules/ucs4-utf16: Update.
66484
66485 2007-03-24  Bruno Haible  <bruno@clisp.org>
66486
66487         * lib/utf8-ucs4.h: Remove file.
66488         * lib/utf8-ucs4-unsafe.h: Remove file.
66489         * lib/utf16-ucs4.h: Remove file.
66490         * lib/utf16-ucs4-unsafe.h: Remove file.
66491         * lib/ucs4-utf8.h: Remove file.
66492         * lib/ucs4-utf16.h: Remove file.
66493         * lib/unistr.h: Include their previous contents.
66494         * m4/utf-ucs4.m4: Remove file.
66495         * m4/ucs4-utf.m4: Remove file.
66496         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66497         (Depends-on): Add unistr/base.
66498         (configure.ac): Remove gl_UTF_UCS4.
66499         (Makefile.am): Update.
66500         (Include): Change to unistr.h.
66501         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66502         (Depends-on): Add unistr/base.
66503         (configure.ac): Remove gl_UTF_UCS4.
66504         (Makefile.am): Update.
66505         (Include): Change to unistr.h.
66506         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66507         (Depends-on): Add unistr/base.
66508         (configure.ac): Remove gl_UTF_UCS4.
66509         (Makefile.am): Update.
66510         (Include): Change to unistr.h.
66511         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66512         (Depends-on): Add unistr/base.
66513         (configure.ac): Remove gl_UTF_UCS4.
66514         (Makefile.am): Update.
66515         (Include): Change to unistr.h.
66516         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66517         (Depends-on): Add unistr/base.
66518         (configure.ac): Remove gl_UCS4_UTF.
66519         (Makefile.am): Update.
66520         (Include): Change to unistr.h.
66521         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66522         (Depends-on): Add unistr/base.
66523         (configure.ac): Remove gl_UCS4_UTF.
66524         (Makefile.am): Update.
66525         (Include): Change to unistr.h.
66526         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66527         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66528         utf8-ucs4-unsafe.h.
66529         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66530         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66531         utf16-ucs4-unsafe.h.
66532         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66533         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66534         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66535         * lib/unistr/u8-strchr.c: Likewise.
66536         * lib/unistr/u8-strrchr.c: Likewise.
66537         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66538         * lib/unistr/u16-strchr.c: Likewise.
66539         * lib/unistr/u16-strrchr.c: Likewise.
66540         * lib/striconveh.c: Update.
66541         * lib/linebreak.c: Update.
66542
66543 2007-03-24  Bruno Haible  <bruno@clisp.org>
66544
66545         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66546         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66547
66548 2007-03-22  Bruno Haible  <bruno@clisp.org>
66549
66550         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66551
66552 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66553
66554         * MODULES.html.sh (File system functions): New module write-any-file.
66555         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66556         * m4/write-any-file.m4: New files.
66557
66558 2007-03-23  Eric Blake  <ebb9@byu.net>
66559
66560         * gnulib-tool: Rearrange space-tab sequences, since some editors
66561         like to eat them.
66562
66563 2007-03-23  Eric Blake  <ebb9@byu.net>
66564
66565         * lib/version-etc.c (version_etc_va): Update license wording to
66566         be more concise.  Recommended by Richard Stallman.
66567
66568 2007-03-22  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/poll.c (MSG_PEEK): New fallback definition.
66571
66572 2007-03-22  Bruno Haible  <bruno@clisp.org>
66573
66574         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66575         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66576         (main): Update.
66577         Fixes a compilation error on BeOS.
66578
66579 2007-03-22  Bruno Haible  <bruno@clisp.org>
66580
66581         * modules/frexpl-tests: New file.
66582         * tests/test-frexpl.c: New file.
66583
66584         * modules/frexpl: New file.
66585         * m4/frexpl.m4: New file.
66586         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66587         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66589         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66590         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66591         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66592
66593 2007-03-22  Bruno Haible  <bruno@clisp.org>
66594
66595         * lib/frexpl.c: Share code with lib/frexp.c.
66596         * modules/mathl (Files): Add lib/frexp.c.
66597         (Depends-on): Add isnanl-nolibm.
66598
66599 2007-03-22  Bruno Haible  <bruno@clisp.org>
66600
66601         * modules/printf-frexp (Files): Add m4/frexp.m4.
66602         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66603         only if the found frexp function actually works.
66604
66605 2007-03-22  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/frexp.c: Remove older implementation that uses divisions.
66608
66609 2007-03-21  Bruno Haible  <bruno@clisp.org>
66610
66611         * modules/frexp-tests: New file.
66612         * tests/test-frexp.c: New file.
66613
66614         * modules/frexp: New file.
66615         * lib/frexp.c: New file.
66616         * m4/frexp.m4: New file.
66617         * lib/math_.h (frexp): New declaration.
66618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66619         REPLACE_FREXP.
66620         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66621
66622 2007-03-21  Bruno Haible  <bruno@clisp.org>
66623
66624         * modules/isnanl-tests: New file.
66625         * tests/test-isnanl.c: New file.
66626
66627         * modules/isnanl: New file.
66628         * lib/isnanl.h: New file.
66629         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66630         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66631         gl_FUNC_ISNANL_WORKS.
66632         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66633         New macros.
66634
66635 2007-03-21  Bruno Haible  <bruno@clisp.org>
66636
66637         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66638         lib/isnanl.h.
66639         (Include): Update.
66640         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66641         * lib/vasnprintf.c: Update.
66642         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66643         tests/test-isnanl.h, remove tests/test-isnanl.c.
66644         (Makefile.am): Update.
66645         * tests/test-isnanl-nolibm.c: New file.
66646         * tests/test-isnanl.h: New file.
66647         * tests/test-isnanl.c: Remove file.
66648
66649 2007-03-21  Jim Meyering  <jim@meyering.net>
66650
66651         When trying to open ".", treat ESTALE like EACCES.
66652         * lib/savewd.c (savewd_save): Resort to forking not just upon
66653         failure with EACCES, but also when errno is ESTALE.
66654
66655 2007-03-20  Bruno Haible  <bruno@clisp.org>
66656
66657         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66658         Needed on AIX 5.1. Reported by Matthew Woehlke.
66659
66660 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66661
66662         Suggestions by Bruno Haible:
66663         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66664         our own.
66665         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66666         * modules/acl (Depends-on): Add gettext.
66667
66668 2007-03-19  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/iconvme: Remove file.
66671         * lib/iconvme.h: Remove file.
66672         * lib/iconvme.c: Remove file.
66673         * m4/iconvme.m4: Remove file.
66674
66675 2007-03-19  Bruno Haible  <bruno@clisp.org>
66676
66677         * doc/relocatable-maint.texi: Break long shell script line.
66678         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66679
66680 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66683         handle file_has_acl.
66684         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66685         * lib/acl.c: Move header inclusions and related macro defns into
66686         lib/acl-internal.h.
66687         (S_ISLNK): Remove defn, since that's now done for us.
66688         (file_has_acl): Move to lib/file-has-acl.c.
66689         Call acl_trivial if available.  This is the crucial part of the fix.
66690         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66691         shared within the library.  Rewrite a bit, partly to make it compatible
66692         with the GNU coding style.
66693         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66694         Remove unnecessary double-quotes.
66695         Don't test for acl_to_text; the build will catch that.
66696         Replace acl_entries if it doesn't exist and it is needed.
66697         Check for -lsec and acl_trivial (as used on Solaris 10).
66698         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66699         lib/file-has-acl.c.
66700         (Depends-on): Add sys_stat, for S_ISLNK.
66701
66702 2007-03-19  Ben Pfaff  <blp@gnu.org>
66703
66704         * doc/gnulib.texi: Fix typos.
66705         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66706
66707 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66710         If size is zero here, buf must be zero.
66711
66712 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66713
66714         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66715         <bruno@clisp.org>.
66716
66717 2007-03-18  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66720         Suggested by Eric Blake.
66721
66722 2007-03-18  Ben Pfaff  <blp@gnu.org>
66723
66724         * doc/relocatable.texi: Recommend using as prefix a directory
66725         that does not exist and will never be created.  Based on
66726         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66727         and others.
66728
66729 2007-03-17  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/fchownat.c: Include lchown.h.
66732
66733 2007-03-17  Bruno Haible  <bruno@clisp.org>
66734
66735         Fix endless loop when the given allocated size was > INT_MAX.
66736         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66737         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66738         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66739         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66740         * lib/sprintf.c (sprintf): Likewise.
66741
66742 2007-03-17  Bruno Haible  <bruno@clisp.org>
66743
66744         * tests/test-argp-2.sh (func_compare): Output a context diff.
66745
66746 2007-03-17  Bruno Haible  <bruno@clisp.org>
66747
66748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66749         locale's decimal-point character.
66750
66751 2007-03-17  Bruno Haible  <bruno@clisp.org>
66752
66753         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66754         before comparing it. Needed because on some platforms (e.g. x86) a
66755         'long double' occupies less bytes than sizeof (long double).
66756
66757 2007-03-17  Bruno Haible  <bruno@clisp.org>
66758
66759         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66760         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66761         * tests/test-getaddrinfo.c (simple): Likewise.
66762         * tests/test-read-file.c (main): Likewise.
66763
66764 2007-03-17  Bruno Haible  <bruno@clisp.org>
66765
66766         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66767
66768 2007-03-17  Bruno Haible  <bruno@clisp.org>
66769
66770         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66771         unused variable.
66772
66773 2007-03-17  Bruno Haible  <bruno@clisp.org>
66774
66775         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66776         * tests/test-c-strncasecmp.c: Likewise.
66777
66778 2007-03-17  Bruno Haible  <bruno@clisp.org>
66779
66780         * modules/stdlib (Depends-on): Add unistd.
66781         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66782         Needed for MacOS X 10.3.
66783
66784 2007-03-17  Bruno Haible  <bruno@clisp.org>
66785
66786         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66787
66788 2007-03-17  Bruno Haible  <bruno@clisp.org>
66789
66790         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66791
66792 2007-03-17  Bruno Haible  <bruno@clisp.org>
66793
66794         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66795         to reflect files copied from gnulib (with or without modifications).
66796         Suggested by Jim Meyering.
66797
66798 2007-03-17  Eric Blake  <ebb9@byu.net>
66799
66800         * NEWS: Document stdlib change from 2007-02-18.
66801
66802 2007-03-17  Jim Meyering  <jim@meyering.net>
66803
66804         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66805         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66806         someone uses a name containing shell meta-characters.
66807         Reported by Alfred M. Szmidt.
66808
66809         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66810
66811 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66812
66813         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66814         and copy gettext configuration files only if configure.ac contains
66815         a use of AM_GNU_GETTEXT_VERSION.
66816
66817 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66818
66819         * build-aux/bootstrap (gnulib_name): New variable.
66820         (gnulib_tool_options): Use it.
66821
66822 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66823
66824         * tests/test-des.c: Use new namespace.
66825
66826 2007-03-15  Bruno Haible  <bruno@clisp.org>
66827
66828         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66829         Reported by James Youngman <jay@gnu.org>.
66830
66831 2007-03-15  Bruno Haible  <bruno@clisp.org>
66832
66833         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66834         declared prototype. Needed with cc on OSF/1 5.1.
66835
66836 2007-03-15  Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66839         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66840         (struct gl_list_implementation): Add dispose_fn argument to the
66841         'create_empty', 'create' methods.
66842         (struct gl_list_impl_base): Add field 'dispose_fn'.
66843         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66844         argument.
66845         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66846         dispose_fn argument.
66847         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66848         dispose_fn on the dropped values.
66849         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66850         dispose_fn argument.
66851         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66852         dropped values.
66853         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66854         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66855         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66856         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66857         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66858         argument.
66859         (gl_tree_list_free): Call dispose_fn on the dropped values.
66860         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66861         the dropped values.
66862         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66863         Add dispose_fn argument.
66864         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66865         Call dispose_fn on the dropped values.
66866         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66867         Add dispose_fn argument.
66868         (gl_sublist_create): Initialize the 'dispose_fn' field.
66869         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66870         * tests/test-array_list.c (main): Update.
66871         * tests/test-carray_list.c (main): Update.
66872         * tests/test-avltree_list.c (main): Update.
66873         * tests/test-rbtree_list.c (main): Update.
66874         * tests/test-avltreehash_list.c (main): Update.
66875         * tests/test-rbtreehash_list.c (main): Update.
66876         * tests/test-linked_list.c (main): Update.
66877         * tests/test-linkedhash_list.c (main): Update.
66878         * tests/test-array_oset.c (main): Update.
66879
66880 2007-03-15  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66883         (gl_oset_create_empty): Add dispose_fn argument.
66884         (struct gl_oset_implementation): Add dispose_fn argument to
66885         'create_empty' method.
66886         (struct gl_oset_impl_base): Add dispose_fn field.
66887         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66888         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66889         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66890         values.
66891         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66892         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66893         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66894         dropped value.
66895         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66896         dropped value.
66897         * tests/test-array_oset.c (main): Update.
66898         * tests/test-avltree_oset.c (main): Update.
66899         * tests/test-rbtree_oset.c (main): Update.
66900         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66901
66902 2007-03-13  Bruno Haible  <bruno@clisp.org>
66903
66904         * tests/test-stdbool.c (i): Update after last patch.
66905
66906 2007-03-12  Bruno Haible  <bruno@clisp.org>
66907
66908         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66909         the iswprint macro. Needed on Solaris 2.5.1.
66910
66911 2007-03-12  Bruno Haible  <bruno@clisp.org>
66912
66913         * tests/test-printf-frexp.c (main): Declare x as volatile.
66914
66915 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66916
66917         * doc/gnulib.texi (Build robot for gnulib): New section.
66918
66919 2007-03-12  Jim Meyering  <jim@meyering.net>
66920
66921         * build-aux/bootstrap: New file.
66922         * build-aux/bootstrap.conf: New file, from coreutils.
66923
66924 2007-03-11  Bruno Haible  <bruno@clisp.org>
66925
66926         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66927
66928 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66929
66930         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66931         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66932         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66933
66934 2007-03-11  Bruno Haible  <bruno@clisp.org>
66935
66936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66937         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66938
66939 2007-03-11  Bruno Haible  <bruno@clisp.org>
66940
66941         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66942         formula. Needed for SunPRO C 5.0.
66943
66944 2007-03-11  Bruno Haible  <bruno@clisp.org>
66945
66946         * modules/long-options (Depends-on): Add getopt.
66947
66948 2007-03-11  Bruno Haible  <bruno@clisp.org>
66949
66950         * modules/modechange (Depends-on): Add stdbool.
66951
66952 2007-03-11  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/i-ring (Depends-on): Add stdbool.
66955
66956 2007-03-11  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/gc-des (Depends-on): Add stdbool.
66959
66960 2007-03-11  Bruno Haible  <bruno@clisp.org>
66961
66962         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66963
66964 2007-03-11  Bruno Haible  <bruno@clisp.org>
66965
66966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66967
66968 2007-03-11  Bruno Haible  <bruno@clisp.org>
66969
66970         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66971
66972 2007-03-11  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/vasnprintf.c (sprintf): Undefine.
66975
66976 2007-03-11  Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66979         initializers in SunPRO C and Compaq C compilers.
66980
66981 2007-03-11  Bruno Haible  <bruno@clisp.org>
66982
66983         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66984         decrementing code ANSI C compliant.
66985
66986 2007-03-11  Bruno Haible  <bruno@clisp.org>
66987
66988         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66989         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66990
66991 2007-03-11  Bruno Haible  <bruno@clisp.org>
66992
66993         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66994         <stdbool.h> substitute doesn't pass.
66995
66996 2007-03-11  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66999
67000 2007-03-11  Bruno Haible  <bruno@clisp.org>
67001
67002         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67003         script, for submission to autobuild.josefsson.org.
67004
67005 2007-03-10  Bruno Haible  <bruno@clisp.org>
67006
67007         * modules/canonicalize-lgpl-tests: New file.
67008         * tests/test-canonicalize-lgpl.sh: New file.
67009         * tests/test-canonicalize-lgpl.c: New file.
67010
67011         * modules/c-strcase-tests: New file.
67012         * tests/test-c-strcase.sh: New file.
67013         * tests/test-c-strcasecmp.c: New file.
67014         * tests/test-c-strncasecmp.c: New file.
67015
67016         * modules/atexit-tests: New file.
67017         * tests/test-atexit.sh: New file.
67018         * tests/test-atexit.c: New file.
67019
67020 2007-03-10  Bruno Haible  <bruno@clisp.org>
67021
67022         * tests/test-binary-io.sh: Use temporary filenames that are not so
67023         likely to clash with those of other tests (in a parallel make).
67024         * tests/test-binary-io.c: Likewise.
67025
67026 2007-03-10  Bruno Haible  <bruno@clisp.org>
67027
67028         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67029         fallback; use #error instead.
67030         Suggested by Simon Josefsson.
67031
67032 2007-03-10  Bruno Haible  <bruno@clisp.org>
67033
67034         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67035         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67036         first and the last.
67037
67038 2007-03-10  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67041
67042 2007-03-10  Bruno Haible  <bruno@clisp.org>
67043
67044         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67045         "make distcheck".
67046         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67047         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67048         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67049
67050 2007-03-10  Bruno Haible  <bruno@clisp.org>
67051
67052         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67053         variable.
67054         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67055         variable.
67056
67057 2007-03-09  Eric Blake  <ebb9@byu.net>
67058         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67059
67060         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67061         types are not being provided by gnulib.
67062         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67063         types are supported.
67064
67065 2007-03-10  Bruno Haible  <bruno@clisp.org>
67066
67067         * lib/stdio_.h (__attribute__): New macro.
67068         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67069         vsprintf): Specify __attribute__ __format__ for GCC.
67070         Suggested by Eric Blake.
67071
67072 2007-03-09  Bruno Haible  <bruno@clisp.org>
67073
67074         * modules/printf-posix-tests: New file.
67075         * tests/test-printf-posix.sh: New file.
67076         * tests/test-printf-posix.c: New file.
67077
67078         * modules/printf-posix: New file.
67079         * lib/printf.c: New file.
67080         * m4/printf-posix-rpl.m4: New file.
67081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67082         REPLACE_PRINTF.
67083         * lib/stdio_.h (printf): New declaration.
67084         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67085         ____strfmon____): New macros.
67086         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67087         REPLACE_PRINTF.
67088
67089 2007-03-09  Bruno Haible  <bruno@clisp.org>
67090
67091         * tests/test-vasnprintf-posix2.sh: New file.
67092         * tests/test-vasnprintf-posix2.c: New file.
67093         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67094         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67095         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67096
67097         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67098         a locale dependent decimal point, rather than always '.'.
67099
67100 2007-03-09  Eric Blake  <ebb9@byu.net>
67101
67102         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67103         spite of platforms like Tandem/NSK that define it to -1.
67104
67105 2007-03-08  Bruno Haible  <bruno@clisp.org>
67106
67107         * modules/vprintf-posix-tests: New file.
67108         * tests/test-vprintf-posix.sh: New file.
67109         * tests/test-vprintf-posix.c: New file.
67110         * tests/test-printf-posix.h: New file.
67111
67112         * modules/vprintf-posix: New file.
67113         * lib/vprintf.c: New file.
67114         * m4/vprintf-posix.m4: New file.
67115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67116         REPLACE_VPRINTF.
67117         * lib/stdio_.h (vprintf): New declaration.
67118         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67119         REPLACE_VPRINTF.
67120
67121 2007-03-08  Bruno Haible  <bruno@clisp.org>
67122
67123         * modules/fprintf-posix-tests: New file.
67124         * tests/test-fprintf-posix.sh: New file.
67125         * tests/test-fprintf-posix.c: New file.
67126
67127         * modules/fprintf-posix: New file.
67128         * lib/fprintf.c: New file.
67129         * m4/fprintf-posix.m4: New file.
67130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67131         REPLACE_FPRINTF.
67132         * lib/stdio_.h (fprintf): New declaration.
67133         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67134         REPLACE_FPRINTF.
67135
67136 2007-03-08  Bruno Haible  <bruno@clisp.org>
67137
67138         * modules/vfprintf-posix-tests: New file.
67139         * tests/test-vfprintf-posix.sh: New file.
67140         * tests/test-vfprintf-posix.c: New file.
67141         * tests/test-fprintf-posix.h: New file.
67142         * tests/test-fprintf-posix.out: New file.
67143
67144         * modules/vfprintf-posix: New file.
67145         * lib/vfprintf.c: New file.
67146         * m4/vfprintf-posix.m4: New file.
67147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67148         REPLACE_VFPRINTF.
67149         * lib/stdio_.h (vfprintf): New declaration.
67150         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67151         REPLACE_VFPRINTF.
67152
67153 2007-03-08  Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67156
67157 2007-03-08  Bruno Haible  <bruno@clisp.org>
67158
67159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67160         instead of 'expr' invocations.
67161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67166         Suggested by Paul Eggert.
67167
67168 2007-03-08  Bruno Haible  <bruno@clisp.org>
67169
67170         * modules/fseterr-tests: New file.
67171         * tests/test-fseterr.c: New file.
67172
67173         * modules/fseterr: New file.
67174         * lib/fseterr.h: New file.
67175         * lib/fseterr.c: New file.
67176
67177 2007-03-08  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67180         * lib/getopt_.h: Likewise.
67181         * lib/mbswidth.h: Likewise.
67182         * lib/setenv.h: Likewise.
67183         * lib/vasnprintf.h: Likewise.
67184         * lib/vasprintf.h: Likewise.
67185         * lib/verror.h: Likewise.
67186         * lib/xsetenv.h: Likewise.
67187         * lib/xvasprintf.h: Likewise.
67188
67189 2007-03-08  Jim Meyering  <jim@meyering.net>
67190
67191         * users.txt: Add parted.
67192
67193         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67194
67195 2007-03-07  Bruno Haible  <bruno@clisp.org>
67196
67197         * m4/printf.m4: Make the shell script snippets copy&pastable.
67198
67199 2007-03-02  Bruno Haible  <bruno@clisp.org>
67200
67201         * lib/netinet_in_.h: New file.
67202         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67203         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67204         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67205         (Depends-on): Add absolute-header.
67206         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67207         into netinet/in.h.
67208
67209 2007-03-03  Bruno Haible  <bruno@clisp.org>
67210
67211         * lib/sys_select_.h: New file.
67212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67213         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67214         * modules/sys_select (Files): Add lib/sys_select_.h.
67215         (Depends-on): Add absolute-header.
67216         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67217         into sys/select.h.
67218
67219 2007-03-02  Bruno Haible  <bruno@clisp.org>
67220
67221         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67222         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67223         values.
67224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67225         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67226         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67227         * modules/sys_socket (Depends-on): Add absolute-header.
67228         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67229         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67230         (Include): Remove requirement of inclusion of <sys/types.h>.
67231
67232 2007-03-02  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/byteswap_.h (bswap_32): Fix formula.
67235
67236 2007-03-06  Bruno Haible  <bruno@clisp.org>
67237
67238         * modules/sprintf-posix-tests: New file.
67239         * tests/test-sprintf-posix.c: New file.
67240
67241         * modules/sprintf-posix: New file.
67242         * lib/sprintf.c: New file.
67243         * m4/sprintf-posix.m4: New file.
67244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67245         REPLACE_SPRINTF.
67246         * lib/stdio_.h (sprintf): New declaration.
67247         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67248         REPLACE_SPRINTF.
67249
67250 2007-03-06  Bruno Haible  <bruno@clisp.org>
67251
67252         * modules/vsprintf-posix-tests: New file.
67253         * tests/test-vsprintf-posix.c: New file.
67254         * tests/test-sprintf-posix.h: New file.
67255
67256         * modules/vsprintf-posix: New file.
67257         * lib/vsprintf.c: New file.
67258         * m4/vsprintf-posix.m4: New file.
67259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67260         REPLACE_VSPRINTF.
67261         * lib/stdio_.h (vsprintf): New declaration.
67262         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67263         REPLACE_VSPRINTF.
67264
67265 2007-03-06  Bruno Haible  <bruno@clisp.org>
67266
67267         * modules/vsnprintf (Depend-on): Remove minmax.
67268
67269 2007-03-06  Bruno Haible  <bruno@clisp.org>
67270
67271         * modules/snprintf-posix-tests: New file.
67272         * tests/test-snprintf-posix.c: New file.
67273
67274         * modules/snprintf-posix: New file.
67275         * m4/snprintf-posix.m4: New file.
67276         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67277         gl_FUNC_SNPRINTF.
67278         (gl_FUNC_SNPRINTF): Invoke it.
67279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67280         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67281         is set.
67282         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67283
67284 2007-03-06  Bruno Haible  <bruno@clisp.org>
67285
67286         * modules/vsnprintf-posix-tests: New file.
67287         * tests/test-vsnprintf-posix.c: New file.
67288         * tests/test-snprintf-posix.h: New file.
67289
67290         * modules/vsnprintf-posix: New file.
67291         * m4/vsnprintf-posix.m4: New file.
67292         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67293         gl_FUNC_VSNPRINTF.
67294         (gl_FUNC_VSNPRINTF): Invoke it.
67295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67296         * lib/stdio_.h (vsnprintf): Define as a replacement if
67297         REPLACE_VSNPRINTF is set.
67298         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67299
67300 2007-03-06  Bruno Haible  <bruno@clisp.org>
67301
67302         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67304
67305 2007-03-06  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67308         (asinl): Declare also if HAVE_DECL_ASINL is set.
67309         (atanl): Declare also if HAVE_DECL_ATANL is set.
67310         (ceill): Declare also if HAVE_DECL_CEILL is set.
67311         (cosl): Declare also if HAVE_DECL_COSL is set.
67312         (expl): Declare also if HAVE_DECL_EXPL is set.
67313         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67314         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67315         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67316         (logl): Declare also if HAVE_DECL_LOGL is set.
67317         (sinl): Declare also if HAVE_DECL_SINL is set.
67318         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67319         (tanl): Declare also if HAVE_DECL_TANL is set.
67320         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67322         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67323         declaration of frexpl, ldexpl.
67324         * modules/printf-frexpl (Depends-on): Add math.
67325         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67326
67327 2007-03-05  Bruno Haible  <bruno@clisp.org>
67328
67329         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67330         frexpl and ldexpl are declared.
67331         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67332
67333 2007-03-05  Bruno Haible  <bruno@clisp.org>
67334
67335         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67336         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67337
67338 2007-03-05  Bruno Haible  <bruno@clisp.org>
67339
67340         * lib/stdio_.h: Include <stddef.h>.
67341
67342 2007-03-05  Bruno Haible  <bruno@clisp.org>
67343
67344         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67345
67346 2007-03-05  Bruno Haible  <bruno@clisp.org>
67347
67348         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67349         NetBSD 4, from Ralf Wildenhues.
67350
67351 2007-03-04  Bruno Haible  <bruno@clisp.org>
67352
67353         * lib/vasprintf.h: Update #if logic for the case when the functions
67354         exist but are overridden.
67355
67356 2007-03-04  Bruno Haible  <bruno@clisp.org>
67357
67358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67359         implementations: glibc-2.4 and MacOS X 10.3.
67360         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67361         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67362         * tests/test-vasprintf-posix.c (test_function): Likewise.
67363
67364 2007-03-04  Bruno Haible  <bruno@clisp.org>
67365
67366         * modules/vasprintf-posix-tests: New file.
67367         * tests/test-vasprintf-posix.c: New file.
67368
67369         * modules/vasprintf-posix: New file.
67370         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67371         defined.
67372         * m4/vasprintf-posix.m4: New file.
67373         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67374         gl_FUNC_VASPRINTF.
67375         (gl_FUNC_VASPRINTF): Invoke it.
67376         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67377         here.
67378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67379
67380 2007-03-04  Bruno Haible  <bruno@clisp.org>
67381
67382         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67383         REPLACE_GETTIMEOFDAY.
67384         * modules/sys_time (Makefile.am): Likewise.
67385         * m4/sys_time_h.m4: Likewise.
67386         * m4/gettimeofday.m4: Likewise.
67387
67388 2007-03-04  Bruno Haible  <bruno@clisp.org>
67389
67390         * modules/vasnprintf-posix-tests: New file.
67391         * tests/test-vasnprintf-posix.c: New file.
67392
67393         * modules/vasnprintf-posix: New file.
67394         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67395         printf-frexpl.h.
67396         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67397         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67398         REPLACE_VASNPRINTF is defined.
67399         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67400         gl_FUNC_VASNPRINTF.
67401         (gl_FUNC_VASNPRINTF): Invoke it.
67402         * m4/vasnprintf-posix.m4: New file.
67403         * m4/printf.m4: New file.
67404
67405 2007-03-04  Bruno Haible  <bruno@clisp.org>
67406
67407         Compile progreloc.c only if --enable-relocatable is specified.
67408         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67409         if --enable-relocatable was specified.
67410         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67411         lib_SOURCES.
67412
67413 2007-03-04  Jim Meyering  <jim@meyering.net>
67414
67415         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67416         Use it consistently, rather than enumerating errno constants.
67417
67418 2007-03-04  Bruno Haible  <bruno@clisp.org>
67419
67420         * modules/xvasprintf-tests: New file.
67421         * tests/test-xvasprintf.c: New file.
67422
67423         * modules/vasprintf-tests: New file.
67424         * tests/test-vasprintf.c: New file.
67425
67426         * modules/vasnprintf-tests: New file.
67427         * tests/test-vasnprintf.c: New file.
67428
67429         * modules/vsnprintf-tests: New file.
67430         * tests/test-vsnprintf.c: New file.
67431
67432         * modules/snprintf-tests: New file.
67433         * tests/test-snprintf.c: New file.
67434
67435 2007-03-04  Bruno Haible  <bruno@clisp.org>
67436
67437         Compile relocatable.c only if --enable-relocatable is specified.
67438         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67439         gl_RELOCATABLE_LIBRARY.
67440         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67441         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67442         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67443         gl_RELOCATABLE_LIBRARY.
67444         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67445         (Makefile.am): Remove lib_SOURCES.
67446         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67447         gl_RELOCATABLE_LIBRARY.
67448         (Makefile.am): Remove lib_SOURCES.
67449         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67450         always.
67451         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67452         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67453
67454 2007-03-04  Bruno Haible  <bruno@clisp.org>
67455
67456         * modules/argmatch-tests: New file.
67457         * tests/test-argmatch.c: New file.
67458
67459         * tests/test-allocsa.c (main): Halve the number of loop runs.
67460
67461         * modules/alloca-opt-tests: New file.
67462         * tests/test-alloca-opt.c: New file.
67463
67464 2007-03-04  Jim Meyering  <jim@meyering.net>
67465
67466         Work around difference between Linux ACLs and Solaris 10 ZFS.
67467         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67468         for EINVAL.
67469
67470 2007-03-03  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/relocatable-prog (Depends-on): Add back progreloc's
67473         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67474
67475 2007-03-03  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67478         * modules/relocatable-lib: New file.
67479
67480 2007-03-03  Bruno Haible  <bruno@clisp.org>
67481
67482         * modules/relocatable-prog: Renamed from modules/relocatable.
67483         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67484
67485 2007-03-03  Bruno Haible  <bruno@clisp.org>
67486
67487         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67488         m4/relocatable-lib.m4.
67489         (Depends-on): Remove 'relocatable'.
67490         (configure.ac): Add gl_RELOCATABLE_NOP.
67491
67492 2007-03-03  Bruno Haible  <bruno@clisp.org>
67493
67494         * modules/relocatable-prog-wrapper: New file.
67495         * modules/relocatable (Depends-on): Add it. Remove all other
67496         dependencies except progname.
67497         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67498
67499         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67500         (gl_FUNC_STRERROR): Nop.
67501         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67502
67503         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67504         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67505
67506         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67507         (gl_FUNC_READLINK): Update.
67508
67509         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67510
67511 2007-03-03  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67514         * modules/xreadlink (Depends-on): Add unistd.
67515         * modules/xreadlink-with-size (Depends-on): Likewise.
67516
67517 2007-03-03  Bruno Haible  <bruno@clisp.org>
67518
67519         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67520         extracted from gt_FUNC_SETENV.
67521         (gt_FUNC_SETENV): Remove macro.
67522         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67523         remove gt_FUNC_SETENV.
67524
67525 2007-03-03  Bruno Haible  <bruno@clisp.org>
67526
67527         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67528         ENABLE_RELOCATABLE here.
67529         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67530
67531 2007-03-03  Bruno Haible  <bruno@clisp.org>
67532
67533         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67534         * tests/test-rbtreehash_list.c: Include progname.h.
67535         (main): Call set_program_name.
67536
67537         * modules/rbtree-oset-tests (Depends-on): Add progname.
67538         * tests/test-rbtree_oset.c: Include progname.h.
67539         (main): Call set_program_name.
67540
67541         * modules/rbtree-list-tests (Depends-on): Add progname.
67542         * tests/test-rbtree_list.c: Include progname.h.
67543         (main): Call set_program_name.
67544
67545         * modules/linked-list-tests (Depends-on): Add progname.
67546         * tests/test-linked_list.c: Include progname.h.
67547         (main): Call set_program_name.
67548
67549 2007-03-03  Bruno Haible  <bruno@clisp.org>
67550
67551         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67552         All uses of __restrict changed to _Restrict_.
67553         * lib/glob_.h (__restrict): Remove macro.
67554
67555 2007-03-02  Bruno Haible  <bruno@clisp.org>
67556
67557         * modules/gettext (configure.ac): Require gettext infrastructure
67558         from version 0.16.1.
67559
67560 2007-03-02  Bruno Haible  <bruno@clisp.org>
67561
67562         * modules/linkedhash-list-tests (Depends-on): Add progname.
67563         * tests/test-linkedhash_list.c: Include progname.h.
67564         (main): Call set_program_name.
67565
67566         * modules/carray-list-tests (Depends-on): Add progname.
67567         * tests/test-carray_list.c: Include progname.h.
67568         (main): Call set_program_name.
67569
67570         * modules/avltreehash-list-tests (Depends-on): Add progname.
67571         * tests/test-avltreehash_list.c: Include progname.h.
67572         (main): Call set_program_name.
67573
67574         * modules/avltree-oset-tests (Depends-on): Add progname.
67575         * tests/test-avltree_oset.c: Include progname.h.
67576         (main): Call set_program_name.
67577
67578         * modules/avltree-list-tests (Depends-on): Add progname.
67579         * tests/test-avltree_list.c: Include progname.h.
67580         (main): Call set_program_name.
67581
67582         * modules/array-oset-tests (Depends-on): Add progname.
67583         * tests/test-array_oset.c: Include progname.h.
67584         (main): Call set_program_name.
67585
67586         * modules/array-list-tests (Depends-on): Add progname.
67587         * tests/test-array_list.c: Include progname.h.
67588         (main): Call set_program_name.
67589
67590         * modules/argp-tests (Depends-on): Add progname.
67591         * tests/test-argp.c: Include argp.h first. Include progname.h.
67592         (main): Call set_program_name.
67593
67594 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67595
67596         * doc/gnulib-tool.texi (Initial import): Reword description of
67597         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67598         limited effect even if defined after the first system include.
67599
67600 2007-03-01  Bruno Haible  <bruno@clisp.org>
67601
67602         * build-aux/config.libpath: Update to libtool-1.5.22.
67603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67604
67605 2007-03-01  Bruno Haible  <bruno@clisp.org>
67606
67607         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67608         foo_CFLAGS.
67609         Reported by Ralf Wildenhues.
67610
67611 2007-03-01  Bruno Haible  <bruno@clisp.org>
67612
67613         * build-aux/install-reloc: Remove object files left over by some
67614         compilers.
67615         Reported by Ralf Wildenhues.
67616
67617 2007-03-01  Bruno Haible  <bruno@clisp.org>
67618
67619         * build-aux/install-reloc: Break long lines.
67620
67621 2007-03-01  Bruno Haible  <bruno@clisp.org>
67622
67623         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67624         Reported by Ralf Wildenhues.
67625
67626 2007-03-01  Bruno Haible  <bruno@clisp.org>
67627
67628         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67629         include ordering constraints.
67630
67631 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67632
67633         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67635         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67636         as another example.
67637         * lib/time_.h: Fix misspelling.
67638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67639         Require gl_HEADER_TIME_H_DEFAULTS.
67640         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67641         * m4/time_r.m4 (gl_TIME_R): Likewise.
67642         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67643
67644 2007-03-01  Bruno Haible  <bruno@clisp.org>
67645
67646         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67647         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67648
67649 2007-03-01  Jim Meyering  <jim@meyering.net>
67650
67651         * modules/xreadlink (Maintainer): Add my name.
67652         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67653
67654 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67655             Bruno Haible  <bruno@clisp.org>
67656
67657         * build-aux/install-reloc: Compile also c-ctype.c.
67658         * build-aux/relocatable.sh.in: New file.
67659         * doc/relocatable.texi: New file.
67660         * doc/relocatable-maint.texi: New file.
67661         * doc/gnulib.texi: Include relocatable-maint.texi.
67662         * lib/progreloc.c: Include unistd.h unconditionally.
67663         * lib/relocwrapper.c: Include unistd.h unconditionally.
67664         Include c-ctype.h.
67665         (add_dotbin): Use c_tolower.
67666         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67667         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67668         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67669         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67670         to m4/relocatable-lib.m4.
67671         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67672         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67673         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67674         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67675         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67676         * modules/relocatable: New file.
67677         * modules/relocatable-lib: New file.
67678         * modules/relocatable-script: New file.
67679
67680 2007-02-28  Bruno Haible  <bruno@clisp.org>
67681
67682         Import --enable-relocatable infrastructure.
67683         * build-aux/config.libpath: New file, from GNU gettext.
67684         * build-aux/install-reloc: New file, from GNU gettext.
67685         * build-aux/reloc-ldflags: New file, from GNU gettext.
67686         * lib/relocatable.h: New file, from GNU gettext.
67687         * lib/relocatable.c: New file, from GNU gettext.
67688         * lib/relocwrapper.c: New file, from GNU gettext.
67689         * m4/relocatable.m4: New file, from GNU gettext.
67690
67691 2007-02-28  Bruno Haible  <bruno@clisp.org>
67692
67693         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67694
67695         * modules/xreadlink: New file, from GNU gettext with modifications.
67696         * lib/xreadlink.c: New file, from GNU gettext.
67697         * lib/xreadlink.h: Add comments.
67698         (xreadlink): New declaration.
67699
67700         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67701         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67702         lib/xreadlink-with-size.c.
67703         (configure.ac): Remove gl_XREADLINK invocation.
67704         (Makefile.am): Augment lib_SOURCES.
67705         * m4/xreadlink.m4: Remove file.
67706         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67707         (xreadlink_with_size): Renamed from xreadink.
67708         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67709         * modules/canonicalize (Depends-on): Replace xreadlink with
67710         xreadlink-with-size.
67711         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67712
67713 2007-02-25  Jim Meyering  <jim@meyering.net>
67714
67715         * build-aux/announce-gen: When complaining about excess arguments,
67716         list them.
67717
67718 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67719
67720         * README: Document signed integer overflow situation more
67721         accurately.
67722
67723 2007-02-25  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67726         'a' or 'A' conversion.
67727
67728 2007-02-25  Bruno Haible  <bruno@clisp.org>
67729
67730         * modules/filename: Renamed from modules/pathname.
67731         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67732         lib/concatpath.c with lib/concat-filename.c.
67733         (Makefile.am): Update.
67734         (Include): Replace pathname.h with filename.h.
67735         * lib/filename.h: Renamed from lib/pathname.h.
67736         (concatenated_filename): Renamed from concatenated_pathname.
67737         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67738         (concatenated_filename): Renamed from concatenated_pathname.
67739         * lib/findprog.c: Include filename.h instead of pathname.h.
67740         (find_in_path): Update.
67741         * lib/javacomp.c: Include filename.h instead of pathname.h.
67742         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67743         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67744         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67745         is_oldgcj_14_13_usable, is_javac_usable): Update.
67746         * lib/javaexec.c: Include filename.h instead of pathname.h.
67747         (execute_java_class): Update.
67748         * modules/findprog: Update.
67749         * modules/javacomp: Update.
67750         * modules/javaexec: Update.
67751         * MODULES.html.sh (File system functions): Add 'filename', remove
67752         'pathname'.
67753
67754 2007-02-25  Bruno Haible  <bruno@clisp.org>
67755
67756         * modules/printf-frexpl-tests: New file.
67757         * tests/test-printf-frexpl.c: New file.
67758
67759         * modules/printf-frexpl: New file.
67760         * lib/printf-frexpl.h: New file.
67761         * lib/printf-frexpl.c: New file.
67762         * m4/printf-frexpl.m4: New file.
67763
67764 2007-02-25  Bruno Haible  <bruno@clisp.org>
67765
67766         * modules/printf-frexp-tests: New file.
67767         * tests/test-printf-frexp.c: New file.
67768
67769         * modules/printf-frexp: New file.
67770         * lib/printf-frexp.h: New file.
67771         * lib/printf-frexp.c: New file.
67772         * m4/printf-frexp.m4: New file.
67773
67774 2007-02-25  Bruno Haible  <bruno@clisp.org>
67775
67776         Assume automake >= 1.10 for the tests.
67777         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67778         * modules/arctwo-tests: Likewise.
67779         * modules/argp-tests: Likewise.
67780         * modules/avltree-list-tests: Likewise.
67781         * modules/avltree-oset-tests: Likewise.
67782         * modules/avltreehash-list-tests: Likewise.
67783         * modules/carray-list-tests: Likewise.
67784         * modules/crc-tests: Likewise.
67785         * modules/des-tests: Likewise.
67786         * modules/gc-arcfour-tests: Likewise.
67787         * modules/gc-arctwo-tests: Likewise.
67788         * modules/gc-des-tests: Likewise.
67789         * modules/gc-hmac-md5-tests: Likewise.
67790         * modules/gc-hmac-sha1-tests: Likewise.
67791         * modules/gc-md2-tests: Likewise.
67792         * modules/gc-md4-tests: Likewise.
67793         * modules/gc-md5-tests: Likewise.
67794         * modules/gc-pbkdf2-sha1-tests: Likewise.
67795         * modules/gc-rijndael-tests: Likewise.
67796         * modules/gc-sha1-tests: Likewise.
67797         * modules/gc-tests: Likewise.
67798         * modules/getaddrinfo-tests: Likewise.
67799         * modules/hmac-md5-tests: Likewise.
67800         * modules/hmac-sha1-tests: Likewise.
67801         * modules/linked-list-tests: Likewise.
67802         * modules/linkedhash-list-tests: Likewise.
67803         * modules/lock-tests: Likewise.
67804         * modules/md2-tests: Likewise.
67805         * modules/md4-tests: Likewise.
67806         * modules/md5-tests: Likewise.
67807         * modules/rbtree-list-tests: Likewise.
67808         * modules/rbtree-oset-tests: Likewise.
67809         * modules/rbtreehash-list-tests: Likewise.
67810         * modules/read-file-tests: Likewise.
67811         * modules/rijndael-tests: Likewise.
67812         * modules/stdint-tests: Likewise.
67813         * modules/tls-tests: Likewise.
67814
67815 2007-02-24  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67818         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67819         function; instead check whether isnan with a double argument links.
67820         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67821         function; instead check whether isnan with a 'long double' argument
67822         links.
67823         Reported by Eric Blake <ebb9@byu.net>.
67824
67825 2007-02-24  Bruno Haible  <bruno@clisp.org>
67826
67827         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67828         defined.
67829         * lib/isnanl.c: Remove all code. Just include isnan.c.
67830         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67831
67832 2007-02-25  Jim Meyering  <jim@meyering.net>
67833
67834         Avoid conflicting types for 'unsetenv' on FreeBSD.
67835         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67836         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67837         in stdlib.h.
67838
67839 2007-02-24  Bruno Haible  <bruno@clisp.org>
67840
67841         * modules/isnanl-nolibm-tests: New file.
67842         * tests/test-isnanl.c: New file.
67843
67844         * modules/isnanl-nolibm: New file.
67845         * lib/isnanl.h: New file.
67846         * lib/isnanl.c: New file.
67847         * m4/isnanl.m4: New file.
67848
67849 2007-02-24  Bruno Haible  <bruno@clisp.org>
67850
67851         * modules/isnan-nolibm-tests: New file.
67852         * tests/test-isnan.c: New file.
67853
67854         * modules/isnan-nolibm: New file.
67855         * lib/isnan.h: New file.
67856         * lib/isnan.c: New file.
67857         * m4/isnan.m4: New file.
67858
67859 2007-02-24  Bruno Haible  <bruno@clisp.org>
67860
67861         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67862         assume that an exponent fits in 20 bits.
67863
67864 2007-02-24  Jim Meyering  <jim@meyering.net>
67865
67866         * m4/regex.m4: Update the description of the configure-time option,
67867         --without-included-regex, to state accurately what the defaults are,
67868         and perhaps to give people an idea why using this option is risky.
67869
67870 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67873         loops on small arguments.  This attempts to avoid the problem
67874         Bruno Haible reported for AIX 4.3.2 in
67875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67876
67877 2007-02-23  Bruno Haible  <bruno@clisp.org>
67878
67879         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67880         Needed for help2man.
67881
67882 2007-02-23  Karl Berry  <karl@gnu.org>
67883
67884         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67885         exists, foo.h should be cvs-ignored, not committed.
67886
67887 2007-02-23  Eric Blake  <ebb9@byu.net>
67888
67889         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67890         * lib/stat-time.h (includes): Likewise.
67891         * lib/utimecmp.c (includes): Likewise.
67892         * lib/utimens.h (includes): Likewise.
67893         * lib/getdate.y (includes): Also include "timespec.h" for use
67894         internal to the module.
67895         * modules/utimens (Depends-on): Revert yesterday's patch.
67896         * modules/nanosleep (Depends-on): Add missing dependency.
67897
67898 2007-02-22  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/glob.c: Don't include getlogin_r.h.
67901
67902 2007-02-22  Jim Meyering  <jim@meyering.net>
67903
67904         * modules/utimens (Depends-on): Add timespec, required for
67905         utimens.h's inclusion of timespec.h.
67906
67907 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67910         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67911         Schwab in
67912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67913         I'll try to think of a better way to fix the Solaris problem.
67914
67915         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67916         like glibc; on Solaris 10, it fails with errno == EINVAL.
67917         POSIX says the behavior is unspecified if the first argument is NULL,
67918         so play it safe and never pass NULL to the system getcwd.
67919
67920 2007-02-21  Jim Meyering  <jim@meyering.net>
67921
67922         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67923         of gettimeofday.  It would conflict with the one now always
67924         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67925         an IRIX 6.5 build failure.
67926
67927 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67928
67929         Minor fixups to port to Solaris 10 with Sun C 5.8.
67930         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67931         * modules/getcwd (Depends-on): Add dirfd.
67932         * lib/putenv.c (putenv): #undef it.
67933         (rpl_putenv): New decl.
67934         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67935
67936 2007-02-20  Bruno Haible  <bruno@clisp.org>
67937
67938         * modules/stdio-tests: New file.
67939         * tests/test-stdio.c: New file.
67940
67941         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67942         (Depends-on): Add stdio.
67943         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67944         (Include): Use <stdio.h> instead of vsnprintf.h.
67945         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67946         HAVE_DECL_VSNPRINTF.
67947         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67948
67949         * modules/snprintf (Files): Remove lib/snprintf.h.
67950         (Depends-on): Add stdio.
67951         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67952         (Include): Use <stdio.h> instead of snprintf.h.
67953         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67954         HAVE_DECL_SNPRINTF.
67955         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67956         * lib/getaddrinfo.c: Likewise.
67957
67958         * modules/stdio: New file.
67959         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67960         * lib/snprintf.h: Remove file.
67961         * lib/vsnprintf.h: Remove file.
67962         * lib/.cppi-disable: Remove snprintf.h.
67963         * m4/stdio_h.m4: New file.
67964         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67965
67966 2007-02-20  Jim Meyering  <jim@meyering.net>
67967
67968         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67969         used by e.g., mingw.  From Bruno Haible.
67970
67971 2007-02-19  Bruno Haible  <bruno@clisp.org>
67972
67973         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67974         warnings.
67975         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67976
67977 2007-02-19  Bruno Haible  <bruno@clisp.org>
67978
67979         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67980         from mingw users.
67981
67982 2007-02-19  Bruno Haible  <bruno@clisp.org>
67983
67984         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67985         warnings.
67986         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67987
67988 2007-02-19  Jim Meyering  <jim@meyering.net>
67989
67990         Don't use FD after a successful "fdopendir (fd)".
67991         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67992         Reset it by calling dirfd on the just-obtained DIR*.
67993
67994         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67995         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67996
67997 2007-02-18  Bruno Haible  <bruno@clisp.org>
67998
67999         * lib/readlink.c: Include <unistd.h>.
68000         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68001         HAVE_READLINK.
68002         * modules/readlink (Depends-on): Add unistd.
68003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68004         (Include): Add <unistd.h>.
68005
68006         * lib/getlogin_r.h: Remove file.
68007         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68008         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68009         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68010         HAVE_DECL_GETLOGIN_R.
68011         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68013         (Include): Use <unistd.h> instead of getlogin_r.h.
68014
68015         * lib/getcwd.h: Remove file.
68016         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68017         * lib/xgetcwd.c: Likewise.
68018         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68019         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68020         * modules/getcwd (Files): Remove lib/getcwd.h.
68021         (Depends-on): Add unistd.
68022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68023         (Include): Use <unistd.h> instad of getcwd.h.
68024
68025         * lib/ftruncate.c: Include <unistd.h> first.
68026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68027         Set HAVE_FTRUNCATE.
68028         * modules/ftruncate (Depends-on): Add unistd.
68029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68030
68031         * lib/fchdir.c: Include <unistd.h> first.
68032         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68034         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68035         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68036         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68037
68038         * lib/dup2.c: Include <unistd.h> first.
68039         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68040         HAVE_DUP2.
68041         * modules/dup2 (Depends-on): Add unistd.
68042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68043
68044         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68045         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68046         REPLACE_CHOWN. Don't define chown as a macro here.
68047         * modules/chown (Depends-on): Add unistd.
68048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68049
68050         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68051         Add definition for GL_LINK_WARNING.
68052         (chown, dup2): New declarations.
68053         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68054         link warning.
68055         (ftruncate): New declaration.
68056         (getcwd): New declaration, taken from old getcwd.h.
68057         (getlogin_r): New declaration, taken from old getlogin_r.h.
68058         (readlink): New declaration.
68059         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68060         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68061         (gl_PREREQ_UNISTD): Remove macro.
68062         (gl_UNISTD_MODULE_INDICATOR): New macro.
68063         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68064         many new variables. Don't set UNISTD_H.
68065         * modules/unistd (Description): Change.
68066         (Depends-on): Add link-warning.
68067         (configure.ac): Update.
68068         (Makefile.am): Create unistd.h always. Substitute many new variables
68069         into it.
68070
68071 2007-02-18  Bruno Haible  <bruno@clisp.org>
68072
68073         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68074         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68075         HAVE_GETSUBOPT.
68076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68077         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68078         * lib/getsubopt.h: Remove file.
68079         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68080         (Depends-on): Add stdlib.
68081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68082         (Includes): Use <stdlib.h> instead of getsubopt.h.
68083         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68084         Set HAVE_GETSUBOPT.
68085         * lib/getsubopt.c: Don't include getsubopt.h.
68086
68087 2007-02-18  Bruno Haible  <bruno@clisp.org>
68088
68089         * modules/fchdir (Depends-on): Add dup2.
68090
68091 2007-02-18  Bruno Haible  <bruno@clisp.org>
68092
68093         * lib/stdlib_.h: Handle glibc's special invocation convention
68094         specially.
68095
68096 2007-02-18  Bruno Haible  <bruno@clisp.org>
68097
68098         * modules/stdlib-tests: New file.
68099         * tests/test-stdlib.c: New file.
68100
68101         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68102         (Depends-on): Add stdlib.
68103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68104         (Includes): Use <stdlib.h> instead of mkstemp.h.
68105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68106         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68107         * lib/mkstemp.c: Don't include mkstemp.h.
68108         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68109         * lib/stdlib--.h: Don't include mkstemp.h.
68110
68111         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68112         (Depends-on): Add stdlib.
68113         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68114         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68115         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68116         HAVE_MKDTEMP.
68117         * lib/mkdtemp.c: Don't include mkdtemp.h.
68118         * lib/clean-temp.c: Don't include mkdtemp.h.
68119
68120         * modules/exit (Files): Remove lib/exit.h.
68121         (Depends-on): Add stdlib.
68122         (Makefile.am): Remove lib_SOURCES.
68123         (Include): Use <stdlib.h> instead of exit.h.
68124         * lib/argmatch.c: Don't include exit.h.
68125         * lib/execute.c: Likewise.
68126         * lib/pagealign_alloc.c: Likewise.
68127         * lib/pipe.c: Likewise.
68128         * lib/wait-process.c: Likewise.
68129         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68130         * lib/exitfail.c: Likewise.
68131         * lib/savewd.c: Likewise.
68132         * lib/xsetenv.c: Likewise.
68133
68134         * modules/stdlib: New file.
68135         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68136         and extra comments about mkstemp().
68137         * lib/exit.h: Remove file.
68138         * lib/mkdtemp.h: Remove file.
68139         * lib/mkstemp.h: Remove file.
68140         * m4/stdlib_h.m4: New file.
68141         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68142
68143 2007-02-18  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/math-tests: New file.
68146         * tests/test-math.c: New file.
68147
68148         * modules/math: New file.
68149         * modules/mathl (Files): Remove lib/mathl.h.
68150         (Depends-on): Add math.
68151         (Makefile.am): Don't mention mathl.h.
68152         (Include): Use <math.h> instead of mathl.h.
68153         * lib/math_.h: New file.
68154         * lib/mathl.h: Remove file.
68155         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68156         mathl.h.
68157         * lib/asinl.c: Likewise.
68158         * lib/atanl.c: Likewise.
68159         * lib/ceill.c: Likewise.
68160         * lib/cosl.c: Likewise.
68161         * lib/expl.c: Likewise.
68162         * lib/floorl.c: Likewise.
68163         * lib/frexpl.c: Likewise.
68164         * lib/ldexpl.c: Likewise.
68165         * lib/logl.c: Likewise.
68166         * lib/sincosl.c: Likewise.
68167         * lib/sinl.c: Likewise.
68168         * lib/sqrtl.c: Likewise.
68169         * lib/tanl.c: Likewise.
68170         * lib/trigl.c: Likewise.
68171         * m4/math_h.m4: New file.
68172         * MODULES.html.sh (Mathematics): Add math.
68173
68174 2007-02-17  Bruno Haible  <bruno@clisp.org>
68175
68176         * modules/wctype-tests: New file.
68177         * tests/test-wctype.c: New file.
68178
68179         * modules/wchar-tests: New file.
68180         * tests/test-wchar.c: New file.
68181
68182         * modules/unistd-tests: New file.
68183         * tests/test-unistd.c: New file.
68184
68185         * modules/time-tests: New file.
68186         * tests/test-time.c: New file.
68187
68188         * modules/sysexits-tests: New file.
68189         * tests/test-sysexits.c: New file.
68190
68191         * modules/sys_time-tests: New file.
68192         * tests/test-sys_time.c: New file.
68193
68194         * modules/sys_stat-tests: New file.
68195         * tests/test-sys_stat.c: New file.
68196
68197         * modules/sys_socket-tests: New file.
68198         * tests/test-sys_socket.c: New file.
68199
68200         * modules/sys_select-tests: New file.
68201         * tests/test-sys_select.c: New file.
68202
68203         * modules/string-tests: New file.
68204         * tests/test-string.c: New file.
68205
68206         * modules/stdbool-tests: New file.
68207         * tests/test-stdbool.c: New file.
68208
68209         * modules/netinet_in-tests: New file.
68210         * tests/test-netinet_in.c: New file.
68211
68212         * modules/inttypes-tests: New file.
68213         * tests/test-inttypes.c: New file.
68214
68215         * modules/fcntl-tests: New file.
68216         * tests/test-fcntl.c: New file.
68217
68218         * modules/byteswap-tests: New file.
68219         * tests/test-byteswap.c: New file.
68220
68221         * modules/arpa_inet-tests: New file.
68222         * tests/test-arpa_inet.c: New file.
68223
68224 2007-02-17  Bruno Haible  <bruno@clisp.org>
68225
68226         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68227         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68228         if the corresponding module is not enabled. Emit link warnings if
68229         the function is used nevertheless.
68230         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68231         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68232         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68233         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68234         * modules/inttypes (Depends-on): Add link-warning.
68235         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68236         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68237         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68238         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68239         * modules/imaxdiv (configure.ac): Likewise.
68240         * modules/strtoimax (configure.ac): Likewise.
68241         * modules/strtoumax (configure.ac): Likewise.
68242
68243 2007-02-17  Bruno Haible  <bruno@clisp.org>
68244
68245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68246         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68247         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68248         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68249
68250 2007-02-17  Bruno Haible  <bruno@clisp.org>
68251
68252         * modules/link-warning: New file.
68253         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68254         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68255         * modules/string (Depends-on): Add link-warning.
68256         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68257         string.h.
68258         * MODULES.html.sh (Support for building libraries and executables): Add
68259         link-warning.
68260
68261 2007-02-17  Bruno Haible  <bruno@clisp.org>
68262
68263         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68264         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68265         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68266         long lines.
68267
68268 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68269             Bruno Haible  <bruno@clisp.org>
68270
68271         * modules/tmpfile: New file.
68272         * lib/tmpfile.c: New file.
68273         * m4/tmpfile.m4: New file.
68274         * MODULES.html.sh (func_all_modules): New section "Input/output".
68275
68276 2007-02-15  Bruno Haible  <bruno@clisp.org>
68277
68278         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68279         (supports_delete_on_close): New function.
68280         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68281
68282 2007-02-14  Bruno Haible  <bruno@clisp.org>
68283
68284         * modules/mbspcasecmp-tests: New file.
68285         * tests/test-mbspcasecmp.sh: New file.
68286         * tests/test-mbspcasecmp.c: New file.
68287
68288         New module mbspcasecmp.
68289         * modules/mbspcasecmp: New file.
68290         * lib/mbspcasecmp.c: New file.
68291         * lib/string_.h (strncasecmp): Change warning message.
68292         (mbspcasecmp): New declaration.
68293         * m4/mbspcasecmp.m4: New file.
68294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68295         GNULIB_MBSPCASECMP.
68296         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68297         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68298
68299 2007-02-14  Bruno Haible  <bruno@clisp.org>
68300
68301         * modules/mbsncasecmp-tests: New file.
68302         * tests/test-mbsncasecmp.sh: New file.
68303         * tests/test-mbsncasecmp.c: New file.
68304
68305         New module mbsncasecmp.
68306         * modules/mbsncasecmp: New file.
68307         * lib/mbsncasecmp.c: New file.
68308         * lib/string_.h (mbsncasecmp): New declaration.
68309         * m4/mbsncasecmp.m4: New file.
68310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68311         GNULIB_MBSNCASECMP.
68312         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68313         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68314
68315 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68316
68317         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68318         Verify that it doesn't overlap with our flags.
68319         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68320         do not have the desired effect in multibyte locales; instead, use
68321         mbscasecmp.
68322         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68323         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68324         we don't require GNU fnmatch ourselves (if our users require it, they
68325         should do so explicitly).
68326
68327         Fix regex code so it doesn't rely on strcasecmp.
68328         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68329         Otherwise, include gnulib's langinfo.h.
68330         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68331         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68332         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68333         * modules/regex (FILES): Remove m4/codeset.m4.
68334         (Depends-on): Add localcharset.  Remove strcase.
68335
68336 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68337
68338         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68339         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68340
68341 2007-02-13  Bruno Haible  <bruno@clisp.org>
68342
68343         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68345
68346 2007-02-12  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68349         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68350         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68351         time warning rather than a link error.
68352
68353 2007-02-12  Bruno Haible  <bruno@clisp.org>
68354
68355         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68358
68359 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68362         args, not 2.
68363
68364 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         New module 'time', so that apps can include <time.h> as per
68367         POSIX and GNU instead of separate include files like time_r.h
68368         and timegm.h.  This implementation tries out a simpler approach
68369         for replacing decls in standard include files (as compared to
68370         the string module), somewhat as an experiment.
68371
68372         * config/srclist.txt: Comment out mktime.c for now.
68373         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68374         since it doesn't apply any more.  Use generic wording instead.
68375         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68376         'time'.
68377         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68378         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68379         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68380         Don't include <sys/types.h>; no longer needed since we assume C89.
68381         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68382         * lib/strftime.c: Likewise.
68383         * lib/time_r.c: Likewise.
68384         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68385         * lib/nanosleep.c: Include <time.h> first, to check interface.
68386         * lib/strptime.c: Likewise.
68387         * lib/time_r.c: Likewise.
68388         * lib/timegm.c: Likewise.
68389         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68390         needed.
68391         * lib/timegm.c: Don't include timegm.h; no longer needed.
68392         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68393         time.h now handles any problems in that area.
68394         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68395         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68396         that time.h defines struct timespec.
68397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68398         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68399         handles that.
68400         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68401         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68402         needed.  Set REPLACE_LOCALTIME.
68403         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68404         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68405         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68406         nanosleep; time_h.m4 now does that.  Don't require
68407         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68408         module handles this now.
68409         * modules/getdate (Depends-on): Remove timespec.  Add time.
68410         * modules/nanosleep (Depends-on): Likewise.
68411         * modules/stat-time (Depends-on): Likewise.
68412         * modules/nanosleep (Include): Include time.h, not timespec.h.
68413         * modules/strptime (Files): Remove lib/strptime.h.
68414         (Depends-on): Add extensions, time.
68415         (Include): Include time.h, not strptime.h.
68416         * modules/time_r (Files): Remove lib/time_r.h.
68417         (Depends-on): Add time.
68418         (Include): Include time.h, not time_r.h.
68419         * modules/timegm: Likewise.
68420         * modules/timespec (Description): Now does timespec-related decls
68421         of our own, instead of struct timespec itself.
68422         (Depends-on): Add time; remove extensions.
68423         (Maintainer): Add self.
68424         * modules/utimecmp (Depends-on): Add time; remove timespec.
68425         * modules/utimens (Depends-on): Likewise.
68426         * modules/xnanosleep (Depends-on): Likewise.
68427
68428 2007-02-11  Bruno Haible  <bruno@clisp.org>
68429
68430         * lib/c-strstr.c: Include allocsa.h.
68431         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68432         * lib/c-strcasestr.c: Include allocsa.h.
68433         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68434         * lib/strcasestr.c: Include allocsa.h.
68435         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68436         * lib/mbsstr.c: Include allocsa.h.
68437         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68438         allocsa/freesa instead of malloc/free.
68439         * lib/mbscasestr.c: Include allocsa.h.
68440         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68441         allocsa/freesa instead of malloc/free.
68442         * modules/c-strstr (Depends-on): Add allocsa.
68443         * modules/c-strcasestr (Depends-on): Likewise.
68444         * modules/strcasestr (Depends-on): Likewise.
68445         * modules/mbsstr (Depends-on): Likewise.
68446         * modules/mbscasestr (Depends-on): Likewise.
68447
68448 2007-02-11  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68451
68452         * modules/mbsspn-tests: New file.
68453         * tests/test-mbsspn.sh: New file.
68454         * tests/test-mbsspn.c: New file.
68455
68456 2007-02-11  Bruno Haible  <bruno@clisp.org>
68457
68458         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68459
68460         * modules/mbspbrk-tests: New file.
68461         * tests/test-mbspbrk.sh: New file.
68462         * tests/test-mbspbrk.c: New file.
68463
68464 2007-02-11  Bruno Haible  <bruno@clisp.org>
68465
68466         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68467         unneeded cast.
68468
68469         * modules/mbscspn-tests: New file.
68470         * tests/test-mbscspn.sh: New file.
68471         * tests/test-mbscspn.c: New file.
68472
68473 2007-02-11  Bruno Haible  <bruno@clisp.org>
68474
68475         * modules/mbscasecmp-tests: New file.
68476         * tests/test-mbscasecmp.sh: New file.
68477         * tests/test-mbscasecmp.c: New file.
68478
68479 2007-02-11  Bruno Haible  <bruno@clisp.org>
68480
68481         Ensure O(n) worst-case complexity of mbscasestr.
68482         * lib/mbscasestr.c: Include stdbool.h.
68483         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68484         functions.
68485         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68486         the bookkeeping indicates that it's worth it.
68487         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68488
68489         * modules/mbscasestr-tests: New file.
68490         * tests/test-mbscasestr1.c: New file.
68491         * tests/test-mbscasestr2.sh: New file.
68492         * tests/test-mbscasestr2.c: New file.
68493         * tests/test-mbscasestr3.sh: New file.
68494         * tests/test-mbscasestr3.c: New file.
68495         * tests/test-mbscasestr4.sh: New file.
68496         * tests/test-mbscasestr4.c: New file.
68497         * m4/locale-tr.m4: New file.
68498
68499 2007-02-11  Bruno Haible  <bruno@clisp.org>
68500
68501         Ensure O(n) worst-case complexity of mbsstr.
68502         * lib/mbsstr.c: Include stdbool.h.
68503         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68504         functions.
68505         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68506         bookkeeping indicates that it's worth it.
68507         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68508
68509         * modules/mbsstr-tests: New file.
68510         * tests/test-mbsstr1.c: New file.
68511         * tests/test-mbsstr2.sh: New file.
68512         * tests/test-mbsstr2.c: New file.
68513         * tests/test-mbsstr3.sh: New file.
68514         * tests/test-mbsstr3.c: New file.
68515         * m4/locale-fr.m4: New file.
68516
68517 2007-02-11  Bruno Haible  <bruno@clisp.org>
68518
68519         * lib/mbsrchr.c (mbsrchr): Fix bug.
68520
68521         * modules/mbsrchr-tests: New file.
68522         * tests/test-mbsrchr.sh: New file.
68523         * tests/test-mbsrchr.c: New file.
68524
68525 2007-02-11  Bruno Haible  <bruno@clisp.org>
68526
68527         * lib/mbschr.c (mbschr): Fix bug.
68528
68529         * modules/mbschr-tests: New file.
68530         * tests/test-mbschr.sh: New file.
68531         * tests/test-mbschr.c: New file.
68532         * m4/locale-zh.m4: New file.
68533
68534 2007-02-11  Bruno Haible  <bruno@clisp.org>
68535
68536         Support for copying multibyte string iterators.
68537         * lib/mbiter.h: Include <string.h>.
68538         (mbiter_multi_copy): New function.
68539         (mbi_copy): New macro.
68540         * lib/mbuiter.h: Include <string.h>.
68541         (mbuiter_multi_copy): New function.
68542         (mbui_copy): New macro.
68543
68544 2007-02-11  Bruno Haible  <bruno@clisp.org>
68545
68546         New module mbslen.
68547         * modules/mbslen: New file.
68548         * lib/mbslen.c: New file.
68549         * lib/string_.h (mbslen): New declaration.
68550         * m4/mbslen.m4: New file.
68551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68552         GNULIB_MBSLEN.
68553         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68554         * MODULES.html.sh (Internationalization functions): Add mbslen.
68555
68556 2007-02-11  Bruno Haible  <bruno@clisp.org>
68557
68558         Ensure O(n) worst-case complexity of strcasestr substitute.
68559         * lib/strcasestr.c: Include stdbool.h.
68560         (knuth_morris_pratt): New function.
68561         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68562         bookkeeping indicates that it's worth it.
68563         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68564
68565         * modules/strcasestr-tests: New file.
68566         * tests/test-strcasestr.c: New file.
68567
68568 2007-02-11  Bruno Haible  <bruno@clisp.org>
68569
68570         Ensure O(n) worst-case complexity of c_strcasestr.
68571         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68572         (knuth_morris_pratt): New function.
68573         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68574         the bookkeeping indicates that it's worth it.
68575         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68576
68577         * modules/c-strcasestr-tests: New file.
68578         * tests/test-c-strcasestr.c: New file.
68579
68580 2007-02-11  Bruno Haible  <bruno@clisp.org>
68581
68582         Ensure O(n) worst-case complexity of c_strstr.
68583         * lib/c-strstr.c: Include stdbool.h, string.h.
68584         (knuth_morris_pratt): New function.
68585         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68586         bookkeeping indicates that it's worth it.
68587         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68588
68589         * lib/c-strstr.c: Complete rewrite for maintainability.
68590
68591         * modules/c-strstr-tests: New file.
68592         * tests/test-c-strstr.c: New file.
68593
68594 2007-02-11  Bruno Haible  <bruno@clisp.org>
68595
68596         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68597         5.2.1 and earlier, whereby \055 was treated just like the range
68598         delimiter '-'.
68599         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68600
68601 2007-02-08  Bruno Haible  <bruno@clisp.org>
68602
68603         * modules/regex (Depends-on): Add stdbool.
68604         Reported by Dalibor Topic <robilad@kaffe.org>.
68605
68606 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68609         Prefer returning from main to exiting from it.
68610         Remove unnecessary parens after sizeof.
68611
68612 2007-02-05  Bruno Haible  <bruno@clisp.org>
68613
68614         New module mbssep.
68615         * modules/mbssep: New file.
68616         * lib/mbssep.c: New file.
68617         * lib/string_.h (strsep): Add a conditional link warning.
68618         (mbssep): New declaration.
68619         * m4/mbssep.m4: New file.
68620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68621         GNULIB_MBSSEP.
68622         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68623         * MODULES.html.sh (Internationalization functions): Add mbssep.
68624
68625 2007-02-05  Bruno Haible  <bruno@clisp.org>
68626
68627         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68628         Optimize search in case of 1 delimiter.
68629
68630 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68631
68632         * lib/acl.h: Include sys/types.h before sys/acl.h.
68633
68634 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68635
68636         Merge upstream fix for glibc bugzilla #3957:
68637
68638         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68639
68640         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68641         bit for RE_HAT_LISTS_NOT_NEWLINE.
68642         (build_charclass_op): Remove bogus comment.
68643
68644 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68645
68646         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68647
68648 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68651         * lib/memmem.c [!defined _LIBC]: Include config.h.
68652
68653 2007-02-04  Bruno Haible  <bruno@clisp.org>
68654
68655         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68656         warning message.
68657
68658 2007-02-04  Bruno Haible  <bruno@clisp.org>
68659
68660         New module mbstok_r.
68661         * modules/mbstok_r: New file.
68662         * lib/mbstok_r.c: New file.
68663         * lib/string_.h (strtok_r): Change argument names to match the
68664         comments. Add a conditional link warning.
68665         (mbstok_r): New declaration.
68666         * m4/mbstok_r.m4: New file.
68667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68668         GNULIB_MBSTOK_R.
68669         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68670         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68671
68672 2007-02-04  Bruno Haible  <bruno@clisp.org>
68673
68674         New module mbsspn.
68675         * modules/mbsspn: New file.
68676         * lib/mbsspn.c: New file.
68677         * lib/string_.h (strspn): Add a conditional link warning.
68678         (mbsspn): New declaration.
68679         * m4/mbsspn.m4: New file.
68680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68681         GNULIB_MBSSPN.
68682         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68683         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68684
68685 2007-02-04  Bruno Haible  <bruno@clisp.org>
68686
68687         New module mbspbrk.
68688         * modules/mbspbrk: New file.
68689         * lib/mbspbrk.c: New file.
68690         * lib/string_.h (strpbrk): Add a conditional link warning.
68691         (mbspbrk): New declaration.
68692         * m4/mbspbrk.m4: New file.
68693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68694         GNULIB_MBSPBRK.
68695         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68696         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68697
68698 2007-02-04  Bruno Haible  <bruno@clisp.org>
68699
68700         New module mbscspn.
68701         * modules/mbscspn: New file.
68702         * lib/mbscspn.c: New file.
68703         * lib/string_.h (strcspn): Add a conditional link warning.
68704         (mbscspn): New declaration.
68705         * m4/mbscspn.m4: New file.
68706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68707         GNULIB_MBSCSPN.
68708         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68709         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68710
68711 2007-02-04  Bruno Haible  <bruno@clisp.org>
68712
68713         New module mbscasestr, reduced goal of strcasestr.
68714         * modules/mbscasestr: New file.
68715         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68716         (mbscasestr): Renamed from strcasestr.
68717         * lib/strcasestr.c: Don't include mbuiter.h.
68718         (strcasestr): Remove support for multibyte locales.
68719         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68720         Change the conditional link warning.
68721         (mbscasestr): New declaration.
68722         * m4/mbscasestr.m4: New file.
68723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68724         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68725         REPLACE_STRCASESTR.
68726         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68728         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68729         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68730         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68731         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68732         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68733         (Depends-on): Remove mbuiter.
68734         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68735
68736 2007-02-04  Bruno Haible  <bruno@clisp.org>
68737
68738         Simplify handling of strncasecmp.
68739         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68740         the conditional link warning.
68741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68742         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68743         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68744         * modules/strcase (configure.ac): Don't invoke
68745         gl_STRING_MODULE_INDICATOR.
68746         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68747
68748 2007-02-04  Bruno Haible  <bruno@clisp.org>
68749
68750         New module mbscasecmp, reduced goal of strcasecmp.
68751         * modules/mbscasecmp: New file.
68752         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68753         (mbscasecmp): Renamed from strcasecmp.
68754         * lib/strcasecmp.c: Don't include mbuiter.h.
68755         (strcasecmp): Remove support for multibyte locales.
68756         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68757         Change the conditional link warning.
68758         (mbscasecmp): New declaration.
68759         * m4/mbscasecmp.m4: New file.
68760         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68761         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68762         REPLACE_STRCASECMP.
68763         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68765         GNULIB_MBSCASECMP.
68766         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68767         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68768         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68769         (Depends-on): Remove mbuiter.
68770         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68771
68772 2007-02-04  Bruno Haible  <bruno@clisp.org>
68773
68774         New module mbsstr. Remove module strstr.
68775         * modules/mbsstr: New file.
68776         * modules/strstr: Remove file.
68777         * lib/mbsstr.c: Renamed from lib/strstr.c.
68778         (mbsstr): Renamed from strstr.
68779         * lib/string_.h (strstr): Remove declaration. Change the conditional
68780         link warning.
68781         (mbsstr): New declaration.
68782         * m4/mbsstr.m4: New file.
68783         * m4/strstr.m4: Remove file.
68784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68785         REPLACE_STRSTR.
68786         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68787         Don't initialize GNULIB_STRSTR.
68788         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68789         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68790         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68791         (Support for systems lacking ANSI C 89): Remove strstr.
68792
68793 2007-02-04  Bruno Haible  <bruno@clisp.org>
68794
68795         New module mbsrchr.
68796         * modules/mbsrchr: New file.
68797         * lib/mbsrchr.c: New file.
68798         * lib/string_.h (strrchr): Add a conditional link warning.
68799         (mbsrchr): New declaration.
68800         * m4/mbsrchr.m4: New file.
68801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68802         GNULIB_MBSRCHR.
68803         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68804         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68805
68806 2007-02-04  Bruno Haible  <bruno@clisp.org>
68807
68808         New module mbschr.
68809         * modules/mbschr: New file.
68810         * lib/mbschr.c: New file.
68811         * lib/string_.h (strchr): Add a conditional link warning.
68812         (mbschr): New declaration.
68813         * m4/mbschr.m4: New file.
68814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68815         GNULIB_MBSCHR.
68816         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68817         * MODULES.html.sh (Internationalization functions): Add mbschr.
68818
68819 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68822
68823         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68824
68825 2007-02-04  Bruno Haible  <bruno@clisp.org>
68826
68827         New module description section 'configure.ac-early'.
68828         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68829         (func_get_autoconf_early_snippet): New function.
68830         (func_import, func_create_testdir): Use it. Remove special cases for
68831         modules 'extensions' and 'lock'.
68832         * modules/extensions (configure.ac-early): Require
68833         gl_USE_SYSTEM_EXTENSIONS.
68834         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68835
68836 2007-02-04  Bruno Haible  <bruno@clisp.org>
68837
68838         Make use of gcj-4.3's -fsource and -ftarget option.
68839         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68840         and if so try the options -fsource and -ftarget.
68841         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68842         source_version, ftarget_option, target_version arguments.
68843         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68844         (is_envjavac_oldgcj_14_14_usable): Renamed from
68845         is_envjavac_gcj_14_14_usable.
68846         (is_envjavac_oldgcj_14_13_usable): Renamed from
68847         is_envjavac_gcj_14_13_usable.
68848         (is_gcj_present): Update.
68849         (is_gcj_43, is_gcj43_usable): New functions.
68850         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68851         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68852         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68853         try the options -fsource and -ftarget.
68854
68855 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68856
68857         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68858         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68859         larger value.
68860
68861 2007-02-03  Jim Meyering  <jim@meyering.net>
68862
68863         Give tools a better chance to allocate space for very large buffers.
68864         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68865
68866         Make pwd and readlink work also when run with an unreadable parent dir
68867         on systems with openat support.
68868         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68869         provided getcwd function, even when we have openat support.
68870         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68871
68872 2007-02-02  Bruno Haible  <bruno@clisp.org>
68873
68874         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68875         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68876         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68877         portability problems if one of these functions is only used on specific
68878         platforms.
68879         Reported by Paul Eggert.
68880
68881 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68882
68883         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68884         is causing more trouble than it's curing.
68885         * lib/regex_internal.h (__mempcpy): Remove.
68886         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68887         (and make the code a tad smaller to boot).
68888         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68889
68890 2007-02-02  Jim Meyering  <jim@meyering.net>
68891
68892         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68893         section, not in the Makefile.am: one.
68894
68895 2007-02-02  Eric Blake  <ebb9@byu.net>
68896
68897         * lib/strchrnul.c: Always include config.h first.
68898
68899         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68900         gnulib strstr is not necessary here.
68901
68902 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68903
68904         * m4/socklen.m4: Fix typo.
68905
68906 2007-02-02  Eric Blake  <ebb9@byu.net>
68907
68908         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68909         * modules/netinet_in (Makefile.am): Likewise.
68910
68911 2007-02-01  Bruno Haible  <bruno@clisp.org>
68912
68913         * lib/string_.h (GL_LINK_WARNING): New macro.
68914         (strcasecmp, strstr, strcasestr): If provided by the system,
68915         conditionally define as a macro that leads to a warning instead of to
68916         an error.
68917         (strncasecmp): Conditionally define as a macro that leads to a warning.
68918
68919 2007-02-01  Karl Berry  <karl@gnu.org>
68920
68921         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68922
68923 2007-02-01  Bruno Haible  <bruno@clisp.org>
68924
68925         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68926         renamings.
68927
68928 2007-02-01  Eric Blake  <ebb9@byu.net>
68929
68930         * modules/regex (Depends-on): Revert dependence on mempcpy.
68931         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68932         module's definition of mempcpy.
68933         Reported by Paul Eggert.
68934
68935 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68938         the symbol XYZ before redefining it.  This fixes a problem with
68939         programs that don't use XYZ, when compiled on systems that define
68940         XYZ to something else.
68941
68942 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68943
68944         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68945         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68946         writeable to group or other and (2) is intended to have a special
68947         mode bit that is set or cleared.  In such a case, the directory
68948         should be neither group- nor other-writeable until the special
68949         mode bits are right.
68950
68951 2007-01-31  Eric Blake  <ebb9@byu.net>
68952
68953         * modules/mountlist (Depends-on): Add strstr.
68954
68955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68956         bug.
68957         * modules/string (Makefile.am): Remove redundant replacement.
68958         * modules/regex (Depends-on): Add mempcpy.
68959
68960 2007-01-31  Bruno Haible  <bruno@clisp.org>
68961
68962         New module description field 'Link'.
68963         * gnulib-tool (func_usage): Document --extract-link-directive.
68964         (sed_extract_prog): Recognize 'Link' directive.
68965         (func_get_link_directive): New function.
68966         (func_import): Show summary of link directives.
68967         Handle --extract-link-directive option.
68968         * modules/acl (Link): New section.
68969         * modules/clock-time (Link): New section.
68970         * modules/euidaccess (Link): New section.
68971         * modules/gettext (Link): New section.
68972         * modules/iconv (Link): New section.
68973         * modules/lock (Link): New section.
68974         * modules/nanosleep (Link): New section.
68975         * modules/readline (Link): New section.
68976
68977 2007-01-27  Bruno Haible  <bruno@clisp.org>
68978
68979         Enforce the use of gnulib modules for unportable <string.h> functions.
68980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68981         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68982         (gl_HEADER_STRING_H_BODY): Require it.
68983         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68984         the symbol XYZ to one that gives a link error.
68985         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68986         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68987         * modules/mempcpy (configure.ac): Likewise.
68988         * modules/memrchr (configure.ac): Likewise.
68989         * modules/stpcpy (configure.ac): Likewise.
68990         * modules/stpncpy (configure.ac): Likewise.
68991         * modules/strcase (configure.ac): Likewise.
68992         * modules/strcasestr (configure.ac): Likewise.
68993         * modules/strchrnul (configure.ac): Likewise.
68994         * modules/strdup (configure.ac): Likewise.
68995         * modules/strndup (configure.ac): Likewise.
68996         * modules/strnlen (configure.ac): Likewise.
68997         * modules/strpbrk (configure.ac): Likewise.
68998         * modules/strsep (configure.ac): Likewise.
68999         * modules/strstr (configure.ac): Likewise.
69000         * modules/strtok_r (configure.ac): Likewise.
69001
69002 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69003
69004         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69005
69006 2007-01-30  Jim Meyering  <jim@meyering.net>
69007
69008         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69009
69010 2007-01-29  Bruno Haible  <bruno@clisp.org>
69011
69012         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69013         * lib/execute.c: Likewise.
69014         * lib/pipe.c: Likewise.
69015         * lib/printf-args.h: Likewise.
69016         * lib/printf-args.c: Likewise.
69017         * lib/printf-parse.c: Likewise.
69018         * lib/vasnprintf.c: Likewise.
69019
69020 2007-01-29  Eric Blake  <ebb9@byu.net>
69021
69022         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69023         declaration.
69024
69025 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * lib/strptime.h (strptime): Use 'restrict' for args where
69028         POSIX requires this.
69029         * lib/strptime.c (strptime): Likewise.
69030         Change license notice from LGPL to GPL, since gnulib-tool will
69031         change this as needed.
69032         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69033         defined.
69034         Include "strptime.h" first, to check interface.
69035         Do not #undef _LIBC and _NL_CURRENT.
69036         Do not include <stdlib.h>; no longer needed.
69037         Include "time_r.h" and declare ptime_locale_status
69038         only if _LIBC is not defined.
69039         (__P): Remove unused macro.
69040         (match_string): Bring back glibc version, but use it only if _LIBC
69041         is defined.
69042         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69043         Remove unnecessary assertion and abort() call.
69044         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69045         * m4/strptime.m4: Fix serial number comment.
69046         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69047         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69048         (Depends-on): Add time_r.
69049
69050 2007-01-29  Bruno Haible  <bruno@clisp.org>
69051
69052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69053         strptime.
69054         * modules/strptime (Depends-on): Add stdbool.
69055         * lib/strptime.h: Include <time.h> always. Add comments.
69056
69057 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69058
69059         * modules/strptime: New file.
69060         * lib/strptime.h: New file.
69061         * lib/strptime.c: New file.
69062         * m4/strptime.m4: New file.
69063
69064 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * MODULES.html.sh: New module mpsort.
69067         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69068
69069         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69070         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69072         All uses changed.
69073         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69074         All uses changed.
69075         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69076         to _Restrict_.
69077         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69078         the parameter matches the prototype.
69079
69080 2007-01-28  Jim Meyering  <jim@meyering.net>
69081
69082         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69083         sys/time.h here, reverting that part of the previous patch:
69084         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69085
69086 2007-01-28  Bruno Haible  <bruno@clisp.org>
69087
69088         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69089         value of $(SYS_TIME_H).
69090         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69091         remove it conditionally, too. [added by Jim Meyering]
69092         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69093         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69094         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69095         GETTIMEOFDAY_REPLACEMENT to 1.
69096
69097 2007-01-28  Bruno Haible  <bruno@clisp.org>
69098
69099         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69100         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69102         Set UNISTD_H instead of UNISTD_H2.
69103         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69104
69105 2007-01-28  Bruno Haible  <bruno@clisp.org>
69106
69107         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69108         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69109
69110 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69111
69112         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69113         (func_create_testdir): Ensure C locale for `grep' and `tr'
69114         character ranges.
69115         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69116         ACLOCAL_AMFLAGS parsing state machine.
69117
69118 2007-01-27  Bruno Haible  <bruno@clisp.org>
69119
69120         * modules/unistr/base: Update.
69121
69122 2007-01-27  Bruno Haible  <bruno@clisp.org>
69123
69124         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69125         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69126         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69127         modules/unistr/u32-mbtouc.
69128         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69129         * lib/unistr.h: Update.
69130         * lib/linebreak.c: Update.
69131         * modules/unistr/u32-mbtouc: Renamed from
69132         modules/unistr/u32-mbtouc-safe.
69133         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69134         * lib/unistr.h: Update.
69135         * lib/unistr/u32-to-u8.c: Update.
69136         * lib/unistr/u32-to-u16.c: Update.
69137
69138 2007-01-27  Bruno Haible  <bruno@clisp.org>
69139
69140         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69141         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69142         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69143         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69144         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69145         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69146         modules/unistr/u16-mbtouc.
69147         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69148         * lib/unistr.h: Update.
69149         * lib/linebreak.c: Update.
69150         * modules/linebreak: Update.
69151         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69152         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69153         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69154         * modules/unistr/u16-mbtouc: Renamed from
69155         modules/unistr/u16-mbtouc-safe.
69156         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69157         * lib/unistr.h: Update.
69158         * lib/unistr/u16-to-u8.c: Update.
69159         * modules/unistr/u16-to-u8: Update.
69160         * lib/unistr/u16-to-u32.c: Update.
69161         * modules/unistr/u16-to-u32: Update.
69162
69163 2007-01-27  Bruno Haible  <bruno@clisp.org>
69164
69165         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69166         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69167         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69168         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69169         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69170         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69171         modules/unistr/u8-mbtouc.
69172         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69173         * lib/unistr.h: Update.
69174         * lib/striconveh.c: Update.
69175         * modules/striconveh: Update.
69176         * lib/linebreak.c: Update.
69177         * modules/linebreak: Update.
69178         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69179         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69180         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69181         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69182         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69183         * lib/unistr.h: Update.
69184         * lib/striconveh.c: Update.
69185         * modules/striconveh: Update.
69186         * lib/unistr/u8-to-u16.c: Update.
69187         * modules/unistr/u8-to-u16: Update.
69188         * lib/unistr/u8-to-u32.c: Update.
69189         * modules/unistr/u8-to-u32: Update.
69190
69191 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69192
69193         Sync from Libtool.
69194         * lib/argz.c: Do not include strings.h nor memory.h, include
69195         string.h unconditionally.  Patch by Simon Josefsson.
69196
69197 2007-01-27  Bruno Haible  <bruno@clisp.org>
69198
69199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69200         from gl_HEADER_STRING_H_BODY.
69201         (gl_HEADER_STRING_H_BODY): Require it.
69202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69205         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69207         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69209         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69210         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69211         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69212         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69213         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69214         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69215         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69217
69218 2007-01-27  Bruno Haible  <bruno@clisp.org>
69219
69220         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69221         check_PROGRAMS into noinst_PROGRAMS.
69222         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69223         check_PROGRAMS in this case.
69224         (func_import): Set for_test to false.
69225         (func_create_testdir): Set for_test to true.
69226
69227 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69228             Bruno Haible  <bruno@clisp.org>
69229
69230         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69231         (Depends-on): Add string.
69232         (Includes): Use <string.h> instead of strcasestr.h.
69233         * modules/string (Makefile.am): Also substitute the value of
69234         REPLACE_STRCASESTR.
69235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69236         assume strcasestr is declared in <string.h> not <strings.h>. Also
69237         set REPLACE_STRCASESTR.
69238         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69239         REPLACE_STRCASESTR.
69240         * lib/strcasestr.h: Remove file.
69241         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69242         * lib/string_.h (strcasestr): New declaration.
69243
69244 2007-01-27  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/string_.h: Use 'extern'.
69247
69248 2007-01-27  Jim Meyering  <jim@meyering.net>
69249
69250         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69251         of set-but-not-used local, "q".
69252
69253         * lib/mempcpy.c: Include <config.h> before <string.h>.
69254         This fixes a compilation error on HP-UX, due to the system's
69255         "restrict"-using mempcpy prototype.
69256
69257 2007-01-26  Bruno Haible  <bruno@clisp.org>
69258
69259         Small optimization.
69260         * lib/javacomp.c: Include c-strstr.h.
69261          (is_envjavac_gcj): Use c_strstr instead of strstr.
69262         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69263
69264 2007-01-26  Bruno Haible  <bruno@clisp.org>
69265
69266         * MODULES.html.sh (Unicode string functions): Add the new modules.
69267
69268         * modules/uniconv/u32-strconv-to-locale: New file.
69269         * lib/uniconv/u32-strconv-to-locale.c: New file.
69270
69271         * modules/uniconv/u16-strconv-to-locale: New file.
69272         * lib/uniconv/u16-strconv-to-locale.c: New file.
69273
69274         * modules/uniconv/u8-strconv-to-locale: New file.
69275         * lib/uniconv/u8-strconv-to-locale.c: New file.
69276
69277         * modules/uniconv/u32-strconv-from-locale: New file.
69278         * lib/uniconv/u32-strconv-from-locale.c: New file.
69279
69280         * modules/uniconv/u16-strconv-from-locale: New file.
69281         * lib/uniconv/u16-strconv-from-locale.c: New file.
69282
69283         * modules/uniconv/u8-strconv-from-locale: New file.
69284         * lib/uniconv/u8-strconv-from-locale.c: New file.
69285
69286         * modules/uniconv/u32-strconv-to-enc: New file.
69287         * lib/uniconv/u32-strconv-to-enc.c: New file.
69288         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69289         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69290
69291         * modules/uniconv/u16-strconv-to-enc: New file.
69292         * lib/uniconv/u16-strconv-to-enc.c: New file.
69293         * lib/uniconv/u-strconv-to-enc.h: New file.
69294         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69295         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69296
69297         * modules/uniconv/u8-strconv-to-enc: New file.
69298         * lib/uniconv/u8-strconv-to-enc.c: New file.
69299         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69300         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69301
69302         * modules/uniconv/u32-strconv-from-enc: New file.
69303         * lib/uniconv/u32-strconv-from-enc.c: New file.
69304         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69305         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69306
69307         * modules/uniconv/u16-strconv-from-enc: New file.
69308         * lib/uniconv/u16-strconv-from-enc.c: New file.
69309         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69310         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69311
69312         * modules/uniconv/u8-strconv-from-enc: New file.
69313         * lib/uniconv/u8-strconv-from-enc.c: New file.
69314         * lib/uniconv/u-strconv-from-enc.h: New file.
69315         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69316         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69317
69318         * modules/uniconv/u32-conv-from-enc: New file.
69319         * lib/uniconv/u32-conv-from-enc.c: New file.
69320         * modules/uniconv/u32-conv-from-enc-tests: New file.
69321         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69322
69323         * modules/uniconv/u16-conv-from-enc: New file.
69324         * lib/uniconv/u16-conv-from-enc.c: New file.
69325         * lib/uniconv/u-conv-from-enc.h: New file.
69326         * modules/uniconv/u16-conv-from-enc-tests: New file.
69327         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69328
69329         * modules/uniconv/u8-conv-from-enc: New file.
69330         * lib/uniconv/u8-conv-from-enc.c: New file.
69331         * modules/uniconv/u8-conv-from-enc-tests: New file.
69332         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69333
69334         * modules/uniconv/base: New file.
69335         * lib/uniconv.h: New file.
69336
69337 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * doc/gnulib-tool.texi (Initial import): Update to match current
69340         behavior with strdup module.
69341         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69342         * lib/memmem.h: Remove; all uses removed.  This is now done
69343         by <string.h>.
69344         * lib/mempcpy.h: Likewise.
69345         * lib/memrchr.h: Likewise.
69346         * lib/stpcpy.h: Likewise.
69347         * lib/stpncpy.h: Likewise.
69348         * lib/strcase.h: Likewise.
69349         * lib/strchrnul.h: Likewise.
69350         * lib/strdup.h: Likewise.
69351         * lib/strndup.h: Likewise.
69352         * lib/strnlen.h: Likewise.
69353         * lib/strpbrk.h: Likewise.
69354         * lib/strsep.h: Likewise.
69355         * lib/strstr.h: Likewise.
69356         * lib/strtok_r.h: Likewise.
69357         * lib/string_.h: New file.
69358         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69359         Rely on <string.h> instead.
69360         * lib/canon-host.c: Likewise.
69361         * lib/chdir-long.c: Likewise.
69362         * lib/concatpath.c: Likewise.
69363         * lib/exclude.c: Likewise.
69364         * lib/fchdir.c: Likewise.
69365         * lib/getaddrinfo.c: Likewise.
69366         * lib/getcwd.c: Likewise.
69367         * lib/getsubopt.c: Likewise.
69368         * lib/glob.c: Likewise.
69369         * lib/hard-locale.c: Likewise.
69370         * lib/iconvme.c: Likewise.
69371         * lib/javacomp.c: Likewise.
69372         * lib/mempcpy.c: Likewise.
69373         * lib/memrchr.c: Likewise.
69374         * lib/regex_internal.h: Likewise.
69375         * lib/stpncpy.c: Likewise.
69376         * lib/strcasecmp.c: Likewise.
69377         * lib/strchrnul.c: Likewise.
69378         * lib/strdup.c: Likewise.
69379         * lib/striconv.c: Likewise.
69380         * lib/striconveh.c: Likewise.
69381         * lib/striconveha.c: Likewise.
69382         * lib/strncasecmp.c: Likewise.
69383         * lib/strndup.c: Likewise.
69384         * lib/strnlen.c: Likewise.
69385         * lib/strsep.c: Likewise.
69386         * lib/strstr.c: Likewise.
69387         * lib/strtok_r.c: Likewise.
69388         * lib/userspec.c: Likewise.
69389         * lib/w32spawn.h: Likewise.
69390         * lib/xstrndup.c: Likewise.
69391         * lib/mountlist.c (strstr): Remove decl.
69392         * m4/string_h.m4: New file.
69393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69394         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69395         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69396         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69397         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69398         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69399         Set REPLACE_STRCASECMP if necessary.
69400         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69402         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69404         HAVE_DECL_STRDUP if necessary.
69405         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69406         since gl_FUNC_STRNDUP does that now.
69407         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69408         Check for decl here...
69409         (gl_PREREQ_STRNLEN): ... not here.
69410         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69411         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69412         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69413         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69414         necessary.
69415         * modules/string: New file.
69416         * modules/memmem (Files): Remove special-purpose include file.
69417         (Depends-on): Add string.
69418         (Include): Include <string.h>, not the removed file.
69419         * modules/mempcpy: Likewise.
69420         * modules/memrchr: Likewise.
69421         * modules/stpcpy: Likewise.
69422         * modules/stpncpy: Likewise.
69423         * modules/strcase: Likewise.
69424         * modules/strchrnul: Likewise.
69425         * modules/strdup: Likewise.
69426         * modules/strndup: Likewise.
69427         * modules/strnlen: Likewise.
69428         * modules/strpbrk: Likewise.
69429         * modules/strsep: Likewise.
69430         * modules/strstr: Likewise.
69431         * modules/strtok_r: Likewise.
69432         * tests/test-dirname.c: Don't include "strdup.h", since
69433         <string.h> now suffices.
69434         * tests/test-memmem.c: Don't include "memmem.h", since
69435         <string.h> now suffices.
69436
69437 2007-01-25  Bruno Haible  <bruno@clisp.org>
69438
69439         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69440         *resultp is 0.
69441
69442         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69443         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69444         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69445         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69446
69447         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69448         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69449         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69450         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69451         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69452         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69453
69454 2007-01-24  Bruno Haible  <bruno@clisp.org>
69455
69456         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69458         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69459         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69460         gl_FUNC_FTS_CORE.
69461         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69462         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69463         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69464         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69465         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69466         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69467         gl_FUNC_FCHOWNAT.
69468         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69469         gl_FUNC_STRFTIME.
69470         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69471         Reported by Ralf Wildenhues.
69472
69473 2007-01-24  Bruno Haible  <bruno@clisp.org>
69474
69475         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69476         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69477         gl_GETADDRINFO.
69478         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69479         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69480         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69481
69482 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69485         Don't use 'exit'; just return from 'main'.
69486         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69487
69488         * lib/fnmatch_.h: Readjust white space and comments to match
69489         glibc, to avoid spurious diffs.
69490
69491 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69492
69493         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69494         2004-12-01 change by Jakub Jelinek, since this code won't compile
69495         if !LIBC.  Problem reported by Bob Proulx.
69496
69497 2007-01-23  Bruno Haible  <bruno@clisp.org>
69498
69499         * lib/striconveh.c: Include c-strcaseeq.h.
69500         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69501         * modules/striconveh (Depends-on): Add c-strcaseeq.
69502
69503 2007-01-23  Bruno Haible  <bruno@clisp.org>
69504
69505         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69506
69507         * modules/c-strcaseeq: New file.
69508         * lib/c-strcaseeq.h: New file.
69509
69510         * modules/streq: New file.
69511         * lib/streq.h: New file.
69512
69513 2007-01-23  Bruno Haible  <bruno@clisp.org>
69514
69515         * modules/striconveha-tests: New file.
69516         * tests/test-striconveha.c: New file.
69517
69518         * lib/striconveha.h: Include <stdbool.h>.
69519         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69520         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69521         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69522         (mem_iconveha): New function.
69523         (str_iconveha_notranslit): Renamed from str_iconveha.
69524         (str_iconveha): New function.
69525         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69526         c-strcase.
69527
69528 2007-01-23  Bruno Haible  <bruno@clisp.org>
69529
69530         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69531         encodings without forgiving before trying any encoding with handler.
69532         (str_iconveha): Try all encodings without forgiving before trying any
69533         encoding with handler.
69534
69535 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         Import the following changes from libc.
69538
69539         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69540
69541         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69542
69543         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69544
69545         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69546         normal_bracket label.
69547
69548         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69549
69550         [BZ #361]
69551         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69552         to normal_bracket after fetching the next character.
69553
69554 2007-01-22  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69557         argument.
69558         * lib/striconveh.c (iconv_carefully_1): New function.
69559         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69560         argument.
69561         (str_cd_iconveh): Update.
69562         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69563         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69564         * tests/test-striconveh.c (MAGIC): New macro.
69565         (new_offsets): New function.
69566         (main): Test call with and without offsets.
69567
69568 2007-01-22  Bruno Haible  <bruno@clisp.org>
69569
69570         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69571         * modules/sys_select (Makefile.am): Likewise.
69572         * modules/sys_socket (Makefile.am): Likewise.
69573         * modules/sys_time (Makefile.am): Likewise.
69574
69575 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * modules/gettimeofday (License): Change from GPL to LGPL, since
69578         gettimeofday is a library function.
69579
69580 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69581
69582         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69583
69584 2007-01-21  Bruno Haible  <bruno@clisp.org>
69585
69586         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69587
69588 2007-01-21  Bruno Haible  <bruno@clisp.org>
69589
69590         * modules/striconveha: New file.
69591         * lib/striconveha.h: New file.
69592         * lib/striconveha.c: New file.
69593         * MODULES.html.sh (Internationalization functions): Add striconveha.
69594         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69595         string.
69596         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69597
69598 2007-01-21  Bruno Haible  <bruno@clisp.org>
69599
69600         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69601         * lib/striconveh.c (str_iconveh): Likewise.
69602
69603 2007-01-21  Bruno Haible  <bruno@clisp.org>
69604
69605         * lib/striconveh.h (mem_iconveh): New declaration.
69606         * lib/striconveh.c (mem_iconveh): New function.
69607         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69608
69609 2007-01-21  Bruno Haible  <bruno@clisp.org>
69610
69611         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69612
69613         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69614         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69615         original result buffer.
69616         (str_cd_iconveh): Update.
69617         * tests/test-striconveh.c (main): Update.
69618
69619         * lib/striconv.h (mem_cd_iconv): Change specification.
69620         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69621         result buffer.
69622         (str_cd_iconv): Update.
69623         * tests/test-striconv.c (main): Update.
69624
69625 2007-01-21  Bruno Haible  <bruno@clisp.org>
69626
69627         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69628
69629 2007-01-20  Jim Meyering  <jim@meyering.net>
69630
69631         * lib/userspec.c (parse_with_separator): If a user or group string
69632         starts with "+", skip the corresponding name-to-ID look-up, since
69633         such a look-up must fail: user and group names may not include "+".
69634
69635 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69638         since we now assume the sys_time module.
69639         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69640         check for sys/time.h; no longer needed.
69641         * modules/poll (Depends-on): Depend on sys_time.
69642
69643 2007-01-18  Bruno Haible  <bruno@clisp.org>
69644
69645         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69647
69648         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69649         gettimeofday.
69650
69651         * tests/test-gettimeofday.c: Include <time.h>.
69652         (dummy): Remove variable.
69653
69654         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69655         gl_HEADER_SYS_TIME_H.
69656         (gl_HEADER_SYS_TIME_H): New macro.
69657
69658         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69659         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69660         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69661         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69662         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69664         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69665         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69666         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69667         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69668         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69669
69670         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69671         last change; it caused a compilation error when cross-compiling to
69672         Cygwin.
69673
69674 2007-01-18  Jim Meyering  <jim@meyering.net>
69675
69676         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69677         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69678         than the race-prone "test -d sys || mkdir sys".
69679         (configure.ac): Use AC_PROG_MKDIR_P.
69680         * modules/sys_select: Likewise.
69681         * modules/sys_socket: Likewise.
69682         * modules/sys_time: Likewise.
69683
69684 2007-01-18  Eric Blake  <ebb9@byu.net>
69685
69686         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69687         replace gettimeofday.
69688         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69689         name, to avoid infinite recursion.
69690
69691 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69692
69693         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69694         module sys_time.
69695         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69696         assume timespec.h defines struct timeval.
69697         * lib/settime.c: Likewise.
69698         * lib/utimens.c: Likewise.
69699         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69700         since we now assume the gettimeofday module.
69701         * lib/tempname.c (__gen_tempname): Likewise.
69702         * lib/gettimeofday.h: Remove.
69703         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69704         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69705         Include <time.h>, for 'time()'.
69706         (localtime_buffer_addr): Also use this workaround if
69707         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69708         to simplify the uses.  All uses changed.
69709         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69710         that #undef is inside {}, and 'const' follows type name consistently.
69711         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69712         (gettimeofday): Do not use the maximum possible value for
69713         tv->tv_usec, since that might break usages other than ls.c.
69714         Instead, we'll leave ls.c alone.  This undoes today's patch
69715         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69716         we've never observed the problem but might as well keep the
69717         canary.
69718         * lib/nanosleep.c: Include timespec.h first, for interface check.
69719         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69720         now assume the sys_time module.
69721         * lib/tempname.c: Likewise.
69722         * lib/timespec.h: Likewise.
69723         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69724         needed.
69725         * lib/strftime.c: Likewise.
69726         * lib/timespec.h: Likewise.
69727         * lib/posixtm.c: Include posixtm.h first, for interface check.
69728         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69729         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69730         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69731         * lib/sys_time_.h: New file.
69732         * lib/timespec.h (struct timespec): Use long int, not long.
69733         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69734         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69735         Remove obsolescent call to AC_HEADER_TIME.
69736         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69738         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69739         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69740         Likewise.
69741         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69742         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69744         into the sys_time module.  Check for gettimeofday just once.
69745         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69746         for gettimeofday signature to just check the signature.  Merely
69747         compile it, since linking doesn't test signature.  Improve test for
69748         whether gettimeofday.o is actually needed.
69749         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69750         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69751         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69752         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69753         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69754         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69755         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69756         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69757         than worrying about sys/time.h.
69758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69759         Don't bother worrying about TIME_WITH_SYS_TIME.
69760         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69761         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69762         * m4/sys_time_h.m4: New file.
69763         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69764         Don't include sys/time.h.  Return from main rather than exiting.
69765         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69766         all uses changed.
69767         * modules/gethrxtime (Depends-on): Add sys_time.
69768         * modules/gettime (Depends-on): Likewise.
69769         * modules/gettimeofday (Depends-on): Likewise.
69770         * modules/nanosleep (Depends-on): Likewise.
69771         * modules/settime (Depends-on): Likewise.
69772         * modules/tempname (Depends-on): Likewise.
69773         * modules/utimens (Depends-on): Likewise.
69774         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69775         (Include): Change back to <sys/time.h>.
69776         (Maintainer): Add self.
69777         * modules/sys_time: New file.
69778         * modules/tempname (Depends-on): Add gettimeofday.
69779         * tests/test-gettimeofday.c: Include <sys/time.h>
69780         rather than gettimeofday.h.
69781
69782 2007-01-17  Bruno Haible  <bruno@clisp.org>
69783
69784         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69785         the license default to GPL.
69786         (func_create_testdir): Don't complain if a module is LGPL and its
69787         tests module depends on GPLed modules.
69788
69789 2007-01-17  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/gettimeofday.c (gettimeofday): Add code for the case
69792         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69793         maximum possible value for tv->tv_usec, rather than the minimum one.
69794
69795 2005-10-08  Martin Lambers  <marlam@marlam.de>
69796 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69797 2007-01-16  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69800         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69801         gl_FUNC_GETTIMEOFDAY.
69802         (Include): Add gettimeofday.h.
69803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69805         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69806         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69807         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69808         * lib/gettimeofday.h: New file.
69809         * lib/gettimeofday.c: Include <sys/timeb.h>.
69810         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69811         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69812         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69813         fall back on time().
69814
69815         * tests/test-gettimeofday.c: New file.
69816         * modules/gettimeofday-tests: New file.
69817
69818 2007-01-16  Eric Blake  <ebb9@byu.net>
69819
69820         * modules/fnmatch (Depends-on): Depend on wchar.
69821         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69822         * m4/fnmatch.m4: Likewise.
69823         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69824         * m4/mbchar.m4: Likewise.
69825         * modules/mbswidth (Depends-on): Depend on wchar.
69826         * lib/mbswidth.c: Assume <wchar.h>.
69827         * m4/mbswidth.m4: Likewise.
69828         * modules/quotearg (Depends-on): Depend on wchar.
69829         * lib/quotearg.c: Assume <wchar.h>.
69830         * m4/quotearg.m4: Likewise.
69831         * modules/regex (Depends-on): Depend on wchar.
69832         * lib/regex_internal.h: Assume <wchar.h>.
69833         * m4/regex.m4: Likewise.
69834         * modules/stdint (Depends-on): Depend on wchar.
69835         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69836         * m4/stdint.m4: Likewise.
69837         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69838         * modules/strftime (Depends-on): Depend on wchar.
69839         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69840         * modules/strtol (Depends-on): Depend on wchar.
69841         * lib/strtol.c: Assume <wchar.h>.
69842         * modules/wcwidth (Depends-on): Depend on wchar.
69843         * lib/wcwidth.h: Assume <wchar.h>.
69844         * m4/wcwidth.m4: Likewise.
69845
69846 2007-01-16  Bruno Haible  <bruno@clisp.org>
69847
69848         * modules/csharpexec-script: New, created from...
69849         * modules/csharpexec: ... this.
69850
69851 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69852
69853         * modules/javaexec-script: New, created from...
69854         * modules/javaexec: ... this.
69855
69856 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69857
69858         * modules/poll (Dependencies): Add sys_select.
69859
69860 2007-01-15  Jim Meyering  <jim@meyering.net>
69861
69862         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69863         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69864         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69865         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69866
69867 2007-01-15  Bruno Haible  <bruno@clisp.org>
69868
69869         * modules/striconveh: New file.
69870         * lib/striconveh.h: New file.
69871         * lib/striconveh.c: New file.
69872         * MODULES.html.sh (Internationalization functions): Add striconveh.
69873
69874         * modules/striconveh-tests: New file.
69875         * tests/test-striconveh.c: New file.
69876
69877 2007-01-15  Bruno Haible  <bruno@clisp.org>
69878
69879         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69880         not from GNU libiconv or GNU libc.
69881
69882 2007-01-15  Bruno Haible  <bruno@clisp.org>
69883
69884         * doc/gnulib-intro.texi (Copyright): Explain the different license
69885         terms for module descriptions, autoconf macros, tests, documentation.
69886
69887 2007-01-14  Bruno Haible  <bruno@clisp.org>
69888
69889         * modules/striconv-tests: New file.
69890         * tests/test-striconv.c: New file.
69891
69892 2007-01-14  Bruno Haible  <bruno@clisp.org>
69893
69894         * modules/iconv-tests: New file.
69895         * tests/test-iconv.c: New file.
69896
69897 2007-01-14  Bruno Haible  <bruno@clisp.org>
69898
69899         * gnulib-tool (func_get_license): For test modules, use the license of
69900         the main module.
69901
69902 2007-01-14  Bruno Haible  <bruno@clisp.org>
69903
69904         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69905         if iconv is found to exist.
69906
69907 2007-01-14  Bruno Haible  <bruno@clisp.org>
69908
69909         * modules/c-ctype-tests: New file.
69910         * tests/test-c-ctype.c: New file.
69911
69912 2007-01-14  Bruno Haible  <bruno@clisp.org>
69913
69914         * modules/binary-io-tests: New file.
69915         * tests/test-binary-io.sh: New file.
69916         * tests/test-binary-io.c: New file.
69917
69918 2007-01-14  Bruno Haible  <bruno@clisp.org>
69919
69920         * modules/array-oset-tests: New file.
69921         * tests/test-array_oset.c: New file.
69922
69923 2007-01-14  Bruno Haible  <bruno@clisp.org>
69924
69925         * modules/array-list-tests: New file.
69926         * tests/test-array_list.c: New file.
69927
69928 2007-01-14  Bruno Haible  <bruno@clisp.org>
69929
69930         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69931         and make.
69932         Reported by Simon Josefsson in
69933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69934
69935 2007-01-14  Bruno Haible  <bruno@clisp.org>
69936
69937         * modules/allocsa-tests: New file.
69938         * tests/test-allocsa.c: New file.
69939
69940 2007-01-14  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/fchdir (Depends-on): Add absolute-header.
69943         * modules/unistd (Depends-on): Likewise.
69944
69945 2006-12-30  Bruno Haible  <bruno@clisp.org>
69946
69947         * modules/fchdir: New file.
69948         * modules/unistd (Files): Add lib/unistd_.h.
69949         (Makefile.am): Generate unistd.h from unistd_.h.
69950         * lib/fchdir.c: New file.
69951         * lib/dirent_.h: New file.
69952         * lib/unistd_.h: New file.
69953         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69954         * m4/fchdir.m4: New file.
69955         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69956         (gl_HEADER_UNISTD): Invoke it.
69957         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69958         function.
69959         * lib/backupfile.c (opendir, closedir): Undefine.
69960         * lib/chown.c (open, close): Undefine.
69961         * lib/clean-temp.c (open, close): Undefine.
69962         * lib/copy-file.c (open, close): Undefine.
69963         * lib/execute.c (open, close): Undefine.
69964         * lib/fsusage.c (open, close): Undefine.
69965         * lib/gc-gnulib.c (open, close): Undefine.
69966         * lib/getcwd.c (opendir, closedir): Undefine.
69967         * lib/glob.c (opendir, closedir): Undefine.
69968         * lib/javacomp.c (open, close): Undefine.
69969         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69970         * lib/openat-proc.c (open, close): Undefine.
69971         * lib/pagealign_alloc.c (open, close): Undefine.
69972         * lib/pipe.c (open, close): Undefine.
69973         * lib/progreloc.c (open, close): Undefine.
69974         * lib/savedir.c (opendir, closedir): Undefine.
69975         * lib/utime.c (open, close): Undefine.
69976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69977
69978 2007-01-10  Bruno Haible  <bruno@clisp.org>
69979
69980         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69981
69982 2007-01-12  Eric Blake  <ebb9@byu.net>
69983
69984         Provide a robust <wchar.h>.  Further simplifications are now
69985         possible in other modules, but not included here.
69986         * modules/wchar: New module.
69987         * m4/wchar.m4: New file.
69988         * lib/wchar_.h: Likewise.
69989         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69990         of the new module.
69991         * MODULES.html.sh (Extended multibyte and wide character utilities):
69992         New section.
69993
69994 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69997         to a reasonable default for memory allocation.
69998         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69999         file system that reports garbage st_size values for symlinks.
70000         Problem reported by Liyang Hu.
70001
70002 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70003
70004         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70005         Emacs .#* auto-save files).
70006
70007 2007-01-11  Bruno Haible  <bruno@clisp.org>
70008
70009         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70010         directory.
70011
70012 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70013
70014         Use @...@ consistently in lib/wctype_.h.
70015         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70016         on it being set to 1 or 0.
70017         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70018         go back to AC_SUBSTing it.
70019         * modules/wctype (Makefile.am): Undo previous change.
70020
70021 2007-01-10  Eric Blake  <ebb9@byu.net>
70022
70023         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70024         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70025         * modules/wctype (Makefile.am): Likewise.
70026         Reported by Chris McGuire.
70027
70028 2007-01-10  Jim Meyering  <jim@meyering.net>
70029
70030         fts.c: a small readability/maintainability improvement
70031         * lib/fts.c (fts_read): Make this code slightly more readable and
70032         maintainable by hoisting the "sp->fts_cur = p" assignments to
70033         immediately follow the statements that set P.  Derived from
70034         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70035
70036 2007-01-10  Eric Blake  <ebb9@byu.net>
70037
70038         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70039         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70041         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70042         Reported by Chris McGuire.
70043
70044 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70045
70046         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70047         in sed script.
70048
70049 2007-01-09  Bruno Haible  <bruno@clisp.org>
70050
70051         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70052         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70053         variables.
70054         (func_module): Use them.
70055
70056 2007-01-09  Bruno Haible  <bruno@clisp.org>
70057
70058         * modules/unistr/base: New file.
70059         * lib/unistr.h: New file.
70060
70061         * modules/unistr/u8-to-u16: New file.
70062         * lib/unistr/u8-to-u16.c: New file.
70063
70064         * modules/unistr/u8-to-u32: New file.
70065         * lib/unistr/u8-to-u32.c: New file.
70066
70067         * modules/unistr/u16-to-u8: New file.
70068         * lib/unistr/u16-to-u8.c: New file.
70069
70070         * modules/unistr/u16-to-u32: New file.
70071         * lib/unistr/u16-to-u32.c: New file.
70072
70073         * modules/unistr/u32-to-u8: New file.
70074         * lib/unistr/u32-to-u8.c: New file.
70075
70076         * modules/unistr/u32-to-u16: New file.
70077         * lib/unistr/u32-to-u16.c: New file.
70078
70079         * modules/unistr/u8-check: New file.
70080         * modules/unistr/u16-check: New file.
70081         * modules/unistr/u32-check: New file.
70082         * lib/unistr/u8-check.c: New file.
70083         * lib/unistr/u16-check.c: New file.
70084         * lib/unistr/u32-check.c: New file.
70085
70086         * modules/unistr/u8-chr: New file.
70087         * modules/unistr/u16-chr: New file.
70088         * modules/unistr/u32-chr: New file.
70089         * lib/unistr/u8-chr.c: New file.
70090         * lib/unistr/u16-chr.c: New file.
70091         * lib/unistr/u32-chr.c: New file.
70092
70093         * modules/unistr/u8-cmp: New file.
70094         * modules/unistr/u16-cmp: New file.
70095         * modules/unistr/u32-cmp: New file.
70096         * lib/unistr/u8-cmp.c: New file.
70097         * lib/unistr/u16-cmp.c: New file.
70098         * lib/unistr/u32-cmp.c: New file.
70099
70100         * modules/unistr/u8-cpy: New file.
70101         * modules/unistr/u16-cpy: New file.
70102         * modules/unistr/u32-cpy: New file.
70103         * lib/unistr/u8-cpy.c: New file.
70104         * lib/unistr/u16-cpy.c: New file.
70105         * lib/unistr/u32-cpy.c: New file.
70106         * lib/unistr/u-cpy.h: New file.
70107
70108         * modules/unistr/u8-cpy-alloc: New file.
70109         * modules/unistr/u16-cpy-alloc: New file.
70110         * modules/unistr/u32-cpy-alloc: New file.
70111         * lib/unistr/u8-cpy-alloc.c: New file.
70112         * lib/unistr/u16-cpy-alloc.c: New file.
70113         * lib/unistr/u32-cpy-alloc.c: New file.
70114         * lib/unistr/u-cpy-alloc.h: New file.
70115
70116         * modules/unistr/u8-endswith: New file.
70117         * modules/unistr/u16-endswith: New file.
70118         * modules/unistr/u32-endswith: New file.
70119         * lib/unistr/u8-endswith.c: New file.
70120         * lib/unistr/u16-endswith.c: New file.
70121         * lib/unistr/u32-endswith.c: New file.
70122         * lib/unistr/u-endswith.h: New file.
70123
70124         * modules/unistr/u8-mblen: New file.
70125         * modules/unistr/u16-mblen: New file.
70126         * modules/unistr/u32-mblen: New file.
70127         * lib/unistr/u8-mblen.c: New file.
70128         * lib/unistr/u16-mblen.c: New file.
70129         * lib/unistr/u32-mblen.c: New file.
70130
70131         * modules/unistr/u8-mbtouc: New file.
70132         * modules/unistr/u16-mbtouc: New file.
70133         * modules/unistr/u32-mbtouc: New file.
70134         * lib/unistr/u8-mbtouc.c: New file.
70135         * lib/unistr/u16-mbtouc.c: New file.
70136         * lib/unistr/u32-mbtouc.c: New file.
70137
70138         * modules/unistr/u8-mbtouc-safe: New file.
70139         * modules/unistr/u16-mbtouc-safe: New file.
70140         * modules/unistr/u32-mbtouc-safe: New file.
70141         * lib/unistr/u8-mbtouc-safe.c: New file.
70142         * lib/unistr/u16-mbtouc-safe.c: New file.
70143         * lib/unistr/u32-mbtouc-safe.c: New file.
70144
70145         * modules/unistr/u8-move: New file.
70146         * modules/unistr/u16-move: New file.
70147         * modules/unistr/u32-move: New file.
70148         * lib/unistr/u8-move.c: New file.
70149         * lib/unistr/u16-move.c: New file.
70150         * lib/unistr/u32-move.c: New file.
70151         * lib/unistr/u-move.h: New file.
70152
70153         * modules/unistr/u8-next: New file.
70154         * modules/unistr/u16-next: New file.
70155         * modules/unistr/u32-next: New file.
70156         * lib/unistr/u8-next.c: New file.
70157         * lib/unistr/u16-next.c: New file.
70158         * lib/unistr/u32-next.c: New file.
70159
70160         * modules/unistr/u8-prev: New file.
70161         * modules/unistr/u16-prev: New file.
70162         * modules/unistr/u32-prev: New file.
70163         * lib/unistr/u8-prev.c: New file.
70164         * lib/unistr/u16-prev.c: New file.
70165         * lib/unistr/u32-prev.c: New file.
70166
70167         * modules/unistr/u8-set: New file.
70168         * modules/unistr/u16-set: New file.
70169         * modules/unistr/u32-set: New file.
70170         * lib/unistr/u8-set.c: New file.
70171         * lib/unistr/u16-set.c: New file.
70172         * lib/unistr/u32-set.c: New file.
70173         * lib/unistr/u-set.h: New file.
70174
70175         * modules/unistr/u8-startswith: New file.
70176         * modules/unistr/u16-startswith: New file.
70177         * modules/unistr/u32-startswith: New file.
70178         * lib/unistr/u8-startswith.c: New file.
70179         * lib/unistr/u16-startswith.c: New file.
70180         * lib/unistr/u32-startswith.c: New file.
70181         * lib/unistr/u-startswith.h: New file.
70182
70183         * modules/unistr/u8-stpcpy: New file.
70184         * modules/unistr/u16-stpcpy: New file.
70185         * modules/unistr/u32-stpcpy: New file.
70186         * lib/unistr/u8-stpcpy.c: New file.
70187         * lib/unistr/u16-stpcpy.c: New file.
70188         * lib/unistr/u32-stpcpy.c: New file.
70189         * lib/unistr/u-stpcpy.h: New file.
70190
70191         * modules/unistr/u8-stpncpy: New file.
70192         * modules/unistr/u16-stpncpy: New file.
70193         * modules/unistr/u32-stpncpy: New file.
70194         * lib/unistr/u8-stpncpy.c: New file.
70195         * lib/unistr/u16-stpncpy.c: New file.
70196         * lib/unistr/u32-stpncpy.c: New file.
70197         * lib/unistr/u-stpncpy.h: New file.
70198
70199         * modules/unistr/u8-strcat: New file.
70200         * modules/unistr/u16-strcat: New file.
70201         * modules/unistr/u32-strcat: New file.
70202         * lib/unistr/u8-strcat.c: New file.
70203         * lib/unistr/u16-strcat.c: New file.
70204         * lib/unistr/u32-strcat.c: New file.
70205         * lib/unistr/u-strcat.h: New file.
70206
70207         * modules/unistr/u8-strchr: New file.
70208         * modules/unistr/u16-strchr: New file.
70209         * modules/unistr/u32-strchr: New file.
70210         * lib/unistr/u8-strchr.c: New file.
70211         * lib/unistr/u16-strchr.c: New file.
70212         * lib/unistr/u32-strchr.c: New file.
70213
70214         * modules/unistr/u8-strcmp: New file.
70215         * modules/unistr/u16-strcmp: New file.
70216         * modules/unistr/u32-strcmp: New file.
70217         * lib/unistr/u8-strcmp.c: New file.
70218         * lib/unistr/u16-strcmp.c: New file.
70219         * lib/unistr/u32-strcmp.c: New file.
70220
70221         * modules/unistr/u8-strcpy: New file.
70222         * modules/unistr/u16-strcpy: New file.
70223         * modules/unistr/u32-strcpy: New file.
70224         * lib/unistr/u8-strcpy.c: New file.
70225         * lib/unistr/u16-strcpy.c: New file.
70226         * lib/unistr/u32-strcpy.c: New file.
70227         * lib/unistr/u-strcpy.h: New file.
70228
70229         * modules/unistr/u8-strcspn: New file.
70230         * modules/unistr/u16-strcspn: New file.
70231         * modules/unistr/u32-strcspn: New file.
70232         * lib/unistr/u8-strcspn.c: New file.
70233         * lib/unistr/u16-strcspn.c: New file.
70234         * lib/unistr/u32-strcspn.c: New file.
70235         * lib/unistr/u-strcspn.h: New file.
70236
70237         * modules/unistr/u8-strdup: New file.
70238         * modules/unistr/u16-strdup: New file.
70239         * modules/unistr/u32-strdup: New file.
70240         * lib/unistr/u8-strdup.c: New file.
70241         * lib/unistr/u16-strdup.c: New file.
70242         * lib/unistr/u32-strdup.c: New file.
70243         * lib/unistr/u-strdup.h: New file.
70244
70245         * modules/unistr/u8-strlen: New file.
70246         * modules/unistr/u16-strlen: New file.
70247         * modules/unistr/u32-strlen: New file.
70248         * lib/unistr/u8-strlen.c: New file.
70249         * lib/unistr/u16-strlen.c: New file.
70250         * lib/unistr/u32-strlen.c: New file.
70251         * lib/unistr/u-strlen.h: New file.
70252
70253         * modules/unistr/u8-strmblen: New file.
70254         * modules/unistr/u16-strmblen: New file.
70255         * modules/unistr/u32-strmblen: New file.
70256         * lib/unistr/u8-strmblen.c: New file.
70257         * lib/unistr/u16-strmblen.c: New file.
70258         * lib/unistr/u32-strmblen.c: New file.
70259
70260         * modules/unistr/u8-strmbtouc: New file.
70261         * modules/unistr/u16-strmbtouc: New file.
70262         * modules/unistr/u32-strmbtouc: New file.
70263         * lib/unistr/u8-strmbtouc.c: New file.
70264         * lib/unistr/u16-strmbtouc.c: New file.
70265         * lib/unistr/u32-strmbtouc.c: New file.
70266
70267         * modules/unistr/u8-strncat: New file.
70268         * modules/unistr/u16-strncat: New file.
70269         * modules/unistr/u32-strncat: New file.
70270         * lib/unistr/u8-strncat.c: New file.
70271         * lib/unistr/u16-strncat.c: New file.
70272         * lib/unistr/u32-strncat.c: New file.
70273         * lib/unistr/u-strncat.h: New file.
70274
70275         * modules/unistr/u8-strncmp: New file.
70276         * modules/unistr/u16-strncmp: New file.
70277         * modules/unistr/u32-strncmp: New file.
70278         * lib/unistr/u8-strncmp.c: New file.
70279         * lib/unistr/u16-strncmp.c: New file.
70280         * lib/unistr/u32-strncmp.c: New file.
70281
70282         * modules/unistr/u8-strncpy: New file.
70283         * modules/unistr/u16-strncpy: New file.
70284         * modules/unistr/u32-strncpy: New file.
70285         * lib/unistr/u8-strncpy.c: New file.
70286         * lib/unistr/u16-strncpy.c: New file.
70287         * lib/unistr/u32-strncpy.c: New file.
70288         * lib/unistr/u-strncpy.h: New file.
70289
70290         * modules/unistr/u8-strnlen: New file.
70291         * modules/unistr/u16-strnlen: New file.
70292         * modules/unistr/u32-strnlen: New file.
70293         * lib/unistr/u8-strnlen.c: New file.
70294         * lib/unistr/u16-strnlen.c: New file.
70295         * lib/unistr/u32-strnlen.c: New file.
70296         * lib/unistr/u-strnlen.h: New file.
70297
70298         * modules/unistr/u8-strpbrk: New file.
70299         * modules/unistr/u16-strpbrk: New file.
70300         * modules/unistr/u32-strpbrk: New file.
70301         * lib/unistr/u8-strpbrk.c: New file.
70302         * lib/unistr/u16-strpbrk.c: New file.
70303         * lib/unistr/u32-strpbrk.c: New file.
70304         * lib/unistr/u-strpbrk.h: New file.
70305
70306         * modules/unistr/u8-strrchr: New file.
70307         * modules/unistr/u16-strrchr: New file.
70308         * modules/unistr/u32-strrchr: New file.
70309         * lib/unistr/u8-strrchr.c: New file.
70310         * lib/unistr/u16-strrchr.c: New file.
70311         * lib/unistr/u32-strrchr.c: New file.
70312
70313         * modules/unistr/u8-strspn: New file.
70314         * modules/unistr/u16-strspn: New file.
70315         * modules/unistr/u32-strspn: New file.
70316         * lib/unistr/u8-strspn.c: New file.
70317         * lib/unistr/u16-strspn.c: New file.
70318         * lib/unistr/u32-strspn.c: New file.
70319         * lib/unistr/u-strspn.h: New file.
70320
70321         * modules/unistr/u8-strstr: New file.
70322         * modules/unistr/u16-strstr: New file.
70323         * modules/unistr/u32-strstr: New file.
70324         * lib/unistr/u8-strstr.c: New file.
70325         * lib/unistr/u16-strstr.c: New file.
70326         * lib/unistr/u32-strstr.c: New file.
70327         * lib/unistr/u-strstr.h: New file.
70328
70329         * modules/unistr/u8-strtok: New file.
70330         * modules/unistr/u16-strtok: New file.
70331         * modules/unistr/u32-strtok: New file.
70332         * lib/unistr/u8-strtok.c: New file.
70333         * lib/unistr/u16-strtok.c: New file.
70334         * lib/unistr/u32-strtok.c: New file.
70335         * lib/unistr/u-strtok.h: New file.
70336
70337         * modules/unistr/u8-uctomb: New file.
70338         * modules/unistr/u16-uctomb: New file.
70339         * modules/unistr/u32-uctomb: New file.
70340         * lib/unistr/u8-uctomb.c: New file.
70341         * lib/unistr/u16-uctomb.c: New file.
70342         * lib/unistr/u32-uctomb.c: New file.
70343
70344         * MODULES.html.sh (Unicode string functions): Add the new modules.
70345
70346 2007-01-08  Bruno Haible  <bruno@clisp.org>
70347
70348         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70349         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70350         subdirectories.
70351
70352 2007-01-08  Karl Berry  <karl@gnu.org>
70353
70354         * doc/error.texi: mention that main() fns must set program_name
70355         when progname is used.
70356
70357 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70358
70359         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70360         WCTYPE_H is empty, for the benefit of builds from non-distclean
70361         directories.  Problem reported by Eric Blake in
70362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70363
70364 2007-01-08  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70367         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70368         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70369         PROVIDE_CANONICALIZE_FILENAME_MODE.
70370         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70371
70372 2007-01-08  Bruno Haible  <bruno@clisp.org>
70373
70374         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70375         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70376         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70377         * lib/fts.c: Likewise.
70378         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70379
70380 2006-12-25  Bruno Haible  <bruno@clisp.org>
70381
70382         * modules/utf8-ucs4-safe: New file.
70383         * lib/utf8-ucs4-safe.h: New file.
70384         * lib/unistr/utf8-ucs4-safe.c: New file.
70385
70386         * modules/utf16-ucs4-safe: New file.
70387         * lib/utf16-ucs4-safe.h: New file.
70388         * lib/unistr/utf16-ucs4-safe.c: New file.
70389
70390         * MODULES.html.sh (Unicode string functions): Add the new modules.
70391
70392 2007-01-08  Bruno Haible  <bruno@clisp.org>
70393
70394         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70395         (Depends-on): Add unitypes.
70396         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70397         (u8_mbtouc_aux): Move out to separate file.
70398         (u8_mbtouc): Use ucs4_t, uint8_t types.
70399         * lib/unistr/utf8-ucs4.c: New file.
70400
70401         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70402         (Depends-on): Add unitypes.
70403         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70404         (u16_mbtouc_aux): Move out to separate file.
70405         (u16_mbtouc): Use ucs4_t, uint16_t types.
70406         * lib/unistr/utf16-ucs4.c: New file.
70407
70408         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70409         (Depends-on): Add unitypes.
70410         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70411         (u8_uctomb_aux): Move out to separate file.
70412         (u8_uctomb): Use ucs4_t, uint8_t types.
70413         * lib/unistr/ucs4-utf8.c: New file.
70414
70415         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70416         (Depends-on): Add unitypes.
70417         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70418         (u16_uctomb_aux): Move out to separate file.
70419         (u16_uctomb): Use ucs4_t, uint16_t types.
70420         * lib/unistr/ucs4-utf16.c: New file.
70421
70422 2006-12-25  Bruno Haible  <bruno@clisp.org>
70423
70424         * modules/unitypes: New file.
70425         * lib/unitypes.h: New file.
70426         * MODULES.html.sh (func_all_modules): New section "Unicode string
70427         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70428         this section. Add unitypes.
70429
70430 2007-01-08  Bruno Haible  <bruno@clisp.org>
70431
70432         Avoid variable names that conflict with those from libtool.
70433         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70434         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70435         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70436         library_names_spec to acl_library_names_spec, hardcode_* to
70437         acl_hardcode_*.
70438         Reported by Ralf Wildenhues.
70439
70440 2007-01-08  Bruno Haible  <bruno@clisp.org>
70441
70442         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70443         definition.
70444         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70445         definition.
70446         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70447         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70448         definition.
70449         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70450         definition.
70451         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70452         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70453         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70454         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70455         definition.
70456         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70457         definition.
70458         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70459         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70460         GC_USE_<algorithm>.
70461         * lib/gc-libgcrypt.c: Likewise.
70462         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70463         * modules/gc-arctwo (configure.ac): Likewise.
70464         * modules/gc-des (configure.ac): Likewise.
70465         * modules/gc-hmac-md5 (configure.ac): Likewise.
70466         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70467         * modules/gc-md2 (configure.ac): Likewise.
70468         * modules/gc-md4 (configure.ac): Likewise.
70469         * modules/gc-md5 (configure.ac): Likewise.
70470         * modules/gc-random (configure.ac): Likewise.
70471         * modules/gc-rijndael (configure.ac): Likewise.
70472         * modules/gc-sha1 (configure.ac): Likewise.
70473
70474 2007-01-08  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70477         macro definition.
70478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70479         definition.
70480         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70481         definition.
70482         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70483         * modules/fcntl-safer (configure.ac): Likewise.
70484         * modules/fopen-safer (configure.ac): Likewise.
70485         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70486         GNULIB_FWRITEERROR macro definition.
70487
70488 2007-01-08  Bruno Haible  <bruno@clisp.org>
70489
70490         * m4/gnulib-common.m4: New file.
70491         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70492         (func_get_filelist): Add m4/gnulib-common.m4.
70493
70494 2007-01-08  Bruno Haible  <bruno@clisp.org>
70495
70496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70497         command.
70498
70499 2007-01-08  Jim Meyering  <jim@meyering.net>
70500
70501         Use a more robust test for a "can't happen" condition.
70502         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70503         narrowed the st_size value.  Presuming the "can't happen" condition
70504         is true, that narrowing could conceivably convert an invalid st_size
70505         value into a valid one.  Instead, use a change based on Matthew
70506         Woehlke's original patch.
70507
70508         Slight readability improvement: use an assert-like macro
70509         in place of literal "abort ()" uses.
70510         * lib/fts.c (fts_assert): Define.
70511         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70512         Use this macro instead of a bare 'abort'.
70513
70514 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70515
70516         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70517         simply work around them.
70518         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70519         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70520         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70521         declaring.
70522         Don't bother to define as macros, since the standard doesn't require it.
70523         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70524         longer worry about IRIX 5.3.
70525         (HAVE_WCTYPE_CTMP_BUG): Remove.
70526
70527 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70528
70529         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70530         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70531         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70532         Problems reported by Georg Schwarz for IRIX 5.3.
70533
70534         * gnulib-tool (autoconf_minversion): Take the maximum version number
70535         found, not the minimum.  Problem reported by James Youngman.
70536
70537 2007-01-03  Karl Berry  <karl@gnu.org>
70538
70539         * doc/error.texi: new file, explaining interaction with progname.
70540         * doc/gnulib.texi: include it.  Update copyright.
70541
70542 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70543
70544         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70545         AC_CANONICAL_HOST, to improve autobuild outputs.
70546
70547 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70548             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70549
70550         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70551         sockets, server sockets, and other file descriptors.  Count errors
70552         to compute the return value.  Reorder the code a bit to be easier
70553         to follow.  Don't set event bits that were not requested (except
70554         POLLERR and POLLHUP).
70555
70556 2007-01-01  Bruno Haible  <bruno@clisp.org>
70557
70558         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70559
70560 2007-01-03  Jim Meyering  <jim@meyering.net>
70561
70562         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70563
70564 2007-01-02  Bruno Haible  <bruno@clisp.org>
70565
70566         * modules/settime (Include): Require timespec.h.
70567         * modules/nanosleep (Include): Likewise.
70568
70569 2007-01-01  Bruno Haible  <bruno@clisp.org>
70570
70571         * gnulib-tool (func_emit_copyright_notice): Bump year.
70572         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70573
70574 2007-01-01  Bruno Haible  <bruno@clisp.org>
70575
70576         Improve support for OpenBSD.
70577         * build-aux/config.rpath (libname_spec): Export.
70578         (library_names_spec): New variable. Export.
70579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70580         library_names_spec from the config.rpath output. Locate shared library
70581         through the name pattern in library_names_spec.
70582
70583 2007-01-01  Eric Blake  <ebb9@byu.net>
70584
70585         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70586
70587 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70590         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70591         assume the C locale, and avoid an "eval" that could cause trouble.
70592         Problem with SORT reported by Bob Proulx.
70593
70594         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70595         Define.  Trivial patch from Henning Nielsen Lund, originally
70596         sent to bug-grep@gnu.org today.
70597
70598 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70601         struct stat.  Problem reported by Henning Nielsen Lund.
70602         * lib/acl.c: Include acl.h first, to check interface.  Don't
70603         bother to include sys/types.h and sys/stat.h again.
70604
70605 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         Import the following change from libc; problem reported by
70608         Sven Verdoolaege.
70609
70610         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70611
70612         [BZ #1373]
70613         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70614
70615 2006-12-28  Jim Meyering  <jim@meyering.net>
70616
70617         * build-aux/announce-gen: Do not assume that the package
70618         builds any of tar.gz, tar.bz2, and .xdelta files.
70619         Suggestion from Simon Josefsson.
70620
70621 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70622
70623         * modules/announce-gen: New file.
70624
70625 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70628         handles its gotchas now.
70629         * lib/mbswidth.c: Likewise.
70630         * lib/wcwidth.h: Likewise.
70631         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70632         and iswcntrl; the wctype module does this stuff now.
70633         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70635         * modules/mbchar (Depends-on): Add wctype.
70636         * modules/mbswidth (Depends-on): Likewise.
70637         * modules/wcwidth (Depends-on): Likewise.
70638
70639 2006-12-27  Eric Blake  <ebb9@byu.net>
70640
70641         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70642         module uses more than what <wctype.h> is required to provide.
70643
70644 2006-12-26  Eric Blake  <ebb9@byu.net>
70645
70646         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70647
70648 2006-12-26  Eric Blake  <ebb9@byu.net>
70649
70650         * modules/absolute-header: New module.
70651         * modules/fcntl (Depends-on): Depend on it.
70652         * modules/inttypes (Depends-on): Likewise.
70653         * modules/stdint (Depends-on): Likewise.
70654         * modules/sys_stat (Depends-on): Likewise.
70655         * modules/wctype (Depends-on): Likewise.
70656         * MODULES.html.sh (Support for building libraries and
70657         executables): Document it.
70658
70659 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * gnulib-tool (SED): Remove, undoing previous change.
70662         The problem was that it broke coreutils on Solaris, because
70663         "sed --posix" leaked into a makefile.
70664         (sed): New alias, if 'alias' and GNU sed.
70665
70666 2006-12-24  Jim Meyering  <jim@meyering.net>
70667
70668         Work around an fchownat bug in glibc-2.4:
70669         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70670         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70671         in spite of the -P option.
70672         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70673         New macros.
70674         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70675         * modules/openat (Files): Add lib/fchownat.c.
70676         * lib/openat.c (fchownat): Don't define here.  Move to...
70677         * lib/fchownat.c: ...this new file.
70678
70679 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         Fix bug reported by Bruno Haible in
70682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70683         where quotearg.c didn't compile on Mac OS X 10.2 because it
70684         lacks <wchar.h> and wint_t.
70685         * lib/wctype_.h (__wctype_wint_t): New type.
70686         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70687         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70688         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70689         Arg is now of type __wctype_wint_t, not wint_t.
70690         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70691         substitute HAVE_WINT_T.
70692         * modules/wctype (Files): Add m4/wint_t.m4.
70693         (wctype.h): Substitute HAVE_WINT_T.
70694
70695 2006-12-23  Bruno Haible  <bruno@clisp.org>
70696
70697         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70698
70699 2006-12-23  Bruno Haible  <bruno@clisp.org>
70700
70701         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70702         S_ISLNK.
70703         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70704         mingw.
70705
70706 2006-12-22  Bruno Haible  <bruno@clisp.org>
70707
70708         * lib/copy-file.c: Include acl.h.
70709         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70710         Close the file descriptors only after being done with copy_acl.
70711         * modules/copy-file (Depends-on): Add acl.
70712
70713 2006-12-22  Bruno Haible  <bruno@clisp.org>
70714
70715         * gnulib-tool (SED): New variable.
70716         Use $SED instead of sed everywhere.
70717
70718 2006-12-22  Bruno Haible  <bruno@clisp.org>
70719
70720         * modules/no-c++: New file.
70721         * m4/no-c++.m4: New file.
70722         * MODULES.html.sh (Support for building libraries and executables):
70723         Add no-c++.
70724
70725 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70728         Include <limits.h>, and use its INT_MAX to rewrite the
70729         j loop so that it does not overflow 'int'.  Problem reported by
70730         Ralf Wildenhues in
70731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70732         Play it safe by shifting left by 1 rather than multiplying by 2,
70733         as GCC is less likely to optimize this away when the value
70734         is signed (when it assumes overflow leads to undefined behavior).
70735         Also, don't assume time_t uses two's complement.
70736
70737 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * MODULES.html.sh: New module wctype.
70740         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70741         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70742         <wctype.h>, since the new wctype module should fix this.
70743         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70744         the wctype module should arrange for it.
70745         * lib/regex_internal.h: Likewise.
70746         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70747         since the wctype module should handle this now.
70748         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70749         * modules/fnmatch (Depends-on): Add wctype.
70750         * modules/quotearg (Depends-on): Likewise.
70751         * modules/regex (Depends-on): Likewise.
70752
70753 2006-12-19  Bruno Haible  <bruno@clisp.org>
70754
70755         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70756         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70757
70758 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70759
70760         * modules/savewd (Depends-on): Fix dependency on fcntl.
70761
70762 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70763
70764         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70765         conforms to C99, rather than relying on the user's environment
70766         setting of STDINT_H.
70767
70768 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70769         and Eric Blake  <ebb9@byu.net>
70770
70771         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70772         This is more consistent with the other defines here.
70773         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70774         Port to z/OS.  Problem reported by Paul Gilmartin.
70775         Change local vars to use gl_ prefix rather than ac_.
70776         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70777         with other defines.
70778         * modules/double-slash-root: New module.
70779         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70780         (Depends-on): Add double-slash-root.
70781         * MODULES.html.sh (File system functions): Mention new module.
70782
70783 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70784
70785         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70786         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70787         This is for the benefit of gzip, which doesn't do i18n.
70788
70789 2006-12-12  Jim Meyering  <jim@meyering.net>
70790
70791         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70792         Reported by Andreas Schwab <schwab@suse.de>.
70793
70794 2006-12-12  Bruno Haible  <bruno@clisp.org>
70795
70796         Merge these changes.
70797         2006-09-05  Bruno Haible  <bruno@clisp.org>
70798         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70799         iconv_alloc succeeded.
70800         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70801         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70802         test for " && dest " at the end - dest is always != NULL there. Call
70803         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70804         with 2xNULL arguments, also to flush the state storage. Handle the
70805         IRIX iconv behaviour. Realloc the final result, to throw away unused
70806         memory.
70807
70808 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70811         and fchmodat unconditionally, since glibc 2.4 has them.
70812         Problem reported by Arkadiusz Miskiewicz.
70813
70814 2006-12-10  Bruno Haible  <bruno@clisp.org>
70815
70816         * gnulib-tool (func_import): Show the include files only for those
70817         modules that are copied and specified.
70818         Reported by Karl Berry.
70819
70820 2006-12-08  Jim Meyering  <jim@meyering.net>
70821
70822         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70823         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70824
70825         * build-aux/announce-gen: Add two new options, both optional:
70826         --bootstrap-tools=TOOL_LIST
70827               a comma-separated list of tools, e.g.,
70828               autoconf,automake,bison,gnulib
70829         --gnulib-snapshot-date=DATE
70830               if gnulib is in the bootstrap tool list,
70831               then report this as the snapshot date.
70832               If not specified, use the current date/time.
70833               If you specify a date here, be sure it's UTC.
70834
70835 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70836
70837         * tests/test-argp-2.sh: Fix test to match actual output.
70838         (func_compare): Fix sed script to be portable.
70839
70840 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70843         workaround for this case.  It is not autoconfigured now; offhand
70844         it's hard to see how to autoconfigure it.
70845
70846 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70849         a directory that is about to be chowned.  Such a directory's
70850         initial file permissions should permit the owner only and this
70851         should not be changed until after the chown, since the group and
70852         other bits would be incorrect if they granted permission before
70853         the chown.
70854
70855         Fix porting problem for iswctype reported by Georg Schwarz in:
70856         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70857         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70858         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70859         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70860         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70861
70862 2006-12-03  Jim Meyering  <jim@meyering.net>
70863
70864         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70865         p->fts_statp may not yet be defined.
70866         (fts_read): Instead, set it in the caller, once p->fts_statp is
70867         sure to be defined, and corresponds to a top-level directory.
70868         This bug made du -x fail.  Here's the coreutils test case:
70869         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70870         Reported by Mike Frysinger.
70871
70872 2006-12-01  Jim Meyering  <jim@meyering.net>
70873
70874         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70875         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70876         Reported by Simon Josefsson.
70877
70878 2006-11-30  Jim Meyering  <jim@meyering.net>
70879
70880         * m4/warning.m4: Use the all-permissive copyright notice
70881         recommended by RMS (rather than LGPL).
70882         * m4/vararrays.m4: Likewise.
70883         * m4/flexmember.m4: Likewise.
70884
70885 2006-11-29  Bruno Haible  <bruno@clisp.org>
70886
70887         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70888         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70889         using +=.
70890         Reported by Simon Josefsson <simon@josefsson.org>.
70891
70892 2006-11-28  James Youngman <jay@gnu.org>
70893
70894         * README: Advise users that they might find the bug-gnulib@gnu.org
70895         and autotools-announce@gnu.org mailing lists useful.
70896
70897 2006-11-28  Bruno Haible  <bruno@clisp.org>
70898
70899         * m4/ptrdiff_max.m4: Remove file.
70900
70901 2006-11-21  Bruno Haible  <bruno@clisp.org>
70902
70903         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70904         _AC_COMPUTE_INT.
70905         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70906         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70907         _AC_COMPUTE_INT.
70908         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70909         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70910         _AC_COMPUTE_INT.
70911         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70912
70913 2006-11-28  Jim Meyering  <jim@meyering.net>
70914
70915         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70916         warning from "gcc -Wshadow" about shadowing the builtin.
70917
70918 2006-11-27  Bruno Haible  <bruno@clisp.org>
70919
70920         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70921         _AC_COMPUTE_INT.
70922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70923
70924 2006-11-27  Bruno Haible  <bruno@clisp.org>
70925             Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70928
70929 2006-11-26  Bruno Haible  <bruno@clisp.org>
70930
70931         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70932         noinst_LTLIBRARIES.
70933
70934 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70935             Bruno Haible  <bruno@clisp.org>
70936
70937         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70938         if compiling with "gcc -ansi".
70939
70940 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70941
70942         Fix some incompatibilities with gcc -ansi -pedantic.
70943         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70944         if compiling pedantically with GCC, unless it's C99 or later.
70945         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70946         it mishandles gcc -ansi -pedantic as well.
70947         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70948         if gcc -pedantic.
70949         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70950         initializers for struct if -pedantic, unless it's C99 or later.
70951
70952 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70953
70954         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70955         Don't close an fd more than once. Identical atimes indicate
70956         success, not failure.
70957
70958 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70959
70960         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70961
70962 2006-11-23  Jim Meyering  <jim@meyering.net>
70963
70964         * build-aux/announce-gen: New file.  From coreutils.
70965
70966 2006-11-22  Jim Meyering  <jim@meyering.net>
70967
70968         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70969         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70970         (fts_read): Use a temporary to narrow the overused st_size member
70971         before using it in a switch statement.  Reported by Matthew Woehlke.
70972
70973         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70974         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70975
70976 2006-11-20  Bruno Haible  <bruno@clisp.org>
70977
70978         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70979         changequote instead of pairs of brackets.
70980         Reported by Andreas Schwab <schwab@suse.de>.
70981
70982 2006-11-21  Jim Meyering  <jim@meyering.net>
70983
70984         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70985         so as to remain compatible with older compilers.
70986         Patch from Michael Deutschmann.
70987
70988 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * MODULES.html.sh (File system functions): Add openat.
70991
70992         * lib/openat.h (rpl_fstatat): New macro, if
70993         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70994         (fstatat): Define to rpl_fstatat under the same conditions,
70995         unless COMPILING_FSTATAT.
70996         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70997         seems to have the bug.
70998         * lib/fstatat.c: New file.
70999         * modules/openat (Files): Add it.
71000
71001 2006-11-20  Bruno Haible  <bruno@clisp.org>
71002
71003         * Makefile: New file.
71004
71005 2006-11-20  Jim Meyering  <jim@meyering.net>
71006
71007         The beginnings of syntax-related checks for gnulib.
71008         * lib/Makefile: New file.
71009         * lib/t-idcache: New script.  Ensure that the two halves of
71010         idcache.c stay in sync.
71011
71012         * lib/idcache.c: Adjust comments in user- and group- portions to
71013         be more accurate, and to be consistent with one another.
71014
71015 2006-11-20  Jim Meyering  <jim@meyering.net>
71016
71017         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71018         continue using the flexible array member (thus, this module performs
71019         half as many malloc calls), with the addition that...
71020         (getgroup, getuser): Consistently record a non-match via an empty
71021         "name" string, and map an empty string match to a NULL return value.
71022         * modules/idcache (Depends-on): Re-add flexmember.
71023
71024         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71025         (getuidbyname, getgroup, getgidbyname): Likewise.
71026
71027         Use cleaner syntax: NULL rather than 0.
71028         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71029
71030 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71033         It mishandled the case where the group was missing.
71034         Problem reported by Greg Schafer.
71035         * modules/idcache: Likewise.
71036
71037 2006-11-18  Jim Meyering  <jim@meyering.net>
71038
71039         * check-module (%exempt_header): Add exception for some
71040         conditionally-included headers.
71041
71042         * modules/i-ring (Depends-on): Add verify.
71043         (License): Change to LGPL.
71044
71045 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71046
71047         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71048         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71049         and inttostr.h.  Use snprintf rather than uinttostr, so that
71050         LGPLed code doesn't depend on GPLed.
71051
71052 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * modules/inline (License): Change from GPL to LGPL.
71055
71056 2006-11-17  Jim Meyering  <jim@meyering.net>
71057
71058         * modules/d-type (License): Switch to LGPL.
71059
71060 2006-11-15  Bruno Haible  <bruno@clisp.org>
71061
71062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71063
71064 2006-11-15  Eric Blake  <ebb9@byu.net>
71065
71066         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71067         the module dependency.
71068
71069 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71070             Bruno Haible  <bruno@clisp.org>
71071
71072         * gnulib-tool (func_create_testdir): Add license consistency check.
71073
71074 2006-11-15  Eric Blake  <ebb9@byu.net>
71075
71076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71077         random "(cached)" in configure output.
71078
71079 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71080
71081         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71082         test for conforming inttypes.h is both announced and cached.
71083
71084         * MODULES.html.sh (seen_modules, seen_files): New variables.
71085         (func_module): Rewrite to use a few less gnulib-tool and sed
71086         invocations.  Avoid a couple of quadratic algorithms for ...
71087         (missed_modules, missed_files): ... these, with ...
71088         (func_append, func_tmpdir): ... these new functions, from
71089         gnulib-tool.  Analogously, install traps for cleanup.
71090
71091         * tests/test-gc.c (main): Remove unused variables.
71092         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71093
71094 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * modules/inttostr (License): Change to LGPL.
71097
71098 2006-11-14  Eric Blake  <ebb9@byu.net>
71099
71100         * modules/tempname (License): Change to LGPL.
71101
71102 2006-11-14  Eric Blake  <ebb9@byu.net>
71103
71104         * doc/functions.texi (Function Portability): *printf functions on
71105         Cygwin now understand all POSIX size specifiers.
71106
71107 2006-11-14  Bruno Haible  <bruno@clisp.org>
71108
71109         * modules/c-ctype (License): Change to LGPL.
71110
71111 2006-11-12  Bruno Haible  <bruno@clisp.org>
71112
71113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71114         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71115         for GNOME libraries, for which the include files are installed in
71116         subdirectories of $prefix/include.
71117
71118 2006-11-12  Bruno Haible  <bruno@clisp.org>
71119
71120         * m4/lib-link.m4: Require at least autoconf-2.54.
71121         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71122         name to underscores for the --with option.
71123
71124 2006-11-13  Bruno Haible  <bruno@clisp.org>
71125
71126         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71127         the tests directory.
71128         Reported by Ralf Wildenhues.
71129
71130 2006-11-13  Bruno Haible  <bruno@clisp.org>
71131
71132         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71133         (func_emit_initmacro_end): Undo the override here.
71134         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71135         Works around the famous automake error in coreutils.
71136
71137 2006-11-13  Eric Blake  <ebb9@byu.net>
71138
71139         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71140         element, not its node.
71141
71142 2006-11-12  Bruno Haible  <bruno@clisp.org>
71143
71144         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71145         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71146
71147 2006-11-12  Bruno Haible  <bruno@clisp.org>
71148
71149         * gnulib-tool: New option --local-symlink.
71150         (func_usage): Document it.
71151         (lsymbolic): New variable.
71152         (func_import, func_create_testdir): If --symlink was not specified,
71153         test whether --local-symlink was specified and the file comes from
71154         the local_gnulib_dir.
71155
71156 2006-11-12  Bruno Haible  <bruno@clisp.org>
71157
71158         * gnulib-tool (func_ln): New function.
71159         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71160
71161 2006-11-12  Bruno Haible  <bruno@clisp.org>
71162
71163         Finish support for source files in subdirectories.
71164         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71165         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71166         AUTOMAKE_OPTIONS.
71167         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71168
71169 2006-11-12  Bruno Haible  <bruno@clisp.org>
71170
71171         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71172         EXTRA_lib_SOURCES augmentation.
71173         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71174
71175 2006-11-12  Jim Meyering  <jim@meyering.net>
71176
71177         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71178         file descriptors.  This also averts a failure on systems with
71179         native openat support when a traversed directory lacks "x" access.
71180         * lib/fts_.h: Include "i-ring.h"
71181         (struct FTS) [fts_fd_ring]: New member.
71182         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71183         (FCHDIR): Add parentheses.
71184         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71185         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71186         When descending, rather than simply closing the previous
71187         fts_cwd_fd value, push that file descriptor onto the ring.
71188         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71189         (fts_open): Initialize the new fd_ring member.
71190         (fts_close): Clear the ring.
71191         (fts_safe_changedir): When possible, use our new fd_ring to skip
71192         the diropen and fstat and dev/ino comparison that would normally
71193         accompany a virtual `chdir ("..")'.
71194
71195         * modules/fts (Depends-on): Add i-ring.
71196         * modules/i-ring: New module.
71197         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71198         * m4/i-ring.m4: New file.
71199
71200 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71201
71202         * gnulib-tool (func_create_testdir): Fix replacement of
71203         `build-aux' in configure.ac.  Run autotools in gltests
71204         subdirectory.
71205         (func_create_testdir, func_create_megatestdir, test): There is
71206         no need for '--force' in most autotool invocations in a new
71207         tree.  Actually fail the whole test if any of the tools, or the
71208         configure or make stages fail.
71209
71210         Sync from Automake.
71211         * build-aux/gnupload: Revert last change.  Add pointer to upload
71212         instructions of the GNU Maintenance Instructions.
71213         Suggestion by Karl Berry.
71214
71215 2006-11-10  Jim Meyering  <jim@meyering.net>
71216
71217         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71218
71219 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71220
71221         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71222         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71223         (bind_textdomain_codeset) [! ENABLE_NLS]:
71224         Evaluate all the arguments.  That way, callers get compatible behavior
71225         if the arguments have side effects.  Also, it avoids some GCC
71226         diagnostics in some cases; Joel E. Denny reported problems when Bison
71227         was configured with --enable-gcc-warnigs.
71228
71229 2006-11-10  Jim Meyering  <jim@meyering.net>
71230
71231         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71232         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71233         account.
71234
71235 2006-11-10  Jim Meyering  <jim@meyering.net>
71236
71237         * modules/inline: New file/module.
71238         * modules/xalloc (Files): Remove m4/inline.m4.
71239         (Depends-on): Add inline, instead.
71240         * modules/oset: Likewise.
71241         * modules/list: Likewise.
71242
71243 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71244
71245         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71246         Problem reported by Matthew Woehlke.
71247
71248 2006-11-09  Bruno Haible  <bruno@clisp.org>
71249
71250         * lib/tempname.c (gen_tempname): Remove variant that invokes
71251         __gen_tempname.
71252         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71253         __gen_tempname.
71254
71255 2006-11-08  Bruno Haible  <bruno@clisp.org>
71256
71257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71258         to 'yes' instead of 'cross-compiling'.
71259
71260 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71261
71262         * lib/quotearg.h (quotearg_free): New decl.
71263         * lib/quotearg.c (quotearg_free): New function.
71264         (slot0, nslots, slotvec0, slotvec):
71265         Now file-scope so that quotearg_free can get at them.
71266
71267 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71268
71269         Sync from Automake.
71270         * build-aux/gnupload: Add missing 'gnu' to example URL.
71271         Report by Karl Berry.
71272
71273 2006-11-08  Bruno Haible  <bruno@clisp.org>
71274
71275         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71276         Suggested by Paul Eggert.
71277
71278 2006-11-08  Jim Meyering  <jim@meyering.net>
71279
71280         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71281         It's already included if !_LIBC.
71282         (fts_safe_changedir): Add a comment.
71283
71284 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71287         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71288         Matthew Woehlke.
71289
71290         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71291         definitions up, to avoid colliding with change below.
71292         (static_inline) [HAVE_INLINE]: New macro.
71293         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71294         Provide extern decls when !HAVE_INLINE.  Do not define unless
71295         static_inline is defined, either by us or by xmalloc.c.  Use
71296         static_inline rather than static inline.
71297         (XCALLOC): Optimize sizeof(T) = 1 case.
71298         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71299
71300 2006-11-07  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71303         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71304         AC_C_INLINE.
71305         * modules/xalloc (Files): Add m4/inline.m4.
71306
71307 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71308
71309         * README: Fix typo.
71310         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71311         (Miscellanous Notes): ...from this.
71312
71313 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71316         Mention that offsetof should be used instead of sizeof.
71317         From Bruno Haible.
71318
71319 2006-11-07  Bruno Haible  <bruno@clisp.org>
71320
71321         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71322
71323 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71326         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71327         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71328         (gl_tree_add_before, gl_tree_add_after):
71329         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71330         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71331         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71332         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71333         (gl_linked_add_after, gl_linked_add_at): Likewise.
71334         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71335         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71336         (gl_tree_add_before, gl_tree_add_after): Likewise.
71337         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71338         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71339         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71340
71341 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71342
71343         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71344
71345 2006-11-06  Bruno Haible  <bruno@clisp.org>
71346
71347         * m4/inline.m4: New file.
71348         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71349         * modules/list (Files): Add m4/inline.m4.
71350         * modules/oset (Files): Likewise.
71351
71352 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * lib/idcache.c: Include <stddef.h>, for offsetof.
71355         (struct userid.name): Change from char * to a flexible array member.
71356         All uses changed.
71357         * modules/idcache (Depends-on): Add flexmember.
71358
71359         * MODULES.html.sh (Core language properties): New module flexmember.
71360         * modules/flexmember, m4/flexmember.m4: New files.
71361
71362         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71363         inline functions that are identical with the old xnmalloc_inline,
71364         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71365         that we can avoid some unnecessary integer multiplications and
71366         divisions in the common case where the element size is known at
71367         compile time.
71368         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71369         needed.
71370         (xnboundedmalloc): Remove.
71371         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71372         arguments, for consistency with rest of this header.
71373         (xcharalloc): Rewrite using XNMALLOC.
71374         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71375         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71376         versions have been moved to lib/xalloc.h and renamed to be the
71377         non-*_inline versions.
71378         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71379         and xnrealloc functions, since those functions are now inline and
71380         now call us.
71381         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71382         renaming described above.
71383         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71384         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71385         captures the dependency in AC_C_INLINE.
71386
71387         New module canonicalize-lgpl, proposed by Charles Wilson in
71388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71389         with a few small changes afterwards.
71390         * MODULES.html.sh (File system functions): New module
71391         canonicalize-lgpl.
71392         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71393         and canonicalize_file_name.
71394         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71395         * modules/canonicalize-lgpl: New files.
71396
71397 2006-11-05  Bruno Haible  <bruno@clisp.org>
71398
71399         * gnulib-tool (func_import, func_create_testdir): Create directories
71400         also for files in subdirectories of lib/.
71401
71402 2006-11-05  Bruno Haible  <bruno@clisp.org>
71403
71404         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71405         ANSI C compliant.
71406
71407 2006-11-03  Bruno Haible  <bruno@clisp.org>
71408
71409         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71410         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71411         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71412         (xnboundedmalloc): New inline function.
71413         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71414         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71415         xmalloc.
71416         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71417         xmalloc.
71418         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71419         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71420         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71421         xmalloc.
71422         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71423         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71424         xmalloc.
71425         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71426         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71427         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71428         xmalloc.
71429         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71430         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71431         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71432         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71433         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71434         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71435         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71436
71437 2006-11-03  Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/c-ctype.h [C++]: Define functions without name mangling.
71440         * lib/fwriteerror.h [C++]: Likewise.
71441         * lib/gcd.h [C++]: Likewise.
71442         * lib/linebreak.h [C++]: Likewise.
71443
71444 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71445
71446         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71447         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71448         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71450         Check for functions and headers just once.
71451         Check for declaration of canonicalize_file_name.
71452         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71453
71454 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71455
71456         * gnulib-tool (func_import): Fix typo in actioncmd.
71457
71458 2006-11-02  Bruno Haible  <bruno@clisp.org>
71459
71460         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71461         newline sequence in the Makefile.am snippet as a space, like "make"
71462         does.
71463         Reported by Roger Persson <perrog@gmail.com>.
71464
71465 2006-11-01  Bruno Haible  <bruno@clisp.org>
71466
71467         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71468         already declared in <string.h>.
71469         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71470
71471 2006-11-01  Bruno Haible  <bruno@clisp.org>
71472
71473         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71474         * lib/strcase.h: Include <string.h>.
71475         (strcasecmp): Define to rpl_strcasecmp here.
71476
71477 2006-11-01  Bruno Haible  <bruno@clisp.org>
71478
71479         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71480
71481 2006-11-01  Eric Blake  <ebb9@byu.net>
71482
71483         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71484
71485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71486
71487 2006-10-29  Bruno Haible  <bruno@clisp.org>
71488
71489         Make it compile in C++ mode.
71490         * lib/full-write.c (full_rw): Add a cast.
71491
71492 2006-11-01  Bruno Haible  <bruno@clisp.org>
71493
71494         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71495         be POSIX compliant.
71496         Reported by Roger Persson <perrog@gmail.com>.
71497
71498 2006-11-01  Eric Blake  <ebb9@byu.net>
71499
71500         * lib/getopt_.h: Fix comments.
71501
71502 2006-10-31  Eric Blake  <ebb9@byu.net>
71503
71504         * modules/tmpdir (Depends-on): Add sys_stat.
71505         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71506         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71507         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71508         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71509         tempname.
71510
71511 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         Avoid some C++ diagnostics reported by Bruno Haible.
71514         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71515         xmalloc.
71516         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71517         (struct slotvec): Move to top level.
71518         (quotearg_n_options): Rewrite to avoid xmalloc.
71519         * lib/xalloc.h (xcharalloc): New function.
71520         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71521         [defined __cplusplus]: Add function template that provides result
71522         type propagation.  This part of the change is from Bruno Haible.
71523
71524 2006-10-29  Bruno Haible  <bruno@clisp.org>
71525
71526         Make it compile in C++ mode.
71527         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71528         * lib/strnlen1.c (strnlen1): Cast memchr result.
71529         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71530         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71531         (create_temp_dir): Rename local variable 'template'.
71532         (compile_csharp_using_sscli): Add cast.
71533         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71534         * lib/findprog.c (find_in_path): Likewise.
71535         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71536         * lib/wait-process.c (register_slave_subprocess): Likewise.
71537
71538 2006-10-22  Bruno Haible  <bruno@clisp.org>
71539
71540         * modules/tsearch: New file.
71541         * lib/tsearch.h: New file.
71542         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71543         * m4/tsearch.m4: New file.
71544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71545
71546 2006-10-29  Eric Blake  <ebb9@byu.net>
71547
71548         * lib/arcfour.c: Assume config.h.
71549         * lib/arctwo.c: Likewise.
71550         * lib/base64.c: Likewise.
71551         * lib/check-version.c: Likewise.
71552         * lib/crc.c: Likewise.
71553         * lib/des.c: Likewise.
71554         * lib/gc-gnulib.c: Likewise.
71555         * lib/gc-libgcrypt.c: Likewise.
71556         * lib/gc-pbkdf2-sha1.c: Likewise.
71557         * lib/getaddrinfo.c: Likewise.
71558         * lib/getdelim.c: Likewise.
71559         * lib/getline.c: Likewise.
71560         * lib/hmac-md5.c: Likewise.
71561         * lib/hmac-sha1.c: Likewise.
71562         * lib/iconvme.c: Likewise.
71563         * lib/md2.c: Likewise.
71564         * lib/md4.c: Likewise.
71565         * lib/memxor.c: Likewise.
71566         * lib/read-file.c: Likewise.
71567         * lib/readline.c: Likewise.
71568         * lib/rijndael-alg-fst.c: Likewise.
71569         * lib/rijndael-api-fst.c: Likewise.
71570         * lib/xgetdomainname.c: Likewise.
71571
71572 2006-10-28  Eric Blake  <ebb9@byu.net>
71573
71574         * lib/xstrndup.c: Assume config.h.
71575
71576 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71577
71578         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71579         stat-macros.h is now for our own macros, whereas stat_h is for
71580         macros in the <sys/stat.h> name space.
71581         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71582         (STAT_MACROS_H): Remove.
71583         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71584         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71585         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71586         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71587         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71588         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71589         Move these macros to ...
71590         * lib/stat_.h: here.  Don't include stat-macros.h.
71591         * lib/canonicalize.c: Don't include stat-macros.h.
71592         * lib/chown.c: Likewise.
71593         * lib/euidaccess.c: Likewise.
71594         * lib/file-type.c: Likewise.
71595         * lib/filemode.c: Likewise.
71596         * lib/glob.c: Likewise.
71597         * lib/isapipe.c: Likewise.
71598         * lib/lchown.c: Likewise.
71599         * lib/lstat.c: Likewise.
71600         * lib/mkdir-p.c: Likewise.
71601         * lib/rmdir.c: Likewise.
71602         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71603         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71604         unless mkdir isn't declared, to speed up 'configure'.
71605         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71606         would define all the S_* symbols.
71607         * modules/canonicalize (Depends-on):
71608         Depend on sys_stat, not stat-macros.
71609         * modules/chown: Likewise.
71610         * modules/euidaccess: Likewise.
71611         * modules/filemode: Likewise.
71612         * modules/file-type: Likewise.
71613         * modules/glob: Likewise.
71614         * modules/isapipe: Likewise.
71615         * modules/lchown: Likewise.
71616         * modules/lstat: Likewise.
71617         * modules/mkancesdirs: Likewise.
71618         * modules/rmdir: Likewise.
71619         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71620         * modules/modechange: Likewise.
71621         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71622         (configure.ac): Remove gl_STAT_MACROS.
71623         * modules/sys_stat (Depends-on): Remove stat-macros.
71624
71625 2006-10-27  Bruno Haible  <bruno@clisp.org>
71626
71627         * m4/signed.m4: Remove file.
71628         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71629         invocation.
71630         * modules/vasnprintf (Files): Remove m4/signed.m4.
71631
71632 2006-10-27  Bruno Haible  <bruno@clisp.org>
71633
71634         Update to GNU gettext 0.16.
71635         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71636         m4/inttypes-h.m4, m4/signed.m4.
71637         * m4/gettext.m4: Update to GNU gettext 0.16.
71638         * m4/intl.m4: New file, from GNU gettext.
71639         * m4/intldir.m4: New file, from GNU gettext.
71640         * config/srclist.txt: Update
71641
71642 2006-10-27  Eric Blake  <ebb9@byu.net>
71643
71644         * MODULES.html.sh: Document tempname.
71645         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71646         dependencies.
71647         (Files): Move lib/tempname.c...
71648         * modules/tempname: ...to this new module.
71649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71650         (gl_PREREQ_TEMPNAME): Move...
71651         * m4/tempname.m4: ...to this new file.
71652         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71653         * modules/sys_stat (Depends-on): Add stat-macros.
71654         * lib/stat_.h (includes): Pick up stat macros.
71655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71656         if stat macros are broken.
71657         * lib/tempname.c (includes): No need to include "stat-macros.h".
71658         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71659         (direxists, __path_search) [!_LIBC]: Don't compile these in
71660         gnulib; the tmpdir module covers that.
71661         * lib/tempname.h: New file.
71662
71663 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * COPYING: Explain how gnulib-tool converts licence headers.
71666         Almost all wording by Eric Blake.
71667
71668 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * lib/mbchar.h (is_basic_table): Make read-only.
71671         * lib/mbchar.c (is_basic_table): Likewise.
71672         Reported by John Darrington.
71673
71674 2006-10-25  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/progname.h (set_program_name): Undefine before defining.
71677
71678 2006-10-25  Bruno Haible  <bruno@clisp.org>
71679
71680         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71681         false for non-gcc C++ compilers.
71682         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71683
71684 2006-10-24  Bruno Haible  <bruno@clisp.org>
71685
71686         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71687         iconv implementations like Irix iconv.
71688
71689 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * modules/vararrays: New file.
71692         * m4/vararrays.m4: New file, taken from diffutils.
71693         * MODULES.html.sh: New module vararrays.
71694
71695 2006-10-24  Karl Berry  <karl@gnu.org>
71696
71697         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71698         Don't call GNU Unix.
71699
71700 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71701
71702         * users.txt: Add Libtool.
71703
71704         Sync from Libtool:
71705
71706         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71707
71708         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71709         to gnulib's policy of including config.h unconditionally.
71710
71711 2006-10-24  Bruno Haible  <bruno@clisp.org>
71712
71713         * modules/wcwidth (Files): Add m4/wint_t.m4.
71714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71715         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71716
71717 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71718
71719         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71720         to pacify GCC with some -W flags enabled.  Problem reported by
71721         Bruno Haible.
71722
71723 2006-10-24  Jim Meyering  <jim@meyering.net>
71724
71725         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71726         Reported by Karl Berry.
71727
71728 2006-10-23  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71731
71732 2006-10-24  Bruno Haible  <bruno@clisp.org>
71733
71734         * lib/gl_list.h: Use C comment style, not C++ comment style.
71735
71736 2006-10-23  Eric Blake  <ebb9@byu.net>
71737
71738         * lib/getaddrinfo.c (includes): Add missing include.
71739
71740 2006-10-23  Bruno Haible  <bruno@clisp.org>
71741             Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         Ability to rename obstack_free.
71744         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71745         obstack_free.
71746         (obstack_free): Invoke the __obstack_free macro.
71747         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71748
71749 2006-10-23  Bruno Haible  <bruno@clisp.org>
71750             Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71753         __argc, __argv from the declaration. (They are defined as macros on
71754         mingw.)
71755
71756 2006-10-22  Bruno Haible  <bruno@clisp.org>
71757
71758         * doc/gnulib-intro.texi: New file.
71759         * doc/gnulib.texi: Include it.
71760
71761 2006-10-21  Bruno Haible  <bruno@clisp.org>
71762
71763         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71764         "Introduction", "Miscellanous Notes", "Particular Modules".
71765
71766 2006-10-21  Bruno Haible  <bruno@clisp.org>
71767
71768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71769         Change mostlyclean-local rule to avoid sh syntax error from bash
71770         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71771
71772 2006-10-23  Jim Meyering  <jim@meyering.net>
71773
71774         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71775         in place of snprintf.
71776
71777         * modules/inttostr (Files): Add lib/uinttostr.c.
71778         * lib/uinttostr.c (inttostr): New file/function.
71779         * lib/inttostr.h (uinttostr): Declare.
71780         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71781         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71782         Add uinttostr.
71783         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71784
71785 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * lib/canonicalize.c (ELOOP): Define if not already defined.
71788         Problem reported by Bruno Haible in
71789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71790
71791 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71792
71793         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71794         Problem reported by Perry Smith and Ville Laurikari.
71795
71796         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71797         uses.
71798
71799 2006-10-19  Bruno Haible  <bruno@clisp.org>
71800
71801         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71802         for mingw.
71803
71804 2006-10-19  Bruno Haible  <bruno@clisp.org>
71805
71806         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71807         Needed for mingw.
71808
71809 2006-10-19  Bruno Haible  <bruno@clisp.org>
71810
71811         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71812
71813 2006-10-19  Bruno Haible  <bruno@clisp.org>
71814
71815         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71816         it.
71817
71818 2006-10-19  Bruno Haible  <bruno@clisp.org>
71819
71820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71821         invocation.
71822
71823 2006-10-19  Bruno Haible  <bruno@clisp.org>
71824
71825         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71826         mountlist by default.
71827
71828 2006-10-16  Bruno Haible  <bruno@clisp.org>
71829
71830         * lib/c-strstr.c: Include c-strstr.h.
71831
71832 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71833
71834         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71835         in a slash.
71836
71837 2006-10-18  Bruno Haible  <bruno@clisp.org>
71838
71839         * lib/lock.h [C++]: Wrap definitions in extern "C".
71840
71841 2006-10-18  Bruno Haible  <bruno@clisp.org>
71842
71843         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71844         gl_LIBOBJS list.
71845
71846 2006-10-18  Bruno Haible  <bruno@clisp.org>
71847
71848         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71849
71850 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         * lib/xstrtol.h: Include gettext.h.
71853         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71854         Problem reported by Eric Blake.
71855         * modules/xstrtol (Depends-on): Add gettext-h.
71856
71857 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71858
71859         * lib/strftime.c (advance): New macro.
71860         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71861         incomplete type, so you can't add 0 to it.  Problem and patch
71862         reported by Eelco Dolstra for dietlibc.
71863
71864 2006-10-18  Jim Meyering  <jim@meyering.net>
71865
71866         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71867         type for a local, and rename it: s/up/user_proc/.
71868
71869 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71870
71871         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71872         READ_UTMP_USER_PROCESS.
71873         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71874
71875 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71878         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71879
71880 2006-10-17  Eric Blake  <ebb9@byu.net>
71881
71882         * lib/sigprocmask.c (sigprocmask): Fix typo.
71883
71884         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71885
71886         * modules/clean-temp (Makefile.am): Don't add to make output...
71887         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71888         config.h.
71889
71890 2006-10-17  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71893         differently if DEFAULT_TEXT_DOMAIN is set.
71894
71895 2006-10-16  Bruno Haible  <bruno@clisp.org>
71896
71897         * lib/clean-temp.c: Include fwriteerror.h.
71898
71899 2006-10-16  Bruno Haible  <bruno@clisp.org>
71900
71901         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71902
71903 2006-10-16  Bruno Haible  <bruno@clisp.org>
71904
71905         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71906         * lib/sigprocmask.h: Include <sys/types.h>.
71907         (sigset_t): Use the system's definition if present.
71908
71909 2006-10-17  Eric Blake  <ebb9@byu.net>
71910
71911         * lib/xvasprintf.c (includes): Assume config.h.
71912         * lib/xasprintf.c (includes): Likewise.
71913
71914 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71917         at least as wide as intmax_t.
71918
71919 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71920
71921         (Imported from Automake.)
71922         * build-aux/gnupload: Update to version 1.1 of directive file.
71923
71924 2006-10-16  Eric Blake  <ebb9@byu.net>
71925
71926         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71927         match Automake 1.10a.
71928
71929 2006-10-14  Bruno Haible  <bruno@clisp.org>
71930
71931         * modules/sigprocmask: New file.
71932         * lib/sigprocmask.h: New file.
71933         * lib/sigprocmask.c: New file.
71934         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71935         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71936         request sigprocmask.o.
71937         (gl_PREREQ_SIGPROCMASK): New macro.
71938         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71939         (Depends-on): Add sigprocmask.
71940         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71941         gt_SIGNALBLOCKING. Test for 'raise' only once.
71942         * lib/fatal-signal.c: Include sigprocmask.h.
71943         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71944         unblock_fatal_signals): Define always.
71945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71946         sigprocmask.
71947
71948 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         Sync from Automake.
71951         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71952         which incorrectly sets the mode of an existing destination
71953         directory.  In some cases the unpatched install-sh could do the
71954         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71955         system.  We hope this is rare in practice, but it's clearly worth
71956         fixing.  Problem reported by Alex Unleashed in
71957         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71958         Also, don't bother to check for -m bugs unless we're using -m;
71959         suggested by Stepan Kasal.
71960
71961 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71962
71963         Sync from Automake.
71964         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71965         `-c' flag, so they appear at the same position as in %FASTDEP%
71966         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71967         which ignores unknown options only after the first non-option.
71968         Bug report against M4 by Nelson H. F. Beebe.
71969
71970 2006-10-13  Jim Meyering  <jim@meyering.net>
71971
71972         Fix a bug in yesterday's change.
71973         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71974         p->fts_statp->st_dev would be used uninitialized.
71975         Ensures that we always call fts_stat on the very first entry.
71976         Miklos Szeredi reported that find -xdev stopped working.
71977
71978 2006-10-12  Bruno Haible  <bruno@clisp.org>
71979
71980         * gnulib-tool (func_get_automake_snippet): Append an automatically
71981         computed EXTRA_DIST augmentation.
71982         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71983         * modules/alloca-opt (Makefile.am): Likewise.
71984         * modules/allocsa (Makefile.am): Likewise.
71985         * modules/arcfour (Makefile.am): Likewise.
71986         * modules/arctwo (Makefile.am): Likewise.
71987         * modules/argmatch (Makefile.am): Likewise.
71988         * modules/argz (Makefile.am): Likewise.
71989         * modules/atexit (Makefile.am): Likewise.
71990         * modules/backupfile (Makefile.am): Likewise.
71991         * modules/byteswap (Makefile.am): Likewise.
71992         * modules/c-strtod (Makefile.am): Likewise.
71993         * modules/c-strtold (Makefile.am): Likewise.
71994         * modules/calloc (Makefile.am): Likewise.
71995         * modules/canon-host (Makefile.am): Likewise.
71996         * modules/canonicalize (Makefile.am): Likewise.
71997         * modules/chdir-long (Makefile.am): Likewise.
71998         * modules/chdir-safer (Makefile.am): Likewise.
71999         * modules/check-version (Makefile.am): Likewise.
72000         * modules/chown (Makefile.am): Likewise.
72001         * modules/cloexec (Makefile.am): Likewise.
72002         * modules/close-stream (Makefile.am): Likewise.
72003         * modules/closeout (Makefile.am): Likewise.
72004         * modules/crc (Makefile.am): Likewise.
72005         * modules/csharpexec (Makefile.am): Likewise.
72006         * modules/cycle-check (Makefile.am): Likewise.
72007         * modules/des (Makefile.am): Likewise.
72008         * modules/dev-ino (Makefile.am): Likewise.
72009         * modules/dirfd (Makefile.am): Likewise.
72010         * modules/dirname (Makefile.am): Likewise.
72011         * modules/dup2 (Makefile.am): Likewise.
72012         * modules/eealloc (Makefile.am): Likewise.
72013         * modules/error (Makefile.am): Likewise.
72014         * modules/euidaccess (Makefile.am): Likewise.
72015         * modules/exclude (Makefile.am): Likewise.
72016         * modules/exitfail (Makefile.am): Likewise.
72017         * modules/fcntl-safer (Makefile.am): Likewise.
72018         * modules/fcntl (Makefile.am): Likewise.
72019         * modules/file-type (Makefile.am): Likewise.
72020         * modules/fileblocks (Makefile.am): Likewise.
72021         * modules/filemode (Makefile.am): Likewise.
72022         * modules/filenamecat (Makefile.am): Likewise.
72023         * modules/fnmatch (Makefile.am): Likewise.
72024         * modules/fopen-safer (Makefile.am): Likewise.
72025         * modules/fpending (Makefile.am): Likewise.
72026         * modules/fprintftime (Makefile.am): Likewise.
72027         * modules/free (Makefile.am): Likewise.
72028         * modules/fsusage (Makefile.am): Likewise.
72029         * modules/ftruncate (Makefile.am): Likewise.
72030         * modules/fts (Makefile.am): Likewise.
72031         * modules/gc-arcfour (Makefile.am): Likewise.
72032         * modules/gc-des (Makefile.am): Likewise.
72033         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72034         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72035         * modules/gc-md4 (Makefile.am): Likewise.
72036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72037         * modules/gc-sha1 (Makefile.am): Likewise.
72038         * modules/gc (Makefile.am): Likewise.
72039         * modules/getaddrinfo (Makefile.am): Likewise.
72040         * modules/getcwd (Makefile.am): Likewise.
72041         * modules/getdelim (Makefile.am): Likewise.
72042         * modules/getdomainname (Makefile.am): Likewise.
72043         * modules/getgroups (Makefile.am): Likewise.
72044         * modules/gethostname (Makefile.am): Likewise.
72045         * modules/gethrxtime (Makefile.am): Likewise.
72046         * modules/getline (Makefile.am): Likewise.
72047         * modules/getloadavg (Makefile.am): Likewise.
72048         * modules/getlogin_r (Makefile.am): Likewise.
72049         * modules/getndelim2 (Makefile.am): Likewise.
72050         * modules/getopt (Makefile.am): Likewise.
72051         * modules/getpagesize (Makefile.am): Likewise.
72052         * modules/getpass-gnu (Makefile.am): Likewise.
72053         * modules/getpass (Makefile.am): Likewise.
72054         * modules/getsubopt (Makefile.am): Likewise.
72055         * modules/gettime (Makefile.am): Likewise.
72056         * modules/gettimeofday (Makefile.am): Likewise.
72057         * modules/getugroups (Makefile.am): Likewise.
72058         * modules/getusershell (Makefile.am): Likewise.
72059         * modules/glob (Makefile.am): Likewise.
72060         * modules/group-member (Makefile.am): Likewise.
72061         * modules/hard-locale (Makefile.am): Likewise.
72062         * modules/hash (Makefile.am): Likewise.
72063         * modules/hmac-md5 (Makefile.am): Likewise.
72064         * modules/hmac-sha1 (Makefile.am): Likewise.
72065         * modules/human (Makefile.am): Likewise.
72066         * modules/idcache (Makefile.am): Likewise.
72067         * modules/imaxabs (Makefile.am): Likewise.
72068         * modules/imaxdiv (Makefile.am): Likewise.
72069         * modules/inet_ntop (Makefile.am): Likewise.
72070         * modules/inet_pton (Makefile.am): Likewise.
72071         * modules/intprops (Makefile.am): Likewise.
72072         * modules/inttostr (Makefile.am): Likewise.
72073         * modules/inttypes (Makefile.am): Likewise.
72074         * modules/isapipe (Makefile.am): Likewise.
72075         * modules/javaversion (Makefile.am): Likewise.
72076         * modules/lchmod (Makefile.am): Likewise.
72077         * modules/lchown (Makefile.am): Likewise.
72078         * modules/localcharset (Makefile.am): Likewise.
72079         * modules/long-options (Makefile.am): Likewise.
72080         * modules/lstat (Makefile.am): Likewise.
72081         * modules/malloc (Makefile.am): Likewise.
72082         * modules/mathl (Makefile.am): Likewise.
72083         * modules/mbchar (Makefile.am): Likewise.
72084         * modules/md2 (Makefile.am): Likewise.
72085         * modules/md4 (Makefile.am): Likewise.
72086         * modules/md5 (Makefile.am): Likewise.
72087         * modules/memcasecmp (Makefile.am): Likewise.
72088         * modules/memchr (Makefile.am): Likewise.
72089         * modules/memcmp (Makefile.am): Likewise.
72090         * modules/memcoll (Makefile.am): Likewise.
72091         * modules/memcpy (Makefile.am): Likewise.
72092         * modules/memmem (Makefile.am): Likewise.
72093         * modules/memmove (Makefile.am): Likewise.
72094         * modules/mempcpy (Makefile.am): Likewise.
72095         * modules/memrchr (Makefile.am): Likewise.
72096         * modules/memset (Makefile.am): Likewise.
72097         * modules/memxor (Makefile.am): Likewise.
72098         * modules/mkancesdirs (Makefile.am): Likewise.
72099         * modules/mkdir-p (Makefile.am): Likewise.
72100         * modules/mkdir (Makefile.am): Likewise.
72101         * modules/mkdtemp (Makefile.am): Likewise.
72102         * modules/mkstemp (Makefile.am): Likewise.
72103         * modules/mktime (Makefile.am): Likewise.
72104         * modules/modechange (Makefile.am): Likewise.
72105         * modules/mountlist (Makefile.am): Likewise.
72106         * modules/nanosleep (Makefile.am): Likewise.
72107         * modules/obstack (Makefile.am): Likewise.
72108         * modules/openat (Makefile.am): Likewise.
72109         * modules/pagealign_alloc (Makefile.am): Likewise.
72110         * modules/pathmax (Makefile.am): Likewise.
72111         * modules/physmem (Makefile.am): Likewise.
72112         * modules/poll (Makefile.am): Likewise.
72113         * modules/posixtm (Makefile.am): Likewise.
72114         * modules/posixver (Makefile.am): Likewise.
72115         * modules/putenv (Makefile.am): Likewise.
72116         * modules/quote (Makefile.am): Likewise.
72117         * modules/quotearg (Makefile.am): Likewise.
72118         * modules/raise (Makefile.am): Likewise.
72119         * modules/read-file (Makefile.am): Likewise.
72120         * modules/readline (Makefile.am): Likewise.
72121         * modules/readlink (Makefile.am): Likewise.
72122         * modules/readtokens (Makefile.am): Likewise.
72123         * modules/readutmp (Makefile.am): Likewise.
72124         * modules/realloc (Makefile.am): Likewise.
72125         * modules/regex (Makefile.am): Likewise.
72126         * modules/rename-dest-slash (Makefile.am): Likewise.
72127         * modules/rename (Makefile.am): Likewise.
72128         * modules/rijndael (Makefile.am): Likewise.
72129         * modules/rmdir (Makefile.am): Likewise.
72130         * modules/rpmatch (Makefile.am): Likewise.
72131         * modules/safe-read (Makefile.am): Likewise.
72132         * modules/safe-write (Makefile.am): Likewise.
72133         * modules/same-inode (Makefile.am): Likewise.
72134         * modules/same (Makefile.am): Likewise.
72135         * modules/save-cwd (Makefile.am): Likewise.
72136         * modules/savedir (Makefile.am): Likewise.
72137         * modules/setenv (Makefile.am): Likewise.
72138         * modules/settime (Makefile.am): Likewise.
72139         * modules/sha1 (Makefile.am): Likewise.
72140         * modules/sig2str (Makefile.am): Likewise.
72141         * modules/snprintf (Makefile.am): Likewise.
72142         * modules/stat-macros (Makefile.am): Likewise.
72143         * modules/stat-time (Makefile.am): Likewise.
72144         * modules/stdbool (Makefile.am): Likewise.
72145         * modules/stdint (Makefile.am): Likewise.
72146         * modules/stdlib-safer (Makefile.am): Likewise.
72147         * modules/stpcpy (Makefile.am): Likewise.
72148         * modules/stpncpy (Makefile.am): Likewise.
72149         * modules/strcase (Makefile.am): Likewise.
72150         * modules/strcasestr (Makefile.am): Likewise.
72151         * modules/strchrnul (Makefile.am): Likewise.
72152         * modules/strcspn (Makefile.am): Likewise.
72153         * modules/strdup (Makefile.am): Likewise.
72154         * modules/strerror (Makefile.am): Likewise.
72155         * modules/strftime (Makefile.am): Likewise.
72156         * modules/strndup (Makefile.am): Likewise.
72157         * modules/strnlen (Makefile.am): Likewise.
72158         * modules/strpbrk (Makefile.am): Likewise.
72159         * modules/strsep (Makefile.am): Likewise.
72160         * modules/strstr (Makefile.am): Likewise.
72161         * modules/strtod (Makefile.am): Likewise.
72162         * modules/strtoimax (Makefile.am): Likewise.
72163         * modules/strtok_r (Makefile.am): Likewise.
72164         * modules/strtol (Makefile.am): Likewise.
72165         * modules/strtoll (Makefile.am): Likewise.
72166         * modules/strtoul (Makefile.am): Likewise.
72167         * modules/strtoull (Makefile.am): Likewise.
72168         * modules/strtoumax (Makefile.am): Likewise.
72169         * modules/strverscmp (Makefile.am): Likewise.
72170         * modules/sys_socket (Makefile.am): Likewise.
72171         * modules/sys_stat (Makefile.am): Likewise.
72172         * modules/sysexits (Makefile.am): Likewise.
72173         * modules/time_r (Makefile.am): Likewise.
72174         * modules/timegm (Makefile.am): Likewise.
72175         * modules/timespec (Makefile.am): Likewise.
72176         * modules/tmpfile-safer (Makefile.am): Likewise.
72177         * modules/trim (Makefile.am): Likewise.
72178         * modules/unistd-safer (Makefile.am): Likewise.
72179         * modules/unlinkdir (Makefile.am): Likewise.
72180         * modules/unlocked-io (Makefile.am): Likewise.
72181         * modules/userspec (Makefile.am): Likewise.
72182         * modules/utime (Makefile.am): Likewise.
72183         * modules/utimecmp (Makefile.am): Likewise.
72184         * modules/utimens (Makefile.am): Likewise.
72185         * modules/vasnprintf (Makefile.am): Likewise.
72186         * modules/vasprintf (Makefile.am): Likewise.
72187         * modules/vsnprintf (Makefile.am): Likewise.
72188         * modules/xalloc (Makefile.am): Likewise.
72189         * modules/xgetcwd (Makefile.am): Likewise.
72190         * modules/xnanosleep (Makefile.am): Likewise.
72191         * modules/xreadlink (Makefile.am): Likewise.
72192         * modules/xstrtod (Makefile.am): Likewise.
72193         * modules/xstrtol (Makefile.am): Likewise.
72194         * modules/xstrtold (Makefile.am): Likewise.
72195         * modules/yesno (Makefile.am): Likewise.
72196         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72197
72198 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72199
72200         * modules/error (Makefile.am): Distribute files through
72201         EXTRA_DIST, not lib_SOURCES.
72202
72203 2006-10-12  Eric Blake  <ebb9@byu.net>
72204
72205         * modules/error (Makefile.am): Distribute files in /lib.
72206         * modules/obstack (Makefile.am): Likewise.
72207
72208 2006-10-12  Bruno Haible  <bruno@clisp.org>
72209
72210         * modules/acl (Makefile.am): Distribute all files in lib/ through
72211         EXTRA_DIST.
72212         * modules/arcfour (Makefile.am): Likewise.
72213         * modules/arctwo (Makefile.am): Likewise.
72214         * modules/argmatch (Makefile.am): Likewise.
72215         * modules/argz (Makefile.am): Likewise.
72216         * modules/atexit (Makefile.am): Likewise.
72217         * modules/backupfile (Makefile.am): Likewise.
72218         * modules/c-strtod (Makefile.am): Likewise.
72219         * modules/c-strtold (Makefile.am): Likewise.
72220         * modules/calloc (Makefile.am): Likewise.
72221         * modules/canon-host (Makefile.am): Likewise.
72222         * modules/canonicalize (Makefile.am): Likewise.
72223         * modules/chdir-long (Makefile.am): Likewise.
72224         * modules/chdir-safer (Makefile.am): Likewise.
72225         * modules/check-version (Makefile.am): Likewise.
72226         * modules/chown (Makefile.am): Likewise.
72227         * modules/cloexec (Makefile.am): Likewise.
72228         * modules/close-stream (Makefile.am): Likewise.
72229         * modules/closeout (Makefile.am): Likewise.
72230         * modules/crc (Makefile.am): Likewise.
72231         * modules/cycle-check (Makefile.am): Likewise.
72232         * modules/des (Makefile.am): Likewise.
72233         * modules/dirfd (Makefile.am): Likewise.
72234         * modules/dirname (Makefile.am): Likewise.
72235         * modules/dup2 (Makefile.am): Likewise.
72236         * modules/euidaccess (Makefile.am): Likewise.
72237         * modules/exclude (Makefile.am): Likewise.
72238         * modules/exitfail (Makefile.am): Likewise.
72239         * modules/fcntl-safer (Makefile.am): Likewise.
72240         * modules/file-type (Makefile.am): Likewise.
72241         * modules/fileblocks (Makefile.am): Likewise.
72242         * modules/filemode (Makefile.am): Likewise.
72243         * modules/filenamecat (Makefile.am): Likewise.
72244         * modules/fnmatch (Makefile.am): Likewise.
72245         * modules/fopen-safer (Makefile.am): Likewise.
72246         * modules/fpending (Makefile.am): Likewise.
72247         * modules/fprintftime (Makefile.am): Likewise.
72248         * modules/free (Makefile.am): Likewise.
72249         * modules/fsusage (Makefile.am): Likewise.
72250         * modules/ftruncate (Makefile.am): Likewise.
72251         * modules/fts (Makefile.am): Likewise.
72252         * modules/gc (Makefile.am): Likewise.
72253         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72254         * modules/getaddrinfo (Makefile.am): Likewise.
72255         * modules/getcwd (Makefile.am): Likewise.
72256         * modules/getdelim (Makefile.am): Likewise.
72257         * modules/getdomainname (Makefile.am): Likewise.
72258         * modules/getgroups (Makefile.am): Likewise.
72259         * modules/gethostname (Makefile.am): Likewise.
72260         * modules/gethrxtime (Makefile.am): Likewise.
72261         * modules/getline (Makefile.am): Likewise.
72262         * modules/getloadavg (Makefile.am): Likewise.
72263         * modules/getlogin_r (Makefile.am): Likewise.
72264         * modules/getopt (Makefile.am): Likewise.
72265         * modules/getpass (Makefile.am): Likewise.
72266         * modules/getpass-gnu (Makefile.am): Likewise.
72267         * modules/getsubopt (Makefile.am): Likewise.
72268         * modules/gettime (Makefile.am): Likewise.
72269         * modules/gettimeofday (Makefile.am): Likewise.
72270         * modules/getugroups (Makefile.am): Likewise.
72271         * modules/getusershell (Makefile.am): Likewise.
72272         * modules/glob (Makefile.am): Likewise.
72273         * modules/group-member (Makefile.am): Likewise.
72274         * modules/hard-locale (Makefile.am): Likewise.
72275         * modules/hash (Makefile.am): Likewise.
72276         * modules/hmac-md5 (Makefile.am): Likewise.
72277         * modules/hmac-sha1 (Makefile.am): Likewise.
72278         * modules/human (Makefile.am): Likewise.
72279         * modules/idcache (Makefile.am): Likewise.
72280         * modules/imaxabs (Makefile.am): Likewise.
72281         * modules/imaxdiv (Makefile.am): Likewise.
72282         * modules/inet_ntop (Makefile.am): Likewise.
72283         * modules/inet_pton (Makefile.am): Likewise.
72284         * modules/inttostr (Makefile.am): Likewise.
72285         * modules/isapipe (Makefile.am): Likewise.
72286         * modules/lchown (Makefile.am): Likewise.
72287         * modules/long-options (Makefile.am): Likewise.
72288         * modules/lstat (Makefile.am): Likewise.
72289         * modules/malloc (Makefile.am): Likewise.
72290         * modules/mathl (Makefile.am): Likewise.
72291         * modules/mbchar (Makefile.am): Likewise.
72292         * modules/md2 (Makefile.am): Likewise.
72293         * modules/md4 (Makefile.am): Likewise.
72294         * modules/md5 (Makefile.am): Likewise.
72295         * modules/memcasecmp (Makefile.am): Likewise.
72296         * modules/memchr (Makefile.am): Likewise.
72297         * modules/memcmp (Makefile.am): Likewise.
72298         * modules/memcoll (Makefile.am): Likewise.
72299         * modules/memcpy (Makefile.am): Likewise.
72300         * modules/memmem (Makefile.am): Likewise.
72301         * modules/memmove (Makefile.am): Likewise.
72302         * modules/mempcpy (Makefile.am): Likewise.
72303         * modules/memrchr (Makefile.am): Likewise.
72304         * modules/memset (Makefile.am): Likewise.
72305         * modules/memxor (Makefile.am): Likewise.
72306         * modules/mkancesdirs (Makefile.am): Likewise.
72307         * modules/mkdir (Makefile.am): Likewise.
72308         * modules/mkdir-p (Makefile.am): Likewise.
72309         * modules/mkdtemp (Makefile.am): Likewise.
72310         * modules/mkstemp (Makefile.am): Likewise.
72311         * modules/mktime (Makefile.am): Likewise.
72312         * modules/modechange (Makefile.am): Likewise.
72313         * modules/mountlist (Makefile.am): Likewise.
72314         * modules/nanosleep (Makefile.am): Likewise.
72315         * modules/openat (Makefile.am): Likewise.
72316         * modules/pagealign_alloc (Makefile.am): Likewise.
72317         * modules/physmem (Makefile.am): Likewise.
72318         * modules/poll (Makefile.am): Likewise.
72319         * modules/posixtm (Makefile.am): Likewise.
72320         * modules/posixver (Makefile.am): Likewise.
72321         * modules/putenv (Makefile.am): Likewise.
72322         * modules/quote (Makefile.am): Likewise.
72323         * modules/quotearg (Makefile.am): Likewise.
72324         * modules/raise (Makefile.am): Likewise.
72325         * modules/read-file (Makefile.am): Likewise.
72326         * modules/readline (Makefile.am): Likewise.
72327         * modules/readlink (Makefile.am): Likewise.
72328         * modules/readtokens (Makefile.am): Likewise.
72329         * modules/readutmp (Makefile.am): Likewise.
72330         * modules/realloc (Makefile.am): Likewise.
72331         * modules/regex (Makefile.am): Likewise.
72332         * modules/rename (Makefile.am): Likewise.
72333         * modules/rename-dest-slash (Makefile.am): Likewise.
72334         * modules/rijndael (Makefile.am): Likewise.
72335         * modules/rmdir (Makefile.am): Likewise.
72336         * modules/rpmatch (Makefile.am): Likewise.
72337         * modules/safe-read (Makefile.am): Likewise.
72338         * modules/safe-write (Makefile.am): Likewise.
72339         * modules/same (Makefile.am): Likewise.
72340         * modules/save-cwd (Makefile.am): Likewise.
72341         * modules/savedir (Makefile.am): Likewise.
72342         * modules/setenv (Makefile.am): Likewise.
72343         * modules/settime (Makefile.am): Likewise.
72344         * modules/sha1 (Makefile.am): Likewise.
72345         * modules/sig2str (Makefile.am): Likewise.
72346         * modules/snprintf (Makefile.am): Likewise.
72347         * modules/stdlib-safer (Makefile.am): Likewise.
72348         * modules/stpcpy (Makefile.am): Likewise.
72349         * modules/stpncpy (Makefile.am): Likewise.
72350         * modules/strcase (Makefile.am): Likewise.
72351         * modules/strcasestr (Makefile.am): Likewise.
72352         * modules/strchrnul (Makefile.am): Likewise.
72353         * modules/strcspn (Makefile.am): Likewise.
72354         * modules/strdup (Makefile.am): Likewise.
72355         * modules/strerror (Makefile.am): Likewise.
72356         * modules/strftime (Makefile.am): Likewise.
72357         * modules/strndup (Makefile.am): Likewise.
72358         * modules/strnlen (Makefile.am): Likewise.
72359         * modules/strpbrk (Makefile.am): Likewise.
72360         * modules/strsep (Makefile.am): Likewise.
72361         * modules/strstr (Makefile.am): Likewise.
72362         * modules/strtod (Makefile.am): Likewise.
72363         * modules/strtoimax (Makefile.am): Likewise.
72364         * modules/strtok_r (Makefile.am): Likewise.
72365         * modules/strtol (Makefile.am): Likewise.
72366         * modules/strtoll (Makefile.am): Likewise.
72367         * modules/strtoul (Makefile.am): Likewise.
72368         * modules/strtoull (Makefile.am): Likewise.
72369         * modules/strtoumax (Makefile.am): Likewise.
72370         * modules/strverscmp (Makefile.am): Likewise.
72371         * modules/time_r (Makefile.am): Likewise.
72372         * modules/timegm (Makefile.am): Likewise.
72373         * modules/tmpfile-safer (Makefile.am): Likewise.
72374         * modules/unistd-safer (Makefile.am): Likewise.
72375         * modules/unlinkdir (Makefile.am): Likewise.
72376         * modules/userspec (Makefile.am): Likewise.
72377         * modules/utime (Makefile.am): Likewise.
72378         * modules/utimecmp (Makefile.am): Likewise.
72379         * modules/utimens (Makefile.am): Likewise.
72380         * modules/vasnprintf (Makefile.am): Likewise.
72381         * modules/vasprintf (Makefile.am): Likewise.
72382         * modules/vsnprintf (Makefile.am): Likewise.
72383         * modules/xalloc (Makefile.am): Likewise.
72384         * modules/xgetcwd (Makefile.am): Likewise.
72385         * modules/xnanosleep (Makefile.am): Likewise.
72386         * modules/xreadlink (Makefile.am): Likewise.
72387         * modules/xstrtod (Makefile.am): Likewise.
72388         * modules/xstrtol (Makefile.am): Likewise.
72389         * modules/xstrtold (Makefile.am): Likewise.
72390         * modules/yesno (Makefile.am): Likewise.
72391
72392 2006-10-12  Jim Meyering  <jim@meyering.net>
72393
72394         * m4/getloadavg.m4: Revert the change below.
72395
72396         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72397         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72398         fail with a symlink, which is what coreutils' ./bootstrap now
72399         creates by default.
72400
72401 2006-10-12  Bruno Haible  <bruno@clisp.org>
72402
72403         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72404         mingw.
72405         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72406         MSVC and mingw explicitly.
72407
72408 2006-10-11  Simon Josefsson  <jas@extundo.com>
72409             Bruno Haible  <bruno@clisp.org>
72410
72411         Add support for multiple gnulib-tool invocations in the scope of a
72412         single configure.ac file.
72413         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72414         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72415         with the same contents as the _LIBADD variable.
72416         (func_emit_initmacro_start, func_emit_initmacro_end,
72417         func_emit_initmacro_done): New functions.
72418         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72419         gl_LIBOBJS and gl_LTLIBOBJS.
72420
72421 2006-10-11  Bruno Haible  <bruno@clisp.org>
72422
72423         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72424         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72425         autoreconf. Instead, invoke autopoint explicitly but move back the
72426         *.m4 files from gnulib.
72427
72428 2006-10-11  Bruno Haible  <bruno@clisp.org>
72429
72430         * gnulib-tool (func_usage): Make module names after --create-testdir
72431         optional.
72432         (func_create_testdir): If no module was specified, use nearly all
72433         modules.
72434
72435 2006-10-12  Jim Meyering  <jim@meyering.net>
72436
72437         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72438         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72439         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72440         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72441         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72442         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72443         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72444         (fts_set_stat_required): New function.
72445         (fts_open): Defer the calls to fts_stat, if possible or requested.
72446         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72447         into fts_stat itself.
72448         (fts_read): Perform any required (deferred) fts_stat call.
72449         (fts_build): Likewise, for the directory we're about to open and read.
72450         In the readdir loop, carefully decide whether each entry will require
72451         an eventual call to fts_stat, using dirent.d_type info if available.
72452         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72453         a command line argument into this function.  Update all callers.
72454         Map a return value of FTS_DOT to FTS_D for a command line argument.
72455         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72456         Thanks to Miklos Szeredi for his tenacity and for the initial
72457         bug report about "find" failing on a FUSE-based file system.
72458
72459         * lib/fts.c (fts_open): Use consistent indentation.
72460
72461 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72462
72463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72464         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72465         reported by Jim Meyering.  All uses of cache variables renamed
72466         to match Autoconf's.
72467         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72468         the other one.
72469
72470         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72471         Fix misspelling in diagnostic.
72472
72473 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72474
72475         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72476         defined.  Problem reported by Matthew Woehlke.
72477
72478         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72479         Add support for Tandem NonStop R series.
72480         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72481         Use new macro.
72482
72483         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72484         (has_trailing_slash): Omit size arg; all callers changed.
72485         Omit 'inline', since it doesn't help performance and we'd
72486         need to configure it.
72487         Don't count //, ///, etc. as having a trailing slash.
72488         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72489         (rpl_rename_dest_slash): On failure, use rename's errno rather
72490         than (in some cases) an incorrect or junk errno.
72491         Simplify code by removing need to compute length; this does
72492         cause it to make two passes instead of one over the file name,
72493         but it's worth it.
72494
72495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72496         change, since Autoconf's version may no longer be appropriate now
72497         that we are using CVS Autoconf's version.  Add support for Tandem.
72498
72499 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72500             Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72503         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72504         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72505         gl_AC_TYPE_LONG_LONG.
72506
72507         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72508         instead of HAVE_LONG_LONG.
72509         * lib/printf-args.c (printf_fetchargs): Likewise.
72510         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72511         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72512         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72513         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72514         gl_AC_TYPE_LONG_LONG.
72515
72516 2006-10-11  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/longlong.m4: Add comments.
72519         * m4/ulonglong.m4: Likewise.
72520
72521 2006-10-10  Bruno Haible  <bruno@clisp.org>
72522
72523         Make it possible to #define stpcpy, strdup to aliases.
72524         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72525         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72526
72527 2006-10-10  Bruno Haible  <bruno@clisp.org>
72528
72529         Make it possible to #define gcd to an alias.
72530         * lib/gcd.c: Include config.h.
72531
72532 2006-10-10  Bruno Haible  <bruno@clisp.org>
72533
72534         Make it possible to #define c_isascii to an alias.
72535         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72536         defined. Undefine the macros before defining them, to avoid gcc
72537         warnings.
72538         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72539         define NO_C_CTYPE_MACROS early.
72540
72541 2006-10-10  Bruno Haible  <bruno@clisp.org>
72542
72543         Make it possible to #define set_program_name to an alias.
72544         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72545         ENABLE_RELOCATABLE early.
72546
72547 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72548
72549         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72550         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72551         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72552         More generally, don't assume that 64-bit signed int is available
72553         if unsigned int is, and vice versa.
72554         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72555         unsigned symbols, not on their signed counterparts.
72556         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72557         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72558         (UINT64_C, UINTMAX_C):
72559         Likewise.
72560         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72561         unsigned counterparts.
72562         (Have_long_long, Unsigned): New macros.
72563         (Int): Renamed from INT.
72564         (strtoimax): Use the new macros.
72565         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72566         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72567         * modules/inttypes (inttypes.h): Substitute
72568         HAVE_UNSIGNED_LONG_LONG_INT.
72569         * modules/stdint (stdint.h): Likewise.
72570         (Files): Add m4/ulonglong.m4.
72571
72572 2006-10-10  Bruno Haible  <bruno@clisp.org>
72573
72574         Fix a gcc -Wshadow warning.
72575         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72576         to 'bucket'.
72577         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72578         gl_linked_indexof_from_to): Likewise.
72579         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72580         Likewise.
72581         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72582         Likewise.
72583         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72584         Reported by Eric Blake.
72585
72586 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72589         for NetBSD.  Problem reported by Bruno Haible.
72590
72591 2006-10-09  Jim Meyering  <jim@meyering.net>
72592
72593         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72594         Patch from Bruno Haible.
72595
72596 2006-10-09  Jim Meyering  <jim@meyering.net>
72597
72598         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72599         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72600         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72601
72602 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         Don't include <config.h> twice; this doesn't work in some cases,
72605         e.g., when config.h has "#define intmax_t long long int" and
72606         we include <config.h>, <inttypes.h>, <config.h> in that order.
72607         Problem reported by Matthew Woehlke in:
72608         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72609         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72610         * lib/fts-cycle.c: Don't include config.h.
72611         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72612         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72613         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72614         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72615         inttypes.h.
72616         * lib/xstrtoumax.c: Likewise.
72617         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72618         __strtol and the like, so that this module is more like its siblings.
72619         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72620         Remove; no longer needed now that we assume gnulib inttypes.h.
72621
72622 2006-10-08  Bruno Haible  <bruno@clisp.org>
72623
72624         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72625         option.
72626
72627 2006-10-07  Jim Meyering  <jim@meyering.net>
72628
72629         * modules/inttypes (inttypes.h): Revert what seems to have been
72630         an inadvertent part of today's change: use "|", not "/" in the
72631         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72632
72633 2006-10-07  Bruno Haible  <bruno@clisp.org>
72634
72635         * modules/sublist: New file.
72636
72637 2006-10-07  Bruno Haible  <bruno@clisp.org>
72638
72639         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72640         * modules/argz (argz.h): Likewise.
72641         * modules/arpa_inet (arpa/inet.h): Likewise.
72642         * modules/byteswap (byteswap.h): Likewise.
72643         * modules/configmake (configmake.h): Likewise.
72644         * modules/fcntl (fcntl.h): Likewise.
72645         * modules/fnmatch (fnmatch.h): Likewise.
72646         * modules/getopt (getopt.h): Likewise.
72647         * modules/glob (glob.h): Likewise.
72648         * modules/inttypes (inttypes.h): Likewise.
72649         * modules/netinet_in (netinet/in.h): Likewise.
72650         * modules/poll (poll.h): Likewise.
72651         * modules/stdbool (stdbool.h): Likewise.
72652         * modules/stdint (stdint.h): Likewise.
72653         * modules/sys_select (sys/select.h): Likewise.
72654         * modules/sys_socket (sys/socket.h): Likewise.
72655         * modules/sys_stat (sys/stat.h): Likewise.
72656         * modules/sysexits (sysexits.h): Likewise.
72657         * modules/unistd (unistd.h): Likewise.
72658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72659         Add a "DO NOT EDIT" comment to the generated file.
72660         (func_import): Likewise for gnulib-comp.m4.
72661
72662 2006-10-07  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/gl_sublist.h: New file.
72665         * lib/gl_sublist.c: New file.
72666
72667 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72670         name (relative to the original working directory) and the file
72671         name component (relative to the temporary working directory).  All
72672         callers changed.
72673         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72674         * lib/mkdir-p.c (make_dir_parents): Likewise.
72675         * lib/mkdir-p.h (make_dir_parents): Likewise.
72676
72677 2006-10-06  Eric Blake  <ebb9@byu.net>
72678
72679         Define several macros for use by the clean-temp module.
72680         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72681         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72682         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72683
72684         * lib/clean-temp.h (close_stream_temp): New declaration.
72685         * lib/clean-temp.c (includes): Pull in headers according to what
72686         other modules are in use.
72687         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72688
72689 2006-10-06  Bruno Haible  <bruno@clisp.org>
72690
72691         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72692         instead of fopen, fwriteerror.
72693
72694 2006-10-06  Bruno Haible  <bruno@clisp.org>
72695
72696         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72697         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72698         int.
72699         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72700         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72701         Return an error indicator.
72702         Suggested by Eric Blake.
72703
72704 2006-10-06  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72707         Reported by Eric Blake.
72708
72709 2006-10-06  Bruno Haible  <bruno@clisp.org>
72710
72711         * modules/closeout (Description): Mention stderr too.
72712
72713 2006-10-06  Bruno Haible  <bruno@clisp.org>
72714         and Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * lib/closeout.c (close_stdout): Also close stderr.
72717         * lib/closeout.h: Update comment.
72718
72719 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72722         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72723         * lib/dirchownmod.c: Include lchown.h.
72724         * lib/lchown.c: Don't include files that lchown.h now includes.
72725         Don't declare chown, since lchown.h now does that.
72726         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72727         (lchown): Define to rpl_chown if lchown is declared but
72728         does not exist.  Declare using a prototype if lchown is not
72729         declared.  Add a copyright notice.
72730         * lib/mkstemp.h: Include <unistd.h>.
72731         * lib/openat.c: Include lchown.h.
72732
72733         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72734         we now test for that separately.
72735         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72736         rather than O_NOFOLLOW, when testing whether it's possible to
72737         avoid a race condition reliably.
72738         * lib/savewd.c (savewd_chdir): Likewise.
72739
72740         Remove macros that are no longer needed now that stdint.h is
72741         reliable.
72742         * lib/fsusage.c (UINTMAX_MAX): Remove.
72743         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72744         * lib/utimecmp.c (SIZE_MAX): Remove.
72745
72746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72747
72748         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72749         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72750         O_NOATIME works.
72751
72752 2006-10-05  Bruno Haible  <bruno@clisp.org>
72753
72754         * lib/gl_list.h (gl_sortedlist_search_from_to,
72755         gl_sortedlist_indexof_from_to): New declarations.
72756         (gl_list_implementation): New fields sortedlist_search_from_to,
72757         sortedlist_indexof_from_to.
72758         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72759         inline functions.
72760         * lib/gl_list.c (gl_sortedlist_search_from_to,
72761         gl_sortedlist_indexof_from_to): New functions.
72762         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72763         function.
72764         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72765         (gl_array_sortedlist_search_from_to): New function.
72766         (gl_array_list_implementation): Update.
72767         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72768         function.
72769         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72770         (gl_carray_sortedlist_search_from_to): New function.
72771         (gl_carray_list_implementation): Update.
72772         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72773         gl_linked_sortedlist_indexof_from_to): New functions.
72774         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72775         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72776         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72777         gl_tree_sortedlist_indexof_from_to): New functions.
72778         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72779         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72780         Update.
72781         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72782         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72783         Update.
72784
72785 2006-10-05  Bruno Haible  <bruno@clisp.org>
72786
72787         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72788         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72789         (struct gl_list_implementation): Add fields search_from_to,
72790         indexof_from_to. Remove fields search, indexof.
72791         (gl_list_search): Use the search_from_to method.
72792         (gl_list_search_from, gl_list_search_from_to): New functions.
72793         (gl_list_indexof): Use the indexof_from_to method.
72794         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72795         * lib/gl_list.c (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_array_list.c (gl_array_indexof_from_to): Renamed from
72800         gl_array_indexof. Add start_index, end_index arguments.
72801         (gl_array_search_from_to): Renamed from gl_array_search. Add
72802         start_index, end_index arguments.
72803         (gl_array_remove, gl_array_list_implementation): Update.
72804         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72805         gl_carray_indexof. Add start_index, end_index arguments.
72806         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72807         start_index, end_index arguments.
72808         (gl_carray_remove, gl_carray_list_implementation): Update.
72809         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72810         gl_linked_search. Add start_index, end_index arguments.
72811         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72812         start_index, end_index arguments.
72813         (gl_linked_remove): Update.
72814         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72815         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72816         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72817         field to 'size_t'.
72818         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72819         gl_tree_search. Add start_index, end_index arguments.
72820         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72821         start_index, end_index arguments.
72822         (gl_tree_remove): Update.
72823         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72824         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72825         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72826         function.
72827         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72828         gl_tree_search. Add start_index, end_index arguments.
72829         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72830         start_index, end_index arguments.
72831         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72832         Update.
72833         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72834
72835 2006-10-05  Bruno Haible  <bruno@clisp.org>
72836
72837         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72838
72839         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72840         fwriteerror_temp): New declarations.
72841         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72842         (descriptors): New variable.
72843         (cleanup): First, close the descriptors.
72844         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72845         fclose_temp, fwriteerror_temp): New functions.
72846
72847 2006-10-04  Jim Meyering  <jim@meyering.net>
72848
72849         * lib/fts.c (fts_open): Tiny comment change.
72850
72851 2006-10-04  Bruno Haible  <bruno@clisp.org>
72852
72853         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72854         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72855         gl_LOCK_BODY.
72856         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72857         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72858         gl_LOCK_EARLY_BODY.
72859         (gl_LOCK): Require gl_LOCK_BODY.
72860
72861 2006-10-04  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72864         (gl_oset_search_atleast): New declaration.
72865         (struct gl_oset_implementation): Add field 'search_atleast'.
72866         (gl_oset_search_atleast): New inline function.
72867         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72868         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72869         (gl_array_oset_implementation): Update.
72870         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72871         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72872         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72873
72874 2006-10-04  Bruno Haible  <bruno@clisp.org>
72875
72876         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72877
72878 2006-10-03  Bruno Haible  <bruno@clisp.org>
72879
72880         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72881         from gl_avltreehash_list_implementation.
72882
72883 2006-10-03  Bruno Haible  <bruno@clisp.org>
72884
72885         * lib/gl_oset.c (gl_oset_add): Fix return type.
72886
72887 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72888
72889         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72890
72891 2006-10-02  Eric Blake  <ebb9@byu.net>
72892
72893         * modules/strnlen (Depends-on): Add extensions.
72894
72895 2006-10-02  Eric Blake  <ebb9@byu.net>
72896
72897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72898         definition in 2.60+.
72899
72900 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72901
72902         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72903         checks.
72904
72905 2006-10-02  Bruno Haible  <bruno@clisp.org>
72906
72907         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72908         to the AUTOMAKE_OPTIONS.
72909         Reported by Jim Meyering.
72910
72911 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         Work around bug in Solaris 10 /proc file system:
72914         /proc/self/fd/NNN/.. isn't the parent directory of
72915         the directory whose file descriptor is NNN.  This needs to
72916         be worked around at run time, not compile time, since a
72917         program might be built on Solaris 8, where things work, and
72918         run on Solaris 10.
72919         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72920         to use the following interface instead:
72921         (OPENAT_BUFFER_SIZE): New macro.
72922         (openat_proc_name): New function.
72923         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72924         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72925         Likewise.
72926         * lib/openat-proc.c: New file.
72927         * modules/openat (Files): Add lib/openat-proc.c.
72928         (Depends-on): Add same-inode, stdbool.
72929         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72930
72931 2006-09-29  Bruno Haible  <bruno@clisp.org>
72932
72933         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72934         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72935         argument. Set stdout_closed before testing for ferror, not after.
72936         (fwriteerror, fwriteerror_no_ebadf): New functions.
72937
72938 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72939
72940         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72941
72942 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72943
72944         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72945         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72946
72947 2006-09-28  Jim Meyering  <jim@meyering.net>
72948
72949         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72950         Include <unistd.h>.
72951
72952 2006-09-28  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72955         * modules/linkedhash-list (Depends-on): Likewise.
72956         * modules/rbtreehash-list (Depends-on): Likewise.
72957
72958 2006-09-28  Bruno Haible  <bruno@clisp.org>
72959
72960         * lib/strndup.h: Simplify the redefinition of strndup.
72961         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72962         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72963
72964 2006-09-28  Bruno Haible  <bruno@clisp.org>
72965
72966         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72967         * lib/gl_linkedhash_list.c: Likewise.
72968         * lib/gl_rbtreehash_list.c: Likewise.
72969
72970 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72973         getaddrinfo.
72974
72975         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72976         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72977         it causes <stdio_ext.h> to cause a compile-time error.
72978         Problem reported by Nelson H. F. Beebe.
72979         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72980         of HAVE_DECL___PENDING.
72981
72982         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72983         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72984         declaration.
72985
72986 2006-09-27  Jim Meyering  <jim@meyering.net>
72987
72988         This file could end up with a definition for a function
72989         named __strndup, rather than rpl_strndup on a system with
72990         incomplete weak_alias support.
72991         * lib/strndup.c (strndup): Rename from __strndup.
72992         Remove #defines that used to map __strndup to strndup.
72993         Don't use K&R prototypes.
72994         Remove LIBC-related code, since this file is not sync'd with glibc.
72995         * lib/strndup.h: Revamp, accordingly.
72996         * m4/strndup.m4: Modernize.
72997
72998 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72999
73000         * modules/savewd (Depends-on): Add 'raise'.
73001         * lib/savewd.c: Include <signal.h>, for 'raise'.
73002
73003 2006-09-26  Jim Meyering  <jim@meyering.net>
73004
73005         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73006         when we detect Darwin 8.7.0's acl_get_file bug.
73007         Rearrange to perform the new (below) run-test while $LIBS
73008         contains any acl-related library.  Set USE_ACL at the end.
73009         (gl_ACL_GET_FILE): New function.
73010
73011 2006-09-26  Eric Blake  <ebb9@byu.net>
73012
73013         * lib/verror.c: Include <config.h> unconditionally.
73014
73015 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * modules/clock-time (Maintainer): Add self.
73018         * modules/getlogin_r (Depends-on): Add extensions.
73019
73020 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73021
73022         * modules/clock-time: New module.
73023         * modules/nanosleep (Depends-on): Add clock-time.
73024         * modules/gethrxtime (Depends-on): Likewise.
73025         * modules/gettime (Depends-on): Likewise.
73026         * modules/settime (Depends-on): Likewise.
73027
73028         * modules/fts-lgpl: Depend on openat.
73029         * modules/mkancesdirs: Depend on savewd.
73030         * modules/mkdir-p: Likewise.
73031
73032 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73033
73034         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73035
73036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73037         `gl_have_arbitrary_file_name_length_limit' to
73038         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73039         actually works between configure runs.
73040
73041 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73042             Bruno Haible  <bruno@clisp.org>
73043
73044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73045
73046 2006-09-25  Jim Meyering  <jim@meyering.net>
73047
73048         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73049         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73050
73051 2006-09-25  Eric Blake  <ebb9@byu.net>
73052
73053         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73054         exec's in 2006-09-18 patch when shuffling fds.
73055
73056 2006-09-25  Bruno Haible  <bruno@clisp.org>
73057
73058         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73059         Reported by Jim Meyering.
73060
73061 2006-09-24  Jim Meyering  <jim@meyering.net>
73062
73063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73064         compare a pointer against a literal "0".  That caused failures with
73065         at least HP-UX's hpcc.
73066
73067 2006-09-22  Simon Josefsson  <jas@extundo.com>
73068
73069         * modules/gc-sha1:
73070         * modules/gc-md4:
73071         * modules/gc-hmac-sha1:
73072         * modules/gc-hmac-md5:
73073         * modules/gc-des:
73074         * modules/gc-arcfour: Distribute more files.
73075
73076 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73077
73078         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73079         (gl_linked_iterator_from_to): Initialize struct completely.
73080         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73081         (gl_tree_iterator_from_to): Likewise
73082         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73083         * lib/gl_array_list.c [lint] (gl_array_iterator)
73084         (gl_array_iterator_from_to): Likewise.
73085         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73086         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73087         (gl_carray_iterator_from_to): Likewise.
73088
73089         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73090         * lib/md4.c (md4_process_block): Remove unused variable.
73091         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73092         parentheses for clarity.
73093
73094 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73095
73096         * modules/bison-i18n (Depends-on): Add gettext.
73097
73098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73099
73100         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73101         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73102         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73103         also add missing comma that caused broken test.
73104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73105         stdlib.h, for `abort'.
73106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73107         variables.
73108         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73109         include unistd.h if present, for `rmdir'.
73110         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73111         variables.
73112         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73113         in the process include standard headers for prototypes.
73114         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73115         gets declared on GNU/Linux.
73116         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73117         unistd.h, for `rmdir'.
73118         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73119
73120         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73121         always true.
73122         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73123
73124         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73125
73126 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73127
73128         * gnulib-tool (func_version): Create output all at once.  This
73129         may help avoid triggering unnecessary SIGPIPEs, and at any
73130         rate it doesn't hurt.
73131
73132 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73133             Bruno Haible  <bruno@clisp.org>
73134
73135         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73136         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73137         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73138
73139         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73140         (gl_FUNC_VASPRINTF): Invoke it.
73141
73142 2006-09-22  Bruno Haible  <bruno@clisp.org>
73143
73144         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73145         getloadavg.c as first argument.
73146
73147 2006-09-22  Bruno Haible  <bruno@clisp.org>
73148
73149         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73150         at the beginning of the gl_INIT macro.
73151         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73152         gl_GETLOADAVG.
73153
73154 2006-09-22  Bruno Haible  <bruno@clisp.org>
73155
73156         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73157         module.
73158         Suggested by Ralf Wildenhues.
73159
73160 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         Import this patch from libc:
73163
73164         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73165
73166         * lib/regex_internal.c (re_string_reconstruct): Handle
73167         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73168         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73169         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73170         re_string_context_at.
73171
73172         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73173         now requires it.
73174         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73175         gl_REGEX now does it for us.
73176         (gl_REGEX): Add test taken from
73177         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73178
73179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73180         Check that large offsets work.  Modernize Autoconf usages.
73181         Prefer "yes" to mean a good thing rather than a bad.
73182         Don't put "#define mkstemp" in config.h, as this might interfere
73183         with standard system headers that "#define mkstemp mkstemp64".
73184
73185         * modules/mkstemp (Depends-on): Add extensions, so that
73186         mkstemp is visible on some platforms.
73187         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73188         (Include): Change to "mkstemp.h" from <stdlib.h>.
73189         (Files): Add mkstemp.h.
73190
73191         * lib/mkstemp.h: New file, since some standard headers
73192         #define mkstemp.
73193         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73194         Include "mkstemp.h".
73195         Make the _LIBC code resemble glibc original more,
73196         e.g., use K&R style.
73197         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73198         (mkstemp): Remove, since mkstemp.h does this for us.
73199         * lib/stdlib--.h: Include mkstemp.h.
73200
73201         Import this patch from libc:
73202
73203         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73204
73205         * lib/tempname.c (__gen_tempname): Change attempts_min
73206         into a macro.  Use preprocessor to decide how to initialize
73207         attempts [Coverity CID 67].
73208
73209 2006-09-20  Bruno Haible  <bruno@clisp.org>
73210
73211         * lib/mkdtemp.c: Import from libc.
73212         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73213                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73214                 attempts_min into a macro.  Use preprocessor to decide how to
73215                 initialize attempts [Coverity CID 67].
73216         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73217                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73218                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73219
73220 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73221
73222         * gnulib-tool (func_exit): New function, to allow to pass the
73223         exit status portably through the trap.  Use everywhere.
73224         (--help, --version): Signal a write error.
73225         (trap): catch SIGPIPE, for write errors.
73226         Exit at the end of the trap, with the correct exit status.
73227
73228 2006-09-19  Karl Berry  <karl@gnu.org>
73229
73230         * doc/gnulib.texi: note about the license texinfo files.
73231
73232 2006-09-19  Eric Blake  <ebb9@byu.net>
73233
73234         * gnulib-tool: Avoid space-tab.
73235
73236 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73237
73238         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73239         that prevented coreutils 6.1 from building.  Problem reported
73240         by Petter Reinholdtsen.
73241
73242 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * gnulib-tool (avoidlist): Fix typo that broke options like
73245         --avoid=lock that are used by coreutils bootstrap.
73246
73247 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73248
73249         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73250         more systematically.
73251
73252 2006-09-18  Jim Meyering  <jim@meyering.net>
73253
73254         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73255
73256 2006-09-18  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73259
73260 2006-09-18  Bruno Haible  <bruno@clisp.org>
73261
73262         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73263         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73264         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73265         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73266         * m4/gettext.m4: Require autoconf >= 2.52.
73267         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73268         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73269         of gl_cv_header_inttypes_h.
73270
73271 2006-09-18  Bruno Haible  <bruno@clisp.org>
73272
73273         * lib/javaversion.c: Include configmake.h.
73274
73275 2006-09-18  Bruno Haible  <bruno@clisp.org>
73276
73277         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73278         avoid that the while loops be executed in a subshell.
73279
73280 2006-09-18  Bruno Haible  <bruno@clisp.org>
73281
73282         * MODULES.html.sh (func_module): Break long lines.
73283         Suggested by Bruce Korb <bkorb@gnu.org>.
73284
73285 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73286
73287         Speed up by a factor of 1.12.
73288         * gnulib-tool (nl): New variable.
73289         (func_import): Rewrite include directive extraction to only read each
73290         directive once.
73291
73292 2006-09-17  Bruno Haible  <bruno@clisp.org>
73293
73294         * modules/javaversion (Makefile.am): Remove DEFS setting.
73295         (Depends-on): Add configmake, for PKGDATADIR definition.
73296
73297 2006-09-17  Bruno Haible  <bruno@clisp.org>
73298
73299         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73300
73301 2006-09-17  Bruno Haible  <bruno@clisp.org>
73302
73303         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73304         (func_modules_transitive_closure, func_modules_add_dummy,
73305         func_modules_to_filelist, func_import, func_create_testdir,
73306         func_create_megatestdir, ...): Use it wherever possible.
73307         Suggested by Ralf Wildenhues.
73308
73309 2006-09-16  Karl Berry  <karl@gnu.org>
73310
73311         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73312         to avoid sectioning errors.
73313         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73314         [ifinfo]: blank line after @center-ed titles.
73315         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73316         Spell FSF address consistently with others.
73317         (These changes approved by rms.)
73318
73319 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73320
73321         Speed up by a factor of 1.61.
73322         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73323         already checked module names again.
73324
73325 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73326
73327         Speed up by a factor of 1.13.
73328         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73329         for new_files, and the input to func_add_or_update.
73330
73331 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73332
73333         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73334         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73335
73336 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73337
73338         * modules/mkancesdirs (Depends-on): Add fcntl.
73339         * modules/savewd: New file.
73340         * MODULES.html.sh (File system functions): Add savewd.
73341
73342         * modules/configmake (Makefile.am): Add support for the
73343         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73344
73345 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73346
73347         * m4/savewd.m4: New file.
73348
73349 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73352         (dirchownmod): New arg FD.  All callers changed.
73353         Use FD rather than opening the directory ourself, as opening is
73354         now the caller's responsibility.
73355         * lib/dirchownmod.h: Likewise.
73356         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73357         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73358         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73359         (test_dir): Remove.
73360         (mkancesdirs): Return length of prefix of FILE that has already
73361         been made, or -2 if there is a child doing the work.  Redo
73362         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73363         ".", and treat ".." specially since it might stray back into
73364         already-created areas.  Use a subprocess if necessary.  New arg
73365         WD; all users changed.  MAKE_DIR function should now return 1
73366         if it creates a directory that is not readable.  Return -2 if
73367         a child process is spun off.
73368         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73369         Adjust signature to match code.
73370         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73371         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73372         all users changed.
73373         * lib/savewd.c, lib/savewd.h: New files.
73374
73375 2006-09-15  Jim Meyering  <jim@meyering.net>
73376
73377         * modules/rename-dest-slash: New module.
73378         * MODULES.html.sh (posix_compat): Add it here.
73379
73380         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73381
73382 2006-09-15  Jim Meyering  <jim@meyering.net>
73383
73384         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73385         file.
73386
73387         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73388
73389 2006-09-15  Jim Meyering  <jim@meyering.net>
73390
73391         * lib/rename-dest-slash.c (has_trailing_slash): Use
73392         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73393         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73394         test before testing whether SRC is a directory.
73395         Suggestions from Bruno Haible.
73396
73397         Avoid a warning about an unused variable.
73398         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73399         into the #ifdef block where it's used.
73400
73401         * lib/rename-dest-slash.c: New file.
73402
73403 2006-09-14  Bruno Haible  <bruno@clisp.org>
73404
73405         * lib/allocsa.c: Include <config.h> unconditionally.
73406         * lib/asnprintf.c: Likewise.
73407         * lib/asprintf.c: Likewise.
73408         * lib/c-strcasecmp.c: Likewise.
73409         * lib/c-strcasestr.c: Likewise.
73410         * lib/c-strncasecmp.c: Likewise.
73411         * lib/c-strstr.c: Likewise.
73412         * lib/classpath.c: Likewise.
73413         * lib/clean-temp.c: Likewise.
73414         * lib/concatpath.c: Likewise.
73415         * lib/copy-file.c: Likewise.
73416         * lib/csharpcomp.c: Likewise.
73417         * lib/csharpexec.c: Likewise.
73418         * lib/execute.c: Likewise.
73419         * lib/fatal-signal.c: Likewise.
73420         * lib/findprog.c: Likewise.
73421         * lib/fwriteerror.c: Likewise.
73422         * lib/gl_array_list.c: Likewise.
73423         * lib/gl_array_oset.c: Likewise.
73424         * lib/gl_avltree_list.c: Likewise.
73425         * lib/gl_avltree_oset.c: Likewise.
73426         * lib/gl_avltreehash_list.c: Likewise.
73427         * lib/gl_carray_list.c: Likewise.
73428         * lib/gl_linked_list.c: Likewise.
73429         * lib/gl_linkedhash_list.c: Likewise.
73430         * lib/gl_list.c: Likewise.
73431         * lib/gl_oset.c: Likewise.
73432         * lib/gl_rbtree_list.c: Likewise.
73433         * lib/gl_rbtree_oset.c: Likewise.
73434         * lib/gl_rbtreehash_list.c: Likewise.
73435         * lib/imaxabs.c: Likewise.
73436         * lib/imaxdiv.c: Likewise.
73437         * lib/javacomp.c: Likewise.
73438         * lib/javaexec.c: Likewise.
73439         * lib/javaversion.c: Likewise.
73440         * lib/linebreak.c: Likewise.
73441         * lib/localcharset.c: Likewise.
73442         * lib/lock.c: Likewise.
73443         * lib/mbchar.c: Likewise.
73444         * lib/mbswidth.c: Likewise.
73445         * lib/mkdtemp.c: Likewise.
73446         * lib/pipe.c: Likewise.
73447         * lib/printf-args.c: Likewise.
73448         * lib/printf-parse.c: Likewise.
73449         * lib/progname.c: Likewise.
73450         * lib/progreloc.c: Likewise.
73451         * lib/readlink.c: Likewise.
73452         * lib/sh-quote.c: Likewise.
73453         * lib/stpcpy.c: Likewise.
73454         * lib/stpncpy.c: Likewise.
73455         * lib/strcasecmp.c: Likewise.
73456         * lib/strcasestr.c: Likewise.
73457         * lib/strcspn.c: Likewise.
73458         * lib/striconv.c: Likewise.
73459         * lib/strncasecmp.c: Likewise.
73460         * lib/strnlen1.c: Likewise.
73461         * lib/strstr.c: Likewise.
73462         * lib/strtok_r.c: Likewise.
73463         * lib/tls.c: Likewise.
73464         * lib/tmpdir.c: Likewise.
73465         * lib/unicodeio.c: Likewise.
73466         * lib/unsetenv.c: Likewise.
73467         * lib/vasnprintf.c: Likewise.
73468         * lib/vasprintf.c: Likewise.
73469         * lib/wait-process.c: Likewise.
73470         * lib/xallocsa.c: Likewise.
73471         * lib/xsetenv.c: Likewise.
73472         * lib/xstriconv.c: Likewise.
73473
73474 2006-09-13  Simon Josefsson  <jas@extundo.com>
73475
73476         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73477         that internally, suggested by Ralf Wildenhues
73478         <Ralf.Wildenhues@gmx.de>.
73479
73480 2006-09-13  Simon Josefsson  <jas@extundo.com>
73481
73482         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73483         @LIBOBJS@.
73484         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73485
73486 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73489         longer worry about uses that don't define HAVE_CONFIG_H.
73490         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73491         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73492         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73493         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73494         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73495         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73496         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73497         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73498         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73499         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73500         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73501         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73502         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73503         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73504         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73505         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73506         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73507         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73508         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73509         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73510         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73511         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73512         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73513         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73514         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73515         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73516         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73517         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73518         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73519         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73520         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73521         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73522         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73523         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73524         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73525         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73526         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73527         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73528         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73529         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73530         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73531         Likewise.
73532
73533 2006-09-13  Eric Blake  <ebb9@byu.net>
73534
73535         * lib/getopt.c: Fix typo in last commit.
73536
73537 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73538
73539         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73540         dgettext.
73541
73542 2006-09-12  Jim Meyering  <jim@meyering.net>
73543
73544         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73545         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73546         Reported by Nelson H. F. Beebe.
73547
73548 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73549
73550         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73551         program_invocation_name and program_invocation_short_name are
73552         initialized.
73553         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73554         and program_invocation_short_name to argp.h, so they are visible
73555         to user programs.
73556         * lib/argp.h: Likewise
73557
73558 2006-09-10  Bruno Haible  <bruno@clisp.org>
73559
73560         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73561         m4/inttypes_h.m4, m4/uintmax_t.m4.
73562
73563 2006-09-10  Bruno Haible  <bruno@clisp.org>
73564
73565         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73566         gl_AC_TYPE_UINTMAX_T.
73567
73568 2006-09-10  Bruno Haible  <bruno@clisp.org>
73569
73570         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73571
73572 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73573
73574         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73575         convention.  Text proposed by Bruno Haible.
73576         (struct argp_option): Document the use of N_() wrappers.
73577
73578         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73579         '\v', and translate the two parts separately, instead of feeding
73580         the whole string to gettext.  This allows to exclude
73581         '\v' from the strings visible to the translator by writing doc
73582         strings as N_("..") "\v" N_("..").
73583
73584 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * config/srclist.txt: Undo latest change; the bug was fixed.
73587
73588 2006-09-09  Bruno Haible  <bruno@clisp.org>
73589
73590         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73591         assignments if building a library without libtool.
73592         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73593         in func_emit_lib_Makefile_am.
73594         (func_import): When building a static library libfoo.a, arrange to
73595         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73596         (func_create_testdir): Likewise.
73597         * modules/gc (configure.ac, Makefile.am): If building statically,
73598         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73599         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73600         * modules/striconv (configure.ac, Makefile.am): Likewise.
73601         Based on a suggestion by Ralf Wildenhues.
73602
73603 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73606         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73607         Also:
73608
73609         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73610         Add year_2050_test to catch glibc bug 2821
73611         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73612
73613         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73614         Prefer #ifdef to #if.
73615
73616         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73617         Return from 'main' instead of calling 'exit'.
73618
73619 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73620
73621         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73622         returned the maximum time_t value rather than (time_t) -1.
73623         Problem originally reported by William Bardwell
73624         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73625
73626         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73627         Moved to here ...
73628         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73629         ... from here.
73630
73631 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73632
73633         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73634         2821 is fixed.
73635
73636 2006-09-08  Jim Meyering  <jim@meyering.net>
73637
73638         Don't make generated files read-only.  That would bother too many
73639         people.  However, do retain the ability to work when targets are
73640         read-only: remove the destination and temporary files before writing
73641         them (when generated via sed or echo), or by using the -f option for
73642         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73643         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73644         * modules/byteswap, modules/configmake, modules/fcntl:
73645         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73646         * modules/localcharset, modules/netinet_in, modules/poll:
73647         * modules/stdbool, modules/stdint, modules/sys_select:
73648         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73649
73650 2006-09-08  Jim Meyering  <jim@meyering.net>
73651
73652         Avoid new build failure on FreeBSD 6.0.
73653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73654         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73655         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73656
73657 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73658
73659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73660
73661 2006-09-07  Jim Meyering  <jim@meyering.net>
73662
73663         Fix global typo in last change: use chmod u-w, not chmod u-x.
73664         Spotted by Paul Eggert and Bruce Korb.
73665         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73666         * modules/byteswap, modules/configmake, modules/fcntl:
73667         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73668         * modules/localcharset, modules/netinet_in, modules/poll:
73669         * modules/stdbool, modules/stdint, modules/sys_select:
73670         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73671
73672 2006-09-06  Jim Meyering  <jim@meyering.net>
73673
73674         Make generated files be read-only.
73675         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73676         Ensure that each generated file is now read-only.
73677         * modules/argz: Likewise.
73678         * modules/arpa_inet: Likewise.
73679         * modules/byteswap: Likewise.
73680         * modules/configmake: Likewise.
73681         * modules/fcntl: Likewise.
73682         * modules/fnmatch: Likewise.
73683         * modules/getopt: Likewise.
73684         * modules/glob: Likewise.
73685         * modules/inttypes: Likewise.
73686         * modules/netinet_in: Likewise.
73687         * modules/poll: Likewise.
73688         * modules/stdbool: Likewise.
73689         * modules/stdint: Likewise.
73690         * modules/sys_select: Likewise.
73691         * modules/sys_socket: Likewise.
73692         * modules/sys_stat: Likewise.
73693         * modules/sysexits: Likewise.
73694         * modules/localcharset: Same as above, but continue using temporary
73695         file named "t-$@" (why different?) rather than the "$@-t" used
73696         everywhere else.
73697
73698         * modules/sysexits (Makefile.am): Replace literal occurrences
73699         of "sysexit.h" more readable, and more consistent, "$@".
73700
73701 2006-09-06  Bruno Haible  <bruno@clisp.org>
73702
73703         * modules/striconv: New file.
73704         * modules/xstriconv: New file.
73705         * MODULES.html.sh (Internationalization functions): Add striconv,
73706         xstriconv.
73707
73708 2006-09-06  Bruno Haible  <bruno@clisp.org>
73709
73710         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73711         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73712         not using libtool correctly.
73713
73714 2006-09-06  Bruno Haible  <bruno@clisp.org>
73715
73716         * lib/striconv.h: New file.
73717         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73718         iconvstring.c.
73719         * lib/xstriconv.h: New file.
73720         * lib/xstriconv.c: New file.
73721
73722 2006-09-06  Bruno Haible  <bruno@clisp.org>
73723
73724         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73725         lib_..._LDFLAGS.
73726
73727 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73728
73729         * lib/argz_.h: Sync from Libtool.
73730
73731         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73732                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73733
73734         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73735
73736 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73737
73738         * modules/trim: New file.
73739
73740 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73741
73742         * lib/trim.h: New file.
73743         * lib/trim.c: New file.
73744
73745 2006-09-05  Bruno Haible  <bruno@clisp.org>
73746
73747         * MODULES.html.sh (String handling): Add trim.
73748
73749 2006-09-04  Karl Berry  <karl@gnu.org>
73750
73751         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73752         until next release.
73753
73754 2006-09-03  Bruno Haible  <bruno@clisp.org>
73755
73756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73757         correctly.
73758
73759 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73762         not gl_GETLOADAVG.  Omit unneeded semicolons.
73763         Problems reported by Ralf Wildenhues in
73764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73765         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73766         at the end, which is the usual gnulib style.
73767
73768         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73769         of doing all the work ourselves.
73770         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73771         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73772
73773 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73776         Problem reported by Ralf Wildenhues in
73777         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73778
73779         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73780         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73781
73782 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73785         yesterday's patch by changing test -n to test -z.
73786
73787 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73790         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73791         the former is now obsolescent.
73792
73793         * modules/chdir-long (Depends-on): Add fcntl.
73794
73795 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73796
73797         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73798         obsolescent, and programs should use gnulib instead.
73799         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73800         but with prefixes changed.
73801
73802 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73805         or stdbool.h, because they might not exist while configuring.
73806
73807         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73808         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73809         does that for us.
73810         (O_DIRECTORY): Remove.
73811
73812 2006-08-31  Eric Blake  <ebb9@byu.net>
73813
73814         * gnulib-tool: Don't let emacs change spaces to TAB.
73815
73816 2006-08-31  Bruno Haible  <bruno@clisp.org>
73817
73818         * gnulib-tool: When calling func_import more than once, do it in a
73819         subshell.
73820         Reported by Eric Blake <ebb9@byu.net>.
73821
73822 2006-08-31  Bruno Haible  <bruno@clisp.org>
73823
73824         * gnulib-tool (nl): Remove variable.
73825         (sed_transform_lib_file): Use more robust test for config-h module.
73826         (func_import): Fix typo in 2006-08-25 patch.
73827
73828 2006-08-31  Bruno Haible  <bruno@clisp.org>
73829
73830         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73831         specified, augment Makefile.am variables instead of assigning them.
73832
73833 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         Work around a bug in both the Linux and SunOS 64-bit kernels:
73836         nanosleep mishandles sleeps for longer than 2**31 seconds.
73837         Problem reported by Frank v Waveren in
73838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73840         Check for nanosleep bug.
73841         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73842
73843 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73844
73845         Work around a bug in both the Linux and SunOS 64-bit kernels:
73846         nanosleep mishandles sleeps for longer than 2**31 seconds.
73847         Problem reported by Frank v Waveren in
73848         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73849         * lib/nanosleep.c (BILLION): New constant.
73850         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73851         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73852         implementation.
73853
73854 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * modules/nanosleep (Depends-on): Add gettime.
73857
73858 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73859         and Simon Josefsson  <jas@extundo.com>
73860         and Oskar Liljeblad  <oskar@osk.mine.nu>
73861
73862         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73863         * gnulib-tool (func_import): New license type 'unmodifiable license
73864         text'.
73865         * modules/fdl: Use it.  Longer description.
73866         * module/gpl, module/lgpl: New files.
73867
73868 2006-08-30  Jim Meyering  <jim@meyering.net>
73869
73870         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73871         shadowing the parameter.
73872
73873 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73874
73875         Sync from Libtool:
73876
73877         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73878
73879         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73880         sharing with gnulib.  Report by Eric Blake.
73881
73882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * modules/isapipe: New file.
73885         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73886
73887 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * modules/configmake (Makefile.am): Add a comment, and omit
73890         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73891         by Bruno Haible.
73892
73893 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * m4/isapipe.m4: New file.
73896
73897 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73898
73899         * lib/isapipe.c, lib/isapipe.h: New files.
73900
73901 2006-08-29  Jim Meyering  <jim@meyering.net>
73902
73903         * modules/configmake (Makefile.am): Make configmake.h depend on
73904         Makefile.  Otherwise, a stale configmake.h could hang around.
73905
73906 2006-08-29  Eric Blake  <ebb9@byu.net>
73907
73908         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73909         resolution of upstream bug 3044.
73910
73911 2006-08-29  Bruno Haible  <bruno@clisp.org>
73912
73913         * modules/localcharset (Depends-on): Add configmake.
73914         (Makefile.am): Remove setting of LIBDIR through DEFS.
73915
73916 2006-08-29  Bruno Haible  <bruno@clisp.org>
73917
73918         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73919         defined.
73920
73921 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * modules/fcntl: New file.
73924         * modules/chdir-safer (Depends-on): Add fcntl.
73925         * modules/fts: Likewise.
73926         * modules/mkdir-p: Likewise.
73927
73928         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73929         This undoes the most recent change, since we're now addressing the
73930         problem in a different way.
73931
73932         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73933         into output, since the output might be called Makefile.am even
73934         if $makefile_name is something different.
73935         (func_import): Use $makefile_am rather than
73936         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73937         empty.
73938
73939         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73940
73941 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73944         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73945         recent change to stdint.m4, since we're now addressing the problem in a
73946         different way.
73947
73948 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * m4/fcntl_h.m4: New file.
73951
73952 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * lib/fcntl_.h: New file.
73955         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73956         the fcntl module.
73957         * lib/dirchownmod.c: Likewise.
73958         * lib/fts.c: Likewise.
73959
73960         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73961         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73962         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73963         just before including <inttypes.h>, to avoid circular inclusion.
73964
73965 2006-08-28  Jim Meyering  <jim@meyering.net>
73966
73967         * doc/visibility.texi: Actually read and correct the grammar of the
73968         sentence affected by yesterday's change.
73969
73970 2006-08-28  Eric Blake  <ebb9@byu.net>
73971
73972         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73973         needs wrapper.
73974
73975 2006-08-28  Eric Blake  <ebb9@byu.net>
73976
73977         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73978
73979 2006-08-28  Eric Blake  <ebb9@byu.net>
73980
73981         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73982
73983 2006-08-28  Bruno Haible  <bruno@clisp.org>
73984
73985         * modules/c-strstr: New file, from GNU gettext.
73986         * MODULES.html.sh (String handling): Add c-strstr.
73987
73988 2006-08-28  Bruno Haible  <bruno@clisp.org>
73989
73990         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73991         macros.
73992         Reported by Eric Blake.
73993
73994 2006-08-28  Bruno Haible  <bruno@clisp.org>
73995
73996         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73997         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73998         * lib/vasprintf.c: Include errno.h, limits.h.
73999         (EOVERFLOW): New fallback definition.
74000         (vasprintf): Test here whether the string length is > INT_MAX.
74001         * lib/vsnprintf.c: Include errno.h, limits.h.
74002         (EOVERFLOW): New fallback definition.
74003         (vsnprintf): Fix bug when generated string was too long for the buffer.
74004         Test here whether the string length is > INT_MAX.
74005
74006 2006-08-28  Bruno Haible  <bruno@clisp.org>
74007
74008         * lib/inttypes_.h (SCNX*): Remove definitions.
74009         Reported by Eric Blake.
74010
74011 2006-08-28  Bruno Haible  <bruno@clisp.org>
74012
74013         * lib/c-strstr.h: New file, from GNU gettext.
74014         * lib/c-strstr.c: New file, from GNU gettext.
74015
74016 2006-08-28  Bruno Haible  <bruno@clisp.org>
74017
74018         * gnulib-tool: Reorder some statements.
74019
74020 2006-08-28  Bruno Haible  <bruno@clisp.org>
74021
74022         * gnulib-tool: New option --makefile-name.
74023         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74024         $makefile_name.
74025         (func_import): Write $makefile_name to the cache file, and read it from
74026         there unless explicitly specified. Use $makefile_name as file name
74027         instead of Makefile.am. Adjust the recommendations accordingly.
74028
74029 2006-08-28  Bruno Haible  <bruno@clisp.org>
74030
74031         * gnulib-tool (func_verify_module): Check against misapplying patch.
74032
74033 2006-08-28  Bruno Haible  <bruno@clisp.org>
74034
74035         * gnulib-tool (func_relativize, func_relconcat): New functions.
74036         Give an error if --local-dir is given with --update.
74037         Remove trailing slashes from $local_gnulib_dir.
74038         (func_import): Store the relativized $local_gnulib_dir in
74039         gnulib-cache.m4, and read it from there if not specified explicitly.
74040
74041 2006-08-28  Bruno Haible  <bruno@clisp.org>
74042
74043         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74044         is the current directory. Respect also $local_gnulib_dir.
74045
74046 2006-08-28  Bruno Haible  <bruno@clisp.org>
74047             Simon Josefsson  <jas@extundo.com>
74048
74049         BeOS portability.
74050         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74051
74052 2006-08-27  Jim Meyering  <jim@meyering.net>
74053
74054         * doc/visibility.texi: Remove duplicate word: "pointer".
74055
74056 2006-08-26  Bruno Haible  <bruno@clisp.org>
74057
74058         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74059         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74060         (Makefile.am): Create inttypes.h from inttypes_.h.
74061         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74062
74063         * modules/imaxabs: New file.
74064
74065         * modules/imaxdiv: New file.
74066
74067 2006-08-26  Bruno Haible  <bruno@clisp.org>
74068
74069         * m4/inttypes.m4: New file.
74070         * m4/_inttypes_h.m4: Remove file.
74071         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74072         PRI_MACROS_BROKEN.
74073         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74074
74075         * m4/imaxabs.m4: New file.
74076
74077         * m4/imaxdiv.m4: New file.
74078
74079 2006-08-26  Bruno Haible  <bruno@clisp.org>
74080
74081         * lib/inttypes_.h: New file.
74082         * lib/inttypes.h: Remove file.
74083         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74084
74085         * lib/imaxabs.c: New file.
74086
74087         * lib/imaxdiv.c: New file.
74088
74089 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         New config-h module, so that "make" output needn't be cluttered
74092         by -DHAVE_CONFIG_H.
74093         * MODULES.html.sh (Support for building libraries and executables):
74094         Add config-h.
74095         * modules/config-h: New file.
74096         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74097         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74098         the config-h module is used.
74099
74100         New configmake module, so that "make" output needn't be cluttered
74101         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74102         * MODULES.html.sh (Support for building libraries and executables):
74103         Add configmake.
74104         * modules/configmake: New file.
74105
74106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * m4/config-h.m4: New file.
74109
74110 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74111
74112         * config/srclist.txt: Add elisp-comp.
74113
74114 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * MODULES.html.sh (Support for building libraries and executables):
74117         Add elisp-comp.
74118         * build-aux/elisp-comp: New file.
74119         * modules/elisp-comp: New file.
74120
74121 2006-08-24  Bruno Haible  <bruno@clisp.org>
74122
74123         * gnulib-tool (func_create_testdir): Use non-default values of
74124         sourcebase and m4base.
74125
74126 2006-08-24  Bruno Haible  <bruno@clisp.org>
74127
74128         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74129         HTML structure.
74130
74131 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * modules/openat (Depends-on): Add lchown.
74134
74135 2006-08-23  Bruno Haible  <bruno@clisp.org>
74136
74137         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74138         of gl_LOCK_EARLY instead of gl_LOCK.
74139
74140 2006-08-23  Bruno Haible  <bruno@clisp.org>
74141
74142         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74143         on OSF/1 to no.
74144         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74145
74146 2006-08-23  Bruno Haible  <bruno@clisp.org>
74147
74148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74149         as unusable.
74150
74151         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74152         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74153         (gl_LOCK): New macro.
74154
74155 2006-08-22  Simon Josefsson  <jas@extundo.com>
74156
74157         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74158         to md5 module.
74159
74160 2006-08-22  Simon Josefsson  <jas@extundo.com>
74161
74162         * MODULES.html.sh: Add "Support for maintaining and release
74163         projects".
74164
74165         * build-aux/gnupload: New file, from coreutils.
74166
74167 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         Avoid the need for AC_LIBSOURCES in m4 macros.
74170         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74171         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74172         * modules/check-version (EXTRA_DIST): Add check-version.h.
74173         * modules/crc (EXTRA_DIST): Add crc.h.
74174         * modules/des (EXTRA_DIST): Add des.h.
74175         * modules/gc (EXTRA_DIST): Add gc.h.
74176         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74177         * modules/getline (EXTRA_DIST): Add getline.h.
74178         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74179         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74180         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74181         * modules/md2 (EXTRA_DIST): Add md2.h.
74182         * modules/md4 (EXTRA_DIST): Add md4.h.
74183         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74184         * modules/read-file (EXTRA_DIST): Add read-file.h.
74185         * modules/readline (EXTRA_DIST): Add readline.h.
74186         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74187         rijndael-api-fst.h.
74188
74189 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * m4/rijndael.m4 (gl_ARCFOUR):
74192         * m4/arctwo.m4 (gl_ARCTWO):
74193         * m4/check-version.m4 (gl_CHECK_VERSION):
74194         * m4/crc.m4 (gl_CRC):
74195         * m4/des.m4 (gl_DES):
74196         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74197         * m4/gc.m4 (gl_GC):
74198         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74199         * m4/getline.m4 (gl_FUNC_GETLINE):
74200         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74201         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74202         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74203         * m4/md2.m4 (gl_MD2):
74204         * m4/md4.m4 (gl_MD4):
74205         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74206         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74207         * m4/readline.m4 (gl_FUNC_READLINE):
74208         * m4/rijndael.m4 (gl_RIJNDAEL):
74209         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74210         to get the necessary .h files and whatnot.
74211
74212 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74215         gnulib rather than the other way around.
74216         * config/srclistvars.sh (COREUTILS): Remove.
74217
74218 2006-08-22  Jim Meyering  <jim@meyering.net>
74219
74220         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74221
74222         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74223
74224 2006-08-22  Eric Blake  <ebb9@byu.net>
74225
74226         * modules/regexprops-generic: New file.
74227         * MODULES.html.sh (Support for building documentation): List it.
74228
74229 2006-08-22  Eric Blake  <ebb9@byu.net>
74230
74231         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74232         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74233         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74234         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74235
74236 2006-08-22  Bruno Haible  <bruno@clisp.org>
74237
74238         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74239         and lib_LTLIBRARIES like the other lib_* variables.
74240
74241 2006-08-22  Bruno Haible  <bruno@clisp.org>
74242
74243         * build-aux/x-to-1.in: New file, from GNU gettext.
74244
74245 2006-08-22  Bruno Haible  <bruno@clisp.org>
74246
74247         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74248         <utmpx.h> exists.
74249
74250 2006-08-22  Bruno Haible  <bruno@clisp.org>
74251
74252         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74253         <utmpx.h> exists.
74254
74255 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74256
74257         BeOS portability.
74258         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74259         exist.
74260         Problem reported by Bruno Haible.
74261
74262 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         Avoid the need for AC_LIBSOURCES in m4 macros.
74265         * modules/acl (EXTRA_DIST): Add acl.h.
74266         * modules/argmatch (Files): Add m4/argmatch.m4.
74267         (configure.ac): Add gl_ARGMATCH.
74268         (EXTRA_DIST): Renamed from lib_SOURCES, for
74269         consistency with the other modules.  Remove argmatch.c.
74270         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74271         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74272         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74273         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74274         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74275         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74276         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74277         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74278         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74279         * modules/closeout (EXTRA_DIST): Add closeout.h.
74280         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74281         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74282         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74283         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74284         dirname.h; remove basename.c and stripslash.c.
74285         * modules/exclude (EXTRA_DIST): Add exclude.h.
74286         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74287         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74288         * modules/file-type (EXTRA_DIST): Add file-type.h.
74289         * modules/filemode (EXTRA_DIST): Add filemode.h.
74290         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74291         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74292         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74293         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74294         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74295         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74296         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74297         * modules/getdate (EXTRA_DIST): Add getdate.c.
74298         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74299         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74300         * modules/getpass (EXTRA_DIST): Add getpass.h.
74301         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74302         * modules/group-member (EXTRA_DIST): Add group-member.h.
74303         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74304         * modules/hash (EXTRA_DIST): Add hash.h.
74305         * modules/human (EXTRA_DIST): Add human.h.
74306         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74307         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74308         * modules/lchown (EXTRA_DIST): Add lchown.h.
74309         * modules/long-options (EXTRA_DIST): Add long-options.h.
74310         * modules/lstat (EXTRA_DIST): Add lstat.h.
74311         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74312         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74313         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74314         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74315         * modules/memxor (EXTRA_DIST): Add memxor.h.
74316         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74317         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74318         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74319         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74320         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74321         * modules/physmem (EXTRA_DIST): Add physmem.h.
74322         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74323         * modules/posixver (EXTRA_DIST): Add posixver.h.
74324         * modules/quote (EXTRA_DIST): Add quote.h.
74325         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74326         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74327         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74328         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74329         regex_internal.h regexec.c.
74330         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74331         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74332         * modules/same (EXTRA_DIST): Add same.h.
74333         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74334         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74335         * modules/savedir (EXTRA_DIST): Add savedir.h.
74336         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74337         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74338         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74339         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74340         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74341         * modules/strdup (EXTRA_DIST): Add strdup.h.
74342         * modules/strftime (EXTRA_DIST): Add strftime.h.
74343         * modules/strndup (EXTRA_DIST): Add strndup.h.
74344         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74345         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74346         * modules/time_r (EXTRA_DIST): Add time_r.h.
74347         * modules/timespec (EXTRA_DIST): Add timespec.h.
74348         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74349         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74350         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74351         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74352         * modules/userspec (EXTRA_DIST): Add userspec.h.
74353         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74354         * modules/utimens (EXTRA_DIST): Add utimens.h.
74355         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74356         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74357         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74358         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74359         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74360         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74361         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74362         * modules/yesno (EXTRA_DIST): Add yesno.h.
74363
74364 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74367
74368         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74369         * m4/dev-ino.m4, same-inode.m4: Remove.
74370
74371         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74372         * m4/acl.m4 (AC_FUNC_ACL):
74373         * m4/backupfile.m4 (gl_BACKUPFILE):
74374         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74375         * m4/canon-host.m4 (gl_CANON_HOST):
74376         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74378         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74379         * m4/cloexec.m4 (gl_CLOEXEC):
74380         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74381         * m4/closeout.m4 (gl_CLOSEOUT):
74382         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74383         * m4/dirname.m4 (gl_DIRNAME):
74384         * m4/exclude.m4 (gl_EXCLUDE):
74385         * m4/exitfail.m4 (gl_EXITFAIL):
74386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74387         * m4/file-type.m4 (gl_FILE_TYPE):
74388         * m4/filemode.m4 (gl_FILEMODE):
74389         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74390         * m4/fpending.m4 (gl_FUNC_FPENDING):
74391         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74392         * m4/fts.m4 (gl_FUNC_FTS):
74393         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74394         * m4/getdate.m4 (gl_GETDATE):
74395         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74396         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74397         * m4/getpass.m4 (gl_FUNC_GETPASS):
74398         * m4/gettime.m4 (gl_GETTIME):
74399         * m4/getugroups.m4 (gl_GETUGROUPS):
74400         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74401         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74402         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74403         * m4/hash.m4 (gl_HASH):
74404         * m4/idcache.m4 (gl_IDCACHE):
74405         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74406         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74407         * m4/long-options.m4 (gl_LONG_OPTIONS):
74408         * m4/lstat.m4 (gl_FUNC_LSTAT):
74409         * m4/md5.m4 (gl_MD5):
74410         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74411         * m4/memcoll.m4 (gl_MEMCOLL):
74412         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74414         * m4/memxor.m4 (gl_MEMXOR):
74415         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74416         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74417         * m4/modechange.m4 (gl_MODECHANGE):
74418         * m4/mountlist.m4 (gl_MOUNTLIST):
74419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74420         * m4/openat.m4 (gl_FUNC_OPENAT):
74421         * m4/pathmax.m4 (gl_PATHMAX):
74422         * m4/physmem.m4 (gl_PHYSMEM):
74423         * m4/posixtm.m4 (gl_POSIXTM):
74424         * m4/posixver.m4 (gl_POSIXVER):
74425         * m4/quote.m4 (gl_QUOTE):
74426         * m4/quotearg.m4 (gl_QUOTEARG):
74427         * m4/readtokens.m4 (gl_READTOKENS):
74428         * m4/readutmp.m4 (gl_READUTMP):
74429         * m4/regex.m4 (gl_REGEX):
74430         * m4/safe-read.m4 (gl_SAFE_READ):
74431         * m4/safe-write.m4 (gl_SAFE_WRITE):
74432         * m4/same.m4 (gl_SAME):
74433         * m4/save-cwd.m4 (gl_SAVE_CWD):
74434         * m4/savedir.m4 (gl_SAVEDIR):
74435         * m4/settime.m4 (gl_SETTIME):
74436         * m4/sha1.m4 (gl_SHA1):
74437         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74438         * m4/stat-macros.m4 (gl_STAT_MACROS):
74439         * m4/stat-time.m4 (gl_STAT_TIME):
74440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74441         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74442         * m4/strdup.m4 (gl_FUNC_STRDUP):
74443         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74444         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74445         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74446         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74447         * m4/time_r.m4 (gl_TIME_R):
74448         * m4/timespec.m4 (gl_TIMESPEC):
74449         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74450         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74451         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74452         * m4/userspec.m4 (gl_USERSPEC):
74453         * m4/utimecmp.m4 (gl_UTIMECMP):
74454         * m4/utimens.m4 (gl_UTIMENS):
74455         * m4/xalloc.m4 (gl_XALLOC):
74456         * m4/xgetcwd.m4 (gl_XGETCWD):
74457         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74458         * m4/xreadlink.m4 (gl_XREADLINK):
74459         * m4/xstrtod.m4 (gl_XSTRTOD):
74460         * m4/yesno.m4 (gl_YESNO):
74461         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74462         to get the necessary .h files and whatnot.
74463
74464 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74465             Bruno Haible  <bruno@clisp.org>
74466
74467         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74468         /bin/sh understanding of '!' conditional negation.
74469
74470 2006-08-21  Jim Meyering  <jim@meyering.net>
74471
74472         * modules/openat (Depends-on): Really alphabetize.
74473
74474         * modules/acl (Depends-on): Add error and quote.
74475
74476         * check-module (find_included_lib_files): Add at-func.c to the
74477         ok-to-include-more-than-once white list.
74478
74479         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74480
74481 2006-08-21  Bruno Haible  <bruno@clisp.org>
74482
74483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74484         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74485         Reported by Martin Lambers <marlam@marlam.de>.
74486
74487 2006-08-21  Bruno Haible  <bruno@clisp.org>
74488
74489         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74490         specify an installation location, don't emit a noinst_LIBRARIES or
74491         noinst_LTLIBRARIES assignment.
74492
74493 2006-08-21  Bruno Haible  <bruno@clisp.org>
74494
74495         BeOS portability.
74496         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74497         BeOS has mbrtowc() but no <wctype.h>.
74498
74499 2006-08-21  Bruno Haible  <bruno@clisp.org>
74500
74501         BeOS portability.
74502         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74503         exist.
74504
74505 2006-08-21  Bruno Haible  <bruno@clisp.org>
74506
74507         BeOS portability.
74508         * lib/mbchar.h: Include <wctype.h> only if it exists.
74509
74510 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         Remove files that are no longer needed by their respective modules.
74513         * m4/obstack.m4: Remove.
74514         * m4/strerror_r.m4: Remove.
74515         * m4/uint32_t.m4: Remove.
74516         * m4/uintptr_t.m4: Remove.
74517         * m4/ullong_max.m4: Remove.
74518         * m4/xstrtoimax.m4: Remove.
74519         * m4/xstrtoumax.m4: Remove.
74520
74521         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74522         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74523         dependencies now capture this.
74524
74525         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74526         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74527         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74528         * m4/human.m4 (gl_HUMAN): Likewise.
74529         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74530         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74531
74532         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74533
74534         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74535         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74536         stdint.
74537         * m4/human.m4 (gl_HUMAN): Likewise.
74538         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74539         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74540         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74541         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74542         * m4/xstrtol (gl_XSTRTOL): Likewise.
74543
74544         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74545         AC_TYPE_LONG_LONG_INT.
74546         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74547         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74548         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74549         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74550
74551         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74552         on stdbool.
74553
74554         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74555         (gl_PREREQ_XSTRTOUL): Remove.
74556
74557         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74558
74559         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74560         mode.
74561
74562 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         Add and change modules to make it easier for coreutils to use
74565         gnulib-tool.
74566         * modules/backupfile (Files): Remove m4/d-ino.m4.
74567         (Depends-on): Add d-ino.
74568         * modules/cycle-check (Depends-on): Add stdint.
74569         (lib_SOURCES): Add cycle-check.h.
74570         * modules/d-ino: New module.
74571         * modules/d-type: New module.
74572         * modules/error (Files): Remove m4/strerror_r.m4.
74573         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74574         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74575         m4/inttypes_h.m4, m4/uintmax_t.m4.
74576         (Depends-on): Add stdint.
74577         (lib_SOURCES): Add fsusage.h.
74578         * modules/getcwd (Files): Remove d-ino.m4.
74579         (Depends-on): Add d-ino.
74580         * modules/getndelim2 (Depends-on): Add stdint.
74581         * modules/glob (Files): Remove m4/d-type.m4.
74582         (Depends-on): Add d-type.
74583         * modules/host-os: New module.
74584         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74585         m4/inttypes_h.m4, m4/uintmax_t.m4.
74586         * Depends-on: Add stdint.
74587         (lib_SOURCES): Add human.h.
74588         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74589         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74590         m4/uintmax_t.m4, m4/ulonglong.m4.
74591         (Depends-on): Add stdint.
74592         (EXTRA_DIST): Add inttostr.h.
74593         * modules/lchmod: New module.
74594         * modules/link-follow: New module.
74595         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74596         (Depends-on): Add lchmod.
74597         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74598         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74599         (Depends-on): Add stdint.
74600         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74601         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74602         (Depends-on): Add stdint.
74603         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74604         * modules/perl: New module.
74605         * modules/regex (Depends-on): Add stdint.
74606         * modules/rmdir-errno: New module.
74607         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74608         m4/intmax_t.m4.
74609         (Depends-on): Add stdint.
74610         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74611         m4/uintmax_t.m4.
74612         (Depends-on): Add stdint.
74613         * modules/unlink-busy: New module.
74614         * modules/utimecmp (Depends-on): Add stdint.
74615         * modules/uptime: New module.
74616         * modules/winsz-ioctl: New module.
74617         * modules/winsz-termios: New module.
74618         * modules/xnanosleep (Depends-on): Add nanosleep.
74619         * modules/ullong_max: Remove.
74620         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74621         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74622         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74623         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74624         (Depends-on): Add inttypes.
74625         (lib_SOURCES): Add xstrtol.h.
74626         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74627         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74628         * MODULES.html.sh: Move 'assert' into the assert section.
74629         Move 'dummy' into the linking section.
74630         Remove ullong_max.
74631         Add section for compatibility checks for POSIX:2001 functions,
74632         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74633         winsz-ioctl, and winsz-termios into it.
74634         Add lchmod.
74635         Add top-level Misc section and put host-os, perl, and uptime
74636         into it.
74637
74638 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74639
74640         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74641         now assume the stdint module.  Do not include inttypes.h.
74642         * lib/fsusage.h: Likewise.
74643         * lib/getndelim2.c: Likewise.
74644         * lib/human.h: Likewise.
74645         * lib/inttostr.h: Likewise.
74646         * lib/obstack.c: Likewise.
74647         * lib/regex_internal.h: Likewise.
74648         * lib/tempname.c: Likewise.
74649         * lib/utimecmp.c: Likewise.
74650         * lib/xstrtol.h: Likewise.
74651
74652         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74653
74654         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74655         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74656         * lib/xtime.h: Likewise.
74657
74658 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74659
74660         * modules/openat (Files): Add lib/fchmodat.c.
74661         Fixes problem reported by Jay Youngman.
74662
74663 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74664
74665         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74666         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74667
74668 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74669             Bruno Haible  <bruno@clisp.org>
74670
74671         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74672         and is a script that invokes bison. Tighten the code. Add comments.
74673
74674 2006-08-18  Jim Meyering  <jim@meyering.net>
74675
74676         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74677         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74678         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74679         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74680
74681 2006-08-18  Bruno Haible  <bruno@clisp.org>
74682
74683         * modules/bison-i18n: New file.
74684         * MODULES.html.sh (Internationalization functions): Add it.
74685
74686 2006-08-18  Bruno Haible  <bruno@clisp.org>
74687
74688         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74689         sys/statvfs.h. When getmntinfo was found, check its declaration and
74690         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74691
74692 2006-08-18  Bruno Haible  <bruno@clisp.org>
74693
74694         * m4/bison-i18n.m4: New file, from bison.
74695
74696 2006-08-18  Bruno Haible  <bruno@clisp.org>
74697
74698         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74699         (ME_DUMMY): Treat "kernfs" as a dummy.
74700         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74701
74702 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         Update from coreutils.
74705
74706         2006-08-15  Jim Meyering  <jim@meyering.net>
74707
74708         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74709
74710         2006-01-17  Jim Meyering  <jim@meyering.net>
74711
74712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74713
74714         2006-01-11  Jim Meyering  <jim@meyering.net>
74715
74716         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74717         Check for the lchmod function.
74718
74719 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         Update from coreutils.
74722
74723         * lib/__fpending.h: Add copyright notice.
74724         * lib/fprintftime.h: Likewise.
74725         * lib/savedir.c: Use (C) in copyright notice.
74726         * lib/savedir.h: Likewise.
74727
74728         2006-08-15  Jim Meyering  <jim@meyering.net>
74729
74730         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74731         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74732         in support of the EXPECTED_ERRNO macro.
74733         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74734         definitions.  Instead, define the appropriate symbols and include
74735         "at-func.c".
74736         * lib/mkdirat.c (mkdirat): Likewise.
74737         * lib/fchmodat.c (fchmodat): Likewise.
74738         (ENOSYS): Remove definition.
74739         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74740         it.  Don't include "unistd--.h" -- it wasn't ever used.
74741
74742         2006-01-17  Jim Meyering  <jim@meyering.net>
74743
74744         Rewrite fts.c not to change the current working directory,
74745         by using openat, fstatat, fdopendir, etc..
74746
74747         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74748         (HAVE_OPENAT_SUPPORT): Define.
74749         [_LIBC] (fchdir): Don't undef or define; no longer used.
74750         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74751         Now, this `function' always succeeds, and consumes its file descriptor
74752         parameter -- so callers must not close such FDs.  Update callers.
74753         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74754         (diropen): Add parameter, SP.  Adjust all callers.
74755         Implement using diropen_fd, rather than open.
74756         (fts_open): Initialize new member, fts_cwd_fd.
74757         Remove fts_rft-setting code.
74758         (fts_close): Close fts_cwd_fd, if necessary.
74759         (__opendir2): Define in terms of opendir or opendirat,
74760         depending on whether the FST_NOCHDIR flag is set.
74761         (fts_build): Since fts_safe_changedir consumes its FD, and since
74762         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74763         and close the dup'd file descriptor upon failure.
74764         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74765         (fts_safe_changedir): Tweak semantics to reflect that this function
74766         now calls cwd_advance_fd and hence consumes its FD argument.
74767         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74768         [struct FTS] (fts_rft): Remove now-unused member.
74769         [struct FTS] (fts_cycle.state): Improve comment.
74770
74771         * lib/openat.c (openat_needs_fchdir): New function.
74772         * lib/openat.h (openat_needs_fchdir): Declare it.
74773
74774 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74777         Problem and fix reported by Pádraig Brady in
74778         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74779
74780 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74783
74784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * lib/memcoll.c (memcoll): Optimize for the common case where the
74787         arguments are bytewise equal.
74788
74789 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * doc/regexprops-generic.texi: Add a copyright notice.
74792
74793 2006-08-15  Bruno Haible  <bruno@clisp.org>
74794
74795         * modules/tmpdir (License): Change to LGPL.
74796
74797 2006-08-15  Bruno Haible  <bruno@clisp.org>
74798
74799         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74800         module.
74801
74802 2006-08-14  Simon Josefsson  <jas@extundo.com>
74803
74804         * config/srclist.txt: Add gnupload.
74805
74806 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         Change copyright notice from LGPL 2 to GPL 2, since that's the
74809         standard form used in the gnulib repository.
74810         * tests/test-lock.c: Likewise.
74811         * tests/test-stdint.c: Likewise.
74812         * tests/test-tls.c: Likewise.
74813
74814         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74815         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74816         Add copyright notice.
74817
74818         * check-module: Add copyright notice.  Output a copyright
74819         notice if "--version" is specified.
74820         * modules/COPYING: New file.
74821         * tests/test-getaddrinfo.c: Add copyright notice.
74822         * tests/test-verify.c: Likewise.
74823
74824 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74825
74826         Change copyright notice from LGPL 2 to GPL 2, since that's the
74827         standard form used in the gnulib repository.
74828         * lib/lock.c: LGPL -> GPL.
74829         * lib/lock.h: Likewise.
74830         * lib/strnlen1.c: Likewise.
74831         * lib/strnlen1.h: Likewise.
74832         * lib/tls.c: Likewise.
74833         * lib/tls.h: Likewise.
74834         * lib/tmpdir.c: Likewise.
74835
74836         * lib/TODO: Remove; this belongs only in coreutils.
74837
74838 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         Add copyright notices to long-enough files that lack them, since
74841         otherwise the files aren't clearly free.  Use the same notice that
74842         getdate.texi already uses.
74843         * doc/alloca-opt.texi: Add copyright notice.
74844         * doc/alloca.texi: Likewise.
74845         * doc/ctime.texi: Likewise.
74846         * doc/functions.texi: Likewise.
74847         * doc/gcd.texi: Likewise.
74848         * doc/gnulib-tool.texi: Likewise.
74849         * doc/inet_ntoa.texi: Likewise.
74850         * doc/visibility.texi: Likewise.
74851
74852         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74853         * doc/quote.texi: Add copyright notice.
74854
74855         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74856         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74857         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74858         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74859         is now obsolete, and give a pointer to the Sun list.
74860         Add copyright notice.
74861
74862 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * config/srclistvars.sh: Add copyright notice.
74865
74866 2006-08-14  Eric Blake  <ebb9@byu.net>
74867
74868         Import the following change from libc:
74869
74870         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74871
74872         Upstream bug 2997.
74873         * lib/misc/error.c: Add space between program name and message if file
74874         name is missing.
74875
74876 2006-08-12  Karl Berry  <karl@gnu.org>
74877
74878         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74879         remove, these originate in gnulib now.
74880
74881 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74882
74883         * doc/Makefile (standards.info standards.html standards.dvi):
74884         Also depend on make-stds.texi.
74885
74886 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74887
74888         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74889         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74890
74891         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74892         in wchar_t.  Problem reported by Eric Blake.
74893
74894         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74895         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74896         Also, help the compiler to keep LEN in a register.
74897
74898 2006-08-11  Eric Blake  <ebb9@byu.net>
74899
74900         * users.txt: Sort.  Add tar.
74901
74902 2006-08-11  Bruno Haible  <bruno@clisp.org>
74903
74904         * users.txt: New file.
74905
74906 2006-08-11  Bruno Haible  <bruno@clisp.org>
74907
74908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74909         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74910
74911 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         * modules/snprintf (Depends-on): Remove minmax.
74914         (Maintainer): Add self and Bruno.
74915
74916 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74919         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74920         (EOVERFLOW): Define if the system does not.
74921         Do not include "minmax.h"; it wasn't used.
74922         (snprintf): Don't assume size_t promotes to an unsigned type.
74923         Fix bug when generated string was too long for the buffer: the
74924         buffer's contents are supposed to be the initial prefix of the
74925         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74926         exceeds INT_MAX; do the check ourselves.
74927
74928         Import the following changes from libc:
74929
74930         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74931
74932         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74933         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74934         set wc to the byte which couldn't be converted.
74935         (re_string_reconstruct): Don't clear valid_raw_len before calling
74936         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74937         tip_context using re_string_context_at.
74938
74939         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74940
74941         * lib/posix/regex.h: g++ still cannot handled [restrict].
74942
74943         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74944
74945         * lib/posix/regex.h: Remove special handling for VMS.
74946
74947 2006-08-10  Jim Meyering  <jim@meyering.net>
74948
74949         * modules/same-inode: New module.
74950         * modules/dev-ino: New module.
74951         * modules/cycle-check: Depend on these modules, rather than simply
74952         including their .h files.
74953         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74954         required via m4/cycle-check.m4.
74955         * modules/same: Depend on new same-inode module, rather than
74956         including same-inode.h.
74957         * modules/chdir-safer: New file.
74958
74959         * modules/chown (Depends-on): Add stat-macros.
74960
74961 2006-08-10  Jim Meyering  <jim@meyering.net>
74962
74963         * m4/cycle-check.m4: New file.
74964         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74965         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74966
74967 2006-08-10  Eric Blake  <ebb9@byu.net>
74968
74969         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74970         in from original proposal.
74971
74972 2006-08-10  Eric Blake  <ebb9@byu.net>
74973         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74974
74975         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74976         namespace.
74977
74978 2006-08-10  Bruno Haible  <bruno@clisp.org>
74979
74980         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74981         as well.
74982
74983 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         Sync from coreutils.
74986
74987         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74988
74989         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74990         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74991
74992 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74993
74994         * modules/restrict: Remove; no longer needed now that we assume
74995         Autoconf 2.59 or later.
74996         * MODULES.html.sh: Remove 'restrict'.
74997         * modules/argp (Depends-on): Remove 'restrict'.
74998         * modules/base64 (Depends-on): Likewise.
74999         * modules/gc (Depends-on): Likewise.
75000         * modules/getaddrinfo (Depends-on): Likewise.
75001         * modules/glob (Depends-on): Likewise.
75002         * modules/inet_ntop (Depends-on): Likewise.
75003         * modules/inet_pton (Depends-on): Likewise.
75004         * modules/memxor (Depends-on): Likewise.
75005         * modules/regex (Depends-on): Likewise.
75006         * modules/strtok_r (Depends-on): Likewise.
75007         * modules/time_r (Depends-on): Likewise.
75008
75009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75010
75011         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75012         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75013         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75014         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75015         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75016         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75017         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75018         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75019
75020         Merge from coreutils.
75021         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75022         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75023         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75024         * m4/time_r.m4 (gl_TIME_R): Likewise.
75025
75026 2006-08-09  Karl Berry  <karl@gnu.org>
75027
75028         * config/srclist.txt: no more gettext-tools, per Bruno.
75029
75030 2006-08-08  Eric Blake  <ebb9@byu.net>
75031
75032         * modules/verror: New module.
75033         * MODULES.html.sh: Document it.
75034
75035 2006-08-08  Eric Blake  <ebb9@byu.net>
75036
75037         * lib/verror.h, lib/verror.c: New files.
75038
75039 2006-08-08  Eric Blake  <ebb9@byu.net>
75040
75041         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75042         verror_at_line output complies with GNU Coding Standards even when
75043         file is NULL.
75044
75045 2006-08-07  Bruno Haible  <bruno@clisp.org>
75046
75047         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75048         versions of AIX.
75049         Reported by Ralf Wildenhues.
75050
75051 2006-08-07  Bruno Haible  <bruno@clisp.org>
75052
75053         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75054         in an AC_DEFUN. Needed so that the autoconf snippets can use
75055         AC_REQUIRE.
75056
75057 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75058
75059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75060         Initialize pkgdata_DATA.
75061         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75062         overriding it.
75063
75064 2006-08-06  Eric Blake  <ebb9@byu.net>
75065
75066         * lib/error.h: Fold in some upstream changes from glibc.
75067         * lib/error.c: Likewise.
75068
75069 2006-08-04  Bruno Haible  <bruno@clisp.org>
75070
75071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75072         Make the mostlyclean-local rule depend on mostlyclean-generic.
75073         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75074
75075 2006-07-31  Bruno Haible  <bruno@clisp.org>
75076
75077         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75078         <stdlib.h>, <string.h>.
75079
75080 2006-07-30  Bruno Haible  <bruno@clisp.org>
75081
75082         * modules/readlink (License): Change to LGPL.
75083
75084 2006-07-30  Bruno Haible  <bruno@clisp.org>
75085
75086         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75087         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75088         set PKGDATADIR to point to it.
75089
75090 2006-07-30  Bruno Haible  <bruno@clisp.org>
75091
75092         * modules/csharpexec (configure.ac): Comment out macro invocation.
75093         * modules/javaexec (configure.ac): Likewise.
75094         * modules/javacomp-script (configure.ac): Likewise.
75095
75096         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75097
75098 2006-07-30  Bruno Haible  <bruno@clisp.org>
75099
75100         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75101         linked-list.
75102
75103 2006-07-30  Bruno Haible  <bruno@clisp.org>
75104
75105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75106
75107 2006-07-30  Bruno Haible  <bruno@clisp.org>
75108
75109         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75110         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75111         get removed.
75112
75113 2006-07-29  Bruno Haible  <bruno@clisp.org>
75114
75115         Make it possible for gnulib-tool to work with locally modified or
75116         augmented gnulib repositories.
75117         * gnulib-tool (func_usage): Document --local-dir option.
75118         (local_gnulib_dir): New variable.
75119         Handle --local-dir option.
75120         (func_lookup_file): New function.
75121         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75122         (func_get_description, func_get_filelist, func_get_description,
75123         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75124         func_get_automake_snippet, func_get_include_directive,
75125         func_get_license, func_get_maintainer): Use func_lookup_file.
75126         (func_import, func_create_testdir): Use func_lookup_file.
75127
75128 2006-07-29  Bruno Haible  <bruno@clisp.org>
75129
75130         * modules/setenv (Depends-on): Add unistd.
75131
75132 2006-07-29  Bruno Haible  <bruno@clisp.org>
75133
75134         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75135
75136 2006-07-29  Bruno Haible  <bruno@clisp.org>
75137
75138         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75139
75140 2006-07-29  Bruno Haible  <bruno@clisp.org>
75141
75142         * gnulib-tool (import, update): If there is no Makefile.am, look at
75143         aclocal.m4, instead of bailing out.
75144
75145 2006-07-29  Bruno Haible  <bruno@clisp.org>
75146
75147         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75148         Categorize the options by when they are useful.
75149
75150 2006-07-29  Bruno Haible  <bruno@clisp.org>
75151
75152         * gnulib-tool (func_usage): Document option --no-libtool.
75153         Handle option --no-libtool.
75154         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75155         for changed semantics of $libtool variable.
75156         (func_import): Likewise. If libtool is not used, show this through
75157         an option --no-libtool.
75158         (func_create_testdir): Update.
75159
75160 2006-07-29  Bruno Haible  <bruno@clisp.org>
75161
75162         * gnulib-tool (func_import): Extend error message about missing
75163         --doc-base.
75164
75165 2006-07-29  Bruno Haible  <bruno@clisp.org>
75166
75167         * gnulib-tool (func_import): Don't create the $docbase directory if
75168         there is no file to store there.
75169
75170 2006-07-29  Bruno Haible  <bruno@clisp.org>
75171
75172         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75173         relevant, look for configure.ac there, not in the current directory.
75174         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75175
75176 2006-07-29  Bruno Haible  <bruno@clisp.org>
75177
75178         * gnulib-tool (SORT): New variable.
75179         (func_usage): Undocument --assume-autoconf option.
75180         Remove --assume-autoconf option handling.
75181         (autoconf_minversion): Determine from the contents of configure.ac.
75182         (func_import): Remove autoconf_minversion handling.
75183         Suggested by Eric Blake.
75184
75185 2006-07-29  Bruno Haible  <bruno@clisp.org>
75186
75187         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75188
75189 2006-07-29  Bruno Haible  <bruno@clisp.org>
75190
75191         * config/srclist.txt (*setenv.[ch]): Remove rules.
75192
75193 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75194
75195         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75196
75197 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75198
75199         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75200         arpa/inet.h.
75201
75202 2006-07-28  Simon Josefsson  <jas@extundo.com>
75203
75204         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75205         * modules/inet_pton (Depends-on): Likewise.
75206
75207 2006-07-28  Simon Josefsson  <jas@extundo.com>
75208
75209         * m4/netinet_in_h.m4: New file.
75210
75211 2006-07-28  Simon Josefsson  <jas@extundo.com>
75212
75213         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75214         #include's.
75215
75216 2006-07-28  Simon Josefsson  <jas@extundo.com>
75217
75218         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75219         #include's.
75220
75221 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75224         setgid on directories only if they set these bits.
75225         * lib/modechange.h: Remove obsolete comment about masks.
75226
75227 2006-07-28  Eric Blake  <ebb9@byu.net>
75228
75229         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75230         macro expansion.
75231
75232 2006-07-28  Bruno Haible  <bruno@clisp.org>
75233
75234         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75235
75236 2006-07-28  Bruno Haible  <bruno@clisp.org>
75237
75238         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75239
75240 2006-07-28  Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75243         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75244         Define fallbacks.
75245         Avoids link error on FreeBSD 4.x.
75246         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75247
75248         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75249         encoding.
75250         * lib/mbswidth.c (iswcntrl): Likewise.
75251
75252 2006-07-27  Bruno Haible  <bruno@clisp.org>
75253
75254         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75255         test.
75256
75257 2006-07-27  Bruno Haible  <bruno@clisp.org>
75258
75259         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75260         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75261         defined.
75262
75263 2006-07-26  Eric Blake  <ebb9@byu.net>
75264
75265         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75266
75267 2006-07-26  Eric Blake  <ebb9@byu.net>
75268
75269         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75270         like mingw that lack mkstemp.
75271         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75272         avoid compilation warning on mingw.
75273
75274 2006-07-26  Bruno Haible  <bruno@clisp.org>
75275
75276         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75277         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75278         INT_FAST*_MIN, INTPTR_MIN.
75279
75280 2006-07-25  Bruno Haible  <bruno@clisp.org>
75281
75282         * modules/version-etc (Depends-on): Add stdarg.
75283
75284 2006-07-25  Bruno Haible  <bruno@clisp.org>
75285
75286         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75287         complex commands.
75288
75289 2006-07-25  Bruno Haible  <bruno@clisp.org>
75290
75291         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75292         defined in <stdarg.h> or config.h.
75293
75294 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75297         (gl_STDIO_SAFER): Remove.
75298
75299 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         * MODULES.html.sh (File stream based Input/Output):
75302         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75303         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75304         * modules/fopen-safer, modules/tmpfile-safer: New files.
75305         * modules/stdio-safer: Remove.
75306
75307 2006-07-24  Bruno Haible  <bruno@clisp.org>
75308
75309         * modules/tmpdir: New file.
75310         * MODULES.html.sh (File system functions): Add it.
75311
75312 2006-07-24  Bruno Haible  <bruno@clisp.org>
75313
75314         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75315         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75316
75317 2006-07-24  Bruno Haible  <bruno@clisp.org>
75318
75319         * modules/clean-temp: New file.
75320
75321 2006-07-24  Bruno Haible  <bruno@clisp.org>
75322
75323         * m4/tmpdir.m4: New file, from GNU gettext.
75324
75325 2006-07-24  Bruno Haible  <bruno@clisp.org>
75326
75327         * lib/tmpdir.h: New file, from GNU gettext.
75328         * lib/tmpdir.c: New file, from GNU gettext.
75329
75330 2006-07-24  Bruno Haible  <bruno@clisp.org>
75331
75332         * lib/clean-temp.h: New file, from GNU gettext.
75333         * lib/clean-temp.c: New file, from GNU gettext.
75334
75335 2006-07-23  Eric Blake  <ebb9@byu.net>
75336
75337         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75338         (Depends-on): Add binary-io.
75339
75340 2006-07-23  Eric Blake  <ebb9@byu.net>
75341
75342         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75343
75344 2006-07-23  Eric Blake  <ebb9@byu.net>
75345
75346         * lib/tmpfile-safer.c: New file.
75347         * lib/stdio-safer.h (fopen_safer): Add prototype.
75348         * lib/stdio--.h (tmpfile): Make safer.
75349
75350 2006-07-23  Bruno Haible  <bruno@clisp.org>
75351
75352         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75353         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75354         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75355         gl_linked_remove_at): Use it.
75356
75357 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75358         and Simon Josefsson <jas@extundo.com>
75359
75360         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75361
75362         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75363
75364 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * modules/close-stream: New file.
75367         * modules/closeout (Description): Make it clear that it exits
75368         with a diagnostic on error.
75369         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75370         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75371
75372 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * m4/close-stream.m4: New file.
75375
75376 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * lib/close-stream.c, lib/close-stream.h: New files.
75379
75380 2006-07-22  Bruno Haible  <bruno@clisp.org>
75381
75382         Merge from GNU gettext 0.15.
75383
75384         2006-05-01  Bruno Haible  <bruno@clisp.org>
75385
75386                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75387
75388         2006-07-22  Bruno Haible  <bruno@clisp.org>
75389
75390                 * modules/javaversion: New file.
75391                 * MODULES.html.sh (Java): Add javaversion.
75392
75393         2006-03-12  Bruno Haible  <bruno@clisp.org>
75394
75395                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75396
75397         2005-12-04  Bruno Haible  <bruno@clisp.org>
75398
75399                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75400                 (untested).
75401
75402         2006-06-21  Bruno Haible  <bruno@clisp.org>
75403
75404                 Avoid warnings from recent versions of mcs.
75405                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75406                 -o, -L, -r any more. Use options documented since mcs-1.0
75407                 instead. Similarly for -g.
75408
75409         2005-12-04  Bruno Haible  <bruno@clisp.org>
75410
75411                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75412                 .resources, not .resource.
75413
75414         2005-07-09  Bruno Haible  <bruno@clisp.org>
75415
75416                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75417                 add a .dll suffix.
75418                 Reported by Mark Junker <mjscod@gmx.de>.
75419
75420         2006-07-22  Bruno Haible  <bruno@clisp.org>
75421
75422                 * modules/gettext: Upgrade to gettext-0.15.
75423                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75424                 m4/visibility.m4.
75425                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75426
75427 2006-07-22  Bruno Haible  <bruno@clisp.org>
75428
75429         Merge from GNU gettext 0.15.
75430
75431         2006-03-25  Bruno Haible  <bruno@clisp.org>
75432
75433                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75434
75435         2006-07-21  Bruno Haible  <bruno@clisp.org>
75436
75437                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75438                 "1.1".
75439
75440         2006-05-09  Bruno Haible  <bruno@clisp.org>
75441
75442                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75443                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75444                 for the conftestver execution.
75445
75446         2006-05-01  Bruno Haible  <bruno@clisp.org>
75447
75448                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75449                 optional target-version argument. Verify that the compiler
75450                 groks source of the specified source-version, or add -source
75451                 option as necessary. Verify that the compiler produces
75452                 bytecode in the specified target-version, or add -target and
75453                 -source options as necessary. Make the result of the test
75454                 available as variable CONF_JAVAC. Also log error output in
75455                 config.log.
75456
75457         2006-03-11  Bruno Haible  <bruno@clisp.org>
75458
75459                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75460
75461         2006-05-09  Bruno Haible  <bruno@clisp.org>
75462
75463                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75464                 CLASSPATH_SEPARATOR to a semicolon.
75465
75466         2006-03-12  Bruno Haible  <bruno@clisp.org>
75467
75468                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75469                 available as variable CONF_JAVA, for subsequent autoconf
75470                 tests. Also log error output in config.log.
75471
75472         2006-07-19  Bruno Haible  <bruno@clisp.org>
75473
75474                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75475                 that getline works on glibc2 systems. Needed to avoid trouble
75476                 in relocatable.c.
75477                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75478
75479         2005-12-04  Bruno Haible  <bruno@clisp.org>
75480
75481                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75482                 launcher (untested).
75483
75484         2005-12-04  Bruno Haible  <bruno@clisp.org>
75485
75486                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75487
75488         2006-07-22  Bruno Haible  <bruno@clisp.org>
75489
75490                 * gettext.m4: Update from GNU gettext-0.15.
75491                 * nls.m4: Likewise.
75492                 * po.m4: Likewise.
75493                 * inttypes-pri.m4: Likewise.
75494                 * inttypes-h.m4: Renamed from inttypes.m4.
75495                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75496
75497 2006-07-22  Bruno Haible  <bruno@clisp.org>
75498
75499         Merge from GNU gettext 0.15.
75500
75501         2005-07-05  Bruno Haible  <bruno@clisp.org>
75502
75503                 * printf-args.c (printf_fetchargs): Work around broken
75504                 definition of wint_t on mingw.
75505
75506         2005-02-12  Bruno Haible  <bruno@clisp.org>
75507
75508                 * xallocsa.h: Add extern "C" for C++.
75509
75510         2006-05-17  Bruno Haible  <bruno@clisp.org>
75511
75512                 Cygwin portability.
75513                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75514
75515         2006-04-30  Bruno Haible  <bruno@clisp.org>
75516
75517                 * progreloc.c: Include <mach-o/dyld.h> if available.
75518                 (find_executable): Use _NSGetExecutablePath when possible.
75519
75520         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75521
75522                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75523                 function.
75524
75525         2005-12-29  Bruno Haible  <bruno@clisp.org>
75526
75527                 * progreloc.c (set_program_name_and_installdir): Fix
75528                 compilation error.
75529
75530         2005-12-04  Bruno Haible  <bruno@clisp.org>
75531
75532                 Cygwin portability.
75533                 * progreloc.c: Include <windows.h> also on Cygwin.
75534                 (find_executable): Add support for Cygwin.
75535                 (set_program_name_and_installdir): Handle also platforms with
75536                 nonempty EXEEXT.
75537
75538         2006-07-11  Bruno Haible  <bruno@clisp.org>
75539
75540                 * javacomp.c: Fix a comment.
75541                 Reported by Jim Meyering.
75542
75543         2006-04-30  Bruno Haible  <bruno@clisp.org>
75544
75545                 * javacomp.h (compile_java_class): Add source_version,
75546                 target_version arguments.
75547                 * javacomp.c: Rewritten to choose only a compiler that
75548                 respects the specified source_version and target_version.
75549
75550         2006-06-27  Bruno Haible  <bruno@clisp.org>
75551
75552                 Assume correct S_ISDIR macro.
75553                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75554
75555         2006-07-22  Bruno Haible  <bruno@clisp.org>
75556
75557                 * javaversion.h: New file, from GNU gettext.
75558                 * javaversion.c: New file, from GNU gettext.
75559                 * javaversion.java: New file, from GNU gettext.
75560                 * javaversion.class: New file, from GNU gettext.
75561
75562         2006-05-17  Bruno Haible  <bruno@clisp.org>
75563
75564                 Cygwin portability.
75565                 * javaexec.c (execute_java_class): Test for jview program
75566                 also on Cygwin.
75567
75568         2006-04-09  Bruno Haible  <bruno@clisp.org>
75569
75570                 * fatal-signal.c: Don't include string.h.
75571                 (at_fatal_signal): Use a copying loop instead of memcpy.
75572
75573         2005-12-04  Bruno Haible  <bruno@clisp.org>
75574
75575                 * csharpexec.c: Add support for 'clix' launcher (untested).
75576                 (execute_csharp_using_sscli): New function.
75577                 (execute_csharp_program): Call it.
75578
75579         2006-06-21  Bruno Haible  <bruno@clisp.org>
75580
75581                 Avoid warnings from recent versions of mcs.
75582                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75583                 -o, -L, -r any more. Use options documented since mcs-1.0
75584                 instead. Similarly for -g.
75585
75586         2005-07-09  Bruno Haible  <bruno@clisp.org>
75587
75588                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75589                 add a .dll suffix.
75590                 Reported by Mark Junker <mjscod@gmx.de>.
75591
75592         2006-06-17  Bruno Haible  <bruno@clisp.org>
75593
75594                 * config.charset: Update for NetBSD 3.0.
75595
75596         2006-05-17  Bruno Haible  <bruno@clisp.org>
75597
75598                 Cygwin portability.
75599                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75600
75601         2006-05-16  Bruno Haible  <bruno@clisp.org>
75602
75603                 * localcharset.c [CYGWIN]: Include <windows.h>.
75604                 (get_charset_aliases): For Cygwin, return the same CPxxx
75605                 aliases list as under WIN32.
75606                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75607                 the environment variables. Fall back to GetACP().
75608
75609         2006-04-05  Bruno Haible  <bruno@clisp.org>
75610
75611                 * config.charset: Update Juan Manuel Guerrero's address.
75612
75613         2005-02-12  Bruno Haible  <bruno@clisp.org>
75614
75615                 * allocsa.h: Add extern "C" for C++.
75616
75617         2005-02-10  Bruno Haible  <bruno@clisp.org>
75618
75619                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75620                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75621
75622         2006-07-22  Bruno Haible  <bruno@clisp.org>
75623
75624                 * gettext.h: Update to GNU gettext-0.15.
75625
75626 2006-07-22  Bruno Haible  <bruno@clisp.org>
75627
75628         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75629         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75630         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75631
75632 2006-07-21  Eric Blake  <ebb9@byu.net>
75633
75634         * modules/stdlib-safer: New file.
75635         * MODULES.html.sh (File stream based Input/Output): Add
75636         stdlib-safer.
75637
75638 2006-07-21  Eric Blake  <ebb9@byu.net>
75639
75640         * lib/stdlib-safer.h: New file from coreutils, required by
75641         stdlib--.h.
75642
75643 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75646
75647 2006-07-20  Bruno Haible  <bruno@clisp.org>
75648
75649         * gnulib-tool: Recognize new option --assume-autoconf.
75650         (autoconf_minversion): New variable.
75651         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75652
75653 2006-07-20  Bruno Haible  <bruno@clisp.org>
75654
75655         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75656
75657 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75658
75659         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75660         Reindent and repaginate.
75661
75662 2006-07-19  Derek Price  <derek@ximbiot.com>
75663
75664         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75665         Correct grammar.
75666
75667 2006-07-17  Bruno Haible  <bruno@clisp.org>
75668
75669         * modules/list: New file.
75670         * modules/array-list: New file.
75671         * modules/carray-list, modules/carray-list-tests: New files.
75672         * modules/linked-list, modules/linked-list-tests: New files.
75673         * modules/avltree-list, modules/avltree-list-tests: New files.
75674         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75675         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75676         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75677         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75678         * modules/oset: New file.
75679         * modules/array-oset: New file.
75680         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75681         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75682         * tests/test-carray_list.c: New file.
75683         * tests/test-linked_list.c: New file.
75684         * tests/test-avltree_list.c: New file.
75685         * tests/test-rbtree_list.c: New file.
75686         * tests/test-linkedhash_list.c: New file.
75687         * tests/test-avltreehash_list.c: New file.
75688         * tests/test-rbtreehash_list.c: New file.
75689         * tests/test-avltree_oset.c: New file.
75690         * tests/test-rbtree_oset.c: New file.
75691         * MODULES.html.sh (Container data structures): New section.
75692
75693 2006-07-17  Bruno Haible  <bruno@clisp.org>
75694
75695         * m4/gl_list.m4: New file.
75696
75697 2006-07-17  Bruno Haible  <bruno@clisp.org>
75698
75699         * lib/gl_list.h: New file.
75700         * lib/gl_list.c: New file.
75701         * lib/gl_array_list.h: New file.
75702         * lib/gl_array_list.c: New file.
75703         * lib/gl_carray_list.h: New file.
75704         * lib/gl_carray_list.c: New file.
75705         * lib/gl_linked_list.h: New file.
75706         * lib/gl_linked_list.c: New file.
75707         * lib/gl_anylinked_list1.h: New file.
75708         * lib/gl_anylinked_list2.h: New file.
75709         * lib/gl_avltree_list.h: New file.
75710         * lib/gl_avltree_list.c: New file.
75711         * lib/gl_anyavltree_list1.h: New file.
75712         * lib/gl_anyavltree_list2.h: New file.
75713         * lib/gl_rbtree_list.h: New file.
75714         * lib/gl_rbtree_list.c: New file.
75715         * lib/gl_anyrbtree_list1.h: New file.
75716         * lib/gl_anyrbtree_list2.h: New file.
75717         * lib/gl_anytree_list1.h: New file.
75718         * lib/gl_anytree_list2.h: New file.
75719         * lib/gl_linkedhash_list.h: New file.
75720         * lib/gl_linkedhash_list.c: New file.
75721         * lib/gl_anyhash_list1.h: New file.
75722         * lib/gl_anyhash_list2.h: New file.
75723         * lib/gl_avltreehash_list.h: New file.
75724         * lib/gl_avltreehash_list.c: New file.
75725         * lib/gl_rbtreehash_list.h: New file.
75726         * lib/gl_rbtreehash_list.c: New file.
75727         * lib/gl_anytreehash_list1.h: New file.
75728         * lib/gl_anytreehash_list2.h: New file.
75729
75730         * lib/gl_oset.h: New file.
75731         * lib/gl_oset.c: New file.
75732         * lib/gl_array_oset.h: New file.
75733         * lib/gl_array_oset.c: New file.
75734         * lib/gl_avltree_oset.h: New file.
75735         * lib/gl_avltree_oset.c: New file.
75736         * lib/gl_rbtree_oset.h: New file.
75737         * lib/gl_rbtree_oset.c: New file.
75738         * lib/gl_anytree_oset.h: New file.
75739
75740 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         * m4/mkancesdirs.m4: New file.
75743         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75744         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75745         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75746         it.
75747
75748 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75751         * lib/mkancesdirs.h: New files.
75752         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75753         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75754         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75755         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75756         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75757         callers changed.  Revamp internals significantly, by not
75758         attempting to create directories that are temporarily more
75759         permissive than the final results.  Do not attempt to use
75760         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75761         This removes some race conditions, fixes some bugs, and simplifies
75762         things.  Use new dirchownmod function to do owner and mode changes.
75763         * lib/mkdir-p.h: Likewise.
75764         * lib/modechange.c (octal_to_mode): New function.
75765         (struct mode_change): New member mentioned.
75766         (make_node_op_equals): New arg mentioned.  All callers changed.
75767         (mode_compile): Keep track of which mode bits the user has explicitly
75768         mentioned.
75769         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75770         New arg PMODE_BITS, to keep track of which mode bits the user
75771         mentioned; it treats S_ISUID and S_ISGID speciall.
75772         All callers changed.
75773         * lib/modechange.h: Likewise.
75774
75775 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75776
75777         * MODULES.html.sh: Add mkancestors.
75778         * modules/mkancesdirs: New module.
75779         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75780         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75781         The chdir-safer and afs files are now orphans; I'll remove them
75782         unless someone speaks up.
75783         Add lib/dirchownmod.c, lib/dirchownmod.h.
75784         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75785         Add lchown, mkancesdirs.
75786         (Maintainer): Add self.
75787
75788 2006-07-15  Karl Berry  <karl@gnu.org>
75789
75790         * gnulib-tool: help message wording/arrangement.
75791
75792 2006-07-14  Simon Josefsson  <jas@extundo.com>
75793
75794         * doc/gnulib.texi (Libtool and Windows): New section.
75795
75796 2006-07-12  Simon Josefsson  <jas@extundo.com>
75797
75798         * modules/gendocs (License): Fix license, approved by Karl.
75799
75800 2006-07-12  Eric Blake  <ebb9@byu.net>
75801
75802         * MODULES.html.sh: Add gendocs.
75803
75804 2006-07-11  Eric Blake  <ebb9@byu.net>
75805
75806         * modules/fdl: New module, to install doc/fdl.texi.
75807         * MODULES.html.sh: Add new section for documentation modules.
75808         * gnulib-tool: Avoid space-tab.
75809         (--doc-base): New option, to manage files from doc.
75810
75811 2006-07-11  Eric Blake  <ebb9@byu.net>
75812
75813         * m4/absolute-header.m4: Fix comments to match recent change.
75814
75815 2006-07-11  Eric Blake  <ebb9@byu.net>
75816
75817         * gnulib-tool: List --doc-base before --tests-base.
75818
75819 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75820
75821         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75822
75823 2006-07-11  Bruno Haible  <bruno@clisp.org>
75824
75825         * README: Mention where to put documentation.
75826
75827 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75828
75829         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75830
75831 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75834         to stdint.m4.
75835
75836 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75839         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75840         "no/such/file/stdint.h" when there is no such file, so that
75841         the resulting C code can be parsed by dodgy compilers.
75842         Problems reported by Bob Proulx.
75843
75844 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75845
75846         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75847         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75848         macros into the GNU _D_EXACT_NAMLEN.
75849         * lib/savedir.c:  Likewise.
75850         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75851
75852 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75853         and Paul Eggert  <eggert@cs.ucla.edu>
75854
75855         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75856         * m4/savedir.m4:
75857         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75858         macros into the GNU _D_EXACT_NAMLEN.
75859
75860 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75861
75862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75863         around the absolute name, to work around a problem with the HP-UX
75864         11.23 native C compiler, reported by Bob Proulx.
75865
75866 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75867
75868         * doc/maintain.texi, make-stds.texi: Sync from
75869         <http://savannah.gnu.org/projects/gnustandards>.
75870
75871 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75874
75875 2006-07-09  Jim Meyering  <jim@meyering.net>
75876
75877         * m4/glob.m4: Remove a doubled word in a comment.
75878
75879 2006-07-09  Jim Meyering  <jim@meyering.net>
75880
75881         * lib/argp-pv.c: Remove a doubled word in a comment.
75882         * lib/check-version.c (check_version): Likewise.
75883         * lib/javacomp.c (compile_java_class): Likewise.
75884
75885 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75886
75887         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75888         for the benefit of people using Autoconf 2.60.  If you want to
75889         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75890         (or m4/onceonly.m4, if pre-2.57) manually.
75891
75892 2006-07-08  Jim Meyering  <jim@meyering.net>
75893
75894         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75895         comment.
75896         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75897         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75898         comment.
75899
75900 2006-07-08  Jim Meyering  <jim@meyering.net>
75901
75902         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75903
75904 2006-07-07  Simon Josefsson  <jas@extundo.com>
75905
75906         * tests/test-crc.c: Change expected crc value, the test vector
75907         were probably computed using the old broken crc.c?
75908
75909 2006-07-06  Simon Josefsson  <jas@extundo.com>
75910
75911         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75912         now the canonical place for the M4 file).
75913
75914         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75915         from the sys_socket dependency now.
75916
75917         * modules/inet_pton (Files): Ditto.
75918
75919         * modules/inet_ntop (Files): Ditto.
75920
75921 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75922
75923         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75924         not gl_PREREQ_GETUSERSHELL.
75925
75926 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75927
75928         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75929         with only one argument, for Autoconf 2.60.
75930         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75931         expand to nothing, so add a shell command to avoid syntax error.
75932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75933
75934 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75935
75936         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75937
75938 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75941         no longer needed.  Check for isblank decl.
75942         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75943         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75944         of existence.
75945
75946 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75947
75948         * lib/getloadavg.c: Use __VMS, not VMS.
75949         * lib/getopt.c: Likewise.
75950         * lib/getpagesize.h: Likewise.
75951         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75952         and probably does not work.
75953
75954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * lib/.cppi-disable: Add wcwidth.
75957         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75958         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75959         (ISGRAPH): Remove.  All uses changed to isgraph.
75960         (FOLD) [!defined _LIBC]: Remove special case.
75961         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75962         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75963         HAVE_ISBLANK.
75964         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75965         case.
75966
75967 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75968
75969         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75970         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75971         brackets.  Other minor changes to suppress some compiler
75972         warnings.
75973
75974 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75975         and Paul Eggert  <eggert@cs.ucla.edu>
75976
75977         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75978         of invoking obsolescent AC_HEADER_DIRENT macro.
75979         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75980         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75982         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75983         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75984         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75985         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75986         * m4/readdir.m4: Remove; no longer needed.
75987
75988 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75989         and Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75992         Don't worry about this obsolete case any more.
75993         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75994         directories.
75995         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75996         worry about this obsolete case any more.
75997         * lib/fts.c: Likewise.
75998         * lib/getcwd.c: Likewise.
75999         * lib/glob.h: Likewise.
76000         * lib/savedir.c: Likewise.
76001
76002 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76003
76004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76005         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76006         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76007         needed.
76008         All uses removed.
76009         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76010         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76011         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76012         needed.
76013         * m4/getdate.m4 (gl_GETDATE): Likewise.
76014         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76015         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76016         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76017         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76018         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76019         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76020         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76021         needed.
76022
76023 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         * lib/memcasecmp.c: Include <limits.h>.
76026         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76027         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76028         Don't assume isdigit succeeds only on '0' through '9'.
76029
76030 2006-07-05  Eric Blake  <ebb9@byu.net>
76031
76032         * modules/getaddrinfo (Depends-on): Add snprintf.
76033
76034 2006-07-05  Eric Blake  <ebb9@byu.net>
76035
76036         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76037         to avoid 'header present but could not be compiled' on cygwin.
76038
76039 2006-07-05  Eric Blake  <ebb9@byu.net>
76040
76041         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76042         missing from netdb.h.
76043         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76044
76045 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76046
76047         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76048         no longer needed.
76049         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76050         * m4/getdate.m4 (gl_GETDATE): Likewise.
76051         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76052         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76053         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76054         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76055         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76056
76057 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76058
76059         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76060         All uses of is_space replaced by isspace.
76061         * lib/exit.h: Don't talk about STDC_HEADERS.
76062         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76063         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76064         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76065         replaced by isprint etc.
76066         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76067         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76068         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76069         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76070         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76071         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76072
76073 2006-07-05  Bruno Haible  <bruno@clisp.org>
76074
76075         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76076         the function exists, before testing against AIX.
76077         Reported by Martin Lambers <marlam@marlam.de>.
76078
76079 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76082         From Mark D. Baushke.
76083
76084 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76085
76086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76087         to the absolute name, not just one, to bypass Sun C 5.8's
76088         "warning: #include of /usr/include/... may be non-portable".
76089
76090 2006-07-04  Eric Blake  <ebb9@byu.net>
76091
76092         * modules/dirname-tests: New test module.
76093         * tests/test-dirname.c: New file, replacing dirname.c
76094         TEST_DIRNAME section that was recently deleted.
76095
76096 2006-07-04  Bruno Haible  <bruno@clisp.org>
76097
76098         Assume ANSI C header files and <ctype.h> functions.
76099         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76100         (mbsnwidth): Use isprint, iscntrl instead.
76101
76102 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         Merge from coreutils.
76105         * MODULES.html.sh: Add xstrtold.
76106         * modules/xstrtold: New file.
76107         * modules/cycle-check (Files): Add lib/same-inode.h.
76108         * modules/dirname (Files): Add m4/double-slash-root.m4.
76109         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76110         * modules/mkdir-p (Files): Add lib/same-inode.h.
76111         * modules/same (Files): Add lib/same-inode.h.
76112
76113 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76114
76115         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76116         This is to keep the terminology clean; POSIX talks about
76117         "absolute pathnames", not "full pathnames", but the GNU
76118         Coding Standards say to use "path" for something else;
76119         so use "absolute" to keep both sides happy.
76120         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76121         Set gl_absolute_header, not gl_full_header_path.
76122         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76123         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76124         All uses changed.
76125
76126         Merge from coreutils.
76127
76128         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76131         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76132         want to require the building of c-strtod.o.
76133         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76134         needs -lm directly.
76135         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76136
76137         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76140         --as-needed option if available.  Problem reported by Albert Chin in
76141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76142         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76143         cc merely issues a bunch of annoying warnings for --as-needed
76144         (this problem was reported by Bob Proulx).  Also, try linking with
76145         -lm to detect a bug in binutils 2.16 (this problem was reported
76146         by Ralf Wildenhues).
76147
76148         2006-06-18  Jim Meyering  <jim@meyering.net>
76149
76150         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76151         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76152         macro.
76153         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76154         also check for glibc-2.4's abort-inducing bug.
76155
76156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76157         Low-probability clean-up should be to use rmdir to get rid of
76158         the just-created directory, not unlink.
76159
76160         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76161         configure fail, and request a bug report to inform us about it.
76162         Add a comment that, barring reports to the contrary, in 2007 we'll
76163         assume ftruncate is universally available.
76164
76165         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76168
76169         2006-03-12  Jim Meyering  <jim@meyering.net>
76170
76171         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76172         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76173         * m4/same.m4 (gl_SAME): Likewise.
76174         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76175
76176         2006-03-11  Eric Blake  <ebb9@byu.net>
76177
76178         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76179         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76180         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76181         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76182
76183 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76186         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76187         reported by Mark D. Baushke, one in
76188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76189
76190         Merge from coreutils.
76191
76192         * lib/.cppi-disable: Add stdint_.h.
76193         * lib/.cvsignore: Add stdint.h.
76194
76195         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76198         both double and long double versions.
76199         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76200         * lib/xstrtold.c: New file.
76201         * lib/xstrtod.h (xstrtold): New decl.
76202
76203         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76204
76205         * lib/filemode.c (setst): Remove.
76206         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76207         (arguably) clearer, and the generated code is a bit smaller on my
76208         Debian GNU/Linux stable x86 host.
76209
76210         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76213         Assume that filemode.h includes sys/types.h and sys/stat.h.
76214         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76215         (ftypelet): Reorder to put common cases first, for efficiency.
76216         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76217         to do 'M'.
76218         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76219         of 10, for compatibility with FreeBSD.  All callers changed.
76220         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76221         types that can't be deduced solely from st_mode.  First arg is now a
76222         const pointer.
76223         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76224         (strmode): Renamed from mode_string.
76225         (filemodestring): New decl.
76226         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76227         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76228         needed.
76229         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76230
76231         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76232
76233         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76234         fsusage.h now does that.  Include fsusage.h first, to test interface.
76235         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76236         at most one method (the old code could have generated decls that
76237         didn't conform to C89, not that this was ever exercised).
76238         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76239
76240         2006-03-19  Jim Meyering  <jim@meyering.net>
76241
76242         Work even in a chroot where d_ino values for entries in "/"
76243         don't match the stat.st_ino values for the same names.
76244         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76245         number, iterate through all entries again, using lstat instead.
76246         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76247         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76248
76249         * lib/getcwd.c (__getcwd): Clarify a comment.
76250         Use memcpy in place of a call to strcpy.
76251
76252         2006-03-12  Jim Meyering  <jim@meyering.net>
76253
76254         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76255         matches that of the current directory (which we're about to chdir ".."
76256         out of), then save the dev-ino of the parent, instead.
76257
76258         * lib/same-inode.h (SAME_INODE): New file/macro.
76259         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76260         Include "same-inode.h", instead.
76261         * lib/same.c: Likewise.
76262         * lib/cycle-check.h: Include "same-inode.h".
76263         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76264         * lib/cycle-check.c (SAME_INODE): Remove definition.
76265         * lib/root-dev-ino.h: Include "same-inode.h".
76266
76267         2006-03-11  Eric Blake  <ebb9@byu.net>
76268
76269         * lib/same.c (same_name): s/base_name/last_component/
76270         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76271         * lib/filenamecat.c (file_name_concat): Likewise.
76272
76273         2006-03-11  Eric Blake  <ebb9@byu.net>,
76274                     Paul Eggert  <eggert@cs.ucla.edu>
76275
76276         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76277         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76278         drive prefix.
76279         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76280         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76281         (last_component): New method.
76282         * lib/dirname.c (dir_len): Determine when drive letters need a
76283         subsequent slash.  Preserve // when it is special.
76284         (dir_name): Don't append dot when drive letter is absolute.
76285         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76286         * lib/basename.c (base_name): New semantics - malloc the result.
76287         Preserve // when it is special.  Preserve relative files that look
76288         like drive letters.
76289         (base_len): Preserve // when it is special.
76290         (last_component): New method, similar to old base_name semantics.
76291         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76292         base_name.  Strip redundant slashes from ///.
76293
76294 2006-07-03  Jim Meyering  <jim@meyering.net>
76295
76296         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76297         macro is used before the first cycle_check call.
76298
76299 2006-07-03  Eric Blake  <ebb9@byu.net>
76300
76301         * modules/dirname (Depends-on): Add xstrndup.
76302
76303 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76306         test cases, so that config.log is a bit easier to follow.
76307
76308 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76311         both are 64 bits, since this seems to be the tradition, and this
76312         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76313         we ever run into a host that prefers long long to long in this
76314         case, we'll need another configure-time test.  Problem reported by
76315         Jim Meyering.
76316
76317 2006-07-02  Eric Blake  <ebb9@byu.net>
76318
76319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76320
76321 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * modules/inttypes (Depends-on): No longer depends on stdint.
76324         * modules/stdint (Description): Say more about assumptions.
76325         Say that the fast types might differ.  Say macros are used.
76326         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76327         (Makefile.am): Revise list of substituted symbols to match
76328         new stdint.m4.
76329         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76330         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76331         * tests/test-stdint.c (verify_same_types)
76332         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76333         the code conforms to C99/C89.
76334         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76335         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76336
76337 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76340         but fix a bug, by requiring at least 64 bits.
76341         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76342         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76343         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76344         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76345
76346         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76347         changes.  Make 2.59 a prerequisite.  Check and substitute for
76348         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76349         inttypes.h.  Do not use special include files; just use the
76350         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76351         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76352         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76353         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76354         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76355         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76356         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76357         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76358         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76359         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76360         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76361         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76362         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76363         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76364         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76365         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76366         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76367         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76368         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76369         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76370         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76371         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76372         not check for things that C99 does not require, e.g., int8_t.  If
76373         a test isn't needed unless <stdint.h> isn't working, and is
76374         unlikely to be needed for any other reason, then don't do it
76375         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76376         size_t, since we assume C89 freestanding at least.  Do not check
76377         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76378         the right thing even if the types are not defined.  Instead use:
76379         (gl_STDINT_TYPE_PROPERTIES): New macro.
76380         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76381         testing whether <sys/types.h> clashes, as Autoconf does this for
76382         us now.  All uses removed.
76383         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76384         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76385         (gl_CHECK_TYPE_SAME):
76386         Remove; no longer needed.
76387         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76388         exists, since we'll return 0 anyway in that case.
76389         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76390
76391 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76392
76393         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76394         possible collision with system files.
76395         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76396         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76397         WCHAR_MIN and WCHAR_MAX in this case.
76398         (<stddef.h>): Do not include; no longer needed.
76399         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76400         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76401         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76402         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76403         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76404         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76405         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76406         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76407         !defined(__c99))]: Include in this case too, since it's harmless
76408         now.
76409         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76410         dangerous to do so.
76411         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76412         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76413         (_STDINT_MIN, _STDINT_MAX): New macros.
76414         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76415         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76416         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76417         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76418         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76419         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76420         macros, not typedefs; this simplifies things quite a bit.
76421         Use long int for all types narrower than int64_t.
76422         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76423         Define in terms of long long int or int64_t or long int,
76424         not int64_t or int32_t.  This saves some compile-time testing.
76425         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76426         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76427         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76428         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76429         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76430         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76431         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76432         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76433         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76434         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76435         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76436         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76437         undef any previous version and define our own version, for
76438         simplicity and consistency with the new macros for types.
76439         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76440         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76441         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76442         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76443         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76444         @WINT_T_SUFFIX@ to keep things simple here.
76445         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76446         Simplify by assuming typical 8/16/32/64 host, since we're
76447         already doing that elsewhere anyway.
76448         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76449         and assume long long int is 64 bits if available.  This
76450         speeds up 'configure'.
76451
76452 2006-07-01  Eric Blake  <ebb9@byu.net>
76453
76454         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76455         Reported by Andreas Buening.
76456
76457 2006-07-01  Eric Blake  <ebb9@byu.net>
76458
76459         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76460
76461 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76462
76463         * lib/getaddrinfo.c: fixed typo
76464
76465 2006-06-29  Jim Meyering  <jim@meyering.net>
76466
76467         * modules/strftime (Maintainer): Add my name, since with the
76468         FPRINTFTIME changes strftime.c has forked from glibc.
76469
76470 2006-06-29  Eric Blake  <ebb9@byu.net>
76471
76472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76473
76474 2006-06-29  Eric Blake  <ebb9@byu.net>
76475
76476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76477
76478 2006-06-29  Eric Blake  <ebb9@byu.net>
76479
76480         * lib/stat_.h: New file.
76481
76482 2006-06-29  Eric Blake  <ebb9@byu.net>
76483
76484         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76485         unused static function.
76486
76487 2006-06-29  Eric Blake  <ebb9@byu.net>
76488
76489         * doc/functions.texi (Function Portability): Document missing lstat
76490         on mingw.
76491
76492 2006-06-29  Eric Blake  <ebb9@byu.net>
76493
76494         * MODULES.html.sh: Add sys_stat.
76495         * modules/sys_stat: New module.
76496         * modules/mkstemp (Depends-on): Add sys_stat.
76497
76498 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76499
76500         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76501
76502 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76503
76504         * m4/c-bs-a.m4: Removed.
76505
76506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76507
76508         * lib/strftime.c: Assume strftime() exists.
76509
76510 2006-06-29  Derek Price  <derek@ximbiot.com>
76511
76512         * modules/c-bs-a: Removed - \a is C89.
76513         * MODULES.html.sh: Remove c-bs-a.
76514
76515 2006-06-29  Bruno Haible  <bruno@clisp.org>
76516
76517         * modules/wcwidth (License): Change to LGPL.
76518
76519 2006-06-28  Simon Josefsson  <jas@extundo.com>
76520
76521         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76522         on _WIN32.
76523
76524         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76525         getnameinfo.
76526
76527 2006-06-28  Simon Josefsson  <jas@extundo.com>
76528
76529         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76530
76531 2006-06-28  Simon Josefsson  <jas@extundo.com>
76532
76533         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76534         functions there.  It will succeed on Windows XP, but on Windows
76535         2000 and (presumably) earlier, it will fail, and use the internal
76536         re-implementation.
76537         (use_win32_p): New function.
76538         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76539         Support AI_NUMERICSERV to disable getservbyname.
76540         (getnameinfo): New function, only supports
76541         NI_NUMERICHOST|NI_NUMERICSERV for now.
76542
76543         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76544         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76545         getnameinfo.
76546
76547 2006-06-28  Eric Blake  <ebb9@byu.net>
76548
76549         * modules/wcwidth: New file.
76550         * modules/mbchar (Depends-on): Add wcwidth.
76551         * modules/mbswidth (Depends-on): Add wcwidth.
76552         * MODULES.html.sh: Add wcwidth.
76553
76554 2006-06-28  Eric Blake  <ebb9@byu.net>
76555
76556         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76558
76559 2006-06-28  Eric Blake  <ebb9@byu.net>
76560
76561         * lib/xvasprintf.h: Fix comments.
76562
76563 2006-06-28  Eric Blake  <ebb9@byu.net>
76564
76565         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76566         * lib/mbswidth.c (wcwidth): Move from here...
76567         * lib/wcwidth.h: ...to this new file.
76568
76569 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76570
76571         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76572
76573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76574         it's obsolete.
76575         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76576
76577 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76578
76579         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76580         Autoconf 2.60 says this stuff was obsolete.
76581
76582 2006-06-28  Bruno Haible  <bruno@clisp.org>
76583
76584         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76585
76586 2006-06-28  Bruno Haible  <bruno@clisp.org>
76587
76588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76589         gt_TYPE_WCHAR_T.
76590
76591 2006-06-28  Bruno Haible  <bruno@clisp.org>
76592
76593         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76594         declaration for wcwidth.
76595         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76596
76597 2006-06-28  Bruno Haible  <bruno@clisp.org>
76598
76599         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76600         (mkdir): Define using _mkdir.
76601
76602 2006-06-28  Bruno Haible  <bruno@clisp.org>
76603
76604         * lib/getaddrinfo.h: Fix POSIX URL.
76605         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76606         _WIN32.
76607         (use_win32_p): Make static.
76608         (getaddrinfo): Reject service name if it is empty or does not consist
76609         solely of decimal digits, or if its value is > 65535.
76610         (getnameinfo): Remove useless casts.
76611
76612 2006-06-27  Simon Josefsson  <jas@extundo.com>
76613
76614         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76615         Eggert and Martin Lambers.
76616
76617 2006-06-27  Simon Josefsson  <jas@extundo.com>
76618
76619         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76620         Eggert and Martin Lambers.
76621
76622 2006-06-27  Bruno Haible  <bruno@clisp.org>
76623
76624         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76625         result to 0, not to empty.
76626         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76627
76628 2006-06-27  Bruno Haible  <bruno@clisp.org>
76629
76630         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76631
76632 2006-06-26  Simon Josefsson  <jas@extundo.com>
76633
76634         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76635         present.
76636
76637 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76640         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76642
76643 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76644
76645         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76646
76647 2006-06-26  Bruno Haible  <bruno@clisp.org>
76648
76649         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76650
76651 2006-06-26  Bruno Haible  <bruno@clisp.org>
76652
76653         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76654
76655 2006-06-26  Bruno Haible  <bruno@clisp.org>
76656
76657         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76658         SGI C compiler in pre-C99 mode.
76659         Suggested by Mark D. Baushke and Larry Jones.
76660
76661 2006-06-26  Bruno Haible  <bruno@clisp.org>
76662
76663         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76664         WCHAR_MAX.
76665         Reported by Mark D. Baushke and Larry Jones.
76666
76667 2006-06-26  Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76670         in pre-C99 mode.
76671         Suggested by Mark D. Baushke and Larry Jones.
76672
76673 2006-06-23  Simon Josefsson  <jas@extundo.com>
76674             Bruno Haible  <bruno@clisp.org>
76675
76676         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76677         Emit mostlyclean-local rule.
76678         (func_emit_tests_Makefile_am): Likewise.
76679         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76680
76681 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76682
76683         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76684
76685 2006-06-23  Bruno Haible  <bruno@clisp.org>
76686
76687         * tests/test-stdint.c: Update to match ISO C 99 Technical
76688         Corrigendum 1.
76689
76690 2006-06-23  Bruno Haible  <bruno@clisp.org>
76691
76692         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76693
76694 2006-06-23  Bruno Haible  <bruno@clisp.org>
76695
76696         * lib/stdint_.h: Treat IRIX like OpenBSD.
76697
76698 2006-06-23  Bruno Haible  <bruno@clisp.org>
76699
76700         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76701         ISO C 99 Technical Corrigendum 1.
76702
76703 2006-06-22  Simon Josefsson  <jas@extundo.com>
76704
76705         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76706         MinGW.
76707
76708 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76711         needed.  Some compiler complained about some of them.  Problem reported
76712         by Larry Jones in
76713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76714
76715 2006-06-21  Simon Josefsson  <jas@extundo.com>
76716
76717         * tests/test-getaddrinfo.c: New file.
76718
76719         * modules/getaddrinfo-tests: New file.
76720
76721         * MODULES.html.sh: Add inet_pton.
76722
76723         * modules/inet_pton: New file.
76724
76725 2006-06-21  Simon Josefsson  <jas@extundo.com>
76726
76727         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76728         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76729         of using the (limited) gnulib implementation on Windows XP.
76730
76731         * m4/inet_pton.m4: New file.
76732
76733 2006-06-21  Simon Josefsson  <jas@extundo.com>
76734
76735         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76736         variable.
76737
76738         * lib/socket_.h: Don't define WINVER.
76739
76740         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76741         slightly modified to work in gnulib.
76742
76743 2006-06-21  Simon Josefsson  <jas@extundo.com>
76744
76745         * doc/gnulib.texi (Windows sockets): Add.
76746
76747 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * lib/read-file.c (fread_file): Start with buffer allocation of
76750         0 bytes rather than 1 byte; this simplifies the code.
76751         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76752         code to free buffer and save/restore errno.
76753         (internal_read_file): Remove unused local.
76754
76755 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76758         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76759         Problem reported by Denis Excoffier in
76760         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76761
76762 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76763
76764         * modules/sys_socket, modules/socklen: Include sys/types since
76765         FreeBSD 4.x's sys/socket.h needs it.
76766
76767 2006-06-19  Simon Josefsson  <jas@extundo.com>
76768
76769         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76770
76771 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76774
76775 2006-06-19  Bruno Haible  <bruno@clisp.org>
76776
76777         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76778         and FULL_PATH_INTTYPES_H in angle brackets.
76779         Reported by Mark D. Baushke <mdb@gnu.org>.
76780
76781 2006-06-17  Eric Blake  <ebb9@byu.net>
76782
76783         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76784         errno.
76785
76786 2006-06-17  Bruno Haible  <bruno@clisp.org>
76787
76788         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76789         <sys/inttypes.h>.
76790
76791 2006-06-17  Bruno Haible  <bruno@clisp.org>
76792
76793         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76794         whether errno is declared. Assume <errno.h> declares errno.
76795
76796 2006-06-17  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76799
76800 2006-06-17  Bruno Haible  <bruno@clisp.org>
76801
76802         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76803         problem on Solaris 2.5.1.
76804
76805 2006-06-16  Eric Blake  <ebb9@byu.net>
76806
76807         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76808         * lib/unicodeio.c [!defined errno]: Likewise.
76809         * lib/strtol.c [!defined errno]: Likewise.
76810         * lib/strtod.c [!defined errno]: Likewise.
76811
76812 2006-06-15  Eric Blake  <ebb9@byu.net>
76813
76814         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76815
76816 2006-06-15  Eric Blake  <ebb9@byu.net>
76817
76818         * config/srclist.txt (ssize_t.m4): Lose sync.
76819
76820 2006-06-15  Bruno Haible  <bruno@clisp.org>
76821
76822         * modules/stdint (Files): Include m4/full-header-path.m4,
76823         m4/size_max.m4, m4/wchar_t.m4.
76824         (Makefile.am): Many more substitutions.
76825         * modules/stdint-tests: New file.
76826         * tests/test-stdint.c: New file.
76827
76828 2006-06-15  Bruno Haible  <bruno@clisp.org>
76829
76830         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76831         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76832         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76833         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76834         gl_CHECK_TYPE_SAME): New macros.
76835
76836 2006-06-15  Bruno Haible  <bruno@clisp.org>
76837
76838         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76839
76840 2006-06-15  Bruno Haible  <bruno@clisp.org>
76841
76842         * lib/stdint_.h: Rewritten to be fully auto-configured.
76843         Fixes bug on HP-UX/IA64.
76844
76845 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76846
76847         * lib/getdate.y (__attribute__): Don't define if already defined.
76848         Problem reported by Larry Jones.
76849         * lib/utimens.c (__attribute__): Likewise.
76850
76851 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76854         reported by Andreas Schwab.
76855
76856 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76857             Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76860         check for the declaration of strnlen and a run test that exposes the
76861         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76862         rpl_strndup.
76863
76864 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76865             Bruno Haible  <bruno@clisp.org>
76866
76867         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76868
76869 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76870
76871         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76872         compile test, for Tru64 4.0D.
76873
76874 2006-05-28  Karl Berry  <karl@gnu.org>
76875
76876         * config/srclist.txt (printf-args.c): lose sync.
76877
76878 2006-05-26  Martin Lambers  <marlam@marlam.de>
76879
76880         * lib/getpass.c: Updates the test for the native W32 API, and adds
76881         missing includes, thus fixing compilation warnings.
76882
76883 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76884
76885         * lib/exclude.c (exclude_fnmatch): New function.
76886         (excluded_file_name): Call exclude_fnmatch.
76887         * lib/exclude.h (excluded_file_name): New prototype
76888
76889 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         * lib/tempname.c (small_open, large_open): New macros.
76892         (__open, __open64) [!_LIBC]: Remove.
76893         (__gen_tempname): Use small_open and large_open instead of __open
76894         and __open64.  This fixes a portability bug on HP-UX 11.11i
76895         reported by Simon Wing-Tang in
76896         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76897
76898 2006-05-24  Bruno Haible  <bruno@clisp.org>
76899
76900         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76901         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76902         Reported by Thorsten Maerz <torte@netztorte.de> via
76903         Aaron Stone <aaron@serendipity.cx>.
76904
76905 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76908         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76909         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76910         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76911         not really conditional on the cache.
76912         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76913
76914 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76917         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76918         (my_usleep): Don't mishandle maximum value.
76919
76920 2006-05-19  Jim Meyering  <jim@meyering.net>
76921
76922         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76923
76924 2006-05-17  Bruno Haible  <bruno@clisp.org>
76925
76926         Cygwin portability.
76927         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76928
76929 2006-05-17  Bruno Haible  <bruno@clisp.org>
76930
76931         * lib/stdint_.h: Fix recognition of Cygwin.
76932
76933 2006-05-15  Bruno Haible  <bruno@clisp.org>
76934
76935         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76936         on libtool patch by Ralf Wildenhues.
76937
76938 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76941         test for C99 conformance; (bool) 0.5 is an integer constant
76942         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76943         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76944
76945 2006-05-11  Simon Josefsson  <jas@extundo.com>
76946
76947         * m4/xvasprintf.m4: Fix obvious typo.
76948
76949 2006-05-11  Jim Meyering  <jim@meyering.net>
76950
76951         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76952         James Lemley.
76953
76954 2006-05-10  Simon Josefsson  <jas@extundo.com>
76955
76956         * lib/md4.c: Typo fix, update copyright years.
76957         (K1, K2): Don't use L because it turn computations into 64-bit on
76958         64-bit platforms.
76959
76960 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76963         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76964         unwanted sign propagation, e.g., on hosts with 64-bit int.
76965         There still are some problems with reeelly weird theoretical hosts
76966         (e.g., 33-bit int) but it's not worth worrying about now.
76967         * lib/sha1.c (rol): Likewise.
76968         (K1, K2, K3, K4): Remove unnecessary L suffix.
76969
76970 2006-05-10  Bruno Haible  <bruno@clisp.org>
76971
76972         * lib/des.c: Cast to avoid warnings.
76973
76974 2006-05-09  Bruno Haible  <bruno@clisp.org>
76975
76976         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76977         (Depends-on): Depend also on xsize, stdarg.
76978         (configure.ac): Add gl_XVASPRINTF.
76979
76980 2006-05-09  Bruno Haible  <bruno@clisp.org>
76981
76982         * m4/xvasprintf.m4: New file.
76983
76984 2006-05-09  Bruno Haible  <bruno@clisp.org>
76985
76986         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76987         (EOVERFLOW): Define fallback value.
76988         (xstrcat): New function.
76989         (xvasprintf): Recognize the special case of a string concatenation.
76990
76991 2006-05-08  Eric Blake  <ebb9@byu.net>
76992
76993         * gnulib-tool (func_version): Base copyright year on CVS date.
76994         (func_emit_copyright_notice): New function.
76995         (func_emit_lib_Makefile_am): Use it.
76996         (func_emit_tests_Makefile_am): Likewise.
76997         (func_import): Likewise.
76998
76999 2006-05-08  Bruno Haible  <bruno@clisp.org>
77000
77001         * modules/stdarg: New file.
77002         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77003
77004 2006-05-08  Bruno Haible  <bruno@clisp.org>
77005
77006         * m4/stdarg.m4: New file, from GNU gettext.
77007
77008 2006-05-08  Bruno Haible  <bruno@clisp.org>
77009
77010         * config/srclist.txt (build-aux/config.rpath): different from latest
77011         release.
77012
77013 2006-05-08  Bruno Haible  <bruno@clisp.org>
77014
77015         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77016
77017 2006-05-05  Jim Meyering  <jim@meyering.net>
77018
77019         * m4/warning.m4: New file, derived from bison's file by the same name.
77020
77021 2006-05-03  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/stdint_.h: Shorter URL.
77024         * lib/inttypes.h: Likewise.
77025
77026 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77029
77030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/verify.h: Document the internals better.  Most of this change
77033         was written by Bruno Haible.
77034
77035 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         * doc/verify.texi: New file, partly based on a proposal by
77038         Bruno Haible.
77039
77040 2006-05-02  Bruno Haible  <bruno@clisp.org>
77041
77042         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77043         test from here...
77044         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77045
77046 2006-04-29  Bruno Haible  <bruno@clisp.org>
77047
77048         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77049         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77050
77051 2006-04-29  Bruno Haible  <bruno@clisp.org>
77052
77053         * gnulib-tool: Make --update option actually work.
77054
77055 2006-04-29  Bruno Haible  <bruno@clisp.org>
77056
77057         * doc/gcd.texi: New file.
77058         * doc/gnulib.texi: Include it.
77059
77060 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * lib/getdate.y (get_date): When adding relative date, start with the
77063         initial time, not with the result of the first mktime call.
77064
77065 2006-04-25  Bruno Haible  <bruno@clisp.org>
77066
77067         * gnulib-tool (func_import): Output the include directives in three
77068         blocks, sorted separately.
77069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77070
77071 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77074         to define main with arguments, for C++.  Reported by Eric Blake.
77075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77076         Prefer 'int main ()' to 'int main (void)', for C++.
77077         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77079         for 'main', for C99 and C++.
77080
77081 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77084         Don't assume that exit status -1 is valid.
77085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77086         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77088         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77089         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77090         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77091         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77092         functions can be used without declaring them, or that you can
77093         exit with status -1.
77094         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77095
77096 2006-04-24  Karl Berry  <karl@gnu.org>
77097
77098         * config/srclist.txt (longdouble.m4): sync lost.
77099
77100 2006-04-24  Eric Blake  <ebb9@byu.net>
77101
77102         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77103
77104 2006-04-24  Bruno Haible  <bruno@clisp.org>
77105
77106         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77107         poll() implementation in AIX.
77108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77109
77110 2006-04-24  Bruno Haible  <bruno@clisp.org>
77111
77112         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77113         assigned exactly once.
77114
77115 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77116             Bruno Haible  <bruno@clisp.org>
77117
77118         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77119         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77120         for AM_CPPFLAGS.
77121
77122 2006-04-23  Bruno Haible  <bruno@clisp.org>
77123
77124         * modules/copy-file: Depend on unistd.
77125         * modules/execute: Likewise.
77126         * modules/fatal-signal: Likewise.
77127         * modules/findprog: Likewise.
77128         * modules/mkdtemp : Likewise.
77129         * modules/pipe: Likewise.
77130         * modules/wait-process: Likewise.
77131
77132 2006-04-23  Bruno Haible  <bruno@clisp.org>
77133
77134         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77135         condition was already detected.
77136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77137
77138 2006-04-23  Bruno Haible  <bruno@clisp.org>
77139
77140         * lib/copy-file.c: Include <unistd.h> unconditionally.
77141         * lib/execute.c: Likewise.
77142         * lib/fatal-signal.c: Likewise.
77143         * lib/findprog.c: Likewise.
77144         * lib/mkdtemp.c: Likewise.
77145         * lib/pipe.h: Likewise.
77146         * lib/pipe.c: Likewise.
77147         * lib/wait-process.h: Likewise.
77148
77149 2006-04-23  Bruno Haible  <bruno@clisp.org>
77150
77151         * gnulib-tool (func_usage): Fix --import description. Document
77152         --update.
77153         (func_import): Create temporary file in a temporary directory, if
77154         --dry-run is specified. Silence errors from 'grep' when there are no
77155         m4 files in $m4dir.
77156         (func_create_testdir): Silence errors from 'grep' when there are no
77157         m4 files in $m4dir.
77158         Reported by Karl Berry <karl@freefriends.org>.
77159
77160 2006-04-20  Bruno Haible  <bruno@clisp.org>
77161
77162         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77163         one argument, so that the code will be portable to Autoconf 2.60.
77164         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77166         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77167
77168 2006-04-19  Derek Price  <derek@ximbiot.com>
77169             Eric Blake  <ebb9@byu.net>
77170
77171         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77172         rather than "/full/path.h".  Update comment to match.  Shorten &
77173         generalize m4_translit call via AS_TR_CPP.
77174
77175 2006-04-19  Derek Price  <derek@ximbiot.com>
77176             Eric Blake  <ebb9@byu.net>
77177
77178         * lib/inttypes.h: Correct grammar in comment.
77179
77180 2006-04-18  Derek Price  <derek@ximbiot.com>
77181             Paul Eggert  <eggert@cs.ucla.edu>
77182
77183         * modules/inttypes: New file.
77184         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77185
77186 2006-04-18  Derek Price  <derek@ximbiot.com>
77187             Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77190         New files.
77191
77192 2006-04-18  Derek Price  <derek@ximbiot.com>
77193             Paul Eggert  <eggert@cs.ucla.edu>
77194
77195         * lib/inttypes.h: New file.
77196         * lib/strtoimax.c: Assume <inttypes.h>.
77197
77198 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77201         isn't mounted.  Problem reported by Kir Kolyshkin.
77202
77203 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77206         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77207         Derek R. Price.
77208         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77209         implementation.
77210
77211 2006-04-12  Eric Blake  <ebb9@byu.net>
77212
77213         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77214         is now done automatically by the corresponding Autoconf macro.
77215
77216 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77219         time_r.h.
77220
77221 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         Merge regex changes from libc, removing some of our
77224         POSIX-conformance changes that were rejected and redoing them in a
77225         less-intrusive way.
77226
77227         * lib/regcomp.c (re_compile_internal, init_dfa):
77228         Length arg is now size_t, not Idx.  All uses changed.
77229         (peek_token): Forward decl now says internal_function.
77230         (__re_error_msgid, __re_error_msgid_idx):
77231         Now static rather than extern with attribute_hidden.
77232         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77233         For some reason libc prefers K&R style defns for external functions.
77234         (regerror) [!defined _LIBC]: Likewise.
77235         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77236         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77237         (build_range_exp, build_collating_symbol):
77238         Use K&R-style defn.
77239         (re_compile_fastmap): Use '\0' to memset, not 0.
77240         (utf8_sb_map): Make the calculations more obvious.
77241         (init_dfa, parse_bracket_exp, build_charclass_op):
77242         Call calloc and cast result, as glibc does.
77243         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77244         (build_range_exp, build_collating_symbol):
77245         Now internal functions.
77246
77247         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77248
77249         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77250         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77251         Don't depend on VMS; depend on __VMS instead, for POSIX
77252         namespace cleanness.
77253         (regoff_t): Define to ssize_t, not long int.
77254
77255         Remove the REG_ macros named below.  Instead, make the old names
77256         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77257         __USE_GNU_REGEX.
77258         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77259         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77260         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77261         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77262         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77263         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77264         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77265         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77266         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77267         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77268         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77269         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77270         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77271         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77272         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77273         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77274         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77275         (REG_NREGS):
77276         Remove.  All uses replaced by the old RE_* names.
77277         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77278         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77279         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77280         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77281         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77282         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77283         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77284         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77285         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77286         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77287         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77288         Don't bother having these macros be independent of each others'
77289         values, since they no longer exist in the POSIX name space.
77290
77291         Rename the following member names back to their old names,
77292         unless !__USE_GNU_REGEX.  All uses changed back.
77293         (buffer): Renamed from re_buffer.
77294         (allocated): Renamed from re_allocated.
77295         (used): Renamed from re_used.
77296         (syntax): Renamed from re_syntax.
77297         (fastmap): Renamed from re_fastmap.
77298         (translate): Renamed from re_translate.
77299         (can_be_null): Renamed from re_can_be_null.
77300         (regs_allocated): Renamed from re_regs_allocated.
77301         (fastmap_accurate): Renamed from re_fastmap_accurate.
77302         (no_sub): Renamed from re_no_sub.
77303         (not_bol): Renamed from re_not_bol.
77304         (not_eol): Renamed from re_not_eol.
77305         (newline_anchor): Renamed from re_newline_anchor.
77306         (num_regs): Renamed from rm_num_regs.
77307         (start): Renamed from rm_start.
77308         (end): Renamed from rm_end.
77309
77310         (free_state): Move up a bit.
77311
77312         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77313         #define to be empty.
77314         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77315         when that is what is intended.
77316         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77317         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77318         (MAX): New macro.
77319         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77320         All uses changed back to re_malloc, etc.  It's now the caller's
77321         responsibility to check for overflow; all callers changed.
77322         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77323         (re_x2nrealloc): Remove.
77324         (free_state): Remove decl.
77325
77326         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77327         (re_set_registers, re_exec):
77328         Use K&R-style defn.
77329
77330         2006-01-31  Roland McGrath  <roland@redhat.com>
77331
77332         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77333         Reported by Mike Frysinger <vapier@gentoo.org>.
77334
77335         2006-01-15  Andreas Jaeger  <aj@suse.de>
77336
77337         [BZ #1950]
77338         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77339         build_wcs_upper_buffer change.
77340         (build_wcs_upper_buffer): Change return type.
77341
77342         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77343
77344         * lib/regex_internal.h: Include <stdint.h> if available.
77345
77346         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77347
77348         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77349
77350         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77351
77352         * lib/regcomp.c: Adjust for changed secondary hash function.
77353
77354         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77355
77356         * lib/regex.h: Pretty printing.
77357         Clean up namespace a bit.
77358
77359         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77360
77361         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77362         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77363
77364         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77365                     Ulrich Drepper  <drepper@redhat.com>
77366
77367         [BZ #1302]
77368         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77369         changed.
77370         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77371
77372         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77373
77374         [BZ #281]
77375         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77376         * lib/regcomp.c: Remove unnecessary uses of
77377         unsigned RE_TRANSLATE_TYPE.
77378         * lib/regex_internal.h: Likewise.
77379         * lib/regex_internal.c: Likewise.
77380         * lib/regexec.c: Likewise.
77381         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77382
77383         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77384
77385         * lib/regexec.c (find_recover_state): Remove unnecessary
77386         initialization.
77387         (transit_state_bkref): Make DFA a const pointer.
77388         (get_subexp): Likewise.
77389         (check_arrival): Likewise.
77390         (update_cur_sifted_state): Likewise.
77391         (re_search_internal): Likewise.
77392         (prune_impossible_nodes): Likewise.
77393         (acquire_init_state_context): Likewise.
77394         (proceed_next_node): Likewise.
77395         (set_regs): Likewise.
77396         (free_fail_stack_return): Likewise.
77397         (check_arrival_expand_ecl): Mark DFA parameter as const.
77398         (check_arrival_expand_ecl_sub): Likewise.
77399         (check_subexp_limits): Likewise.
77400         (sub_epsilon_src_nodes):  Likewise.
77401         (add_epsilon_src_nodes):  Likewise.
77402         (merge_state_array): Likewise.
77403         (update_regs): Likewise.
77404         (build_trtable): Likewise.
77405         (sift_states_backward): Mark MCTX parameter as const.
77406         (build_sifted_states): Likewise.
77407         (update_cur_sifted_state): Likewise.
77408         (sift_states_mkref): Likewise.
77409         (check_arrival_expand_ecl): Mark eclosure as const.
77410         (check_dst_limits_calc_pos_1): Likewise.
77411         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77412         pointer.
77413
77414         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77415
77416         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77417         (transit_state_sb): Likewise.
77418         (transit_state_mb): Likewise.
77419         (sift_states_iter_mb): Likewise.
77420         (check_arrival_add_next_nodes): Likewise.
77421         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77422         [_LIBC] (re_search_2_stub): Use mempcpy.
77423
77424         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77425         mbrtowc for very simple UTF-8 case.
77426
77427         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77428         a pointer-to-const.
77429         (re_acquire_state_context): Likewise.
77430         * lib/regex_internal.h: Adjust prototypes.
77431
77432         * lib/regex.c: Prevent using C++ compilers.
77433
77434         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77435         (re_acquire_state_context): Likewise.
77436
77437 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * modules/regex (Depends-on): Add ssize_t.
77440
77441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77442
77443         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77444         translation table.
77445
77446 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77447
77448         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77449
77450 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77451             Bruno Haible  <bruno@clisp.org>
77452
77453         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77454         <sys/types.h> and <inttypes.h>.
77455
77456 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77457
77458         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77459         `__error_t_defined', so argp.h will not typedef the former.
77460
77461 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77462
77463         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77464         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77465         glibc names.  Even if glibc is changed to conform to POSIX, the
77466         traditional names will be available anyway, since regex depends on
77467         the extensions module.  Also, fix a longstanding typo in the
77468         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77469         reported by Emanuele Giaquinta.  Also, change sense of cached
77470         variable, so that the message makes sense.
77471
77472 2006-03-24  Simon Josefsson  <jas@extundo.com>
77473
77474         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77475         including some doc fixes.
77476         (base64_encode_alloc): Fix +1 bug on allocation failures.
77477
77478 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77479
77480         * lib/base64.c (base64_encode): Do not read past end of array with
77481         unsanitized input on systems with CHAR_BIT > 8.
77482
77483 2006-03-24  Eric Blake  <ebb9@byu.net>
77484
77485         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77486
77487 2006-03-22  Karl Berry  <karl@gnu.org>
77488
77489         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77490         * config/srclistvars.sh (COREUTILS): new var.
77491
77492 2006-03-17  Jim Meyering  <jim@meyering.net>
77493
77494         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77495         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77496
77497 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77500         no longer needs it.  Instead, check that regoff_t is as least
77501         as wide as ptrdiff_t.
77502
77503         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77504         so that our regex.h stays compatible with the installed regex.
77505         This is helpful for installers who configure --without-included-regex.
77506         Problem reported by Emanuele Giaquinta.
77507
77508 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77511         Typedef to long int, not to off_, as POSIX will likely change
77512         in that direction.
77513
77514 2006-03-15  Eric Blake  <ebb9@byu.net>
77515
77516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77517
77518 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77519
77520         * lib/argp-help.c (validate_uparams): Fix typo
77521         * lib/argp-parse.c (argp_default_options): Consistently begin help
77522         messages with a lowercase letter.
77523
77524 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77527         overrun buffers and shouldn't be used (much as gets shouldn't be
77528         used).
77529         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77530
77531 2006-03-08  Simon Josefsson  <jas@extundo.com>
77532
77533         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77534         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77535
77536 2006-03-08  Simon Josefsson  <jas@extundo.com>
77537
77538         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77539         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77540
77541 2006-03-08  Simon Josefsson  <jas@extundo.com>
77542
77543         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77544         signal that configure disabled the device.
77545
77546 2006-03-08  Simon Josefsson  <jas@extundo.com>
77547
77548         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77549         languages.
77550
77551 2006-03-07  Simon Josefsson  <jas@extundo.com>
77552
77553         * modules/getopt (Depends-on): Add unistd.
77554
77555         * modules/unistd: New file.
77556
77557 2006-03-07  Simon Josefsson  <jas@extundo.com>
77558
77559         * modules/gc-random: New file.
77560
77561 2006-03-07  Simon Josefsson  <jas@extundo.com>
77562
77563         * m4/unistd_h.m4: New file.
77564
77565 2006-03-07  Simon Josefsson  <jas@extundo.com>
77566
77567         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77568         test to be side-effect free by storing the result in the cache
77569         variable gl_cv_lib_readline, and moving the assignment of
77570         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77571         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77572
77573 2006-03-07  Simon Josefsson  <jas@extundo.com>
77574
77575         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77576         error on missing devices (the functions will return an error).
77577
77578         * m4/gc.m4: Move random stuff to gc-random.m4
77579
77580 2006-03-07  Simon Josefsson  <jas@extundo.com>
77581
77582         * lib/unistd_.h: New file.
77583
77584 2006-03-07  Simon Josefsson  <jas@extundo.com>
77585
77586         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77587
77588 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77589
77590         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77591         Problem reported by Juan Manuel Guerrero.
77592
77593 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77594
77595         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77596         the unistd module.
77597         * lib/getlogin_r.c: Likewise.
77598         * lib/getlogin_r.h: Likewise.
77599         * lib/glob.c: Likewise.
77600         * lib/pagealign_alloc.c: Likewise.
77601         * lib/unistd_.h: Remove; no longer needed.
77602
77603 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77604
77605         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77606         Add unistd.
77607         * modules/c-stack (Depends-on): Add unistd.
77608         * modules/getlogin_r: Likewise.
77609         * modules/glob: Likewise.
77610         * modules/pagealign_alloc: Likewise.
77611         * modules/unistd (Files): Remove lib/unistd_.h.
77612         (EXTRA_DIST): Remove.
77613         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77614         need unistd_.h.
77615         (MOSTLYCLEANFILES): Remove unistd.h-t.
77616
77617 2006-03-03  Simon Josefsson  <jas@extundo.com>
77618
77619         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77620
77621 2006-03-03  Simon Josefsson  <jas@extundo.com>
77622
77623         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77624         libidn and bison.
77625
77626 2006-03-03  Simon Josefsson  <jas@extundo.com>
77627
77628         * build-aux/maint.mk: Add indent target.
77629
77630 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77631
77632         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77633         our replacement poll.h in any case, to avoid a differing
77634         declaration from a system header.  Seen on AIX.
77635
77636 2006-03-01  Simon Josefsson  <jas@extundo.com>
77637
77638         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77639         <kasal@ucw.cz>.
77640
77641 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * modules/gettime (Depends-on): Add extensions module.
77644         * modules/nanosleep (Depends-on): Likewise.
77645         * modules/settime (Depends-on): Likewise.
77646
77647 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77650         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77651         pedantically.
77652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77653         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77654
77655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77656         not "==".  Reported by Ralf Wildenhues.
77657
77658 2006-03-01  Karl Berry  <karl@gnu.org>
77659
77660         * doc/Copyright/request-*: new files, synced from gnuorg.
77661
77662 2006-03-01  Karl Berry  <karl@gnu.org>
77663
77664         * config/srclist.txt (Copyright/*): new entries.
77665
77666 2006-02-28  Simon Josefsson  <jas@extundo.com>
77667
77668         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77669
77670 2006-02-27  Simon Josefsson  <jas@extundo.com>
77671
77672         * lib/base64.h: Indent #define's.  From Jim Meyering
77673         <jim@meyering.net>.
77674
77675 2006-02-27  Jim Meyering  <jim@meyering.net>
77676
77677         Revert the change of 2006-02-24, so these files can continue
77678         to be sync'd from gettext.
77679         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77680         of `config.h'.
77681
77682 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77683
77684         * modules/intprops: New file.
77685         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77686         Add intprops.
77687         * modules/getloadavg (Files): Remove lib/intprops.h.
77688         (Depends-on): Add intprops.
77689         * modules/human: Likewise.
77690         * modules/inttostr: Likewise.
77691         * modules/openat: Likewise.
77692         * modules/sig2str: Likewise.
77693         * modules/userspec: Likewise.
77694         * modules/utimecmp: Likewise.
77695         * modules/xnanosleep: Likewise.
77696         * modules/xstrtol: Likewise.
77697
77698 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77699
77700         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77701         * modules/lock-tests (TESTS): Use $(EXEEXT).
77702         * modules/tls-tests: Likewise.
77703         * modules/argp-tests: Likewise.
77704         (check_PROGRAMS): New var, replacing...
77705         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77706
77707 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77708
77709         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77710         `config.h'.
77711
77712 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77713
77714         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77715
77716 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77717
77718         Sync from coreutils.
77719         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77720         gl_CHDIR_SAFER.
77721
77722 2006-02-22  Jim Meyering  <jim@meyering.net>
77723
77724         Sync from coreutils.
77725         * m4/chdir-safer.m4: New file.
77726
77727 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77728
77729         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77730         AT_FDCWD exceeds INT_MAX.
77731         * lib/openat.h (AT_FDCWD): Likewise.
77732
77733 2006-02-17  Eric Blake  <address@hidden>
77734
77735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77736
77737 2006-02-16  Simon Josefsson  <jas@extundo.com>
77738
77739         * modules/getaddrinfo (Depends-on): Add sys_socket.
77740
77741 2006-02-15  Simon Josefsson  <jas@extundo.com>
77742
77743         * build-aux/maint.mk: Add dsyntax-check rule.
77744
77745 2006-02-15  Eric Blake  <ebb9@byu.net>
77746
77747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77748         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77749         'present but cannot compile' warnings on cygwin.
77750         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77751         use ws2tcpip.h if sys/socket.h works.
77752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77753         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77754
77755 2006-02-14  Simon Josefsson  <jas@extundo.com>
77756
77757         * modules/maintainer-makefile (Files): Rename.
77758
77759         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77760         and (the local) Makefile.cfg to maint-cfg.mk.
77761
77762         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77763         to the latter.
77764
77765         * modules/maintainer-makefile: New module.
77766
77767         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77768         severaly stripped to make it possible to build it up from scratch
77769         with reliable tests.
77770
77771         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77772         fixes to permit overriding the default actions when configure and
77773         makefile are not available.
77774
77775 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         Sync from coreutils.
77778         * modules/lstat (Depends-on): Don't depend on xalloc.
77779         (License): Change from GPL to LGPL, since this is now simply a
77780         replacement for a libc function.
77781
77782 2006-02-14  Jim Meyering  <jim@meyering.net>
77783
77784         Sync from coreutils.
77785
77786         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77787         failure on deficient systems, and simplify gnulib lgpl dependencies.
77788         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77789         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77790
77791         * lib/xalloc-die.c: Remove unused definition of N_.
77792
77793 2006-02-14  Jim Meyering  <jim@meyering.net>
77794
77795         Sync from coreutils.
77796         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77797         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77798         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77799         double-quote uses of that variable, to accommodate the rare case in
77800         which getmntent is available in none of the libraries checked.  This
77801         happens at least on FreeBSD 5.0.
77802
77803 2006-02-13  Simon Josefsson  <jas@extundo.com>
77804
77805         * gnulib-tool (Usage): Fix --import, from
77806         karl@freefriends.org (Karl Berry).
77807
77808 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77809
77810         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77811
77812 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77813
77814         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77815         "autoupdate" on 2005-12-12.
77816
77817 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * modules/closeout (Depends-on): Remove atexit.
77820
77821 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77824         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77825
77826 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77827
77828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77829         __EXTENSIONS__ if this causes compilation to fail.  Problem
77830         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77831         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77832
77833 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77836         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77838         All uses changed.
77839
77840 2006-01-26  Simon Josefsson  <jas@extundo.com>
77841
77842         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77843         prototype is visible on mingw32.
77844
77845         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77846         for mingw32.
77847
77848         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77849         mingw32).
77850
77851 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77854         attempt to open for write; this always fails, at least on POSIX
77855         hosts.  This reinstates the 2006-01-09 change, which was
77856         inadvertently removed.
77857
77858 2006-01-26  Bruno Haible  <bruno@clisp.org>
77859
77860         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77861         Reported by Paul Eggert.
77862
77863 2006-01-26  Bruno Haible  <bruno@clisp.org>
77864             Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         * lib/stdbool_.h (_Bool)
77867         [(! (defined __cplusplus || defined __BEOS__)
77868           && !defined __GNUC__
77869           && !(defined __HP_cc || defined __xlc__
77870                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77871                || defined __sgi))]:
77872         #define to signed char in these cases too; this simplifies
77873         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77874         etc., separately) and makes it more conservative.
77875
77876 2006-01-25  Simon Josefsson  <jas@extundo.com>
77877
77878         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77879         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77880         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77881
77882 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77883
77884         * lib/argp-namefrob.h: Bugfix. Remove stray #
77885
77886 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77889         so that we test the test.
77890         Check for yet another HP-UX cc bug involving *bool |= bool.
77891
77892 2006-01-25  Karl Berry  <karl@gnu.org>
77893
77894         * config/srclist.txt (vasnprintf.c): sync lost.
77895
77896 2006-01-25  Jim Meyering  <jim@meyering.net>
77897
77898         Sync from the stable (b5) branch of coreutils:
77899
77900         * lib/fts.c (fts_children): Don't let close() clobber errno from
77901         failed fchdir().
77902
77903         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77904         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77905         a dangling symlink.  That can also happen at least for ELOOP.
77906         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77907         FYI, this bug predates the inclusion of fts.c in coreutils.
77908
77909         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77910         in their own block, so pre-c99 compilers don't object.
77911
77912         Avoid the double-free (first in fts_read, second in fts_close) that
77913         would occur when an `active' directory is made inaccessible (e.g.,
77914         via chmod a-x) during a traversal.
77915         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77916         before returning.  Reproduce this failure by
77917         mkdir -p a/b; cd a; chmod a-x . b
77918         Reported by Stavros Passas.
77919
77920 2006-01-25  Jim Meyering  <jim@meyering.net>
77921
77922         * lib/fileblocks.c: Remove more useless parentheses.
77923         * lib/readutmp.h: Likewise.
77924
77925 2006-01-25  Bruno Haible  <bruno@clisp.org>
77926
77927         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77928         warnings.
77929         Reported by Paul Eggert.
77930
77931 2006-01-25  Bruno Haible  <bruno@clisp.org>
77932
77933         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77934         rid of a trap command. For Solaris sh.
77935         Reported by Mark D. Baushke <mdb@gnu.org>.
77936
77937 2006-01-24  Simon Josefsson  <jas@extundo.com>
77938
77939         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77940         Bruno.
77941
77942 2006-01-24  Karl Berry  <karl@gnu.org>
77943
77944         * config/srclist.txt (argp-namefrob.h): sync lost.
77945
77946 2006-01-24  Jim Meyering  <jim@meyering.net>
77947
77948         * modules/openat (Files): Add lib/intprops.h.
77949         From Mark D. Baushke.
77950
77951 2006-01-24  Jim Meyering  <jim@meyering.net>
77952
77953         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77954         Reported by Mark D. Baushke.
77955
77956 2006-01-24  Jim Meyering  <jim@meyering.net>
77957
77958         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77959
77960 2006-01-24  Bruno Haible  <bruno@clisp.org>
77961
77962         * modules/strnlen (Maintainer): Change from glibc to all.
77963
77964 2006-01-24  Bruno Haible  <bruno@clisp.org>
77965
77966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77967         Patch by Paul Eggert.
77968
77969 2006-01-24  Bruno Haible  <bruno@clisp.org>
77970
77971         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77972         already has it.
77973         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77974         2005-11-26.
77975
77976         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77977         'signed char' to avoid problems with the built-in _Bool type.
77978         Reported by Paul Eggert on 2005-11-26.
77979
77980 2006-01-24  Bruno Haible  <bruno@clisp.org>
77981
77982         * gnulib-tool (func_import): Avoid constructing complicated sed
77983         expressions inside backquote.
77984         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77985
77986 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77987
77988         These changes imported from libc.
77989         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77990         test and two separate function calls.
77991         * lib/strndup.c (__strndup): Add libc_hidden_def.
77992
77993 2006-01-23  Simon Josefsson  <jas@extundo.com>
77994
77995         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77996         Remove the test_*_SOURCES variable: automake infers it by default.
77997         * modules/tls-tests: Likewise.
77998
77999 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78000
78001         Work around porting bugs reported by Dieter in
78002         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78003         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78004         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78005         Include "getopt.h" first, to check interface.
78006         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78007         !HAVE_DECL_GETENV.
78008         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78009         (__strndup): Revert to K&R-style function dfns, the glibc style.
78010         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78011         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78012         Include strnlen.h first, to get prototype properly.
78013         (strnlen): Renamed from __strnlen.
78014         Remove weak alias.
78015
78016 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78019
78020 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         * config/srclist.txt: Adjust to reflect glibc reorganization.
78023         This affects only comments.
78024
78025 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78026
78027          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78028          Reported by Bruce Korb <bkorb@gnu.org>.
78029
78030 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78033         to pacify gcc -Wswitch-default.
78034
78035 2006-01-22  Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78038         temporary buffer for sprintf, take into account the precision also
78039         for 'd', 'i', 'u', 'o', 'x', 'X'.
78040
78041 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78042
78043         * modules/argp-tests: New module
78044         * tests/test-argp.c: New file
78045         * tests/test-argp-2.sh: New file
78046
78047 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78048
78049         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78050         (__argp_base_name): Removed
78051         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78052         typo.
78053         (__argp_base_name): Provide macro definition or extern declaration
78054         depending on the configuration
78055
78056 2006-01-20  Simon Josefsson  <jas@extundo.com>
78057
78058         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78059
78060 2006-01-20  Simon Josefsson  <jas@extundo.com>
78061
78062         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78063
78064 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78067         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78068         Suggested by Bruno Haible.
78069
78070 2006-01-20  Karl Berry  <karl@gnu.org>
78071
78072         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78073         until changes propagate, I guess.
78074
78075 2006-01-19  Simon Josefsson  <jas@extundo.com>
78076
78077         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78078
78079 2006-01-19  Simon Josefsson  <jas@extundo.com>
78080
78081         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78082
78083 2006-01-19  Simon Josefsson  <jas@extundo.com>
78084
78085         * gnulib-tool: Set check_PROGRAMS.
78086
78087         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78088         modules/des-tests, modules/gc-arcfour-tests,
78089         modules/gc-arctwo-tests, modules/gc-des-tests,
78090         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78091         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78092         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78093         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78094         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78095         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78096         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78097         test_*_SOURCES.
78098
78099 2006-01-18  Simon Josefsson  <jas@extundo.com>
78100
78101         * modules/socklen (Depends-on): Depend on sys_socket.
78102
78103 2006-01-18  Simon Josefsson  <jas@extundo.com>
78104
78105         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78106         modules/des-tests, modules/gc-arcfour-tests,
78107         modules/gc-arctwo-tests, modules/gc-des-tests,
78108         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78109         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78110         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78111         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78112         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78113         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78114         $(EXEEXT) to automake TESTS variable, for mingw32.
78115
78116 2006-01-17  Simon Josefsson  <jas@extundo.com>
78117
78118         * modules/socklen (Include): Need sys/socket.h.
78119
78120 2006-01-17  Bruno Haible  <bruno@clisp.org>
78121
78122         * modules/ssize_t (Include): Add <sys/types.h>.
78123
78124 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78127         it's not portable and it doesn't work with cross-compiles.
78128         Problem reported by Bruno Haible.  Fix missing-$ typo in
78129         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78130         -zignore from being used with Sun's C compiler.
78131
78132 2006-01-12  Simon Josefsson  <jas@extundo.com>
78133
78134         * lib/base64.c: Fix warning, reported by Bruno Haible
78135         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78136
78137 2006-01-12  Bruno Haible  <bruno@clisp.org>
78138
78139         * modules/ldd: New file.
78140         * build-aux/ldd.sh.in: New file.
78141         * MODULES.html.sh (Support for building libraries and executables): Add
78142         ldd.
78143
78144 2006-01-12  Bruno Haible  <bruno@clisp.org>
78145
78146         * m4/ldd.m4: New file.
78147
78148 2006-01-12  Bruno Haible  <bruno@clisp.org>
78149
78150         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78151         endless loop while replacing $auxdir with build-aux.
78152
78153 2006-01-11  Simon Josefsson  <jas@extundo.com>
78154
78155         * lib/stdint_.h (SIZE_MAX): Add missing (.
78156
78157 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78158
78159         Sync from coreutils.
78160         * lib/md5.c: Fix commentary typos.
78161         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78162         * lib/md5.h (__attribute__): Remove; unused.
78163         * lib/sha1.c: Fix commentary to match md5 better.
78164         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78165         so that we don't need to worry about alignment.  All uses changed.
78166         This merges the 2005-10-28 md5 change into sha1.
78167
78168 2006-01-11  Jim Meyering  <jim@meyering.net>
78169
78170         Sync from coreutils.
78171         * lib/md5.c (OP): Fix spacing.
78172
78173 2006-01-11  Bruno Haible  <bruno@clisp.org>
78174
78175         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78176         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78177         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78178
78179 2006-01-11  Bruno Haible  <bruno@clisp.org>
78180
78181         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78182         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78183         the "early" section as well.
78184
78185 2006-01-11  Bruno Haible  <bruno@clisp.org>
78186
78187         Avoid "ar: no archive members specified" error on MacOS X.
78188         * gnulib-tool (func_modules_add_dummy): New function.
78189         (func_import, func_create_testdir): Invoke it.
78190
78191 2006-01-11  Bruno Haible  <bruno@clisp.org>
78192
78193         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78194         with $auxdir in AC_CONFIG_FILES statements.
78195
78196 2006-01-11  Bruno Haible  <bruno@clisp.org>
78197
78198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78199         Initialize also noinst_HEADERS to empty.
78200
78201 2006-01-11  Bruno Haible  <bruno@clisp.org>
78202
78203         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78204         variables.
78205         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78206         autoreconf.
78207
78208 2006-01-11  Bruno Haible  <bruno@clisp.org>
78209
78210         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78211         overridable by the user.
78212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78213
78214 2006-01-10  Simon Josefsson  <jas@extundo.com>
78215
78216         * modules/sys_socket: New file.
78217
78218 2006-01-10  Simon Josefsson  <jas@extundo.com>
78219
78220         * m4/sys_socket_h.m4: New file.
78221
78222 2006-01-10  Simon Josefsson  <jas@extundo.com>
78223
78224         * lib/socket_.h: New file.
78225
78226 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         * modules/readutmp (Maintainer): Add myself.
78229
78230 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78233         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78234         People who are still concerned with buggy memcmp implementations
78235         can invoke gl_FUNC_MEMCMP themselves.
78236
78237 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         * lib/regex_internal.h (BITSET_WORD_BITS):
78240         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78241         preprocessor mishandles large unsigned values as if they were signed.
78242         Problem reported by Claudio Fontana in
78243         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78244
78245 2006-01-10  Jim Meyering  <jim@meyering.net>
78246
78247         Avoid the double-free (first in fts_read, second in fts_close) that
78248         would occur when an `active' directory is made inaccessible (e.g.,
78249         via chmod a-x) during a traversal.
78250         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78251         before returning.  Reproduce this failure by
78252         mkdir -p a/b; cd a; chmod a-x . b
78253         Reported by Stavros Passas.
78254
78255         Sync from coreutils.
78256         * lib/sha1.c: Tweak grammar in a comment.
78257
78258 2006-01-10  Jim Meyering  <jim@meyering.net>
78259
78260         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78261         Patch by Joerg Sonnenberger.
78262
78263 2006-01-10  Bruno Haible  <bruno@clisp.org>
78264
78265         * modules/readutmp: Depend on module free.
78266         * modules/strtok_r: Depend on module restrict.
78267
78268 2006-01-10  Bruno Haible  <bruno@clisp.org>
78269
78270         * modules/gettext (configure.ac): Add an invocation of
78271         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78272
78273 2006-01-10  Bruno Haible  <bruno@clisp.org>
78274
78275         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78276         Reported by Werner Lemberg <wl@gnu.org>.
78277
78278 2006-01-10  Bruno Haible  <bruno@clisp.org>
78279
78280         * lib/localcharset.c: Update from GNU gettext.
78281
78282 2006-01-10  Bruno Haible  <bruno@clisp.org>
78283
78284         * lib/argp.h (__const): Remove macro. Use const instead.
78285         * lib/argp-fmtstream.h (__const): Likewise.
78286         * lib/glob_.h (__const): Remove macro.
78287         * lib/glob-libc.h: Use const instead of __const.
78288
78289 2006-01-10  Bruno Haible  <bruno@clisp.org>
78290
78291         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78292         variable.
78293         Needed to avoid an automake error regarding the 'gettext' module.
78294
78295 2006-01-09  Simon Josefsson  <jas@extundo.com>
78296
78297         * modules/inet_ntop (Depends-on): Add restrict.
78298
78299 2006-01-09  Simon Josefsson  <jas@extundo.com>
78300
78301         * modules/gc-rijndael-tests (License): Put under LGPL.
78302
78303         * modules/gc-des-tests (License): Likewise.
78304
78305         * modules/gc-arcfour-tests (License): Likewise.
78306
78307         * modules/gc-arctwo-tests (License): Likewise.
78308
78309         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78310
78311         * modules/gc-hmac-sha1-tests (Files): Likewise.
78312
78313         * modules/gc-hmac-md5-tests (License): Likewise.
78314
78315         * modules/gc-sha1-tests (License): Likewise.
78316
78317         * modules/gc-md5-tests (License): Likewise.
78318
78319         * modules/gc-md4-tests (License): Likewise.
78320
78321         * modules/gc-md2-tests (License): Likewise.
78322
78323         * modules/gc-tests (License): Likewise.
78324
78325         * modules/des-tests (License): Likewise.
78326
78327         * modules/md4-tests (License): Likewise.
78328
78329         * modules/md2-tests (License): Likewise.
78330
78331 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78332
78333         Sync from coreutils:
78334
78335         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78336         * modules/lib-ignore: New file.
78337         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78338         chdir-safer.m4, lchmod.m4.
78339         * modules/openat: Add mkdirat.c, openat-priv.h.
78340
78341 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         Sync from coreutils.
78344         * m4/lib-ignore.m4: New file.
78345         * m4/lchmod.m4: New file.
78346
78347 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78348
78349         Sync from coreutils.
78350         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78351         for write access: POSIX says that must fail.
78352         * lib/fts.c (diropen): Likewise.
78353         * lib/save-cwd.c (save_cwd): Likewise.
78354         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78355         well, for minor improvements on hosts that lack O_DIRECTORY.
78356         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78357         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78358         Fall back on chown if open failed with EACCES.
78359
78360         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78361         Report an error at compile-time if only a 1-second nominal clock
78362         resolution is found.
78363
78364         * lib/lchmod.h: New file.
78365         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78366         (make_dir_parents): Use lchown rather than chown, and
78367         lchmod rather than chmod.
78368
78369         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78370         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78371         "proc" reported by n0dalus.
78372
78373         * lib/mountlist.c: Include <limits.h>.
78374         (dev_from_mount_options)
78375         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78376         New function.  It no longer assumes "dev=" has the System V meaning
78377         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78378         (read_file_system_list)
78379         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78380         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78381         dev= in that case.
78382
78383         * lib/posixtm.h (PDS_PRE_2000): New macro.
78384         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78385         allow_century.  All usages changed.  Reject dates outside the range
78386         1969-1999 if PDS_PRE_2000 is used.
78387
78388 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         Sync from coreutils.
78391         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78392         (Time of day items): Mention the possibility of leap seconds.
78393         Problem reported by Dr. David Alan Gilbert.
78394
78395 2006-01-09  Jim Meyering  <jim@meyering.net>
78396
78397         Sync from coreutils.
78398
78399         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78400
78401         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78402
78403         * lib/modechange.c (mode_compile): Reject an invalid mode string
78404         that starts with an octal digit.  From Andreas Gruenbacher.
78405
78406         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78407         and dup to open_safer and dup_safer, respectively.
78408         (openat_permissive): Fix typo in comment.
78409
78410         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78411         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78412         (_): Remove; no longer needed.
78413         (openat): Renamed from rpl_openat; no need for rpl_openat
78414         since openat.h renames openat for us.
78415         Replace most of the body with a call to openat_permissive,
78416         to avoid duplicate code.
78417         Port to (probably hypothetical) environments were mode_t is
78418         wider than int.
78419         (openat_permissive): Require mode arg, so that we can check
78420         types better.  Put it just after flags.  Change cwd failure
78421         indicator from pointer-to-bool to pointer-to-errno-value.
78422         All callers changed.
78423         Invoke openat_save_fail and/or openat_restore_fail if
78424         cwd_errno is null, so that openat can call us.
78425         (openat_permissive, fdopendir, fstatat, unlinkat):
78426         Simplify errno handling to avoid some duplicate code,
78427         as it's OK to set errno on success.
78428         * lib/openat.h: Revamp code so that function macros depend on
78429         __OPENAT_PREFIX only, not also on AT_FDCWD.
78430         (openat_ro): Remove.  Caller changed to use openat_permissive.
78431         (openat_permissive): Now a macro, if not a function.
78432         (openat_restore_fail, openat_save_fail): Now always functions,
78433         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78434
78435         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78436         and openat.c.
78437         * lib/mkdirat.c: Include openat-priv.h.
78438         Remove definitions of macros defined therein.
78439         * lib/openat.c: Likewise.
78440
78441         * lib/mkdirat.c (mkdirat): New file and function.
78442         * lib/openat.h (mkdirat): Declare.
78443
78444         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78445
78446         * lib/openat.h (openat_permissive): Declare.
78447         (openat_ro): Define.
78448
78449         * lib/openat.c (EXPECTED_ERRNO): New macro.
78450         (openat_permissive): New function -- used in remove.c rewrite.
78451         (all functions): Set errno just before returning, only if there
78452         was an actual failure.
78453         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78454
78455         Emulate openat-family functions using Linux's procfs, if possible.
78456         Idea and some code based on Ulrich Drepper's glibc changes.
78457
78458         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78459         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78460         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78461         before falling back on save_cwd and restore_cwd.
78462         (fdopendir, fstatat, unlinkat): Likewise.
78463
78464         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78465         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78466
78467         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78468         as second argument to va_arg.  Otherwise, some versions of gcc
78469         warn that `if this code is reached, the program will abort'.
78470
78471 2006-01-09  Jim Meyering  <jim@meyering.net>
78472
78473         Sync from coreutils.
78474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78475         Require openat-priv.h.
78476
78477 2006-01-09  Bruno Haible  <bruno@clisp.org>
78478
78479         * modules/strnlen (Include): Use strnlen.h.
78480
78481 2006-01-09  Bruno Haible  <bruno@clisp.org>
78482
78483         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78484
78485 2006-01-09  Bruno Haible  <bruno@clisp.org>
78486
78487         * lib/sysexit_.h (EX_OK): New macro.
78488         Suggested by Martin Lambers <marlam@marlam.de>.
78489
78490 2006-01-09  Bruno Haible  <bruno@clisp.org>
78491
78492         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78493         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78494
78495 2006-01-09  Bruno Haible  <bruno@clisp.org>
78496
78497         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78498         numbers.
78499
78500 2006-01-09  Bruno Haible  <bruno@clisp.org>
78501
78502         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78503         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78504         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78505         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78506
78507 2006-01-09  Bruno Haible  <bruno@clisp.org>
78508
78509         * build-aux/javacomp.sh.in: New file, moved from lib/.
78510         * modules/javacomp-script (Files): Update.
78511         (configure.ac): Add AC_CONFIG_FILES invocation.
78512         (EXTRA_DIST): Remove variable.
78513
78514         * build-aux/javaexec.sh.in: New file, moved from lib/.
78515         * modules/javaexec (Files): Update.
78516         (configure.ac): Add AC_CONFIG_FILES invocation.
78517         (EXTRA_DIST): Remove javaexec.sh.in.
78518
78519         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78520         * modules/csharpcomp-script (Files): Update.
78521         (configure.ac): Add AC_CONFIG_FILES invocation.
78522         (EXTRA_DIST): Remove variable.
78523
78524         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78525         * modules/csharpexec (Files): Update.
78526         (configure.ac): Add AC_CONFIG_FILES invocation.
78527         (EXTRA_DIST): Remove csharpexec.sh.in.
78528
78529 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78530
78531         Sync from coreutils.
78532
78533         Add POSIX ACL support
78534         * lib/acl.h (copy_acl, set_acl): Add declarations.
78535         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78536         systems other than Linux.
78537         (chmod_or_fchmod): New function: use fchmod when possible,
78538         and chmod otherwise.
78539         (file_has_acl): Add a POSIX ACL implementation, with a
78540         Linux-specific subcase.
78541         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78542         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78543         acls are unsupported.
78544         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78545         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78546         are unsupported.
78547
78548 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78549
78550         Sync from coreutils.
78551         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78552
78553 2006-01-07  Bruno Haible  <bruno@clisp.org>
78554
78555         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78556         gl_EARLY.
78557
78558 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78561         Problem reported for Mingw by Mark Junker.
78562
78563 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * README: Gnulib normally doesn't generate a tarball.
78566
78567 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78570         long int, not int, for nanosecond counts, so that people who are
78571         used to POSIX struct timespec won't be surprised.  Reported by Jim
78572         Meyering.
78573
78574 2005-12-28  Bruno Haible  <bruno@clisp.org>
78575
78576         * build-aux/config.rpath: Update from GNU gettext.
78577
78578 2005-12-16  Jim Meyering  <jim@meyering.net>
78579
78580         * modules/fprintftime: New module.
78581         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78582
78583 2005-12-16  Jim Meyering  <jim@meyering.net>
78584
78585         * m4/fprintftime.m4: New file.
78586
78587 2005-12-16  Jim Meyering  <jim@meyering.net>
78588
78589         * lib/fprintftime.c, lib/fprintftime.h: New files.
78590
78591 2005-12-15  Simon Josefsson  <jas@extundo.com>
78592
78593         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78594         new m4/socklen.m4.
78595
78596 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78597
78598         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78599         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78600
78601 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78602
78603         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78604         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78605         struct uparams is valid. Fall back to the default values if it is
78606         not.
78607
78608 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78609
78610         * modules/argp (Files): Add argp-pin.c
78611         (Depends-on): dirname
78612         (lib_SOURCES): Add argp-pin.c
78613
78614 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78615
78616         * m4/argp.m4:  Check if program_invocation_name and
78617         program_invocation_short_name are declared and define appropriate
78618         macros if they are not.
78619
78620 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78621
78622         * lib/argp-help.c (__argp_base_name): New function
78623         (__argp_short_program_name): Rewrite using __argp_base_name
78624         * lib/argp-namefrob.h: Define program_invocation_name and
78625         program_invocation_short_name if requested
78626         (__argp_base_name): Add prototype
78627         * lib/argp-parse.c (argp_def): Use gettext wrappers
78628         (argp_default_parser): Use __argp_base_name
78629         * lib/argp-pin.c: New file. Defines program_invocation_name and
78630         program_invocation_short_name on systems that lack them.
78631
78632 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78635         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78636         porting problem reported by Georg Schwarz in
78637         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78638
78639 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78640
78641         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78642         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78643         porting problem reported by Georg Schwarz in
78644         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78645
78646 2005-12-05  Bruno Haible  <bruno@clisp.org>
78647
78648         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78649         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78650         Reported by Mark Junker <mjscod@gmx.de>.
78651
78652 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78655         Use implementation from Albert Chin, with some
78656         comments/corrections by Stepan Kasal and myself.
78657
78658 2005-12-02  Bruno Haible  <bruno@clisp.org>
78659
78660         * gnulib-tool (func_import): Accept GPLed build tool modules when
78661         --lgpl is given.
78662         * modules/csharpcomp-script: New file.
78663         * modules/csharpcomp: Depend on it.
78664         * modules/javacomp-script: New file.
78665         * modules/javacomp: Depend on it.
78666         Suggested by Simon Josefsson.
78667
78668 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78669
78670         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78671         statement, to work around an HP-UX 10.20 compiler bug reported by
78672         Peter O'Gorman.
78673
78674 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * modules/savedir (Depends-on): Add openat.
78677
78678 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78681         (uintmax_t) [defined uintmax_t]: Do not declare.
78682         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78683         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78684         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78685         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78686         sake of portability to weird hosts that C allows (though we don't
78687         know of any practical examples).
78688
78689         * lib/savedir.h (fdsavedir): New decl.
78690         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78691         contains most of the former guts of savedir.
78692         (savedir): Use savedirstream.
78693         Include "openat.h".
78694
78695 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * modules/obstack (Files): Add m4/ulonglong.m4.
78698         Problem reported by Davide Angelocola.
78699
78700 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78701
78702         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78703         coreutils no longer futzes with rounding modes.
78704
78705 2005-11-14  Jim Meyering  <jim@meyering.net>
78706
78707         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78708         replacement of mkstemp.
78709
78710 2005-11-10  Simon Josefsson  <jas@extundo.com>
78711
78712         * lib/readline.c: Remove EOL.
78713
78714 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78715
78716         * modules/gethrxtime (Depends-on): Add gettime.
78717
78718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78719
78720         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78721         or gettimeofday; no longer needed.
78722
78723 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78724
78725         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78726         time business.
78727         (gethrxtime) [! (HAVE_NANOUPTIME
78728         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78729         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78730         our own approximation.
78731
78732 2005-11-08  Eric Blake  <ebb9@byu.net>
78733
78734         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78735
78736 2005-11-08  Eric Blake  <ebb9@byu.net>
78737
78738         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78739
78740 2005-11-04  Bruno Haible  <bruno@clisp.org>
78741
78742         * gnulib-tool: Implement --update mode.
78743
78744 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         Fix porting problem reported by Theodoros V. Kalamatianos.
78747         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78748         Don't assume that futimes failing means we must fail.
78749
78750 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78751
78752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78753         variables to suggest the intended function of the PATH_MAX check.
78754
78755 2005-10-30  Kean Johnston  <jkj@sco.com>
78756
78757         Trivial changes to support SCO systems.
78758         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78759         as PATH_MAX.
78760         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78761         where __ptr is null when no I/O is pending.
78762
78763 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78764
78765         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78766         leave errno alone.  Problem reported by Dmitry V. Levin.
78767
78768 2005-10-28  Simon Josefsson  <jas@extundo.com>
78769
78770         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78771         Test more.
78772
78773         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78774
78775         * modules/md2, modules/md2-tests: New files.
78776
78777 2005-10-28  Simon Josefsson  <jas@extundo.com>
78778
78779         * m4/inet_ntop.m4: More tests.
78780
78781         * m4/gc-md2.m4, md2.m4: New file.
78782
78783 2005-10-28  Simon Josefsson  <jas@extundo.com>
78784
78785         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78786         "restrict" keywords, as per POSIX.  Protect the function
78787         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78788         Don't use K&R prototypes.  Check the sprintf return values.
78789         Re-define EAFNOSUPPORT if not present.  Indent.
78790
78791         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78792         suggested by Bruno Haible <bruno@clisp.org>.
78793
78794         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78795
78796         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78797
78798         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78799         libgcrypt).
78800
78801         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78802
78803         * lib/md2.h, lib/md2.c: New files.
78804
78805 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78808         errno alone.  Problem reported by Frederic Jolliton.
78809
78810 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * modules/verify (License): Change from GPL to LGPL.  This is a
78813         tiny module and there are apparently near-equivalents that are
78814         under the BSD license.
78815
78816 2005-10-24  Simon Josefsson  <jas@extundo.com>
78817
78818         * modules/sha1: Relicense to LGPL.
78819
78820 2005-10-24  Simon Josefsson  <jas@extundo.com>
78821
78822         * lib/md4.h: Shrink buffer size, now that we changed the type.
78823
78824 2005-10-23  Simon Josefsson  <jas@extundo.com>
78825
78826         * gnulib-tool (func_import): Fix --tests-base.
78827
78828 2005-10-22  Simon Josefsson  <jas@extundo.com>
78829
78830         * modules/arcfour (Depends-on): Need stdint.
78831
78832 2005-10-22  Simon Josefsson  <jas@extundo.com>
78833
78834         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78835         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78836
78837 2005-10-22  Simon Josefsson  <jas@extundo.com>
78838
78839         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78840         suggested by Bruno Haible <bruno@clisp.org>.
78841
78842 2005-10-22  Simon Josefsson  <jas@extundo.com>
78843
78844         * lib/crc.h: Include stddef.h, for size_t.
78845
78846 2005-10-22  Simon Josefsson  <jas@extundo.com>
78847
78848         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78849         arcfour_context struct (simplify test vector testing in GNU
78850         Shishi).
78851
78852 2005-10-21  Simon Josefsson  <jas@extundo.com>
78853
78854         * modules/des, modules/des-tests: New files.
78855
78856         * modules/gc-des, modules/gc-des-tests: New files.
78857
78858         * tests/test-des.c, tests/test-gc-des.c: New file.
78859
78860 2005-10-21  Simon Josefsson  <jas@extundo.com>
78861
78862         * modules/arctwo, modules/arctwo-tests: New files.
78863
78864         * tests/test-arctwo.c: New file.
78865
78866         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78867
78868         * tests/test-gc-arctwo.c: New file.
78869
78870 2005-10-21  Simon Josefsson  <jas@extundo.com>
78871
78872         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78873         Bruno Haible <bruno@clisp.org>.
78874
78875         * m4/gc-des.m4: New file.
78876
78877 2005-10-21  Simon Josefsson  <jas@extundo.com>
78878
78879         * m4/arctwo.m4: New file.
78880
78881         * m4/gc-arctwo.m4: New file.
78882
78883 2005-10-21  Simon Josefsson  <jas@extundo.com>
78884
78885         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78886         block.
78887
78888 2005-10-21  Simon Josefsson  <jas@extundo.com>
78889
78890         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78891         <bruno@clisp.org>.
78892
78893         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78894
78895         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78896         Bruno Haible <bruno@clisp.org>.
78897
78898         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78899         <bruno@clisp.org>.
78900
78901 2005-10-21  Simon Josefsson  <jas@extundo.com>
78902
78903         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78904
78905 2005-10-21  Simon Josefsson  <jas@extundo.com>
78906
78907         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78908
78909 2005-10-21  Simon Josefsson  <jas@extundo.com>
78910
78911         * lib/des.h, lib/des.c: New files.
78912
78913         * lib/gc-gnulib.c: Support DES.c
78914
78915 2005-10-21  Simon Josefsson  <jas@extundo.com>
78916
78917         * lib/arctwo.h, lib/arctwo.c: New files.
78918
78919         * lib/gc-gnulib.c: Support ARCTWO.
78920
78921 2005-10-21  Simon Josefsson  <jas@extundo.com>
78922
78923         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78924         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78925
78926 2005-10-21  Simon Josefsson  <jas@extundo.com>
78927
78928         * gnulib-tool (func_import, func_create_testdir): Define automake
78929         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78930         Makefile.am snippet),
78931         suggested by Bruno Haible <bruno@clisp.org>.
78932
78933         * modules/gc (Makefile.am): Use it.
78934
78935 2005-10-21  Bruno Haible  <bruno@clisp.org>
78936
78937         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78938         patch.
78939
78940 2005-10-19  Simon Josefsson  <jas@extundo.com>
78941
78942         * tests/test-gc-rijndael.c: New file.
78943
78944         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78945
78946 2005-10-19  Simon Josefsson  <jas@extundo.com>
78947
78948         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78949         interface too.
78950
78951 2005-10-19  Simon Josefsson  <jas@extundo.com>
78952
78953         * tests/test-gc-arcfour.c: New file.
78954
78955         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78956
78957 2005-10-19  Simon Josefsson  <jas@extundo.com>
78958
78959         * modules/gc-md4, modules/gc-md4-tests: New file.
78960
78961         * tests/test-gc-md4.c: New file.
78962
78963 2005-10-19  Simon Josefsson  <jas@extundo.com>
78964
78965         * m4/gc-md4.m4: New file.
78966
78967 2005-10-19  Simon Josefsson  <jas@extundo.com>
78968
78969         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78970         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78971         <kasal@ucw.cz>.
78972
78973 2005-10-19  Simon Josefsson  <jas@extundo.com>
78974
78975         * m4/gc-arcfour.m4: New file.
78976
78977         * m4/gc-rijndael.m4: New file.
78978
78979 2005-10-19  Simon Josefsson  <jas@extundo.com>
78980
78981         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78982
78983 2005-10-19  Simon Josefsson  <jas@extundo.com>
78984
78985         * lib/gc-gnulib.c: Support ARCFOUR.
78986
78987 2005-10-19  Simon Josefsson  <jas@extundo.com>
78988
78989         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78990         support.
78991
78992         * lib/gc.h: Add ECB enum type.
78993
78994         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78995
78996 2005-10-18  Simon Josefsson  <jas@extundo.com>
78997
78998         * tests/test-md5.c: New file.
78999
79000         * modules/md5-tests: New file.
79001
79002 2005-10-18  Simon Josefsson  <jas@extundo.com>
79003
79004         * tests/test-md4.c: New file.
79005
79006         * modules/md4, modules/md4-tests: New files.
79007
79008 2005-10-18  Simon Josefsson  <jas@extundo.com>
79009
79010         * m4/md4.m4: New file.
79011
79012 2005-10-18  Simon Josefsson  <jas@extundo.com>
79013
79014         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79015
79016 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79017
79018         * gnulib-tool (func_create_testdir): Omit the second check whether
79019         BUILT_SOURCES in nonempty.
79020
79021 2005-10-17  Simon Josefsson  <jas@extundo.com>
79022
79023         * tests/test-rijndael.c: New file.
79024
79025 2005-10-17  Simon Josefsson  <jas@extundo.com>
79026
79027         * modules/sha1: Depend on stdint instead of md5.
79028
79029         * modules/md5: Depend on stdint, remove uint32_t.
79030
79031 2005-10-17  Simon Josefsson  <jas@extundo.com>
79032
79033         * modules/gc-sha1-tests: New file.
79034
79035         * tests/test-gc-sha1.c: New file.
79036
79037 2005-10-17  Simon Josefsson  <jas@extundo.com>
79038
79039         * m4/md5.m4: Remove call to uint32_t.m4.
79040
79041 2005-10-17  Simon Josefsson  <jas@extundo.com>
79042
79043         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79044
79045         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79046         md5.h.
79047
79048         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79049
79050         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79051
79052 2005-10-17  Simon Josefsson  <jas@extundo.com>
79053
79054         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79055
79056 2005-10-17  Simon Josefsson  <jas@extundo.com>
79057
79058         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79059
79060 2005-10-17  Simon Josefsson  <jas@extundo.com>
79061
79062         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79063
79064         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79065
79066 2005-10-17  Bruno Haible  <bruno@clisp.org>
79067
79068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79069         that it can also be used in a test.
79070
79071 2005-10-16  Bruno Haible  <bruno@clisp.org>
79072
79073         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79074         TESTS_ENVIRONMENT, so that individual tests can augment it.
79075
79076         * gnulib-tool (func_create_testdir): Use an intermediate target for
79077         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79078         macros, like $(ALLOCA_H), which cannot be passed through the command
79079         line.
79080
79081 2005-10-15  Simon Josefsson  <jas@extundo.com>
79082
79083         * modules/rijndael-tests: New file.
79084
79085         * modules/rijndael: New file.
79086
79087 2005-10-15  Simon Josefsson  <jas@extundo.com>
79088
79089         * m4/rijndael.m4: New file.
79090
79091 2005-10-15  Simon Josefsson  <jas@extundo.com>
79092
79093         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79094
79095         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79096
79097 2005-10-14  Simon Josefsson  <jas@extundo.com>
79098
79099         * tests/test-arcfour.c: New file.
79100
79101         * modules/arcfour, modules/arcfour-tests: New files.
79102
79103 2005-10-14  Simon Josefsson  <jas@extundo.com>
79104
79105         * m4/arcfour.m4: New file.
79106
79107 2005-10-14  Simon Josefsson  <jas@extundo.com>
79108
79109         * lib/arcfour.h, lib/arcfour.c: New files.
79110
79111 2005-10-14  Roland McGrath  <roland@redhat.com>
79112
79113         Import from libc.  [BZ #1331]
79114         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79115         macro argument.
79116         Reported by Matej Vela <vela@debian.org>.
79117
79118 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79121         include <wchar.h>; no longer needed.
79122
79123 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79124
79125         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79126
79127 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79128         and  Ulrich Drepper  <drepper@redhat.com>
79129
79130         Import from libc.
79131         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79132         instead of inline stream orientation test and two separate
79133         function calls.  Pay no attention to USE_IN_LIBIO.
79134
79135 2005-10-13  Simon Josefsson  <jas@extundo.com>
79136
79137         * modules/gc-hmac-md5-tests: New file.
79138
79139         * tests/test-gc-hmac-sha1.c: New file.
79140
79141         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79142
79143         * modules/gc-hmac-md5-tests: New file.
79144
79145         * tests/test-gc-md5.c: New file.
79146
79147         * modules/gc-md5-tests: New file.
79148
79149 2005-10-13  Simon Josefsson  <jas@extundo.com>
79150
79151         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79152         Move memory allocation outside of loop.
79153
79154 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79157         intermediate directory is in a read-only file system.  Problem
79158         reported by Eric Blake.
79159
79160 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79161
79162         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79163
79164 2005-10-12  Simon Josefsson  <jas@extundo.com>
79165
79166         * tests/test-hmac-sha1.c: New file.
79167
79168         * modules/hmac-sha1-tests: New file.
79169
79170         * modules/hmac-sha1: New file.
79171
79172 2005-10-12  Simon Josefsson  <jas@extundo.com>
79173
79174         * modules/gc-sha1: New file.
79175
79176 2005-10-12  Simon Josefsson  <jas@extundo.com>
79177
79178         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79179
79180         * tests/test-gc-pbkdf2-sha1.c: New file.
79181
79182 2005-10-12  Simon Josefsson  <jas@extundo.com>
79183
79184         * modules/gc-md5, modules/gc-hmac-md5: New files.
79185
79186         * modules/gc (Files): Remove md5, memxor and hmac files.
79187
79188 2005-10-12  Simon Josefsson  <jas@extundo.com>
79189
79190         * m4/gc-pbkdf2-sha1.m4: New file.
79191
79192         * m4/gc-hmac-sha1.m4: New file.
79193
79194         * m4/gc-sha1: New file.
79195
79196         * m4/hmac-sha1.m4: New file.
79197
79198 2005-10-12  Simon Josefsson  <jas@extundo.com>
79199
79200         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79201
79202         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79203
79204 2005-10-12  Simon Josefsson  <jas@extundo.com>
79205
79206         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79207         suggested by Bruno Haible <bruno@clisp.org>.
79208
79209 2005-10-12  Simon Josefsson  <jas@extundo.com>
79210
79211         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79212
79213 2005-10-12  Simon Josefsson  <jas@extundo.com>
79214
79215         * lib/gc-pbkdf2-sha1.c: New file.
79216
79217         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79218
79219 2005-10-12  Simon Josefsson  <jas@extundo.com>
79220
79221         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79222
79223         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79224
79225 2005-10-12  Simon Josefsson  <jas@extundo.com>
79226
79227         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79228         GC_USE_HMAC_MD5, respectively.
79229
79230         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79231         (gc_md5): Fix typo.
79232
79233         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79234
79235         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79236
79237         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79238
79239 2005-10-12  Bruno Haible  <bruno@clisp.org>
79240
79241         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79242         Reported by Stepan Kasal <kasal@ucw.cz>.
79243
79244 2005-10-11  Simon Josefsson  <jas@extundo.com>
79245
79246         * tests/test-crc.c: New file.
79247
79248         * modules/crc, modules/crc-tests: New files.
79249
79250 2005-10-11  Simon Josefsson  <jas@extundo.com>
79251
79252         * m4/crc.m4: New file.
79253
79254 2005-10-11  Simon Josefsson  <jas@extundo.com>
79255
79256         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79257
79258         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79259
79260         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79261
79262 2005-10-11  Simon Josefsson  <jas@extundo.com>
79263
79264         * lib/crc.h, lib/crc.c: New files.
79265
79266         * lib/gc.h (gc_hash_buffer): Add doc.
79267
79268 2005-10-11  Bruno Haible  <bruno@clisp.org>
79269
79270         * modules/c-strcasestr: New file.
79271         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79272
79273 2005-10-11  Bruno Haible  <bruno@clisp.org>
79274
79275         * modules/c-strcase: New file.
79276         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79277
79278 2005-10-11  Bruno Haible  <bruno@clisp.org>
79279
79280         * lib/strcasecmp.c: Include limits.h.
79281         (strcasecmp): Avoid integer overflow on exotic platforms.
79282         * lib/strncasecmp.c: Include limits.h.
79283         (strncasecmp): Avoid integer overflow on exotic platforms.
79284         Reported by Paul Eggert.
79285
79286 2005-10-11  Bruno Haible  <bruno@clisp.org>
79287
79288         * lib/c-strcasestr.h: New file, from GNU gettext.
79289         * lib/c-strcasestr.c: New file, from GNU gettext.
79290
79291 2005-10-11  Bruno Haible  <bruno@clisp.org>
79292
79293         * lib/c-strcase.h: New file, from GNU gettext.
79294         * lib/c-strcasecmp.c: New file, from GNU gettext.
79295         * lib/c-strncasecmp.c: New file, from GNU gettext.
79296
79297 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         * modules/mempcpy (License): GPL -> LGPL.
79300         * modules/strchrnul (License): Likewise.
79301         * modules/sysexits (License): Likewise.
79302
79303 2005-10-08  Simon Josefsson  <jas@extundo.com>
79304
79305         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79306
79307 2005-10-07  Simon Josefsson  <jas@extundo.com>
79308
79309         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79310
79311 2005-10-06  Simon Josefsson  <jas@extundo.com>
79312
79313         * tests/test-hmac-md5.c: New file.
79314
79315         * modules/hmac-md5-tests: New file.
79316
79317         * modules/hmac-md5: New file.
79318
79319 2005-10-06  Simon Josefsson  <jas@extundo.com>
79320
79321         * m4/hmac-md5.m4: New file.
79322
79323         * m4/memxor.m4: Require gl_C_RESTRICT.
79324
79325 2005-10-06  Simon Josefsson  <jas@extundo.com>
79326
79327         * lib/memxor.c (memxor): Avoid casts and warnings.
79328
79329 2005-10-06  Simon Josefsson  <jas@extundo.com>
79330
79331         * lib/hmac-md5.c: New file.
79332
79333         * lib/hmac.h: New file.
79334
79335 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79338         promotes to int, not unsigned int, to catch the AIX 5.3
79339         compiler bug.
79340
79341 2005-10-05  Simon Josefsson  <jas@extundo.com>
79342
79343         * modules/memxor: New file.
79344
79345         * modules/iconv (Files): Move config.rpath to havelib, it is used
79346         there.
79347
79348         * modules/havelib (Files): Add config.rpath.
79349
79350 2005-10-05  Simon Josefsson  <jas@extundo.com>
79351
79352         * m4/memxor.m4: New file.
79353
79354 2005-10-05  Simon Josefsson  <jas@extundo.com>
79355
79356         * lib/memxor.c (memxor): Fix compiler error.
79357
79358         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79359         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79360
79361         * lib/memxor.h, lib/memxor.c: New files.
79362
79363         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79364         we assume all systems have it, suggested by Jim Meyering
79365         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79366         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79367         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79368         same reasons.
79369
79370 2005-10-05  Simon Josefsson  <jas@extundo.com>
79371
79372         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79373
79374 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79377         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79378         needed, since the source code now assumes these .h files.
79379
79380 2005-10-05  Derek Price  <derek@ximbiot.com>
79381
79382         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79383
79384 2005-10-05  Bruno Haible  <bruno@clisp.org>
79385
79386         * modules/stdint (License): Change to LGPL.
79387
79388 2005-10-04  Simon Josefsson  <jas@extundo.com>
79389
79390         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79391         D. Baushke" <mdb@gnu.org>.
79392
79393 2005-10-04  Bruno Haible  <bruno@clisp.org>
79394
79395         * lib/verify.h (verify_true): Provide alternative definition for C++.
79396
79397 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79400         (SSIZE_MAX): New macro, if not already defined.
79401         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79402         than 2 GiB.
79403
79404 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         Sync from coreutils.
79407         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79408         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79409         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79410         ULLONG_MAX doesn't work with 2.7.2.1.
79411
79412 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79415         From Ben Pfaff.
79416
79417         * modules/exclude (Depends-on): Depend on verify.
79418         * modules/strtoimax (Depends-on): Likewise.
79419         * modules/utimecmp (Depends-on): Likewise.
79420
79421 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         * lib/exclude.c: Include verify.h.
79424         (verify): Remove.  All callers changed to use verify.h's version.
79425         * lib/strtoimax.c: Likewise.
79426         * lib/utimecmp.c: Likewis.e
79427
79428         Sync from coreutils.
79429         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79430         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79431         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79432         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79433         bother returning ENOSYS if settimeofday or stime fails; just let
79434         them return whatever errno they want to return.
79435         * lib/utimens.c: Include unistd.h, for dup2.
79436         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79437         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79438
79439 2005-10-02  Jim Meyering  <jim@meyering.net>
79440
79441         Sync from coreutils.
79442         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79443         from glibc-2.2.5 that fails for read-only files.
79444
79445 2005-10-02  Jim Meyering  <jim@meyering.net>
79446
79447         Sync from coreutils.
79448         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79449         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79450         `#if HAVE_CONFIG_H'.
79451         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79452         Remove AT_FDCWD test.
79453         Do not consume the fd unless successful.
79454         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79455         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79456         block, so that we don't even try to compile it if settimeofday is
79457         available.  This works around a compilation failure on OSF1 V5.1,
79458         due to stime requiring a `long int*' while tv_sec is `int'.
79459
79460 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79461
79462         Sync from coreutils.
79463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79464         against `yes', rather than just testing for nonempty.
79465
79466 2005-10-01  Simon Josefsson  <jas@extundo.com>
79467
79468         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79469         and Darwin.
79470
79471         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79472         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79473         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79474         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79475         Check if struct addrinfo is declared.
79476
79477 2005-10-01  Simon Josefsson  <jas@extundo.com>
79478
79479         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79480         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79481         AI_* and EAI_* definitions.  Protect function declarations.
79482
79483 2005-10-01  Jim Meyering  <jim@meyering.net>
79484
79485         Sync from coreutils.
79486
79487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79488         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79489         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79491         in the inet and nsl libraries.  Required on Solaris 5.7.
79492
79493 2005-10-01  Jim Meyering  <jim@meyering.net>
79494
79495         Sync from coreutils.
79496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79497         in the inet and nsl libraries.  Required on Solaris 5.7.
79498
79499 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79500
79501         * lib/getdelim.c (getdelim): Remove unused variables.
79502
79503 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79506         so that the code works even with ancient cpp.  Portability problem
79507         with GCC 2.7.2.1 reported by Thomas M.Ott.
79508
79509 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79510
79511         * modules/regex (Depends-on): Add strcase.
79512
79513         * modules/gethostname (Licence): Change from GPL to LGPL, since
79514         gethostname.c is a trivial implementation of a standard library
79515         function.
79516         * modules/poll (License): Change from GPL to LGPL, since it's
79517         derived from LGPL code.
79518
79519 2005-09-27  Jim Meyering  <jim@meyering.net>
79520
79521         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79522         HAVE_CONFIG_H.
79523
79524         * lib/intprops.h (signed_type_or_expr__): Define.
79525         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79526         for unsigned types.
79527
79528 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * lib/verify.h (verify_expr): Remove, replacing with:
79531         (verify_true): New macro that returns true instead of void.
79532         (verify_type__): Remove.
79533         (verify): Use verify_true rather than verify_type__.
79534
79535 2005-09-26  Bruno Haible  <bruno@clisp.org>
79536
79537         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79538         is necessary.
79539         (lib_SOURCES): Remove mbchar.c.
79540         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79541         (Files): Add m4/mbrtowc.m4.
79542         * modules/mbiter: Likewise.
79543         * modules/mbuiter: Likewise.
79544
79545 2005-09-26  Bruno Haible  <bruno@clisp.org>
79546
79547         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79548         compile mbchar.c if they are not both present.
79549         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79550         * m4/mbiter.m4 (gl_MBITER): Likewise.
79551         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79552         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79553         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79554
79555 2005-09-25  Jim Meyering  <jim@meyering.net>
79556
79557         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79558         also uses socklen_t.
79559
79560 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * lib/utimens.c (ENOSYS): Define if not already defined.
79563         (futimens): Support having a null PATH if the file descriptor
79564         is nonnegative.
79565
79566         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79567         Remove.
79568         (__attribute): Define to empty unless GCC 3.1 or later.
79569         This works around a core dump on OpenBSD 3.4, which has GCC
79570         2.95.3, which dumps core when given __attribute__(()).  It also
79571         simplifies other tests, since we really don't want to bother with
79572         worrying about which ancient version of GCC supported what.
79573         Original problem reported by Yoann Vandoorselaere, with part of
79574         the fix suggested by Derek Price.
79575
79576 2005-09-24  Jim Meyering  <jim@meyering.net>
79577
79578         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79579         so we can once again use a positive bitfield width of 1 -- now we
79580         don't have to explain why we were using a bitfield width of 2.
79581
79582 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79585         and similarly for the other external symbols.  Problem reported
79586         by James Gallager.
79587
79588         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79589         bug reported by Jim Meyering.
79590
79591         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79593         not needed, since socklen is a prerequisite module.
79594
79595 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79596
79597         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79598         Problem reported by Eric Blake.
79599         (getaddrinfo): Initialize se so that it's not garbage.
79600         Redo internal storage allocation so that it doesn't make unportable
79601         assumptions about alignment.
79602         Fix a memory leak.
79603
79604         * lib/utimens.c (futimens): Use futimesat if available.
79605         Prefer it to futimes since it doesn't have the futimes bug.
79606
79607         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79608         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79609         Instead, declare a function that returns a pointer to an array,
79610         and use verify_type__ to declare the size of the array.
79611         Problem and germ of a solution reported by Bruno Haible.
79612         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79613         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79614
79615 2005-09-23  Jim Meyering  <jim@meyering.net>
79616
79617         Sync from coreutils.
79618         Correct build failure (socklen_t not defined) on at least
79619         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79620         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79621
79622 2005-09-23  Jim Meyering  <jim@meyering.net>
79623
79624         * modules/getaddrinfo (Depends-on): Add socklen.
79625
79626 2005-09-23  Bruno Haible  <bruno@clisp.org>
79627
79628         * tests/test-verify.c: New file.
79629
79630 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         Sync from coreutils.
79633
79634         * modules/argmatch (Depends-on): Add verify.
79635         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79636         unistd-safer.
79637         * modules/save-cwd (Depends-on): Likewise.
79638
79639         * modules/openat (Files): Add lib/openat-die.c.
79640         (Depends-on): Remove error, exitfail.
79641         Add dirname.
79642
79643         * modules/verify: New file.
79644         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79645         with "verify" module.
79646
79647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79648
79649         Sync from coreutils.
79650
79651         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79652         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79653         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79654         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79655         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79656         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79657         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79658         Don't bother checking for string.h, stdlib.h, unistd.h.
79659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79660         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79661         module's job.
79662         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79663         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79664
79665         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79666         (gl_GETDATE): Use it.
79667
79668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79669
79670 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         Sync from coreutils.
79673
79674         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79675         stat-time.h.
79676         * lib/argmatch.h: Include verify.h
79677         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79678         (ARGMATCH_ASSERT): Remove; unused.
79679         * lib/canonicalize.c: Assume STDC_HEADERS.
79680         * lib/exclude.c: Include "strcase.h".
79681         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79682         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79683         and stdio-safer.h.
79684         (getusershell): Call fopen, not fopen_safer.
79685         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79686         Do not include unistd-safer.h.
79687         (save_cwd): Don't call fd_safer; no longer needed
79688         now that we include fcntl--.h.
79689
79690         * lib/getdate.y (relative_time): New type.
79691         (RELATIVE_TIME_0): New constant.
79692         (parser_control): Use relative_time instead of doing it ourselves.
79693         (%union): Add new relative_time rel member.
79694         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79695         Now typeless.
79696         (relunit, relunit_snumber): Now of type rel.
79697         (zone, rel, relunit, get_date): Adjust to above changes.
79698
79699         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79700         Do not include unistd-safer.h.
79701         (getloadavg): Don't call fd_safer; no longer needed
79702         now that we include fcntl--.h.
79703
79704         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79705         (make_dir_parents): Treat ENOSYS like EEXIST.
79706
79707         Improve quality of diagnostics on restore_cwd failure.
79708         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79709         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79710         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79711         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79712         each time through the loop.  Do not diagnose restore_cwd failure;
79713         that is the caller's job (and perhaps the caller does not care).
79714
79715         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79716         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79717         If the file already exists but is not a directory, don't bother
79718         to try to make its parents.
79719         Close potential file descriptor leak if we can't chdir("/") (!).
79720         Don't always return true if chdir($PWD) fails; return true only
79721         if the requested action was done successfully (except for the
79722         chdir($PWD)).
79723         Don't log final directory unless we actually made it.
79724         Refactor to avoid duplicate code to fix up permissions.
79725         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79726
79727         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79728         to make it a bit faster and (I hope) clearer.
79729         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79730         Fix bug in formats like %2N.
79731
79732         * lib/verify.h: New file.
79733
79734 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79735
79736         Sync from coreutils.
79737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79738
79739 2005-09-22  Jim Meyering  <jim@meyering.net>
79740
79741         Sync from coreutils.
79742
79743         * m4/lstat.m4 (gl_FUNC_LSTAT):
79744         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79745         Remove obsolete comment.
79746         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79747         * m4/xstrtod.m4: Likewise.
79748
79749         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79750
79751 2005-09-22  Jim Meyering  <jim@meyering.net>
79752
79753         Sync from coreutils.
79754
79755         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79756
79757         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79758         the .tm_year member, since otherwise gcc-4.0 would now warn about
79759         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79760
79761         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79762         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79763
79764         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79765         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79766         when run in a time zone for which daylight savings time is in effect
79767         for the starting date.
79768
79769         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79770         stop us from restricting permissions of just-created absolute-named
79771         directories.
79772         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79773         to restore initial working directory.
79774         * lib/mkdir-p.c (make_dir_parents): New parameter:
79775         different_working_dir, to tell caller if/when we change the working
79776         directory and are unable to return to the initial one.
79777         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79778         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79779         `return false'.  This fixes a bug introduced on 2004-07-30.
79780
79781         * lib/openat.c (fdopendir): Be sure to close the supplied
79782         file descriptor before returning.  This makes our replacement
79783         implementation a little closer to Solaris's, where fdopendir
79784         ties the file descriptor to the returned DIR* pointer.
79785         * lib/openat.c (unlinkat): New function.
79786         * lib/openat.h (unlinkat): Add prototype.
79787         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79788         (openat_restore_fail): Rename from openat_restore_die.
79789         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79790
79791         Provide an alternative to exiting immediately upon save_cwd or
79792         restore_cwd failure.  Now, an application can arrange e.g.,
79793         to perform a longjump in that case.
79794         * lib/openat.c: Include dirname.h.
79795         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79796         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79797         and openat_restore_die rather than calling error directly.
79798         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79799
79800         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79801         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79802         define.
79803
79804         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79805         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79806                             int utc, int nanoseconds);
79807         Background:
79808         date should not have to allocate a megabyte of virtual memory to
79809         handle a format argument like +%1048575T.  When implemented with
79810         strftime, it must allocate such a buffer, use strftime to fill it
79811         in, print it, then free it.
79812         With fprintftime, it simply prints everything and exits.
79813         With no need for memory allocation, that's one fewer way to fail.
79814         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79815         optional field width, not before, so we accept %9:z, not %:9z.
79816         (my_strftime): Be sure to use L_('x') for literals.
79817
79818         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79819         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79820         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79821         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79822         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79823         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79824         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79825         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79826         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79827         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79828         * lib/xgethostname.c, lib/xreadlink.c:
79829         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79830
79831         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79832         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79833         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79834         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79835         and don't include <sys/file.h>).
79836
79837 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79838
79839         Sync from coreutils.
79840
79841         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79842         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79843         [!LDAV_DONE]: Avoid unused variable warning.
79844
79845 2005-09-21  Bruno Haible  <bruno@clisp.org>
79846
79847         * lib/unicodeio.h (unicode_to_mb): New declaration.
79848
79849 2005-09-20  Derek Price  <derek@ximbiot.com>
79850
79851         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79852         getaddrinfo.h.
79853
79854 2005-09-20  Bruno Haible  <bruno@clisp.org>
79855
79856         * gnulib-tool: Remove trailing slashes from the values specified for
79857         --source-base, --m4-base, --tests-base, --aux-dir.
79858         Suggested by Simon Josefsson <jas@extundo.com>.
79859
79860 2005-09-20  Bruno Haible  <bruno@clisp.org>
79861
79862         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79863         func_modules_to_filelist, func_import, func_create_testdir): Make all
79864         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79865         change when gnulib-tool is invoked in a different locale.
79866
79867 2005-09-19  Simon Josefsson  <jas@extundo.com>
79868
79869         * m4/socklen.m4: Fix typo.
79870
79871 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79872
79873         Use a consistent style for including <config.h>.
79874         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79875         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79876         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79877         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79878         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79879         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79880         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79881         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79882         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79883         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79884         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79885         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79886         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79887         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79888         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79889         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79890         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79891         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79892         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79893         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79894         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79895         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79896         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79897         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79898         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79899         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79900         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79901         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79902         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79903         lib/xstrtoumax.c, lib/yesno.c:
79904         Standardize inclusion of config.h.
79905         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79906         lib/inttostr.h:  Removed inclusion of config.h from header files.
79907         * lib/inttostr.c:  Adjusted in-tree users.
79908         * lib/timespec.h: Remove superfluous warning to include config.h.
79909         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79910         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79911         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79912         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79913         config.h with HAVE_CONFIG_H.
79914
79915 2005-09-19  Jim Meyering  <jim@meyering.net>
79916
79917         * modules/pathmax (License): Change to LGPL.
79918
79919 2005-09-19  Derek Price  <derek@ximbiot.com>
79920
79921         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79922
79923 2005-09-19  Bruno Haible  <bruno@clisp.org>
79924
79925         * gnulib-tool (import): Provide default for --tests-base.
79926
79927 2005-09-19  Bruno Haible  <bruno@clisp.org>
79928
79929         * doc/quote.texi: New file, extracted from gnulib.texi.
79930         * doc/ctime.texi: New file, extracted from gnulib.texi.
79931         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79932         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79933         * doc/gnulib.texi: Include them.
79934
79935 2005-09-18  Bruno Haible  <bruno@clisp.org>
79936
79937         Portability fix.
79938         * gnulib-tool (func_readlink): New function.
79939         (func_ln_if_changed): Use it.
79940
79941 2005-09-18  Bruno Haible  <bruno@clisp.org>
79942
79943         * gnulib-tool: Support --with-tests also with --import.
79944         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79945         (func_import): Use variables $testsbase and $inctests. Emit a
79946         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79947         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79948         SUBDIRS += $testsdir.
79949         (func_create_testdir): Update.
79950
79951 2005-09-18  Bruno Haible  <bruno@clisp.org>
79952
79953         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79954         instead of $dry_run.
79955         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79956         (func_ln_if_changed): Don't handle dry-run here.
79957         (func_import): In dry-run mode, detect more precisely which actions
79958         would be performed, and don't use "...ing" verbs.
79959
79960 2005-09-18  Bruno Haible  <bruno@clisp.org>
79961
79962         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79963         (func_import): Use join on two temporary files instead of three nested
79964         loops, in order to determine which files are new or old.
79965
79966 2005-09-18  Bruno Haible  <bruno@clisp.org>
79967
79968         * gnulib-tool (func_import): Comment out code that spits out the
79969         new files with --dry-run.
79970
79971 2005-09-18  Bruno Haible  <bruno@clisp.org>
79972
79973         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79974
79975 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79976
79977         * lib/stat-time.h: New file.
79978         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79979         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79980         in a different way.
79981         (timespec_cmp): New function.
79982         * lib/utimecmp.c: Include stat-time.h.
79983         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79984         members exist, not on the obsolescent ST_MTIM_NSEC.
79985         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79986
79987 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79990
79991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * MODULES.html.sh (File system functions): Add stat-time.
79994         * modules/stat-time: New file.
79995         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79996         is now done in a different way, by the stat-time module.
79997         * modules/utimecmp (Depends-on): Add stat-time.
79998
79999 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80000
80001         * m4/st_mtim.m4: Remove.  Superseded by...
80002         * m4/stat-time.m4: New file.
80003         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80004         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80005
80006 2005-09-15  Derek Price  <derek@ximbiot.com>
80007
80008         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80009
80010 2005-09-15  Derek Price  <derek@ximbiot.com>
80011
80012         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80013         * lib/regex_internal.c: Ditto, using this...
80014         (__GNUC_PREREQ): ...new macro.
80015         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80016         using...
80017         (__GNUC_PREREQ): ...this new macro.
80018
80019         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80020
80021 2005-09-15  Derek Price  <derek@ximbiot.com>
80022             Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80025         changes, consolidating in...
80026         * lib/regex_internal.h: ...this file.
80027
80028 2005-09-13  Jim Meyering  <jim@meyering.net>
80029
80030         * lib/canon-host.c: Filter through gnu indent and reword comments
80031         slightly.
80032         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80033
80034 2005-09-13  Derek Price  <derek@ximbiot.com>
80035
80036         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80037         failure.
80038         Reported by Jim Meyering  <jim@meyering.net>.
80039
80040 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80041
80042         * lib/base64.c: Typo.
80043         (base64_encode): Put b64str in initialized data section.
80044
80045 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         Merge glibc and coreutils changes into gnulib, plus a few
80048         extra fixes.
80049         * lib/md5.c: Use #error rather than a string.
80050         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80051         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80052         (__attribute__): Define to empty for non recent-GCC.
80053         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80054         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80055         Renamed from their non-__ counterparts, with new macros replacing
80056         them if not _LIBC.  Add __THROW attribute.
80057         (rol): Remove.
80058         (struct md5_ctx): Align buffer if using GCC.
80059         * lib/sha1.h (struct sha1_ctx): Likewise.
80060         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80061         The old name was backwards.
80062         (NOTSWAP): Remove; not used.
80063         (rol): New macro, moved here from md5.h.
80064         (sha1_process_block): Remove a FIXME that doesn't make sense.
80065
80066 2005-09-12  Derek Price  <derek@ximbiot.com>
80067
80068         Return usable errors from canon-host.
80069         * lib/canon-host.h: New file.
80070         * lib/canon-host.c (canon_host): Wrap...
80071         (canon_host_r): ...this new function, which now relies exclusively on
80072         getaddrinfo.
80073         (ch_strerror): New function.
80074         (last_cherror): New global.
80075         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80076         interface.
80077         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80078         void *.
80079         (freeaddrinfo): Free ai->ai_canonname when set.
80080
80081 2005-09-12  Derek Price  <derek@ximbiot.com>
80082
80083         Make canon-host require getaddrinfo.
80084         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80085         AC_LIBSOURCE canon-host.h.  Call...
80086         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80087         gl_GETADDRINFO.
80088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80089
80090 2005-09-12  Derek Price  <derek@ximbiot.com>
80091
80092         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80093         LGPL.
80094         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80095
80096 2005-09-12  Derek Price  <derek@ximbiot.com>
80097
80098         * lib/gai_strerror.c: Include config.h when available.  Include
80099         getaddrinfo.h before other headers to test interface.
80100         Reported by Larry Jones <lawrence.jones@ugs.com>.
80101
80102 2005-09-12  Derek Price  <derek@ximbiot.com>
80103             Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * modules/glob (Files): Add glob-libc.h.
80106
80107 2005-09-12  Derek Price  <derek@ximbiot.com>
80108             Paul Eggert  <eggert@cs.ucla.edu>
80109
80110         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80111         glob_.h, glob-libc.h.
80112         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80113
80114 2005-09-12  Derek Price  <derek@ximbiot.com>
80115             Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80118         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80119         protecting things that should be done only in gnulib contexts.
80120         * lib/glob_.h: New file, containing only the glob things needed for
80121         gnulib.
80122         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80123         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80124         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80125         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80126         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80127         and to respect the namespace rules better.
80128
80129 2005-09-08  Simon Josefsson  <jas@extundo.com>
80130
80131         * modules/socklen: New file.
80132
80133 2005-09-08  Simon Josefsson  <jas@extundo.com>
80134
80135         * m4/socklen.m4: New file.
80136
80137 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80138
80139         * modules/utimens (Files): Add m4/utimbuf.m4, since
80140         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80141         Reported by Sergey Poznyakoff.
80142
80143 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80144
80145         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80146         definitions, since that's the preferred style in glibc.
80147         Fix a minor spacing issue, and update copyright notice to match
80148         glibc's.
80149
80150 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80151
80152         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80153
80154 2005-09-06  Simon Josefsson  <jas@extundo.com>
80155
80156         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80157         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80158
80159 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80160
80161         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80162         warning.
80163
80164 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80165
80166         * config/srclist.txt: Add glibc bug 1302.
80167
80168 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         Change bitset word type from unsigned int to unsigned long int,
80171         as this has better performance on typical 64-bit hosts.
80172         Port bitset code to hosts with unusual word sizes.
80173         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80174         (build_collating_symbol):
80175         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80176         argument is a bitset.  This is merely a style issue, but it makes
80177         it clearer that an entire array is expected.
80178         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80179         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80180         Port to the case where bitset_word is not the same as unsigned int.
80181         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80182         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80183         Likewise.
80184         * lib/regexec.c (check_dst_limits_calc_pos_1,
80185         check_subexp_matching_top):
80186         (build_trtable, group_nodes_into_DFAstates):
80187         Likewise.
80188         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80189         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80190         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80191         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80192         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80193         * lib/regcomp.c (optimize_subexps, lower_subexp):
80194         Work even if bitset_word has holes in its bitwise representation.
80195         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80196         * lib/regexec.c (check_dst_limits_calc_pos_1,
80197         check_subexp_matching_top):
80198         Likewise.
80199         * lib/regex_internal.c (re_string_reconstruct):
80200         Don't assume UCHAR_MAX == 255.
80201         * lib/regex_internal.h (bitset_set_all): Likewise.
80202         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80203         All uses changed.
80204         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80205         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80206         All uses changed.
80207         (BITSET_WORD_MAX): New macro.
80208         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80209         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80210         (bitset_empty, bitset_copy):
80211         Prefer sizeof (bitset) to multiplying it out ourselves.
80212         (bitset_not_merge): Remove; unused.
80213         (bitset_contain): Return bool, not unsigned int with one bit on.
80214         All callers changed.
80215         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80216         alignment than re_node_set; do this by defining a new internal
80217         type struct dests_alloc and using it to allocate memory.
80218
80219 2005-09-05  Bruno Haible  <bruno@clisp.org>
80220
80221         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80222         links.
80223
80224 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80225
80226         * modules/size_max (Makefile.am): Add size_max.h
80227
80228 2005-09-04  Derek Price  <derek@ximbiot.com>
80229
80230         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80231
80232 2005-09-03  Simon Josefsson  <jas@extundo.com>
80233
80234         * gnulib-tool: Fix typo.
80235
80236 2005-09-03  Simon Josefsson  <jas@extundo.com>
80237
80238         * config/srclist.txt: Add glibc bug 1293.
80239
80240 2005-09-03  Derek Price  <derek@ximbiot.com>
80241
80242         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80243         From Larry Jones <lawrence.jones@ugs.com>.
80244
80245 2005-09-02  Simon Josefsson  <jas@extundo.com>
80246
80247         * modules/socklen: New file.
80248
80249 2005-09-02  Simon Josefsson  <jas@extundo.com>
80250
80251         * modules/havelib: New module.
80252
80253         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80254         Use havelib.
80255
80256 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         Check for arithmetic overflow when calculating sizes, to prevent
80259         some buffer-overflow issues.  These patches are conservative, in the
80260         sense that when I couldn't determine whether an overflow was possible,
80261         I inserted a run-time check.
80262         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80263         macros.
80264         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80265         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80266         (re_xnrealloc, re_x2nrealloc): New inline functions.
80267         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80268         parse_bracket_exp):
80269         (build_equiv_class, build_charclass): Check for arithmetic overflow
80270         in size expression calculations.
80271         * lib/regex_internal.c (re_string_realloc_buffers):
80272         (build_wcs_upper_buffer, re_node_set_add_intersect):
80273         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80274         (re_dfa_add_node, register_state): Likewise.
80275         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80276         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80277         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80278         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80279
80280 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80283         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80284
80285 2005-09-02  Bruno Haible  <bruno@clisp.org>
80286
80287         Support for lib vs. lib64 distinction on biarch platforms.
80288         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80289         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80291
80292 2005-09-02  Bruno Haible  <bruno@clisp.org>
80293
80294         * gnulib-tool (import): In the other first-use case, provide defaults
80295         as well.
80296
80297 2005-09-02  Bruno Haible  <bruno@clisp.org>
80298
80299         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80300         patches not yet found in the latest gettext release.
80301
80302 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80303
80304         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80305         to avoid a collision with bits/local_lim.h in glibc.
80306         All uses changed.  Problem reported by Dmitry V. Levin in
80307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80308
80309         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80310         bugs in int versus size_t comparisons.
80311         (re_string_context_at): Fix bug where the code assumed that
80312         Idx is signed.
80313
80314         Use bool where appropriate.
80315         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80316         All callers changed.
80317         (calc_eclosure_iter): Likewise, for ROOT arg.
80318         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80319         (build_charclass_op): Likewise, for NON_MATCH arg.
80320         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80321         (re_string_construct_common): Likewise, for ICASE arg.
80322         * lib/regexec.c (re_search_2_stub, re_search_stub):
80323         Likewise, for RET_LEN arg.
80324         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80325         (set_regs): Likewise, for FL_BACKTRACK arg.
80326         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80327         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80328         (calc_eclosure_iter, parse_bracket_exp):
80329         Use bool for internal variables that are booleans.
80330         * lib/regexec.c (re_search_internal, check_matching,
80331         proceed_next_node):
80332         (set_regs, build_sifted_states, sift_states_bkref):
80333         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80334         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80335         (find_collation_sequence_value):
80336         Likewise.
80337         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80338         (re_node_set_compare):
80339         Return bool, not int. All callers changed.
80340         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80341         (build_trtable, check_node_accept): Likewise.
80342         * lib/regex_internal.h: Include stdbool.h.
80343
80344         Fix bugs uncovered when converting to bool.
80345         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80346         failure instead of charging ahead blindly.
80347         * lib/regex_internal.c (register_state): Likewise.
80348         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80349         for freeing internal storage.
80350         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80351         bitset pieces used as boolean, to avoid undefined behavior
80352         on hosts that do int overflow checking.
80353
80354 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80355
80356         * config/srclist.txt: Add glibc bugs 1285-1287.
80357
80358 2005-09-01  Jim Meyering  <jim@meyering.net>
80359
80360         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80361         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80362         Require gl_STAT_MACROS, too.
80363
80364 2005-09-01  Bruno Haible  <bruno@clisp.org>
80365
80366         * gnulib-tool (import): In the first-use case, provide defaults.
80367
80368 2005-09-01  Bruno Haible  <bruno@clisp.org>
80369
80370         * gnulib-tool (func_import): Remove the .tmp files.
80371
80372 2005-09-01  Bruno Haible  <bruno@clisp.org>
80373
80374         * gnulib-tool (func_import): Fix handling of symbolic links.
80375
80376 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80377
80378         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80379         old glibc regex code mishandles strings longer than 2**31 bytes.
80380         This patch fixes this when the regex code is used in gnulib
80381         (i.e., outside glibc).
80382
80383         This patch should not affect the use of the regex code inside
80384         glibc.  No doubt this problem also needs to be handled for glibc
80385         as well, but the result will be an incompatible change to the
80386         glibc ABI, and the old ABI will have to be supported too.  That
80387         can be the the subject for another patch.
80388
80389         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80390         governing whether the rest of this patch is active.  By default,
80391         the macro is disabled and the patch has no effect.
80392         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80393         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80394         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80395         (re_match_2, re_set_registers): Use the new types.
80396         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80397         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80398         New macros.
80399         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80400         (re_string_context_at, bin_tree_t, re_dfastate_t):
80401         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80402         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80403         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80404         (re_string_char_size_at, re_string_wchar_at):
80405         (re_string_elem_size_at):
80406         Use the new types and macros to port to 64-bit hosts.
80407         Use unsigned types for internal values, so that the code
80408         mostly works even for arrays larger than SSIZE_MAX.
80409         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80410         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80411         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80412         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80413         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80414         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80415         (calc_inveclosure, parse_dup_op, build_range_exp):
80416         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80417         (fetch_number, create_token_tree, mark_opt_subexp):
80418         Likewise.
80419         * lib/regex_internal.c (re_string_construct_common,
80420         create_ci_newstate):
80421         (create_cd_newstate, re_string_allocate, re_string_construct):
80422         (re_string_realloc_buffers, build_wcs_upper_buffer):
80423         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80424         (re_string_reconstruct, re_string_peek_byte_case):
80425         (re_string_fetch_byte_case, re_string_context_at):
80426         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80427         (re_node_set_init_copy, re_node_set_add_intersect):
80428         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80429         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80430         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80431         (re_acquire_state, re_acquire_state_context, register_state):
80432         Likewise.
80433         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80434         search_cur_bkref_entry):
80435         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80436         (re_search_internal, re_search_2_stub, re_search_stub)
80437         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80438         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80439         (update_cur_sifted_state, check_dst_limits):
80440         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80441         (check_subexp_limits, sift_states_bkref, merge_state_array):
80442         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80443         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80444         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80445         (expand_bkref_cache, check_node_accept_bytes):
80446         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80447         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80448         (acquire_init_state_context, check_halt_node_context):
80449         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80450         (sift_states_backward, clean_state_log_if_needed):
80451         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80452         (find_recover_state, transit_state_sb, transit_state_mb):
80453         (transit_state_bkref, build_trtable, match_ctx_clean):
80454         Likewise.
80455         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80456         to work around an assumption that REG_MISSING is negative.
80457
80458         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80459         (seek_collating_symbol_entry) [defined _LIBC]:
80460         (lookup_collation_sequence_value) [defined _LIBC]:
80461         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80462         Use prototypes rather than old-style function definitions.
80463         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80464         (transit_state_sb) [0]:
80465         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80466
80467         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80468         rm_eo.
80469
80470         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80471         (optimize_subexps, lower_subexp):
80472         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80473         since the signed shift might overflow.  Use 1u<<31 instead.
80474         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80475         Likewise.
80476         * lib/regexec.c (check_dst_limits_calc_pos_1,
80477         check_subexp_matching_top): Likewise.
80478
80479         * lib/regcomp.c (optimize_subexps, lower_subexp):
80480         Use CHAR_BIT rather than 8, for clarity.
80481         * lib/regexec.c (check_dst_limits_calc_pos_1):
80482         (check_subexp_matching_top): Likewise.
80483         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80484         have to worry about portability issues when shifting it left.
80485         Remove no-longer-needed test for table_size > 0.
80486         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80487         in a word, as the resulting behavior is undefined.
80488         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80489         in one case, a <= should have been an <, and in another case the
80490         whole test was missing.
80491         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80492         the standard name CHAR_BIT.
80493         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80494         this is not true on one's complement and signed-magnitude hosts.
80495
80496         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80497         next_last_offset.
80498         (struct re_dfa_t): Remove unused member states_alloc.
80499         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80500
80501 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80504         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80505         and large-file glibc and in 32-bit large-file Solaris.
80506
80507 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80510         lengths fit in regoff_t; this isn't true if regoff_t is the same
80511         width as size_t.
80512         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80513         (= START + RANGE) instead of RANGE.  This avoids overflow
80514         problems when regoff_t is the same width as size_t.
80515         All callers changed.
80516         (re_search_2_stub): Check for overflow when adding the
80517         sizes of the two strings.
80518         (re_search_stub): Check for overflow when adding START
80519         to RANGE; if it occurs, substitute the extreme value.
80520
80521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80522
80523         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80524
80525 2005-08-31  Jim Meyering  <jim@meyering.net>
80526
80527         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80528         a pointer-to-const.
80529         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80530         (register_state): Likewise.
80531         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80532         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80533         (group_nodes_into_DFAstates): Likewise.
80534
80535 2005-08-31  Jim Meyering  <jim@meyering.net>
80536
80537         * check-module: Add a FIXME comment.
80538
80539 2005-08-31  Eric Blake  <ebb9@byu.net>
80540
80541         * modules/unistd-safer (Files): Add unistd--.h.
80542         * modules/stdio-safer (Files): Add stdio--.h.
80543
80544 2005-08-31  Derek Price  <derek@ximbiot.com>
80545
80546         * lib/getdelim.c (getdelim): Return EOF on EOF.
80547         Reported by Larry Jones <lawrence.jones@ugs.com>.
80548
80549 2005-08-31  Bruno Haible  <bruno@clisp.org>
80550
80551         Avoid unnecessary diffs in the generated lib/Makefile.am.
80552         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80553         the generated files.
80554         (func_import): Don't set cmd.
80555
80556 2005-08-31  Bruno Haible  <bruno@clisp.org>
80557
80558         * lib/strstr.c: Include <stddef.h>, for NULL.
80559         * lib/strcasestr.c: Likewise.
80560         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80561
80562 2005-08-31  Bruno Haible  <bruno@clisp.org>
80563
80564         * gnulib-tool: New option --macro-prefix.
80565         (func_import): Use macro_prefix.
80566         (import): Handle option --macro-prefix.
80567
80568 2005-08-31  Bruno Haible  <bruno@clisp.org>
80569
80570         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80571         Also use new variables cached_lgpl, cached_libtool.
80572
80573 2005-08-31  Bruno Haible  <bruno@clisp.org>
80574
80575         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80576         always instantiating them.
80577
80578 2005-08-31  Bruno Haible  <bruno@clisp.org>
80579
80580         * gnulib-tool (func_import): Read the previous cached settings
80581         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80582         earlier added by gnulib but are now dropped. Warn when a gnulib file
80583         overwrites a non-gnulib file.
80584
80585 2005-08-31  Bruno Haible  <bruno@clisp.org>
80586
80587         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80588         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80589         projects that don't keep autogenerated files in CVS. Put into
80590         actioncmd only the specified modules, not the transitive closure.
80591
80592 2005-08-31  Bruno Haible  <bruno@clisp.org>
80593
80594         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80595         Create directories that shall be filled.
80596         (import): Don't look for gl_* macros in configure.ac. Recurse across
80597         all directories containing a gnulib-cache.m4 files, if meaningful.
80598
80599 2005-08-31  Bruno Haible  <bruno@clisp.org>
80600
80601         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80602         (import): Set seen_libtool when we see gl_LIBTOOL.
80603
80604 2005-08-31  Bruno Haible  <bruno@clisp.org>
80605
80606         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80607         declaration macro definitions from generated gnulib.m4.
80608
80609 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80610
80611         * lib/iconvme.h: Add prototype for iconv_alloc.
80612
80613 2005-08-29  Simon Josefsson  <jas@extundo.com>
80614
80615         * lib/iconvme.c: Fix errno.
80616
80617 2005-08-29  Bruno Haible  <bruno@clisp.org>
80618
80619         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80620         that it works when the directory contains spaces.
80621
80622 2005-08-29  Bruno Haible  <bruno@clisp.org>
80623
80624         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80625
80626 2005-08-29  Bruno Haible  <bruno@clisp.org>
80627
80628         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80629         Emit more advice.
80630
80631 2005-08-29  Bruno Haible  <bruno@clisp.org>
80632         and Stepan Kasal  <kasal@ucw.cz>
80633
80634         * check-module: If more parameters are given, check each of them
80635         separately; add more exceptions, as noted by Jim Meyering.
80636         (check_module): New procedure.
80637         (%exempt_header): Now contains all exceptions.
80638
80639 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80640
80641         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80642
80643 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80644
80645         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80646
80647 2005-08-28  Bruno Haible  <bruno@clisp.org>
80648
80649         * m4/gnulib-tool.m4: New file.
80650
80651 2005-08-27  Jim Meyering  <jim@meyering.net>
80652
80653         * modules/unistd-safer (Files): Add pipe-safer.c.
80654         * modules/fcntl-safer (Files): Add creat-safer.c.
80655
80656 2005-08-27  Jim Meyering  <jim@meyering.net>
80657
80658         * m4/stdlib-safer.m4: New file.  From coreutils.
80659         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80661         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80662         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80663         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80664
80665 2005-08-27  Jim Meyering  <jim@meyering.net>
80666
80667         * lib/fopen-safer.c: Merge minor changes from coreutils.
80668         * lib/dup-safer.c: Likewise.
80669         * lib/fd-safer.c: Likewise.
80670
80671         Merge from coreutils.
80672         * lib/stdio--.h: New file.
80673         * lib/stdlib--.h: New file.
80674         * lib/mkstemp-safer.c: New file.
80675
80676         GNU tar needs these.
80677         * lib/pipe-safer.c: New file.
80678         * lib/creat-safer.c: New file.
80679         * lib/fcntl--.h (creat): Define to creat_safer.
80680         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80681         * lib/unistd--.h (pipe): Define to pipe_safer.
80682         * lib/unistd-safer.h: Declare pipe_safer.
80683
80684 2005-08-26  Simon Josefsson  <jas@extundo.com>
80685
80686         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80687         Haible <bruno@clisp.org>.
80688
80689 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         * lib/regex_internal.h: Remove all references to
80692         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80693         or better.
80694         (bitset_not, bitset_merge, bitset_not_merge):
80695         (bitset_mask, re_string_allocate, re_string_construct):
80696         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80697         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80698         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80699         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80700         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80701         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80702         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80703         (re_acquire_state_context):
80704         Remove unnecessary forward decls.
80705         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80706         Put __attribute at function definition,
80707         now that the function decl has been removed.
80708         * lib/regex_internal.c (re_string_peek_byte_case):
80709         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80710         Likewise.
80711
80712 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80713
80714         * m4/regex.m4: Add AC_PREREQ(2.50).
80715         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80716
80717 2005-08-25  Simon Josefsson  <jas@extundo.com>
80718
80719         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80720         __fsetlocking.
80721
80722 2005-08-25  Simon Josefsson  <jas@extundo.com>
80723
80724         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80725         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80726         GLIBC specific code.
80727
80728 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         Make regex safe for g++.  This fixes one real bug (an "err"
80731         that should have been "*err").  g++ problem reported by
80732         Sam Steingold.
80733         * lib/regex_internal.h (re_calloc): New macro, consistent with
80734         re_malloc etc.  All callers of calloc changed to use re_calloc.
80735         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80736         not int.  All callers changed.
80737         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80738         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80739         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80740         (find_recover_state): Change "err" to "*err"; this fixes what
80741         appears to be a real bug.
80742         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80743         versus int.
80744
80745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * modules/regex (Depends-on): Add malloc, since the code
80748         assumes that !malloc(0) means failure.
80749
80750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80753
80754         alloca modernization/simplification for regex.
80755         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80756         needs to be at the start of the file, and can be moved into
80757         regex_internal.h and simplified.
80758         * lib/regex_internal.h: Include <alloca.h>.
80759         (__libc_use_alloca) [!defined _LIBC]: New macro.
80760         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80761         now works outside glibc.
80762
80763 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80764
80765         * config/srclist.txt: Add glibc bugs 1241, 1245.
80766
80767 2005-08-25  Jim Meyering  <jim@meyering.net>
80768
80769         * lib/open-safer.c: Include <config.h>.
80770         Otherwise, we'd lose LARGEFILE support in any file using
80771         e.g. "fcntl--.h"
80772
80773 2005-08-25  Bruno Haible  <bruno@clisp.org>
80774
80775         * m4/minmax.m4: Require autoconf 2.52.
80776         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80777         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80778         alternatives of translit over the alphabet.
80779         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80780
80781 2005-08-24  Simon Josefsson  <jas@extundo.com>
80782
80783         * tests/test-getpass.c: New file.
80784
80785 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80786
80787         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80788         for GNU regex features.
80789
80790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80791
80792         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80793         * lib/regex.h (regerror): Likewise.
80794
80795         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80796         requires this.  (The code never needed it.)
80797
80798         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80799         All uses of recently-renamed identifiers changed to use the new,
80800         POSIX-compliant names.  The code will build and run just fine
80801         without these changes, but it's better to eat our own dog food
80802         and use the standard-conforming names.
80803
80804         * lib/regex.h: Fix a multitude of POSIX name space violations.
80805         These changes have an effect only for programs that define
80806         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80807         do not change anything for programs compiled in the normal way.
80808         Also, there is no effect on the ABI.
80809
80810         (_REGEX_SOURCE): New macro.
80811         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80812         defined and _GNU_SOURCE is not; this fixes a name space violation.
80813
80814         Rename the following macros to obey POSIX requirements.
80815         The old names are still visible as macros if _REGEX_SOURCE is defined.
80816         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80817         RE_BACKSLASH_ESCAPE_IN_LISTS.
80818         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80819         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80820         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80821         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80822         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80823         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80824         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80825         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80826         (REG_INTERVALS): renamed from RE_INTERVALS.
80827         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80828         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80829         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80830         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80831         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80832         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80833         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80834         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80835         RE_UNMATCHED_RIGHT_PAREN_ORD.
80836         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80837         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80838         (REG_DEBUG): renamed from RE_DEBUG.
80839         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80840         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80841         unusual, since we can't clash with the POSIX REG_ICASE.
80842         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80843         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80844         (REG_NO_SUB): renamed from RE_NO_SUB.
80845         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80846         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80847         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80848         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80849         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80850         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80851         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80852         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80853         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80854         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80855         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80856         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80857         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80858         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80859         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80860         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80861         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80862         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80863         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80864         (REG_FIXED): Renamed from REGS_FIXED.
80865         (REG_NREGS): Renamed from RE_NREGS.
80866
80867         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80868         of other REG_* macros, since POSIX says the user is allowed to
80869         #undef these macros selectively.
80870
80871         (reg_errcode_t): Update comment stating what other tables need
80872         to be consistent.
80873
80874         Rename the following enum values to obey POSIX requirements.
80875         The old names are still visible as macros.
80876         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80877         is not defined, since GNU is supposed to be a superset of POSIX as
80878         much as possible, and since we want reg_errcode_t to be a signed
80879         type for implementation consistency.
80880         (_REG_NOERROR): Renamed from REG_NOERROR.
80881         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80882         (_REG_BADPAT): Renamed from REG_BADPAT.
80883         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80884         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80885         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80886         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80887         (_REG_EBRACK): Renamed from REG_EBRACK.
80888         (_REG_EPAREN): Renamed from REG_EPAREN.
80889         (_REG_EBRACE): Renamed from REG_EBRACE.
80890         (_REG_BADBR): Renamed from REG_BADBR.
80891         (_REG_ERANGE): Renamed from REG_ERANGE.
80892         (_REG_ESPACE): Renamed from REG_ESPACE.
80893         (_REG_BADRPT): Renamed from REG_BADRPT.
80894         (_REG_EEND): Renamed from REG_EEND.
80895         (_REG_ESIZE): Renamed from REG_ESIZE.
80896         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80897         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80898         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80899         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80900         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80901
80902         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80903         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80904         changed.  But support the old name if the new one is not defined
80905         and if _REGEX_SOURCE.
80906
80907         Change the following member names in struct re_pattern_buffer.
80908         The old names are still supported if !_REGEX_SOURCE.
80909         The new names are always supported, regardless of _REGEX_SOURCE.
80910         (re_buffer): Renamed from buffer.
80911         (re_allocated): Renamed from allocated.
80912         (re_used): Renamed from used.
80913         (re_syntax): Renamed from syntax.
80914         (re_fastmap): Renamed from fastmap.
80915         (re_translate): Renamed from translate.
80916         (re_can_be_null): Renamed from can_be_null.
80917         (re_regs_allocated): Renamed from regs_allocated.
80918         (re_fastmap_accurate): Renamed from fastmap_accurate.
80919         (re_no_sub): Renamed from no_sub.
80920         (re_not_bol): Renamed from not_bol.
80921         (re_not_eol): Renamed from not_eol.
80922         (re_newline_anchor): Renamed from newline_anchor.
80923
80924         Change the following member names in struct re_registers.
80925         The old names are still supported if !_REGEX_SOURCE.
80926         The new names are always supported, regardless of _REGEX_SOURCE.
80927         (rm_num_regs): Renamed from num_regs.
80928         (rm_start): Renamed from start.
80929         (rm_end): Renamed from end.
80930
80931         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80932         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80933         Prepend __ to parameter names.
80934
80935         Undo yesterday's changes.
80936
80937 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80938
80939         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80940         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80941         lib/regex.c.
80942
80943 2005-08-24  Jim Meyering  <jim@meyering.net>
80944
80945         Sync from coreutils.
80946         * m4/fcntl-safer.m4: New file.
80947
80948         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80949         and object files for this module.
80950
80951 2005-08-24  Jim Meyering  <jim@meyering.net>
80952
80953         Sync from coreutils.
80954         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80955
80956 2005-08-24  Jim Meyering  <jim@meyering.net>
80957
80958         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80959         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80960
80961 2005-08-24  Jim Meyering  <jim@meyering.net>
80962
80963         * modules/fcntl-safer: New module.
80964         * modules/fts (Depends-on): Add fcntl-safer.
80965         * MODULES.html.sh (File descriptor based Input/Output):
80966         Add fcntl-safer.
80967
80968 2005-08-24  Bruno Haible  <bruno@clisp.org>
80969
80970         Support for unit test modules.
80971         * modules/README: Mention tests modules.
80972         * modules/TEMPLATE-TESTS: New file.
80973         * gnulib-tool: New options --extract-tests-module, --with-tests and
80974         --tests-base (unused for the moment).
80975         (testsbase, inctests): New variables.
80976         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80977         (func_verify_module): Exclude TEMPLATE-TESTS.
80978         (func_verify_nontests_module, func_verify_tests_module): New functions.
80979         (func_get_dependencies): Add implicit dependency for tests modules.
80980         (func_get_tests_module): New function.
80981         (func_modules_transitive_closure): When --with-tests was specified,
80982         include the unit tests as well, unless explicitly avoided.
80983         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80984         (func_emit_tests_Makefile_am): New function.
80985         (func_create_testdir): When --with-tests was specified, emit a
80986         tests/ directory.
80987         * MODULES.html.sh (Future developments): Update.
80988
80989 2005-08-24  Bruno Haible  <bruno@clisp.org>
80990
80991         * modules/tls-tests: New file.
80992         * tests/test-tls.c: New file, from GNU gettext.
80993
80994 2005-08-24  Bruno Haible  <bruno@clisp.org>
80995
80996         * modules/lock-tests: New file.
80997         * tests/test-lock.c: New file, from GNU gettext.
80998
80999 2005-08-24  Bruno Haible  <bruno@clisp.org>
81000
81001         * lib/lock.h: Add multiple inclusion guard.
81002         * lib/tls.h: Add multiple inclusion guard.
81003
81004 2005-08-24  Bruno Haible  <bruno@clisp.org>
81005
81006         * gnulib-tool: Add support for the --aux-dir option to
81007         --create-testdir, --create-megatestdir, --test, --megatest.
81008         (func_create_testdir, func_create_megatestdir): Optionally emit a
81009         AC_CONFIG_AUX_DIR directive.
81010         (create-testdir, create-megatestdir, test, megatest): Provide a
81011         default value for $auxdir.
81012
81013 2005-08-24  Bruno Haible  <bruno@clisp.org>
81014
81015         * gnulib-tool (import): Use compound statement instead of subshell
81016         where possible.
81017
81018 2005-08-24  Bruno Haible  <bruno@clisp.org>
81019
81020         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81021
81022 2005-08-24  Bruno Haible  <bruno@clisp.org>
81023
81024         * gnulib-tool (func_version): Update.
81025
81026 2005-08-24  Bruno Haible  <bruno@clisp.org>
81027
81028         * gnulib-tool (func_import, func_create_testdir,
81029         func_create_megatestdir): Quote all autoconf macro arguments.
81030
81031 2005-08-24  Bruno Haible  <bruno@clisp.org>
81032
81033         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81034         option --force, because --force causes the aclocal.m4 of each
81035         subdirectory to be newer than the corresponding config.h.in.
81036
81037 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81040         All contents moved to gl_REGEX.
81041         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81042         assume that it does.
81043
81044 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81045
81046         * lib/regex.h (REG_NOSYS)
81047         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81048         Define, since POSIX requires it as of 2001.
81049         (_REG_ENOSYS)
81050         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81051         New private symbol, used to keep the enum signed in all cases.
81052         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81053         Youngman in
81054         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81055
81056         * lib/regex_internal.c (re_string_skip_chars, register_state):
81057         (calc_state_hash):
81058         Remove forward decls; no longer needed now that we use prototypes.
81059         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81060         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81061         (clean_state_log_if_needed): Likewise.
81062
81063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * config/srclist.txt: Add glibc bugs 1231-1233.
81066
81067 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81068
81069         Fix problems reported by Sam Steingold in
81070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81071         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81072         assumed that reg_errcode_t is a signed type, which is not
81073         necessarily true if _XOPEN_SOURCE is not defined.
81074         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81075         since some compilers warn about it otherwise.
81076
81077 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81080         (init_word_char, create_initial_state, duplicate_node_closure):
81081         (fetch_token, peek_token_bracket, build_range_exp):
81082         (build_collating_symbol): Remove forward decls; no longer needed
81083         now that we use prototypes.
81084
81085         * lib/regcomp.c:
81086         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81087         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81088         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81089         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81090         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81091         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81092         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81093         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81094         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81095         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81096         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81097         (build_charclass, build_charclass_op, fetch_number, create_tree):
81098         (create_token_tree, mark_opt_subexp, duplicate_tree):
81099         Use prototypes rather than old-style definitions.
81100
81101         * lib/regex_internal.c:
81102         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81103         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81104         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81105         (re_string_reconstruct, re_string_peek_byte_case):
81106         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81107         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81108         (re_node_set_init_copy, re_node_set_add_intersect):
81109         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81110         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81111         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81112         (re_acquire_state, re_acquire_state_context, register_state):
81113         (create_ci_newstate, create_cd_newstate, free_state):
81114         Likewise.
81115         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81116         re_search_2):
81117         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81118         (re_search_internal, prune_impossible_nodes):
81119         (acquire_init_state_context, check_matching, static):
81120         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81121         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81122         (update_regs, sift_states_backward, build_sifted_states):
81123         (clean_state_log_if_needed, merge_state_array):
81124         (update_cur_sifted_state, add_epsilon_src_nodes):
81125         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81126         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81127         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81128         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81129         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81130         (check_arrival, check_arrival_add_next_nodes):
81131         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81132         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81133         (check_node_accept_bytes, check_node_accept, extend_buffers):
81134         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81135         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81136         (sift_ctx_init):
81137         Likewise.
81138
81139         * lib/regex_internal.h:
81140         (re_string_allocate, re_string_construct, re_string_reconstruct):
81141         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81142         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81143         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81144         (re_string_context_at, re_string_peek_byte_case):
81145         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81146         is defined, since we now use prototypes always.
81147
81148         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81149         C89 or better.  All uses removed.
81150
81151 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81152
81153         * config/srclist.txt: Add glibc bugs 1220-1227.
81154
81155 2005-08-20  Jim Meyering  <jim@meyering.net>
81156
81157         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81158         of unused local, dfa.
81159
81160 2005-08-20  Bruno Haible  <bruno@clisp.org>
81161
81162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81163
81164 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81165
81166         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81167         (re_node_set_insert_last, re_dfa_add_node):
81168         Rename local variables to avoid GCC shadowing warnings.
81169
81170 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81171
81172         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81173         [defined lint]: Suppress bogus uninitialized-variable warnings.
81174
81175         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81176         and let the caller return REG_ESPACE if out of space.  This
81177         removes an uninitialied-variable warning with GCC 4.0.1, and also
81178         avoids taking the address of a local variable.  All callers
81179         changed.
81180
81181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81182
81183         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81184         $LIBCSRC/posix/regexec.c.
81185         Add glibc bug 1217 for regcomp.c.
81186
81187 2005-08-19  Jim Meyering  <jim@meyering.net>
81188
81189         * lib/regexec.c (proceed_next_node): Redo local variables to
81190         avoid GCC shadowing warnings.
81191
81192 2005-08-18  Bruno Haible  <bruno@clisp.org>
81193
81194         * lib/strstr.c (strstr): Fix return value in multibyte case.
81195         * lib/strcasestr.c (strcasestr): Likewise.
81196
81197 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81198
81199         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81200
81201 2005-08-17  Jim Meyering  <jim@meyering.net>
81202
81203         Make the %s format (seconds since the epoch) work for a negative
81204         number and when used with a zero-padded field width, e.g. %015s.
81205
81206         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81207         label so that it precedes the code to set `digits'.  Otherwise,
81208         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81209         print `00-22'.  Now, it prints `-0022', as it should.
81210
81211 2005-08-17  Bruno Haible  <bruno@clisp.org>
81212
81213         * modules/strstr (Files): Add m4/mbrtowc.m4.
81214         (Depends-on): Add mbuiter.
81215
81216 2005-08-17  Bruno Haible  <bruno@clisp.org>
81217
81218         * modules/strcasestr: New file.
81219         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81220         strcasestr.
81221
81222 2005-08-17  Bruno Haible  <bruno@clisp.org>
81223
81224         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81225
81226 2005-08-17  Bruno Haible  <bruno@clisp.org>
81227
81228         * modules/mbuiter: New file.
81229         * MODULES.html.sh (Extended multibyte and wide character utilities):
81230         Add mbuiter.
81231
81232 2005-08-17  Bruno Haible  <bruno@clisp.org>
81233
81234         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81235         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81236
81237 2005-08-17  Bruno Haible  <bruno@clisp.org>
81238
81239         * m4/strcasestr.m4: New file.
81240
81241 2005-08-17  Bruno Haible  <bruno@clisp.org>
81242
81243         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81244         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81245
81246 2005-08-17  Bruno Haible  <bruno@clisp.org>
81247
81248         * lib/strcasestr.h: New file.
81249         * lib/strcasestr.c: New file.
81250
81251 2005-08-17  Bruno Haible  <bruno@clisp.org>
81252
81253         * lib/strcasecmp.c: Use mbuiter.h.
81254
81255 2005-08-17  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/mbuiter.h: New file.
81258
81259 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81262         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81263         and gl_GETOPT are both invoked via different paths (as happens
81264         with GNU tar CVS because it uses both argp and getopt), the former
81265         wins.
81266
81267 2005-08-16  Bruno Haible  <bruno@clisp.org>
81268
81269         * modules/tls: New file.
81270         * MODULES.html.sh (Multithreading): Add tls.
81271
81272 2005-08-16  Bruno Haible  <bruno@clisp.org>
81273
81274         * modules/strnlen1: New file.
81275         * MODULES.html.sh (String handling): Add strnlen1.
81276
81277 2005-08-16  Bruno Haible  <bruno@clisp.org>
81278
81279         * modules/strcase (Files): Add m4/mbrtowc.m4.
81280         (Depends-on): Add strnlen1, mbchar.
81281
81282 2005-08-16  Bruno Haible  <bruno@clisp.org>
81283
81284         * modules/mbiter: New file.
81285         * MODULES.html.sh (Extended multibyte and wide character utilities):
81286         Add mbiter.
81287
81288 2005-08-16  Bruno Haible  <bruno@clisp.org>
81289
81290         * modules/mbfile: New file.
81291         * MODULES.html.sh (Extended multibyte and wide character utilities):
81292         Add mbfile.
81293
81294 2005-08-16  Bruno Haible  <bruno@clisp.org>
81295
81296         * modules/mbchar: New file.
81297         * MODULES.html.sh (Extended multibyte and wide character utilities):
81298         New section.
81299
81300 2005-08-16  Bruno Haible  <bruno@clisp.org>
81301
81302         * m4/tls.m4: New file, from GNU gettext.
81303
81304 2005-08-16  Bruno Haible  <bruno@clisp.org>
81305
81306         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81307         always.
81308         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81309
81310 2005-08-16  Bruno Haible  <bruno@clisp.org>
81311
81312         * m4/mbiter.m4: New file.
81313
81314 2005-08-16  Bruno Haible  <bruno@clisp.org>
81315
81316         * m4/mbfile.m4: New file.
81317
81318 2005-08-16  Bruno Haible  <bruno@clisp.org>
81319
81320         * m4/mbchar.m4: New file.
81321
81322 2005-08-16  Bruno Haible  <bruno@clisp.org>
81323
81324         * lib/tls.h: New file, from GNU gettext.
81325         * lib/tls.c: New file, from GNU gettext.
81326
81327 2005-08-16  Bruno Haible  <bruno@clisp.org>
81328
81329         * lib/strnlen1.h: New file.
81330         * lib/strnlen1.c: New file.
81331
81332 2005-08-16  Bruno Haible  <bruno@clisp.org>
81333
81334         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81335         (mbi_init): Update.
81336         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81337         NUL byte, not after it.
81338
81339 2005-08-16  Bruno Haible  <bruno@clisp.org>
81340
81341         * lib/strcase.h (strcasecmp): Add note in comments.
81342         * lib/strncasecmp.c: Use code from strcasecmp.c.
81343         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81344         (strcasecmp): Work correctly in multibyte locales.
81345
81346 2005-08-16  Bruno Haible  <bruno@clisp.org>
81347
81348         * lib/mbiter.h: New file.
81349
81350 2005-08-16  Bruno Haible  <bruno@clisp.org>
81351
81352         * lib/mbfile.h: New file.
81353
81354 2005-08-16  Bruno Haible  <bruno@clisp.org>
81355
81356         * lib/mbchar.h: New file.
81357         * lib/mbchar.c: New file.
81358
81359 2005-08-16  Bruno Haible  <bruno@clisp.org>
81360
81361         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81362         the valid ones. Makes the comparison operations transitive:
81363         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81364         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81365
81366 2005-08-15  Simon Josefsson  <jas@extundo.com>
81367
81368         * modules/ssize_t (License): Change to 'unlimited'.
81369
81370         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81371
81372 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81373
81374         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81375         Add comments for each pending glibc patch.
81376
81377 2005-08-15  Bruno Haible  <bruno@clisp.org>
81378
81379         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81380         __cplusplus is defined.
81381
81382 2005-08-14  Jim Meyering  <jim@meyering.net>
81383
81384         Sync from coreutils.
81385
81386         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81387         Use the hash-table-based cycle-detection code not just when
81388         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81389         Reported by James Youngman in
81390         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81391         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81392         FTS_TIGHT_CYCLE_CHECK.
81393         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81394         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81395         once again.
81396         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81397         * lib/fts.c (fd_safer): Remove decl.
81398         Include fcntl--.h rather than unistd-safer.h
81399         (fts_safe_changedir): Don't call fd_safer; no longer needed
81400         now that we include fcntl--.h.
81401
81402 2005-08-12  Simon Josefsson  <jas@extundo.com>
81403
81404         * modules/getndelim2: Use ssize_t module.
81405         * modules/getnline: Likewise.
81406         * modules/safe-read: Likewise.
81407         * modules/xreadlink: Likewise.
81408
81409         * modules/ssize_t: New file.
81410
81411 2005-08-12  Simon Josefsson  <jas@extundo.com>
81412
81413         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81414
81415 2005-08-12  Simon Josefsson  <jas@extundo.com>
81416
81417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81418         ssize_t.
81419
81420 2005-08-12  Simon Josefsson  <jas@extundo.com>
81421
81422         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81423         readline, getdelim and check_version.
81424         (Support for systems lacking ISO C 99: Sizes of integer types):
81425         Add size_max.
81426
81427 2005-08-12  Bruno Haible  <bruno@clisp.org>
81428
81429         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81430
81431 2005-08-11  Simon Josefsson  <jas@extundo.com>
81432
81433         * modules/readline: New file.
81434
81435         * modules/strnlen (Files): Add strnlen.h.
81436
81437 2005-08-11  Simon Josefsson  <jas@extundo.com>
81438
81439         * m4/readline.m4: New file.
81440
81441 2005-08-11  Simon Josefsson  <jas@extundo.com>
81442
81443         * lib/readline.h, readline.c: New file.
81444
81445 2005-08-11  Simon Josefsson  <jas@extundo.com>
81446
81447         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81448         gl_AVOID.
81449
81450 2005-08-11  Bruno Haible  <bruno@clisp.org>
81451
81452         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81453
81454 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81455
81456         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81457
81458 2005-08-10  Simon Josefsson  <jas@extundo.com>
81459
81460         * tests/test-iconvme.c: New file.
81461
81462 2005-08-10  Simon Josefsson  <jas@extundo.com>
81463
81464         * m4/strnlen.m4: New file.
81465
81466         * m4/strndup.m4: Don't check for strnlen declaration, done in
81467         strnlen.m4.
81468
81469 2005-08-10  Simon Josefsson  <jas@extundo.com>
81470
81471         * lib/strndup.c: Use strnlen.h.
81472
81473         * lib/strnlen.h: New file.
81474
81475 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81476
81477         * README: Typos.
81478
81479 2005-08-02  Simon Josefsson  <jas@extundo.com>
81480
81481         * modules/readline: New file.
81482
81483 2005-08-02  Simon Josefsson  <jas@extundo.com>
81484
81485         * modules/getdelim: New file.
81486
81487         * modules/getline: Rewrite, don't use getndelim2.
81488
81489 2005-08-02  Simon Josefsson  <jas@extundo.com>
81490
81491         * m4/getline.m4: Separate out getdelim stuff into separate module.
81492
81493         * m4/getdelim.m4: New file.
81494
81495 2005-08-02  Simon Josefsson  <jas@extundo.com>
81496
81497         * lib/getline.h, getline.c: Rewrite.
81498
81499         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81500
81501 2005-07-31  Bruno Haible  <bruno@clisp.org>
81502
81503         * lib/lock.h (gl_lock_initializer): New macro.
81504         (gl_lock_define_initialized): Use it.
81505         (gl_rwlock_initializer): New macro.
81506         (gl_rwlock_define_initialized): Use it.
81507         (gl_recursive_lock_initializer): New macro.
81508         (gl_recursive_lock_define_initialized): Use it.
81509
81510 2005-07-30  Karl Berry  <karl@gnu.org>
81511
81512         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81513         Report from Ben Pfaff, regarding getopt.
81514
81515 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81516
81517         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81518         normal way.
81519         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81520         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81521         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81522         (gl_GETOPT): Use the new macros.  Most of the implementation
81523         is moved to the new macros.  This is for programs like Emacs
81524         that don't want all the functionality of gl_GETOPT.
81525
81526 2005-07-26  Bruno Haible  <bruno@clisp.org>
81527
81528         * m4/lock.m4: Update from GNU gettext.
81529
81530 2005-07-26  Bruno Haible  <bruno@clisp.org>
81531
81532         * lib/lock.h: Update from GNU gettext.
81533         * lib/lock.c: Update from GNU gettext.
81534
81535 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81536
81537         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81538         obsolescent AC_TRY_RUN.  Include the default includes files, for
81539         'exit'.
81540
81541 2005-07-24  Bruno Haible  <bruno@clisp.org>
81542
81543         * modules/visibility: New file.
81544         * MODULES.html.sh (Misc): Add visibility.
81545
81546 2005-07-24  Bruno Haible  <bruno@clisp.org>
81547
81548         * m4/visibility.m4: New file.
81549
81550 2005-07-24  Bruno Haible  <bruno@clisp.org>
81551
81552         * doc/visibility.texi: New file.
81553
81554 2005-07-22  Bruno Haible  <bruno@clisp.org>
81555
81556         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81557         $(ALLOCA_H), redundant through BUILT_SOURCES.
81558         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81559         redundant through BUILT_SOURCES.
81560         * modules/byteswap (Makefile.am): Remove explicit dependency on
81561         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81562         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81563         $(FNMATCH_H), redundant through BUILT_SOURCES.
81564         * modules/getopt (Makefile.am): Remove explicit dependency on
81565         $(GETOPT_H), redundant through BUILT_SOURCES.
81566         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81567         redundant through BUILT_SOURCES.
81568         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81569         redundant through BUILT_SOURCES.
81570         * modules/stdbool (Makefile.am): Remove explicit dependency on
81571         $(STDBOOL_H), redundant through BUILT_SOURCES.
81572         * modules/stdint (Makefile.am): Remove explicit dependency on
81573         $(STDINT_H), redundant through BUILT_SOURCES.
81574         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81575         Remove explicit dependency on $(SYSEXITS_H).
81576         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81577
81578 2005-07-18  Simon Josefsson  <jas@extundo.com>
81579
81580         * lib/check-version.c (check_version): Accept identical versions too.
81581
81582 2005-07-18  Bruno Haible  <bruno@clisp.org>
81583
81584         * modules/lock: New file.
81585         * MODULES.html.sh (Multithreading): New section.
81586
81587 2005-07-18  Bruno Haible  <bruno@clisp.org>
81588
81589         * m4/lock.m4: New file, from GNU gettext.
81590
81591 2005-07-18  Bruno Haible  <bruno@clisp.org>
81592
81593         * lib/lock.h: New file, from GNU gettext.
81594         * lib/lock.c: New file, from GNU gettext.
81595
81596 2005-07-18  Bruno Haible  <bruno@clisp.org>
81597
81598         * lib/lock.h (gl_once_t): New type.
81599         (gl_once_define, gl_once): New macros.
81600         * lib/lock.c (fresh_once): New variable.
81601         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81602         functions.
81603
81604 2005-07-16  Simon Josefsson  <jas@extundo.com>
81605
81606         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81607         workaround, suggested by Bruno.
81608
81609 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         * modules/xalloc (Depends-on): Add xalloc-die.
81612         * modules/xvasprintf (Depends-on): Add xalloc-die.
81613
81614 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81617         with a minor change.
81618
81619 2005-07-15  Bruno Haible  <bruno@clisp.org>
81620
81621         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81622         When using lib/poll.c, define poll as rpl_poll.
81623
81624 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * modules/argp (Depends-on): Remove unlocked-io.
81627
81628 2005-07-14  Derek Price  <derek@ximbiot.com>
81629
81630         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81631         for glob symlink bug.
81632
81633 2005-07-14  Bruno Haible  <bruno@clisp.org>
81634
81635         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81636         Instead, test for *_unlocked function declarations directly.
81637
81638 2005-07-11  Simon Josefsson  <jas@extundo.com>
81639
81640         * modules/size_max: New file.
81641
81642         * modules/xsize: Depend on size_max module for size_max.m4.
81643
81644 2005-07-11  Simon Josefsson  <jas@extundo.com>
81645
81646         * lib/size_max.h: New file.
81647
81648 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81651         copyright symbol and the year.
81652         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81653         (version_etc_va): Use parameterized copyright notice.
81654         Reword to conform to the current GNU coding standards.
81655
81656 2005-07-11  Karl Berry  <karl@gnu.org>
81657
81658         * doc/gnulib.texi (Quoting): new node.
81659         (Initial import): more info, from Patrice.
81660
81661 2005-07-11  Bruno Haible  <bruno@clisp.org>
81662
81663         * gnulib-tool (func_usage): Document option --avoid.
81664         (Command line options): Handle --avoid.
81665         (func_acceptable): New function.
81666         (func_modules_transitive_closure): Use it.
81667
81668 2005-07-11  Bruno Haible  <bruno@clisp.org>
81669
81670         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81671         Reported by Jim Meyering.
81672
81673 2005-07-10  Bruno Haible  <bruno@clisp.org>
81674
81675         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81676         Needed when size_t is smaller than 'unsigned int'.
81677         Reported by Paul Eggert.
81678
81679 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81680
81681         * modules/argp (Depends-on): Add unlocked-io
81682
81683 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81684
81685         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81686         block of defines.
81687
81688 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81689
81690         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81691         fix now.
81692
81693 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81694         and Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81697         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81698
81699 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81700
81701         * modules/regex (Files): Add lib/regex_internal.c,
81702         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81703         (Depends-on): Add extensions.
81704         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81705
81706 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81707
81708         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81709         pathconf.
81710         * m4/same.m4 (gl_SAME): Likewise.
81711         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81712
81713         * m4/regex.m4: Adjust to new libc regex implementation.
81714         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81715         all the .c and .h parts of (the new) regex.
81716         Quote the m4 stuff better.
81717         Check for RE_ICASE bug of old gnulib.
81718         Check for REG_STARTEND of recent libc.
81719         Rename local variables from jm_* to gl_*.
81720         Quote operand of "test -f".
81721         Say "recent enough" version of libc, not "version 2".
81722         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81723         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81724         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81725         Remove check for btowc, isascii.
81726         Require AM_LANGINFO_CODESET.
81727
81728 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * lib/regex.c, regex.h: Sync from libc.
81731         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81732         * lib/regexec.c:
81733         New files, synced from libc, except that regex_internal.h
81734         currently has a small porting fix.
81735
81736 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81737
81738         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81739         regex_internal.c, regexec.c.
81740         Add regex_internal.h too, but as a comment, since the libc version
81741         is currently broken in gnulib mode.
81742
81743 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81744
81745         Support programs like Emacs that use gnulib but not gettext.
81746         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81747         * modules/gettext-h: New file.
81748         * modules/gettext (Files): Remove lib/gettext.h.
81749         (Depends-on): Add gettext-h.
81750         (Makefile.am): Remove lib_SOURCES.
81751         * modules/argmatch, modules/c-stack, modules/closeout:
81752         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81753         * modules/execute, modules/file-type, modules/getaddrinfo:
81754         * modules/getopt, modules/human, modules/javacomp:
81755         * modules/javaexec, modules/mkdir-p, modules/obstack:
81756         * modules/openat, modules/pagealign_alloc, modules/pipe:
81757         * modules/quotearg, modules/regex, modules/rpmatch:
81758         * modules/unicodeio, modules/userspec, modules/version-etc:
81759         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81760         * modules/xsetenv:
81761         Depend on gettext-h, not gettext.
81762
81763 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81764
81765         * gnulib-tool (func_import): Add support for 'public domain' license.
81766         * modules/alloca, modules/atexit, modules/memmove:
81767         Now public domain, not GPL.
81768         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81769         * modules/realloc, modules/strerror, modules/strtod:
81770         Now LGPL, not GPL.
81771
81772 2005-07-05  Bruno Haible  <bruno@clisp.org>
81773
81774         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81775         autoconf CVS. Needed for mingw.
81776
81777 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81778
81779         Remove the dependency of the strftime module on the tzset module.
81780         * modules/strftime (Depends-on): Remove dependency on tzset.
81781
81782 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81783
81784         Remove the dependency of the strftime module on the tzset module.
81785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81786         gl_FUNC_TZSET_CLOBBER.
81787
81788 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81789
81790         Remove the dependency of the strftime module on the tzset module.
81791         * lib/strftime.c (my_strftime)
81792         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81793         Copy the input structure, to work around some of the bug with
81794         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81795         Solaris releases, you should also use the tzset module, but we won't
81796         require it as a dependency any more since we don't want LGPLed code
81797         to depend on GPLed code.
81798
81799 2005-07-02  Jim Meyering  <jim@meyering.net>
81800
81801         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81802         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81803         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81804         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81805
81806 2005-07-02  Jim Meyering  <jim@meyering.net>
81807
81808         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81809
81810 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81813         declares only 'struct timespec;' (!).
81814
81815 2005-07-01  Jim Meyering  <jim@meyering.net>
81816
81817         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81818         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81819         * lib/save-cwd.c, tempname.c:
81820         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81821         and don't include <sys/file.h>).
81822
81823 2005-06-29  Jim Meyering  <jim@meyering.net>
81824
81825         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81826         type name.  Use the variable name instead.
81827         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81828         Likewise.
81829
81830 2005-06-28  Simon Josefsson  <jas@extundo.com>
81831
81832         * modules/check-version (Files): Add check-version.m4.
81833
81834 2005-06-28  Simon Josefsson  <jas@extundo.com>
81835
81836         * m4/check-version.m4: New file, suggested by Jim Meyering
81837         <jim@meyering.net>.
81838
81839 2005-06-28  Simon Josefsson  <jas@extundo.com>
81840
81841         * lib/check-version.h, lib/check-version.c: New files.
81842
81843 2005-06-28  Simon Josefsson  <jas@extundo.com>
81844
81845         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81846         collision with global variable.  Better indentation.  Don't
81847         increment buffer pointer beyond buffer end.  Based on comments
81848         from Paul Eggert <eggert@cs.ucla.edu>.
81849
81850         * lib/base64.h: Indent.
81851
81852 2005-06-28  Simon Josefsson  <jas@extundo.com>
81853
81854         * doc/gnulib.texi (Library version handling): New section.
81855
81856 2005-06-28  Jim Meyering  <jim@meyering.net>
81857
81858         * check-module (find_included_lib_files): Hard-code another
81859         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81860         but modules/fts-lgpl (correctly) does not list those files.
81861
81862         * modules/canonicalize (Files): Add lib/pathmax.h.
81863
81864 2005-06-25  Simon Josefsson  <jas@extundo.com>
81865
81866         * modules/check-version: New file.
81867
81868 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81871         initializer of struct addrinfo, as an indication that we don't
81872         care how many members the structure has.
81873
81874 2005-06-24  Derek Price  <derek@ximbiot.com>
81875         and Bruno Haible  <bruno@clisp.org>
81876
81877         Remove stat module & update lstat.
81878         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81880         * m4/stat.m4: Remove this file.
81881
81882 2005-06-24  Derek Price  <derek@ximbiot.com>
81883         and Bruno Haible  <bruno@clisp.org>
81884
81885         Remove stat module & update lstat.
81886         * lib/stat.c: Remove this file...
81887         (slash_aware_lstat): ...moving this content and its support...
81888         * lib/lstat.c (rpl_lstat): ...into here.
81889         * lib/lstat.h: New file.
81890
81891 2005-06-24  Derek Price  <derek@ximbiot.com>
81892         and Bruno Haible  <bruno@clisp.org>
81893
81894         Remove stat module & update lstat.
81895         * config/srclist.txt (libc sources): Remove stat.
81896
81897 2005-06-24  Derek Price  <derek@ximbiot.com>
81898         and Bruno Haible  <bruno@clisp.org>
81899
81900         Remove stat module & update lstat.
81901         * MODULES.html.sh (stat): Remove.
81902         * MODULES.html: Regenerated.
81903         * modules/lstat (Description): Correct function name.
81904         (Files): Add "lstat.h".
81905         (Depends-on): Remove stat, add xalloc, stat-macros.
81906         * modules/stat: Remove this file.
81907         (Include): Add "lstat.h", remove <sys/stat.h>.
81908
81909 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81910
81911         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81912         (ranged_convert): Don't save conversion in a temporary struct.
81913         This causes a warning with GCC 4.0.0, and anyway in the typical
81914         case it's not worth the extra 100 bytes or so of code.
81915         (ranged_convert, __mktime_internal): When calling a function via a
81916         pointer P, use P () rather than (*P) (), as we now assume C89 or
81917         better.
81918
81919 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81920
81921         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81922         "who -r" failed to give output.  Problem reported by Tim Waugh.
81923
81924         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81925         (xcalloc): Use it to avoid needless tests.
81926         Problem reported by Jim Meyering.
81927
81928 2005-06-20  Derek Price  <derek@ximbiot.com>
81929
81930         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81931         unnecessary for Autoconfs > 2.59c.
81932
81933 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81934
81935         * lib/argp.h (__option_is_short): Check upper limit of
81936         __key. Isprint() requires its argument to have the value
81937         of an unsigned char or EOF.
81938
81939 2005-06-16  Jim Meyering  <jim@meyering.net>
81940
81941         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81942         when either N or S is zero.
81943
81944 2005-06-16  Derek Price  <derek@ximbiot.com>
81945
81946         * m4/bison.m4: Declare YACC & YFLAGS precious.
81947
81948 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81949
81950         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81951         multibyte string or pattern, fall back on unibyte matching.
81952         Problem reported by James Youngman.
81953
81954 2005-06-08  Bruno Haible  <bruno@clisp.org>
81955
81956         * modules/csharpcomp: New file.
81957         * MODULES.html.sh (C#): Add csharpcomp.
81958
81959 2005-06-08  Bruno Haible  <bruno@clisp.org>
81960
81961         * m4/csharpcomp.m4: New file, from GNU gettext.
81962
81963 2005-06-08  Bruno Haible  <bruno@clisp.org>
81964
81965         * lib/csharpcomp.h: New file, from GNU gettext.
81966         * lib/csharpcomp.c: New file, from GNU gettext.
81967         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81968
81969 2005-06-08  Bruno Haible  <bruno@clisp.org>
81970
81971         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81972         warning on mingw.
81973
81974 2005-06-07  Derek Price  <derek@ximbiot.com>
81975
81976         Sync from CVS.
81977         * lib/glob_.h: Indent nested #ifdef.
81978
81979 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         Sync from coreutils.
81982         Use "file name" when talking about file names, instead of "filename"
81983         or "path", as per the GNU coding standards.
81984         * lib/mkdir-p.c: Renamed from makepath.c.
81985         (make_dir_parents): Renamed from make_path.  All callers changed.
81986         * lib/mkdir-p.h: Likewise.  All includers changed.
81987         * lib/filenamecat.c: Renamed from path-concat.c.
81988         (file_name_concat): Renamed from path_concat.  All callers changed.
81989         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81990         * lib/filenamecat.h: Likewise.  All includers changed.
81991         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81992         in comments or local variable names.
81993         * lib/basename.c: Likewise.
81994         * lib/canonicalize.c, canonicalize.h: Likewise.
81995         * lib/dirname.c, dirname.h: Likewise.
81996         * lib/euidaccess.c: Likewise.
81997         * lib/exclude.c: Likewise
81998         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81999         * lib/fsusage.c, fsuage.h: Likewise.
82000         * lib/fts.c, fts_.h: Likewise.
82001         * lib/getcwd.c: Likewise.
82002         * lib/getloadavg.c: Likewise.
82003         * lib/mkstemp.c: Likewise.
82004         * lib/mountlist.c, mountlist.h: Likewise.
82005         * lib/openat.c, openat.h: Likewise.
82006         * lib/readlink-stub.c: Likewise.
82007         * lib/readutmp.c, readutmp.h: Likewise.
82008         * lib/rename.c: Likewise.
82009         * lib/rmdir.c: Likewise.
82010         * lib/same.c: Likewise.
82011         * lib/savedir.c: Likewise.
82012         * lib/stripslash.c: Likewise.
82013         * lib/tempname.c: Likewise.
82014         * lib/xreadlink.c: Likewise.
82015         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82016         All uses changed.
82017         * lib/exclude.h: Likewise.
82018
82019         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82020         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82021         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82022         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82023         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82024         files have been getting away with it for years (MORE/BSD 4.3
82025         is extinct now).
82026         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82027         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82028
82029         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82030         Define to 256, not 255, as per modern POSIX.
82031
82032 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         Sync from coreutils.
82035         Use "file name" when talking about file names, instead of "filename"
82036         or "path", as per the GNU coding standards.
82037         * MODULES.html.sh: mkdir-p renamed from makepath.
82038         filenamecat renamed from path-concat.
82039         * modules/filenamecat: Renamed from modules/path-concat.
82040         (Files): filenamecat.h and filenamecat.c renamed from
82041         path-concat.h and path-concat.c.
82042         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82043         (Include): filenamecat.h, not path-concat.h.
82044         * modules/mkdir-p: Renamed from modules/makepath.
82045         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82046         makepath.c.
82047         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82048         (Include): mkdir-p.h, not makepath.h.
82049
82050 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82051
82052         Sync from coreutils.
82053         * m4/mkdir-p.m4: Renamed from makepath.m4.
82054         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82055         Rename files from makepath.c to mkdir-p.c, and from
82056         makepath.h to mkdir-p.h.
82057         * m4/filenamecat.m4: Renamed from path-concat.m4.
82058         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82059         Rename files from path-concat.c to filenamecat.c,
82060         and from path-concat.h to filenamecat.h.
82061         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82062         "file name" in local variables or comments.
82063         * m4/rename.m4: Likewise.
82064
82065 2005-06-01  Bruno Haible  <bruno@clisp.org>
82066
82067         * modules/csharpexec: New file.
82068         * MODULES.html.sh (C#): New section.
82069
82070 2005-06-01  Bruno Haible  <bruno@clisp.org>
82071
82072         * m4/csharp.m4: New file, from GNU gettext.
82073         * m4/csharpexec.m4: New file, from GNU gettext.
82074
82075 2005-06-01  Bruno Haible  <bruno@clisp.org>
82076
82077         * lib/csharpexec.h: New file, from GNU gettext.
82078         * lib/csharpexec.c: New file, from GNU gettext.
82079         * lib/csharpexec.sh.in: New file, from GNU gettext.
82080
82081 2005-05-31  Derek Price  <derek@ximbiot.com>
82082             Paul Eggert  <eggert@cs.ucla.edu>
82083
82084         Sync from cvs.
82085         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82086
82087 2005-05-31  Derek Price  <derek@ximbiot.com>
82088             Paul Eggert  <eggert@cs.ucla.edu>
82089
82090         Sync from cvs.
82091         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82092
82093 2005-05-29  Derek Price  <derek@ximbiot.com>
82094
82095         * config/srclist.txt (glob_.h, glob.c): Add these files.
82096
82097 2005-05-29  Derek Price  <derek@ximbiot.com>
82098
82099         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82100         * modules/glob: New file.
82101         * modules/getlogin_r: Add link to POSIX spec in description.
82102
82103 2005-05-29  Derek Price  <derek@ximbiot.com>
82104             Paul Eggert  <eggert@cs.ucla.edu>
82105
82106         * m4/glob.m4: New file.
82107
82108 2005-05-29  Derek Price  <derek@ximbiot.com>
82109             Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * lib/glob_.h, lib/glob.c: New files.
82112
82113 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82114
82115         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82116         * modules/fts-lgpl (Depends-on): Remove gettext.
82117
82118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82119
82120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82121         and don't require gt_INTTYPES_PRI.
82122
82123 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82126
82127         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82128         the configuration hassle isn't worth it.
82129         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82130         (LONGEST_MODIFIER, PRIuMAX): Remove.
82131
82132 2005-05-27  Bruno Haible  <bruno@clisp.org>
82133
82134         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82135
82136 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82137
82138         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82139         _POSIX_PTHREAD_SEMANTICS for Solaris.
82140
82141 2005-05-25  Derek Price  <derek@ximbiot.com>
82142
82143         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82144
82145 2005-05-25  Derek Price  <derek@ximbiot.com>
82146             Paul Eggert  <eggert@cs.ucla.edu>
82147
82148         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82149         * lib/getlogin_r.c, getlogin_r.h: New files.
82150
82151 2005-05-25  Bruno Haible  <bruno@clisp.org>
82152             Derek Price  <derek@ximbiot.com>
82153
82154         * lib/getlogin_r.h: Simplify API documentation.
82155
82156 2005-05-23  Derek Price  <derek@ximbiot.com>
82157
82158         * modules/minmax (Files): Add m4/minmax.m4.
82159         (configure.ac): Add gl_MINMAX.
82160
82161 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82164         so that unistd-safer.h (GPL'ed code) need not be included.
82165
82166 2005-05-22  Bruno Haible  <bruno@clisp.org>
82167
82168         * m4/minmax.m4: New file.
82169         Based on a patch by Derek Price <derek@ximbiot.com>.
82170
82171 2005-05-22  Bruno Haible  <bruno@clisp.org>
82172
82173         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82174         (INT64_MIN): Fix definition.
82175         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82176
82177         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82178         NEED_SIGNED_INT_TYPES.
82179
82180         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82181         HAVE_SYSTEM_INTTYPES.
82182
82183 2005-05-22  Bruno Haible  <bruno@clisp.org>
82184
82185         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82186         Also include <sys/param.h> if it defines MIN, MAX.
82187         Based on a patch by Derek Price <derek@ximbiot.com>.
82188
82189 2005-05-21  Jim Meyering  <jim@meyering.net>
82190
82191         * modules/fts (Files): Add m4/inttypes-pri.m4.
82192         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82193
82194 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         New fts module.
82197         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82198         (setup_dir, free_dir): New functions.
82199         (enter_dir, leave_dir): Define trivial
82200         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82201         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82202         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82203         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82204         Move to fts-cycle.c.
82205         (fts_open): Use setup_dir.
82206         (fts_close): Use free_dir.
82207         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82208         This adds a label and some gotos, but the alternatives were messier.
82209         Check for memory allocation failure when entering a dir.
82210         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82211         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82212         (FTS): New member fts_cycle, that is a union that contains the
82213         old active_dir_ht and cycle_state.  All uses changed to mention
82214         fts_cycle.ht and fts_cycle.state.
82215         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82216         fts.c, with the following changes:
82217         (setup_dir, free_dir): New functions.
82218         (enter_dir): Now returns bool.  Return true if successful, false
82219         if memory exhausted.  All callers changed.
82220         Do not bother partly cleaning up on
82221         memory allocation failure; that is free_dir's job.
82222         However, free ad if hash_insert fails, to avoid memory leak.
82223         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82224         fts->fts_options to see which union member to use.
82225
82226 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82227
82228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82229         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82230
82231 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82232
82233         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82234
82235 2005-05-20  Jim Meyering  <jim@meyering.net>
82236
82237         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82238         Now a macro, to pacify GCC.
82239
82240 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82241
82242         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82243         of -1.
82244
82245 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82246
82247         * lib/chown.c (rpl_chown): Return -1 on failure.
82248
82249 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82250
82251         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82252         Don't check for stddef.h.
82253         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82254         don't use its results.
82255         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82256         since we include them unconditionally.  Don't require
82257         AM_STDBOOL_H, since stdbool is a prerequisite.
82258         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82259         since we assume C89 or better.
82260         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82261         as we don't use their results.
82262         Don't check for fchdir, memmove, memset, strrchr, as we use
82263         them unconditionally.
82264         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82265         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82266
82267 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82268
82269         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82270         Include <stddef.h> unconditionally, since we assume C89 now.
82271         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82272         * lib/fts.c: Include fts_.h first, to check interface.
82273         Do not include intprops.h; no longer needed.
82274         Include cycle-check.h and hash.h, since fts_.h no longer does.
82275         Remove unnecessary casts of closedir to void.
82276         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82277         decide whether to decrement nlinks.
82278         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82279         (FTS): Use struct hash_table * instead of Hash_table, so that
82280         we no longer need to include hash.h here.
82281
82282 2005-05-18  Jim Meyering  <jim@meyering.net>
82283
82284         * modules/dirfd (License): Change to LGPL.  Most of the code
82285         is already in the public domain.
82286
82287 2005-05-18  Jim Meyering  <jim@meyering.net>
82288
82289         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82290         Reported by Yoann Vandoorselaere.
82291
82292 2005-05-17  Jim Meyering  <jim@meyering.net>
82293
82294         * m4/fts.m4: New file, from coreutils.
82295
82296 2005-05-17  Jim Meyering  <jim@meyering.net>
82297
82298         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82299
82300 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         Sync from coreutils.
82303         * m4/unlinkdir.m4: New file.
82304
82305 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         Sync from coreutils.
82308         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82309         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82310         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82311         White space changes only.
82312         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82313         special.
82314         * lib/yesno.c: Include getline.h, not ctype.h.
82315         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82316         Use getline to remove arbitrary restriction on response length.
82317
82318 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82319
82320         * config/srclist-update: Spell out "Street" in FSF postal
82321         mail address; this is the style the FSF seems to prefer.
82322
82323         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82324         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82325         this updates FSF postal mail address.
82326
82327         Sync from coreutils.
82328         * modules/unlinkdir: New file.
82329         * modules/yesno (Depends-on): Add getline.
82330         * MODULES.html.sh (File system functions): Add unlinkdir.
82331
82332 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82333
82334         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82335         lib/strsep.h:
82336         Change the initial comment to refer to GPL, not LGPL.
82337         gnulib-tool will change it to LGPL as needed.
82338
82339         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82340         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82341         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82342         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82343         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82344         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82345         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82346         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82347         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82348         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82349         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82350         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82351         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82352         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82353         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82354         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82355         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82356         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82357         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82358         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82359         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82360         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82361         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82362         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82363         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82364         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82365         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82366         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82367         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82368         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82369         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82370         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82371         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82372         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82373         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82374         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82375         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82376         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82377         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82378         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82379         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82380         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82381         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82382         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82383         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82384         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82385         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82386         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82387         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82388         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82389         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82390         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82391         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82392         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82393         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82394         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82395         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82396         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82397         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82398         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82399         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82400         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82401         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82402         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82403         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82404         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82405         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82406         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82407         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82408         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82409         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82410         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82411         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82412         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82413         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82414         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82415         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82416         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82417         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82418         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82419         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82420         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82421         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82422         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82423         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82424         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82425         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82426         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82427         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82428         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82429         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82430         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82431         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82432         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82433         lib/yesno.c, lib/yesno.h:
82434         Update FSF postal mail address.
82435
82436 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82437
82438         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82439         tests/test-memmem.c, tests/test-stpncpy.c:
82440         Update FSF postal mail address.
82441
82442 2005-05-13  Bruno Haible  <bruno@clisp.org>
82443
82444         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82445         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82446         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82447         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82448         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82449         Add support for 64-bit integers in the MSVC compiler.
82450
82451 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82452
82453         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82454
82455 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82456
82457         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82458
82459 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82460
82461         * doc/getdate.texi (General date syntax): Don't say that date
82462         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82463         Problem reported by Nic Ferrier.
82464
82465 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82466
82467         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82468         specified in ai_socktype. Fix invalid ai_protocol
82469         check. ai_protocol is usually set to 0 or depending on
82470         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82471         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82472         ai_socktype / ai_protocol in the returned addrinfo structure.
82473
82474 2005-05-10  Simon Josefsson  <jas@extundo.com>
82475
82476         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82477         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82478
82479 2005-05-10  Karl Berry  <karl@gnu.org>
82480
82481         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82482         (from http://www.gnu.org/licenses).
82483         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82484         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82485         fdl.texi suffices.
82486
82487 2005-05-10  Karl Berry  <karl@gnu.org>
82488
82489         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82490         (COPYING.DOC): remove.
82491
82492         * config/srclist-update: new FSF address.
82493
82494 2005-05-10  Derek Price  <derek@ximbiot.com>
82495
82496         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82497         possible.
82498
82499 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82500             Bruno Haible  <bruno@clisp.org>
82501
82502         * modules/inet_ntop: New file.
82503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82504         inet_ntop.
82505
82506 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82507             Bruno Haible  <bruno@clisp.org>
82508
82509         * m4/inet_ntop.m4: New file.
82510
82511 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82512             Bruno Haible  <bruno@clisp.org>
82513
82514         * lib/inet_ntop.h: New file.
82515         * lib/inet_ntop.c: New file, from glibc with modifications.
82516
82517 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * modules/time_r (License): Change to LGPL.
82520         * modules/extensions (License): Change to LGPL.  Actually,
82521         the license is more permissive than that, but currently gnulib-tool
82522         doesn't know how to handle more-permissive licenses.
82523
82524         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82525         Problem reported by Dave Love.
82526
82527 2005-05-08  Jim Meyering  <jim@meyering.net>
82528
82529         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82530         blank.
82531
82532 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82533
82534         * modules/argmatch (Depends-on): Add stdbool.
82535         * modules/backupfile (Depends-on): Likewise.
82536         * modules/chdir-long (Depends-on): Likewise.
82537         * modules/closeout (Depends-on): Likewise.
82538         * modules/cycle-check (Depends-on): Likewise.
82539         * modules/dirname (Depends-on): Likewise.
82540         * modules/fnmatch (Depends-on): Likewise.
82541         * modules/fsusage (Depends-on): Likewise.
82542         * modules/fwriteerror (Depends-on): Likewise.
82543         * modules/getcwd (Depends-on): Likewise.
82544         * modules/getloadavg (Depends-on): Likewise.
82545         * modules/hard-locale (Depends-on): Likewise.
82546         * modules/makepath (Depends-on): Likewise.
82547         * modules/mountlist (Depends-on): Likewise.
82548         * modules/nanosleep (Depends-on): Likewise.
82549         * modules/posixtm (Depends-on): Likewise.
82550         * modules/quotearg (Depends-on): Likewise.
82551         * modules/readtokens (Depends-on): Likewise.
82552         * modules/readtokens0 (Depends-on): Likewise.
82553         * modules/readutmp (Depends-on): Likewise.
82554         * modules/save-cwd (Depends-on): Likewise.
82555         * modules/strftime (Depends-on): Likewise.
82556         * modules/userspec (Depends-on): Likewise.
82557         * modules/utimecmp (Depends-on): Likewise.
82558         * modules/xgetcwd (Depends-on): Likewise.
82559         * modules/xnanosleep (Depends-on): Likewise.
82560         * modules/xstrtod (Depends-on): Likewise.
82561         * modules/yesno (Depends-on): Likewise.
82562
82563 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82564
82565         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82566         needless checks.
82567
82568 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         Merge from coreutils.  Among other things,
82571         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82572         * lib/fd-safer.c: New file.
82573         * lib/fcntl-safer.h, open-safer.c: Remove.
82574         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82575         * lib/dup-safer.c: Include unistd-safer.h first.
82576         Don't include errno.h.
82577         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82578         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82579         * lib/file-type.c: Rely on file-type.h change.
82580         * lib/getloadavg.c: Include unistd-safer.h.
82581         (getloadavg): Use safer open.
82582         * lib/getusershell.c: Include "stdio-safer.h".
82583         (getusershell): Use safer fopen.
82584         * lib/long-options.c (long_options): Use NULL rather than 0.
82585         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82586         'free'.
82587         * lib/modechange.c: Likewise.
82588         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82589         (MODE_DONE): New constant.
82590         (struct mode_change): Remove 'next' member.
82591         (make_node_op_equals): New function; like the old one of the
82592         same name, except it allocates an array.
82593         (mode_compile, mode_create_from_ref): Use it.
82594         (mode_compile): Allocate result as an array, not a linked list.
82595         Parse octal string ourself, so that we catch mistakes like "+0".
82596         (mode_adjust): Arg is an array, not a linked list.
82597         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82598         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82599         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82600         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82601         Remove.  This is now stat-macros.h's job.
82602         (talloc): Remove.  All callers replaced by xalloc, so that
82603         our invokers don't have to worry about reporting memory failures.
82604         (make_node_op_equals): Remove.
82605         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82606         New constants.
82607         (struct mode_change): Moved here from modechange.h.
82608         (mode_append_entry): Remove.
82609         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82610         apps to have incorrect behavior.  Use simpler algorithm for head
82611         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82612         Detect more invalid usages rather than having somewhat-random behavior.
82613         Don't insert an "a=" action, as that leads to incorrect behavior.
82614         (mode_compile, mode_create_from_ref): Return NULL on error instead
82615         of an enum, since now there's only one way to have an error.  All
82616         callers changed.
82617         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82618         at the correct time.  Simplify calculation of "+u" and its ilk.
82619         Don't mishandle "+X".
82620         (mode_free): Remove "register" and localize decls.
82621         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82622         (struct mode_change): Move to modechange.c; callers don't
82623         need to see this stuff.
82624         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82625         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82626         (mode_change, mode_adjust): Reflect the new signatures noted above.
82627         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82628         that might redefine system include files.
82629         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82630         (my_usleep): Use NULL rather than (void *) 0.
82631         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82632         Use siginterrupt to specify that system calls should be interrupted.
82633         (rpl_nanosleep): Move initialization of suspended closer to call of
82634         my_usleep.
82635         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82636         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82637         (desirable_utmp_entry): New function.
82638         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82639         using x2nrealloc, to simplify logic.
82640         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82641         size calculation.  Do not assume utmp file is a regular file.
82642         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82643         (READ_UTMP_CHECK_PIDS): New constant.
82644         * lib/save-cwd.c: Include unistd-safer.h.
82645         (save_cwd): Use fd_safer.
82646         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82647         [!_LIBC] Include "stat-macros.h" instead.
82648         * lib/unistd-safer.h (fd_safer): New decl.
82649
82650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82651
82652         * modules/getloadavg (Depends-on): Add unistd-safer.
82653         * modules/getusershell (Depends-on): Add stdio-safer.
82654         * modules/lstat (Depends-on): Remove xalloc.
82655         * modules/mkstemp (Depends-on): Add stat-macros.
82656         * modules/modechange (Depends-on): Remove xstrtol.
82657         Add stat-macros, xalloc.
82658         * modules/save-cwd (Depends-on): Add unistd-safer.
82659         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82660         * modules/unistd-safer (Files): Add lib/fd-safer.c
82661         (Makefile.am): Remove lib_SOURCES.
82662
82663         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82664         Remove fcntl-safer; unistd-safer supersedes it.
82665
82666 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82669         AC_HEADER_STAT.
82670         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82671         (gl_PREREQ_CHOWN): Remove.
82672         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82673         it.  Don't require AC_HEADER_STAT.
82674         (gl_PREREQ_LSTAT): Remove.
82675         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82676         Don't require AC_HEADER_STAT.
82677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82678         (gl_PREREQ_RMDIR): Remove.
82679         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82680         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82681         the stat-macros module a prerequisite.
82682         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82683         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82684         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82685         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82686         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82687         variable names.
82688         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82689         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82690         variable prefixes.
82691         * m4/fcntl-safer.m4: Remove.
82692         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82693         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82694         Invoke gl_PREREQ_FD_SAFER.
82695         (gl_PREREQ_FD_SAFER): New macro.
82696         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82697         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82698         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82699         Remove duplicate call to AC_LIBOBJ(readutmp).
82700         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82701
82702         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82703         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82704
82705 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82706
82707         * MODULES.html.sh (Misc): Add byteswap.
82708
82709 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82710
82711         * modules/getcwd (Depends-on): Add extensions.
82712         * modules/openat (Depends-on): Likewise.
82713
82714 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82715
82716         * modules/byteswap: New file.
82717
82718 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82719
82720         * m4/byteswap.m4: New file.
82721
82722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82723
82724         * lib/byteswap_.h: New file.
82725
82726 2005-04-25  Karl Berry  <karl@gnu.org>
82727
82728         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82729
82730 2005-04-25  Albert Chin  <china@thewrittenword.com>
82731
82732         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82733         Toolkit C bug.
82734
82735 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82736
82737         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82738         (func_ln_if_changed): Remove forcibly for no error message
82739         in case file does not exist.
82740
82741 2005-04-19  Simon Josefsson  <jas@extundo.com>
82742
82743         * gnulib-tool (Options): Make --symlink mean --symbolic.
82744
82745 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82746
82747         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82748
82749 2005-04-16  Simon Josefsson  <jas@extundo.com>
82750
82751         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82752
82753 2005-04-15  Simon Josefsson  <jas@extundo.com>
82754
82755         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82756
82757 2005-04-15  Simon Josefsson  <jas@extundo.com>
82758
82759         * gnulib-tool: Rename --symlink to --symbolic.
82760
82761 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82762
82763         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82764         symbolic links to files instead of copying/moving.  Add --aux-dir,
82765         specifying directory relative --dir where auxiliary build tools
82766         are placed.
82767
82768 2005-04-14  Bruno Haible  <bruno@clisp.org>
82769
82770         * modules/allocsa (License): Change to LGPL.
82771         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82772
82773 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82774
82775         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82776         that "UTC +1 second" continues to work.  Problem reported
82777         by Dmitry V. Levin.
82778         (relunit_snumber): New rule.
82779         (relunit): Use it.
82780
82781 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82782
82783         * lib/getdate.y (universal_time_zone_table): New constant.
82784         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82785         universal_time_zone_table.
82786         (lookup_zone): Prefer universal_time_zone_table to
82787         local_time_zone_table, so that "GMT" time stamps are allowed in
82788         London during the summer.  Problem reported by Ian Abbott.
82789
82790 2005-04-12  Jim Meyering  <jim@meyering.net>
82791
82792         * lib/human.c (humblock): Set *options even when returning due to
82793         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82794         warning from gcc-4.
82795
82796 2005-04-09  Jim Meyering  <jim@meyering.net>
82797
82798         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82799         -Wuninitialized: initialize tm0.tm_year.
82800
82801 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82802
82803         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82804         count, since there's no maximum.  All uses changed.
82805         Add member dsts_seen.
82806         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82807         not being INT_MAX.
82808         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82809         Use pc_rels_seen to decide whther a date is absolute.
82810
82811         * lib/getdate.y (number): Don't overwrite year.
82812         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82813         check.
82814
82815 2005-04-02  Simon Josefsson  <jas@extundo.com>
82816
82817         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82818         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82819
82820 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82821
82822         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82823         where no absolute path name can be longer than PATH_MAX.
82824
82825 2005-03-27  Jim Meyering  <jim@meyering.net>
82826
82827         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82828
82829 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82830
82831         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82832         "one's complement" -> "ones' complement" in comment, as per Knuth.
82833         "value of type" -> "type or expression" in comment.
82834         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82835
82836 2005-03-26  Jim Meyering  <jim@meyering.net>
82837
82838         Comment nits.
82839         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82840         Correct typos: s/or/of/.
82841
82842 2005-03-26  Jim Meyering  <jim@meyering.net>
82843
82844         * modules/check-include-files: Move to ../ and rename to...
82845         * check-module: ...this.
82846
82847 2005-03-25  Jim Meyering  <jim@meyering.net>
82848
82849         * modules/xvasprintf (Files): Add xalloc.h.
82850
82851 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82852
82853         * modules/gettext (Files): config/config.rpath ->
82854         build-aux/config.rpath
82855         * modules/iconv (Files): Likewise.
82856         Problem reported by Oskar Liljeblad.
82857
82858 2005-03-23  Jim Meyering  <jim@meyering.net>
82859
82860         * modules/check-include-files: New script to check for
82861         missing dependencies, multiple includes, etc.
82862
82863         * modules/c-strtold (Depends-on): Add xalloc.
82864         * modules/c-strtod (Depends-on): Add xalloc.
82865         * modules/hash (Depends-on): Add xalloc.
82866         (Files): Remove lib/xalloc.h.
82867
82868         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82869         * modules/userspec (Files): Add lib/inttostr.h.
82870
82871 2005-03-23  Jim Meyering  <jim@meyering.net>
82872
82873         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82874
82875 2005-03-22  Jim Meyering  <jim@meyering.net>
82876
82877         * modules/stat-macros: New module.
82878         * modules/canonicalize, modules/euidaccess, modules/file-type,
82879         * modules/filemode, modules/lchown, modules/makepath,
82880         * modules/rmdir, modules/stat: Depend on new stat-macros module
82881         rather than listing lib/stat-macros.h manually.
82882         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82883
82884 2005-03-22  Jim Meyering  <jim@meyering.net>
82885
82886         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82887
82888 2005-03-22  Bruno Haible  <bruno@clisp.org>
82889
82890         * config/srclist.txt: Replace target directory 'config' with
82891         'build-aux'.
82892         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82893         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82894         ../build-aux/.
82895
82896 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82897
82898         * modules/chdir-long (Depends-on): Add mempcpy.
82899
82900         * modules/acl, modules/backupfile, modules/c-strtod,
82901         modules/c-strtold, modules/canon-host, modules/canonicalize,
82902         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82903         modules/exclude, modules/exitfail, modules/file-type,
82904         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82905         modules/getdate, modules/getline, modules/getpagesize,
82906         modules/getpass, modules/getugroups, modules/group-member,
82907         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82908         modules/inttostr, modules/long-options, modules/makepath,
82909         modules/md5, modules/memcasecmp, modules/memcoll,
82910         modules/modechange, modules/mountlist, modules/path-concat,
82911         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82912         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82913         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82914         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82915         modules/strftime, modules/strndup, modules/strverscmp,
82916         modules/timespec, modules/unlocked-io, modules/userspec,
82917         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82918         modules/yesno:
82919         Remove lib_SOURCES line from Makefile.am section, as this is now
82920         done automatically by the corresponding Autoconf macro.
82921
82922 2005-03-21  Jim Meyering  <jim@meyering.net>
82923
82924         Changes imported from coreutils.
82925
82926         * lib/cycle-check.c: Don't include xalloc.h.
82927
82928         * lib/path-concat.c: Don't include assert.h.
82929         (path_concat): Remove assertion that would have triggered
82930         for ABASE starting with more than one slash.
82931         Reported by Andreas Schwab.
82932
82933         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82934         properly when ABASE is an absolute file name.
82935         Correct the description of this function.
82936         Include <assert.h>.
82937         Add an assertion and a test driver.
82938         This fixes a bug introduced on 2004-07-02.
82939         Andreas Schwab reported the resulting failure of cp --parents:
82940         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82941
82942 2005-03-21  Jim Meyering  <jim@meyering.net>
82943
82944         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82946
82947 2005-03-21  Jim Meyering  <jim@meyering.net>
82948         and  Paul Eggert  <eggert@cs.ucla.edu>
82949
82950         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82951         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82952         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82953         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82954         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82955         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82956         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82957         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82958         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82959         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82960         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82961         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82962         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82963         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82964         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82965         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82966         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82967         for these modules.
82968
82969 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82972         (which shouldn't happen), generate nothing instead of returning 0
82973         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82974
82975 2005-03-16  Bruno Haible  <bruno@clisp.org>
82976
82977         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82978         HAVE_LONGLONG_64BIT.
82979
82980 2005-03-16  Bruno Haible  <bruno@clisp.org>
82981
82982         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82983         HAVE_LONGLONG_64BIT.
82984
82985 2005-03-16  Bruno Haible  <bruno@clisp.org>
82986
82987         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82988         HAVE_LONGLONG_64BIT.
82989
82990 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82991
82992         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82993         reliably distinguish strftime failure from empty output on POSIX
82994         hosts.
82995
82996 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82997
82998         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82999         (iconv_string): Don't guess a size-zero buffer, as that might cause
83000         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83001         result would be 'too large', where 'too large' is (heuristically)
83002         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83003         overflow concerns.  This will prevent some unwanted malloc failures
83004         when the inputs are very large.
83005
83006 2005-03-15  Karl Berry  <karl@gnu.org>
83007
83008         * config/srclist.txt (config.rpath): from gettext.
83009         * config/config.rpath: update.
83010
83011 2005-03-15  Bruno Haible  <bruno@clisp.org>
83012
83013         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83014         to 'negate'.
83015
83016         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83017         variable.
83018
83019         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83020         results.
83021
83022 2005-03-14  Simon Josefsson  <jas@extundo.com>
83023
83024         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83025         <fx@gnu.org>.
83026
83027 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83028
83029         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83030         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83031         intprops.h.
83032         * lib/strtol.c: Likewise.
83033
83034 2005-03-14  Jim Meyering  <jim@meyering.net>
83035
83036         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83037         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83038         to be nonzero so that we (and caller) can detect the difference
83039         between a valid zero-length expansion and an error return, even
83040         when the underlying strftime fails before writing anything into
83041         that location.
83042
83043 2005-03-14  Bruno Haible  <bruno@clisp.org>
83044
83045         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83046         Update from GNU gettext 0.14.3.
83047
83048 2005-03-10  Jim Meyering  <jim@meyering.net>
83049
83050         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83051
83052 2005-03-10  Jim Meyering  <jim@meyering.net>
83053
83054         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83055         so that this module works on systems without fchdir.
83056
83057 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83058
83059         Factor int-properties macros into a single file, except for
83060         glibc-related files.
83061         * lib/intprops.h: New file.
83062         * lib/getloadavg.c: Include it instead of limits.h.
83063         (INT_STRLEN_BOUND): Remove.
83064         * lib/human.c: Include intprops.h.
83065         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83066         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83067         302/1000.
83068         * lib/inttostr.h: Include intprops.h instead of limits.h.
83069         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83070         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83071         for consistency with intprops.h.
83072         (time_t_is_integer, twos_complement_arithmetic): Use them.
83073         * lib/sig2str.h: Include <signal.h>, intprops.h.
83074         (INT_STRLEN_BOUND): Remove.
83075         * lib/strftime.c (TYPE_SIGNED): Remove.
83076         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83077         * lib/strtol.c: Adjust comments to match intprops.h.
83078         * lib/userspec.c: Include intprops.h.
83079         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83080         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83081         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83082         instead of rolling our own expressions.
83083         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83084
83085         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83086         instead of int.
83087         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83088         the right thing even if adding 1900 would overflow.  Similarly
83089         for tm_mon + 1 and tm_yday + 1.
83090         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83091         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83092         (DO_SIGNED_NUMBER): New macro.
83093         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83094
83095 2005-03-07  Bruno Haible  <bruno@clisp.org>
83096
83097         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83098
83099 2005-03-07  Bruno Haible  <bruno@clisp.org>
83100
83101         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83102
83103 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83104
83105         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83106         (func_import): Only replace files via --import when they have actually
83107         changed.
83108
83109 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83110
83111         * m4/mmap-anon.m4: New file.
83112         * m4/pagealign_alloc.m4: New file.
83113
83114 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83115             Bruno Haible  <bruno@clisp.org>
83116
83117         * modules/pagealign_alloc: New file.
83118         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83119
83120 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83121             Bruno Haible  <bruno@clisp.org>
83122
83123         * lib/pagealign_alloc.h: New file.
83124         * lib/pagealign_alloc.c: New file.
83125
83126 2005-03-03  Bruno Haible  <bruno@clisp.org>
83127
83128         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83129         Use an all-permissive copyright notice, recommended by RMS.
83130
83131 2005-03-02  Bruno Haible  <bruno@clisp.org>
83132
83133         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83134         of AIX, the replacement has to be done only after <string.h> is
83135         included, therefore not in config.h. stpncpy.h does the replacement,
83136         and stpncpy.c uses it.
83137
83138 2005-03-02  Bruno Haible  <bruno@clisp.org>
83139
83140         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83141         stpncpy.c uses it.
83142
83143 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83144
83145         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83146         The workaround isn't strictly needed for POSIX conformance, and
83147         it's too much of a pain to configure and maintain.  We'll ask
83148         people to fix their kernels instead.
83149         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83150         (NANOSLEEP_BUG_WORKAROUND): Remove.
83151         (xnanosleep): Remove the workaround.
83152
83153 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83156         Reported by Derek Price.
83157         (Include): Add "timespec.h".
83158
83159         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83160
83161 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83162
83163         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83164         to detect nanosleep bug.
83165
83166 2005-03-01  Bruno Haible  <bruno@clisp.org>
83167
83168         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83169
83170 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         * modules/gethrxtime: New file.
83173         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83174         (Depends-on): Add gethrxtime.
83175         (configure.ac): Add gl_XNANOSLEEP.
83176         (Makefile.am): Remove lib_SOURCES line.
83177
83178 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83179
83180         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83181         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83182
83183 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83184
83185         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83186         * lib/timespec.h (gettime): Return void, since it always
83187         succeeds now.  All uses changed.
83188         * lib/gettime.c (gettime): Likewise.
83189         [HAVE_NANOTIME]: Prefer nanotime.
83190         Assume gettimeofday succeeds, as POSIX requires.
83191         Assime time () succeeds, since other code already does.
83192         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83193         (timespec_subtract): Remove.
83194         (NANOSLEEP_BUG_WORKAROUND): New constant.
83195         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83196         things considerably.  Use it only on GNU/Linux hosts, since the
83197         workaround shouldn't be needed elsewhere.
83198
83199 2005-02-24  Bruno Haible  <bruno@clisp.org>
83200
83201         * modules/gettext (Files): Add m4/glibc2.m4.
83202
83203 2005-02-24  Bruno Haible  <bruno@clisp.org>
83204
83205         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83206         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83207         * m4/progtest.m4:
83208         Update from GNU gettext 0.14.2.
83209         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83210
83211 2005-02-24  Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83214         * lib/config.charset: Update from GNU gettext 0.14.2.
83215
83216 2005-02-24  Bruno Haible  <bruno@clisp.org>
83217
83218         * lib/gettext.h: Update from GNU gettext 0.14.2.
83219
83220 2005-02-23  Simon Josefsson  <jas@extundo.com>
83221
83222         * m4/iconvme.m4: New file.
83223
83224 2005-02-23  Jim Meyering  <jim@meyering.net>
83225
83226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83227         change.
83228         Thanks to Bruno Haible for catching it.
83229
83230 2005-02-22  Simon Josefsson  <jas@extundo.com>
83231
83232         * modules/iconvme: New file.
83233
83234         * MODULES.html.sh: Add iconvme.
83235
83236 2005-02-22  Simon Josefsson  <jas@extundo.com>
83237
83238         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83239
83240 2005-02-22  Simon Josefsson  <jas@extundo.com>
83241
83242         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83243
83244 2005-02-22  Jim Meyering  <jim@meyering.net>
83245
83246         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83247         s/ifndef/ifdef/.
83248
83249 2005-02-20  Neil Conway  <neilc@samurai.com>
83250
83251         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83252         returned by OSX/Darwin if the specified buffer is not large
83253         enough for the hostname.
83254
83255 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83256
83257         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83258         pass it to _help, otherwise the latter coredumps trying to
83259         dereference state.root_argp.
83260
83261 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83262
83263         * modules/chdir-long (Depends-on): Add memrchr.
83264         * modules/memrchr (Files): Add lib/memrchr.h.
83265         (Include): "memrchr.h".
83266
83267 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83268
83269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83270
83271 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         * lib/memrchr.h: New file.
83274         * lib/chdir-long.c: Include it.
83275         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83276         Don't bother including stddef.h.
83277
83278 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83279
83280         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83281         inclusion.
83282         Include <sys/types.h>, for dev_t.
83283         (ME_DUMMY, ME_REMOTE): Move from here....
83284         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83285         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83286         Dmitry V. Levin.
83287         Include mountlist.h first, to test the interface.
83288
83289 2005-01-29  Bruno Haible  <bruno@clisp.org>
83290
83291         * lib/progname.c (program_name): Initialize.
83292         Needed when linking statically on MacOS X.
83293
83294 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         Sync from coreutils.
83297         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83298         (Depends-on): Add c-strtod.
83299         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83300
83301 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83302
83303         Sync from coreutils.
83304         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83305
83306         Remove files that are specific to coreutils.
83307         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83308
83309 2005-01-28  Bruno Haible  <bruno@clisp.org>
83310
83311         * modules/javacomp: New file.
83312         * MODULES.html.sh (Java): Add javacomp.
83313
83314 2005-01-28  Bruno Haible  <bruno@clisp.org>
83315
83316         * m4/javacomp.m4: New file, from GNU gettext.
83317
83318 2005-01-28  Bruno Haible  <bruno@clisp.org>
83319
83320         * lib/javacomp.sh.in: New file, from GNU gettext.
83321         * lib/javacomp.h: New file, from GNU gettext.
83322         * lib/javacomp.c: New file, from GNU gettext.
83323
83324 2005-01-26  Simon Josefsson  <jas@extundo.com>
83325
83326         * lib/gai_strerror.c: Use GPL in header.
83327
83328 2005-01-26  Bruno Haible  <bruno@clisp.org>
83329
83330         * modules/javaexec: New file.
83331         * MODULES.html.sh (Java): Add javaexec.
83332
83333 2005-01-26  Bruno Haible  <bruno@clisp.org>
83334
83335         * m4/javaexec.m4: New file, from GNU gettext.
83336
83337 2005-01-26  Bruno Haible  <bruno@clisp.org>
83338
83339         * lib/javaexec.sh.in: New file, from GNU gettext.
83340         * lib/javaexec.h: New file, from GNU gettext.
83341         * lib/javaexec.c: New file, from GNU gettext.
83342
83343 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83344
83345         * modules/lchown (Depends-on): Remove lchown.h
83346
83347 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83348
83349         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83350         must be defined if the header file was not found, in order
83351         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83352
83353 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83354
83355         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83356         initializers for struct pentry_state.
83357         (__argp_error): Check return value of __asprintf
83358         (__argp_failure): Translate error message
83359
83360         * lib/argp-parse.c: Removed braces around the expansion of N_()
83361
83362 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83365         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83366         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83367         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83368         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83369         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83370         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83371         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83372         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83373         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83374         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83375         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83376         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83377         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83378         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83379         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83380         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83381         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83382         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83383         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83384         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83385         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83386         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83387         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83388         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83389         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83390         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83391         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83392         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83393         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83394         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83395         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83396         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83397         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83398         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83399         Use an all-permissive copyright notice, recommended by RMS.
83400
83401 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83402
83403         * modules/chdir-long (Depends-on): Remove mempcpy.
83404
83405 2005-01-21  Jim Meyering  <jim@meyering.net>
83406
83407         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83408         same value as for Solaris 9.
83409
83410         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83411         component length.  This included changing the parameter to be
83412         of type `char *' rather than `char const *'.
83413         * lib/chdir-long.h (chdir_long): Update prototype.
83414
83415         * lib/openat.c (fdopendir, fstatat): New functions.
83416         * lib/openat.h: Include headers required for use of DIR and struct
83417         stat.
83418         [AT_SYMLINK_NOFOLLOW]: Define.
83419         (fdopendir, fstatat): Add prototypes.
83420
83421 2005-01-21  Bruno Haible  <bruno@clisp.org>
83422
83423         * modules/classpath: New file.
83424         * MODULES.html.sh (Java): Add classpath.
83425
83426 2005-01-21  Bruno Haible  <bruno@clisp.org>
83427
83428         * lib/classpath.h: New file, from GNU gettext.
83429         * lib/classpath.c: New file, from GNU gettext.
83430
83431 2005-01-20  Simon Josefsson  <jas@extundo.com>
83432
83433         * modules/version-etc-fsf: New file.
83434
83435 2005-01-20  Simon Josefsson  <jas@extundo.com>
83436
83437         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83438         * lib/version-etc.c: Remove version_etc_copyright.
83439         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83440         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83441
83442 2005-01-20  Simon Josefsson  <jas@extundo.com>
83443
83444         * lib/base64.h (isbase64): Add.
83445
83446         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83447         using a unsigned prototype, don't inline.
83448         (base64_decode): Use it.
83449
83450 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83451
83452         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83453         it.
83454
83455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83456
83457         * lib/save-cwd.c (save_cwd): Remove code to support the case
83458         where fchdir is missing or flaky.
83459
83460 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83461
83462         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83463
83464 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83467         AC_LIBSOURCES now does this.
83468         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83469         with new ullong_max module.
83470
83471 2005-01-19  Bruno Haible  <bruno@clisp.org>
83472
83473         * modules/sh-quote: New file.
83474         * MODULES.html.sh (Executing programs): Add sh-quote.
83475
83476 2005-01-19  Bruno Haible  <bruno@clisp.org>
83477
83478         * lib/sh-quote.h: New file, from GNU gettext.
83479         * lib/sh-quote.c: New file, from GNU gettext.
83480
83481 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83482
83483         Merge from coreutils.
83484         * m4/ullong_max.m4: New file.
83485         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83486         (gl_MACROS): Assume localeconv exists.
83487
83488 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83489
83490         Merge changes from coreutils, as described below in several
83491         changelogs dated today.
83492
83493         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83494         (O_DIRECTORY): Remove; not needed here, since "." must be
83495         a directory.  All uses removed.
83496         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83497         universal on Suns, and we also need to test for IRIX.
83498         Revamp code to use 'if' rather than '#if'.
83499         Avoid unnecessary comparison of cwd->desc to 0.
83500
83501         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83502         for known valid error numbers rather than observed invalid ones.
83503
83504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83505
83506         * modules/ullong_max: New file.
83507
83508         * modules/chdir-long, modules/openat: New files.
83509         * modules/save-cwd (Depends-on): Depend on chdir-long.
83510         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83511
83512 2005-01-18  Jim Meyering  <jim@meyering.net>
83513
83514         Merge from coreutils.
83515         * m4/chdir-long.m4, m4/openat.m4: New files.
83516         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83517         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83518         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83519         is sane and DOES follow symlinks.  Besides, testing 20 different
83520         systems found no broken chown implementations.
83521         Prompted by a change in rsync's copy of this macro.
83522         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83523
83524         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83525
83526         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83527         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83528         NULL-means-set-to-current-time semantics.
83529         Remove temporary file immediately, rather than waiting
83530         for configure's at-exit trap code to do it.
83531
83532 2005-01-18  Jim Meyering  <jim@meyering.net>
83533
83534         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83535
83536         * lib/utimens.c (futimens): Account for the fact that futimes
83537         can also fail with errno == ENOSYS or errno == ENOENT.
83538         Patch from Dmitry V. Levin.
83539
83540         Change the name of the robust chdir function from chdir to chdir_long.
83541         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83542         (restore_cwd): Use chdir_long, not chdir.
83543         * lib/chdir-long.c: Renamed from chdir.c.
83544         * lib/chdir-long.h: Renamed from chdir.h.
83545         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83546         Hurd.
83547
83548 2005-01-18  Bruno Haible  <bruno@clisp.org>
83549
83550         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83551         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83552         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83553         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83554         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83555         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83556         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83557         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83558         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83559         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83560         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83561         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83562         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83563         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83564         Use an all-permissive copyright notice, recommended by RMS.
83565
83566 2005-01-18  Bob Proulx  <bob@proulx.com>
83567
83568         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83569         simplify offsetof() macro construct to avoid compile failure with
83570         native HP-UX 11.0 ANSI C compiler.
83571
83572 2005-01-17  Bruno Haible  <bruno@clisp.org>
83573
83574         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83575         redundant because stpncpy.m4 takes care of it.
83576
83577 2005-01-17  Bruno Haible  <bruno@clisp.org>
83578
83579         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83580
83581 2005-01-17  Bruno Haible  <bruno@clisp.org>
83582
83583         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83584         used.
83585
83586 2005-01-17  Bruno Haible  <bruno@clisp.org>
83587
83588         * lib/fwriteerror.h (fwriteerror): Change specification to include
83589         fclose.
83590         * lib/fwriteerror.c: Include <stdbool.h>.
83591         (fwriteerror): At the end, close the file stream. Record whether
83592         stdout was already closed.
83593
83594 2005-01-17  Bruno Haible  <bruno@clisp.org>
83595
83596         * lib/execute.c (environ): Declare if needed.
83597         * lib/pipe.c (environ): Likewise.
83598         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83599
83600 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83601
83602         * modules/argp: Depend on vsnprintf
83603
83604 2005-01-10  Jim Meyering  <jim@meyering.net>
83605
83606         * modules/closeout (Depends-on): Add atexit.
83607
83608 2005-01-06  Bruno Haible  <bruno@clisp.org>
83609
83610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83611
83612 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83613
83614         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83615         definitions to be after all include files, to avoid collisions.
83616         Problem reported by Bob Proulx.
83617
83618 2005-01-04  Jim Meyering  <jim@meyering.net>
83619
83620         Changes imported from coreutils.
83621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83622         as the mkstemp template, use a temporary directory and an
83623         8.3-friendly template to avoid trouble on systems like DJGPP.
83624         Reported by Juan M. Guerrero via Stepan Kasal.
83625         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83626         close. Remove the temporary directory right away, rather than waiting
83627         for configure's at-exit trap code to do it.
83628         Suggestion from Stepan Kasal.
83629
83630 2005-01-01  Simon Josefsson  <jas@extundo.com>
83631
83632         * gnulib-tool: Print #include directives when --import'ing.
83633
83634 2004-12-28  Simon Josefsson  <jas@extundo.com>
83635
83636         * tests/test-base64.c: Include required header files.  Remove
83637         unused variables.
83638
83639 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83640
83641         * modules/error (Depends-on): Remove gettext.
83642
83643 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83646         not needed.  This removes a dependency on the gettext module.
83647         [defined _LIBC]: Do not include <libintl.h>; not needed.
83648
83649 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83650
83651         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83652         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83653
83654 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83655
83656         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83657         HAVE_DECL_STRTOLD.
83658
83659 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         * modules/getdate (Depends-on): Remove alloca-opt.
83662
83663 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83666
83667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83668
83669         * lib/argp-parse.c: Include <stddef.h>.
83670         (alignof, alignto): New macros.
83671         (parser_init): Don't assume that void * is aligned sufficiently
83672         for struct option.
83673
83674         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83675         need to extend the stack.
83676         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83677         large.
83678
83679 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83680
83681         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83682
83683 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83684
83685         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83686         (2004-10-24) change.  Apparently this was a false alarm.
83687
83688         * modules/getdate: Depend on alloca-opt, not alloca.
83689
83690 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83691
83692         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83693         Remove now-obsolete comment about AIX.
83694         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83695         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83696         (YYMAXDEPTH): New macro.
83697
83698 2004-12-18  Simon Josefsson  <jas@extundo.com>
83699
83700         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83701
83702 2004-12-18  Bruno Haible  <bruno@clisp.org>
83703
83704         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83705
83706 2004-12-18  Bruno Haible  <bruno@clisp.org>
83707
83708         * lib/fatal-signal.c (fatal_signals): Make non-const.
83709         (init_fatal_signals): New function.
83710         (uninstall_handlers, install_handlers): Ignore signals that were set to
83711         SIG_IGN.
83712         (at_fatal_signal): Call init_fatal_signals.
83713         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83714         SIG_IGN.
83715         Reported by Paul Eggert.
83716
83717 2004-12-18  Bruno Haible  <bruno@clisp.org>
83718
83719         * doc/alloca.texi: New file.
83720         * doc/alloca-opt.texi: New file.
83721
83722 2004-12-17  Jim Meyering  <jim@meyering.net>
83723
83724         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83725         Otherwise, install-sh could exit with improper exit status when
83726         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83727
83728 2004-12-16  Simon Josefsson  <jas@extundo.com>
83729
83730         * tests/test-base64.c: Add license.
83731
83732 2004-12-15  Stepan Kasal  <address@hidden>
83733
83734         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83735
83736 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         * modules/getcwd (Files): Add m4/d-ino.m4.
83739         Suggested by Mark D. Baushke.
83740
83741 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83742
83743         * lib/getdate.y (textint): New member "negative".
83744         (time_zone_hhmm): New function.
83745         Expect 14 shift-reduce conflicts, not 13.
83746         (o_colon_minutes): New rule.
83747         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83748         (yylex): Set the "negative" member of signed numbers.
83749
83750 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * doc/getdate.texi (Time of day items, Time zone items):
83753         Describe new formats +00:00, UTC+00:00.
83754
83755 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83756
83757         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83758         spurious "-l"s.  Problem reported by Stepan Kasal.
83759
83760 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83761
83762         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83763         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83764
83765 2004-12-04  Simon Josefsson  <jas@extundo.com>
83766
83767         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83768         Vandoorselaere <yoann@prelude-ids.org>.
83769
83770 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83771
83772         Changes imported from coreutils.
83773         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83774         exist.
83775         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83776
83777 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83778
83779         Changes imported from coreutils.
83780         * lib/hard-locale.c: Assume <locale.h> exists.
83781         Include "strdup.h".
83782         (GLIBC_VERSION): New macro.
83783         (hard_locale): Assume setlocale exists.
83784         Rewrite to avoid #ifdef.
83785         Use strdup rather than malloc + strcpy.
83786         * lib/human.c: Assume <locale.h> exists.
83787         (human_readable): Assume localeconv exists.
83788
83789 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * modules/hard-locale (Depends-on): Add strdup.
83792
83793 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83794
83795         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83796         convert T2, not T.  (Imported from libc.)
83797
83798 2004-11-30  Simon Josefsson  <jas@extundo.com>
83799
83800         * modules/restrict (License): Change to LGPL.
83801
83802 2004-11-30  Simon Josefsson  <jas@extundo.com>
83803
83804         * m4/restrict.m4: Add copyright and copying conditions.
83805
83806 2004-11-30  Simon Josefsson  <jas@extundo.com>
83807
83808         * m4/base64.m4: New file.
83809
83810 2004-11-30  Simon Josefsson  <jas@extundo.com>
83811
83812         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83813         base64.
83814
83815         * tests/test-base64.c: New file.
83816
83817         * modules/base64: New file.
83818
83819 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83820
83821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83822         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83823
83824         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83825
83826 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83827
83828         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83829         (__getcwd.c): Don't restore errno; glibc doesn't.
83830         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83831         first, falling back to our code only if its results look suspicious.
83832         Ensure that the resulting buffer is only as large as necessary.
83833
83834         * lib/readutmp.c: Include readutmp.h first.
83835         Include <errno.h>, since readutmp.h no longer does that.
83836         * lib/readutmp.h: Don't include <errno.h>,
83837         <sys/param.h>, <time.h>; not needed to establish interface.
83838         (errno): Remove decl.
83839         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83840         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83841         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83842
83843 2004-11-28  Simon Josefsson  <jas@extundo.com>
83844
83845         * lib/base64.h, base64.c: New file.
83846
83847 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83848
83849         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83850
83851 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83854         (Depends-on): Remove pathmax, same.  Add mempcpy.
83855         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83856         (Makefile.am): Append getcwd.h to lib_SOURCES.
83857         (Include): Add getcwd.h.
83858         (Maintainer): Change from Jim Meyering to "all, glibc",
83859         since getdate now uses intended-for-glibc code.
83860         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83861         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83862
83863 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83864
83865         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83866         HP's ANSI C compiler.
83867         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83868         Declaring int functions causes warnings on some modern systems and
83869         shouldn't be needed to compile on ancient ones.
83870         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83871         defined.
83872
83873         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83874         with the following changes.
83875         (__set_errno): Parenthesize properly.
83876         Include <stdbool.h>.
83877         (MIN, MAX, MATCHING_INO): New macros.
83878         (__getcwd): Define with prototype, not K&R form.
83879         Use heuristics to allocate default buffer on stack if possible.
83880         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83881         behavior, and to avoid the PATH_MAX limit when computing
83882         ../../../../...
83883         Use MATCHING_INO to compare inode number to file.
83884         Check for arithmetic overflow in size calculations.
83885         Fix bug in reallocation of dot array that caused getcwd to fail
83886         on directories nested deeper than 75.
83887         Be more careful about saving errno on error.
83888         Do not use realloc; use only free+malloc, as this is a bit
83889         more flexible and avoids a needless copy operation.
83890         Do not inspect st_dev and st_ino for symbolic links; POSIX
83891         doesn't specify the latter.
83892         Check for closedir errors.
83893         Avoid needless casts.
83894         Use "#ifdef weak_alias" around weak_alias, to be like other
83895         glibc code.
83896         The following changes to getcwd.c have effect only when used in
83897         gnulib; they have no effect inside glibc proper.
83898         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83899         as alloca isn't used.
83900         (alloca, __alloca): Likewise.
83901         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83902         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83903         unconditionally, as gnulib assumes C89 or better.
83904         Do not include <sys/param.h>.
83905         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83906         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83907         better.
83908         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83909         Include <dirent.h> in a way that is compatible with modern Autoconf.
83910         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83911         New macros, if not already defined.
83912         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83913         Use "_LIBC", not "defined _LIBC", for consistency.
83914         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83915         a mempcpy module.
83916         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83917         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83918         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83919         credit only to Jim Meyering and adjust the copyright dates.
83920         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83921         <stdlib.h>, <unistd.h>, "pathmax.h".
83922         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83923         (INITIAL_BUFFER_SIZE): Remove.
83924         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83925
83926 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83927
83928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83929         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83930         Use the _ONCE methods, for efficiency.
83931         Check for fcntl.h.  In test program, include <errno.h>
83932         and <fcntl.h> if available.  Remove old K&R cruft from
83933         test program.  Check for common errors in GNU/Linux,
83934         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83935         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83937         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83938         name accordingly.
83939         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83940         accommodate new getcwd.c.
83941         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83942         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83943         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83944         that's all we need now.
83945
83946 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83947
83948         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83949         argp-parse.c depends on getopt internals, that means we should
83950         always use our getopt, to be on the safe side.
83951         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83952         order not to spoil the result of an eventual previous invocation
83953         of gl_GETOPT_SUBSTITUTE.
83954
83955 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83956
83957         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83958         redefinition warnings. To avoid them, include the defines
83959         in `#if !defined __need_getopt ... #endif'. The only place
83960         where __getopt_argv_const is used is in definitions
83961         of getopt_long and getopt_long_only below, which are as well
83962         protected by `#ifndef __need_getopt'.
83963         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83964         __need_getopt after including <stdio.h> and <unistd.h> These
83965         headers might have defined it.
83966
83967 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83968
83969         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83970
83971 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83974         (futimens): New function, which uses futimes if available.
83975         (futimens, utimens): Support timespec==NULL, with same semantics
83976         as utime and utimens.
83977         * lib/utimens.h (futimens): New decl.
83978
83979 2004-11-23  Jim Meyering  <jim@meyering.net>
83980
83981         * lib/getopt_.h: Remove trailing blanks.
83982
83983 2004-11-23  Jim Meyering  <jim@meyering.net>
83984
83985         * lib/__fpending.c: Add comment.
83986
83987 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83988
83989         * modules/canonicalize (Depends-on): Add xreadlink.
83990         Problem reported by James Youngman.
83991
83992 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83993
83994         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83995         New macros.
83996         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83997         optopt): Use them instead of invoking ## directly; otherwise, the
83998         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83999
84000 2004-11-19  Bruno Haible  <bruno@clisp.org>
84001
84002         * lib/strtok_r.c: Move comments from here...
84003         * lib/strtok_r.h: ... to here.
84004
84005 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84006
84007         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84008         implementations that mishandle size_t overflow.
84009
84010 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84011
84012         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84013         might fail.  Problem reported by Yoann Vandoorselaere.
84014         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84015         implementations that mishandle size_t overflow.
84016
84017 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * modules/canon-host (Depends-on): Add strdup.
84020
84021 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84022
84023         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84024
84025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         * lib/canon-host.c: Include "strdup.h".
84028         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84029         Use strdup instead of malloc/strcpy to duplicate strings.
84030
84031         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84032         (human_space_before_unit): New constant.
84033         * lib/human.c (human_readable): Support it.
84034
84035         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84036         (xgetcwd): Set errno correctly when failing.
84037         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84038         the failure is actually due to a PATH_MAX problem.
84039
84040         Further getopt changes to make it more likely that glibc will
84041         buy the changes back.
84042         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84043         (getopt): Use it, so to preserve glibc semantic
84044         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84045         when compiling for libc.
84046         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84047         (getopt_long, getopt_long_only): Use it.
84048
84049         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84050         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84051         (getopt): Argv is now char * const *, as per standard.
84052         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84053         not char *__getopt_argv_const *.
84054         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84055         _getopt_long_only_r): Likewise.
84056         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84057         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84058         _getopt_long_r, _getopt_long_only_r): Likewise.
84059         * lib/getopt_.h (__getopt_argv_const): Remove.
84060         (getopt): Argv is now char * const *, as per standard.
84061
84062         * lib/getdate.y (tORDINAL): New token.
84063         (day, relunit): Allow it for relative times.
84064         (relative_time_table): Use tORDINAL for ordinals.
84065
84066 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84067
84068         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84069         Document that "second" isn't allowed as an ordinal number.
84070
84071 2004-11-16  Jim Meyering  <jim@meyering.net>
84072
84073         * modules/closeout (Depends-on): Add fpending.
84074
84075 2004-11-15  Jim Meyering  <jim@meyering.net>
84076
84077         * lib/closeout.c: Include "__fpending.h" once again.
84078         Include <stdbool.h>.
84079         (close_stdout): Don't fail just because stdout was closed initially,
84080         since some programs don't write to stdout in the normal course of
84081         operation (other than --version and --help), and we don't want this
84082         function to make e.g. `touch file >&-' fail.
84083         But do fail if it was closed and someone has tried to write to it.
84084         E.g., `printf foo >&-' must fail.
84085
84086 2004-11-13  Jim Meyering  <jim@meyering.net>
84087
84088         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84089
84090 2004-11-12  Simon Josefsson  <jas@extundo.com>
84091
84092         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84093         small doc fix is still pending.
84094
84095 2004-11-11  Simon Josefsson  <jas@extundo.com>
84096
84097         * modules/strtok_r: New file.
84098
84099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84100         strtok_r.
84101
84102 2004-11-11  Simon Josefsson  <jas@extundo.com>
84103
84104         * m4/strtok_r.m4: New file.
84105
84106         * m4/getopt.m4: Replace opterr.
84107
84108 2004-11-11  Simon Josefsson  <jas@extundo.com>
84109
84110         * lib/strtok_r.h, strtok_r.c: New file.
84111
84112 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84115         of replacing opterr, getopt, etc.  This should handle the
84116         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84117
84118 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84119
84120         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84121         we can stop lying to compilers about the constness of argv when we
84122         are compiled outside glibc.
84123         (getopt, getopt_long, getopt_long_only): Use it.
84124         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84125         _getopt_internal, getopt): Likewise.
84126         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84127         _getopt_long_only_r): Likewise.
84128         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84129         _getopt_long_r, _getopt_long_only_r): Likewise.
84130
84131         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84132         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84133         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84134         the other external symbols.
84135         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84136         declaration, since the above renaming now works around collisions.
84137
84138 2004-11-11  Jim Meyering  <jim@meyering.net>
84139
84140         * lib/linebreak.c: Remove trailing blanks.
84141         * lib/alloca_.h: Likewise.
84142         * lib/acosl.c: Likewise.
84143         * lib/euidaccess.c: Likewise.
84144         * lib/allocsa.h: Likewise.
84145
84146 2004-11-10  Simon Josefsson  <jas@extundo.com>
84147
84148         * m4/getaddrinfo.m4: New file.
84149
84150 2004-11-10  Simon Josefsson  <jas@extundo.com>
84151
84152         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84153
84154 2004-11-10  Simon Josefsson  <jas@extundo.com>
84155
84156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84157         getaddrinfo.
84158
84159         * modules/getaddrinfo: New file.
84160
84161 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84162
84163         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84164
84165 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * lib/mktime.c (SHR): New macro, which is a portable
84168         substitute for >> that should work even on Crays.
84169         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84170         Problem reported by Mark D. Baushke in
84171         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84172         * lib/getdate.y (SHR): Likewise.
84173         (tm_diff): Use it.
84174         * lib/strftime.c (SHR): Likewise.
84175         (tm_diff): Use it.
84176         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84177         quote_these_too, so that right shifts are well defined.  All uses
84178         changed.
84179
84180 2004-11-10  Jim Meyering  <jim@meyering.net>
84181
84182         Ensure that no close failure goes unreported.
84183         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84184         return early when it seems there's nothing to flush.
84185         Don't include __fpending.h.
84186
84187 2004-11-10  Jim Meyering  <jim@meyering.net>
84188
84189         * modules/closeout (Depends-on): Remove fpending.
84190
84191 2004-11-10  Jim Meyering  <jim@meyering.net>
84192
84193         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84194
84195 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84198         gl_FUNC_STRFTIME.
84199         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84200         and AC_REQUIRE when possible, to avoid duplicate checks.
84201         Check for <wchar.h>.
84202
84203 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84206
84207 2004-11-09  Bruno Haible  <bruno@clisp.org>
84208
84209         * m4/sockpfaf.m4: New file.
84210
84211 2004-11-05  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84214         Reported by Mark D. Baushke <mdb@cvshome.org>.
84215
84216 2004-11-04  Bruno Haible  <bruno@clisp.org>
84217
84218         2004-09-11  Bruno Haible  <bruno@clisp.org>
84219                 * allocsa.valgrind: New file.
84220         2004-02-06  Bruno Haible  <bruno@clisp.org>
84221                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84222                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84223                 Reported by Christopher Seip <chris.seip@hp.com>.
84224
84225 2004-11-04  Bruno Haible  <bruno@clisp.org>
84226
84227         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84228         (Makefile.am): Distribute it.
84229
84230 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84233         with errno == ERANGE if the buffer is too small.
84234         Problem reported by Mark D. Baushke.
84235
84236 2004-11-03  Albert Chin  <china@thewrittenword.com>
84237             Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84240         equivalent, substitute $ac_type for equivalent type rather than
84241         blindly using uint32_t *always* which won't work if uint32_t is not
84242         available.  Define _UINT32_T to work around typedef of uint32_t if
84243         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84244         2.5.1.
84245
84246 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84247
84248         * m4/jm-macros.m4: Sync from coreutils.
84249         (gl_MACROS): Check for mbrlen, for pathchk.
84250         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84251
84252 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84253
84254         * lib/xreadlink.c (MAXSIZE): New macro.
84255         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84256         size does not exceed MAXSIZE.  Avoid cast.
84257         As suggested by Mark D. Baushke in
84258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84259         if readlink fails with buffer size just under MAXSIZE, try again
84260         with MAXSIZE.
84261
84262 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84263
84264         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84265
84266 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84267         and  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84270         (get_date): Overparenthesize to avoid GCC warning.
84271
84272 2004-11-02  Bruno Haible  <bruno@clisp.org>
84273
84274         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84275         returns void.
84276
84277 2004-11-02  Bruno Haible  <bruno@clisp.org>
84278
84279         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84280         function returns void.
84281
84282 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84285         fflush_unlocked, flockfile, funlockfile, funlockfile,
84286         fputs_unlocked, putc_unlocked.
84287
84288 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84289
84290         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84291         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84292         already declared.
84293
84294 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84295
84296         * modules/getdate (Files): Add doc/getdate.texi.
84297         (Depends-on): Add setenv, xalloc.
84298
84299 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84300
84301         * lib/getdate.y: Add support for TZ="foo" within a date string.
84302         Fix some bugs near time_t boundaries.  Reject dates with
84303         out-of-range components, e.g., "Sept 31".
84304         Include <stdlib.h>, "setenv.h", "xalloc.h".
84305         (ISDIGIT_LOCALE): Remove; unused.
84306         Note that the TZ and time functions used here are not reentrant.
84307         (mktime_ok, get_tz): New functions.
84308         (TZBUFSIZE): New constant.
84309         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84310         This requires that we sometimes generate our own TZ="XXX..." setting.
84311
84312 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * doc/getdate.texi: New file, from coreutils with modifications for
84315         the new TZ parsing.
84316
84317 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84318
84319         * lib/mktime.c (not_equal_tm): Remove redundant check.
84320
84321 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * modules/regex (lib_SOURCES): Add regex.c.
84324         Reported by James Youngman in
84325         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84326
84327 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * lib/getdate.y: Use Bison 1.875 features, and some minor
84330         code cleanups.  This change does not affect semantics.
84331         Don't include <stdlib.h>; no longer needed.
84332         Don't include unlocked-io.h; only the "#if TEST" code uses
84333         stdio, and performance isn't crucial there.
84334         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84335         Bison 1.875 features as described below.
84336         All uses of "PC." replaced by "pc->".
84337         (YYSTYPE): Add a forward declaration.
84338         (yylex, yyerror): Use full prototypes in forward decls.
84339         Use "%pure-parser" rather than obsolescent "%pure_parser".
84340         Use %parse-param and %lex-param instead of obsolescent
84341         YYPARSE_PARAM and YYLEX_PARAM.
84342         (meridian_table, month_and_day_table, time_units_table,
84343         relative_time_table, time_zone_table, military_table,
84344         lookup_zone, lookup_word, get_date):
84345         Use NULL instead of 0 where appropriate.
84346         (to_hour): Avoid abort (), to avoid a dependency on
84347         stdlib.h.
84348         (yyerror, yylex): Now accepts parser_control * arg.
84349         (main) [TEST]: Use '\0' rather than 0 for char.
84350
84351 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84352
84353         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84354
84355 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84358         It's now the caller's responsibility to handle the case where
84359         !HAVE_GETPAGESIZE && !defined getpagesize.
84360
84361         * lib/mktime.c (leapyear): Arg is long int, not int.
84362
84363 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84366
84367 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84370         missing.  Problem reported by James Youngman.
84371
84372 2004-10-16  Simon Josefsson  <jas@extundo.com>
84373
84374         * gnulib-tool: Fix comments.  Fix parse problem.
84375         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84376
84377 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84378
84379         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84380         implementation of getopt_long.  Problem reported by Alexander Taler in:
84381         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84382
84383 2004-10-15  Bruno Haible  <bruno@clisp.org>
84384
84385         * gnulib-tool: Untabify. Initialize supplied_libname.
84386         (func_usage): More homogenous output.
84387         (func_modules_transitive_closure, func_modules_to_filelist,
84388         func_emit_lib_Makefile_am): New functions.
84389         (func_import): New function, extracted from big case statement. Use
84390         func_get_license, func_modules_transitive_closure,
84391         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84392         opt_lgpl. Don't use test -a, as it's not portable.
84393         (func_create_testdir): Use func_modules_transitive_closure,
84394         func_modules_to_filelist, func_emit_lib_Makefile_am.
84395
84396 2004-10-15  Bruno Haible  <bruno@clisp.org>
84397
84398         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84399
84400 2004-10-15  Bruno Haible  <bruno@clisp.org>
84401
84402         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84403         the portions belonging to each module.
84404         Suggested by Derek Robert Price <derek@ximbiot.com>.
84405
84406 2004-10-12  Simon Josefsson  <jas@extundo.com>
84407
84408         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84409         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84410         to real functions.
84411
84412 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84413
84414         * modules/vsnprintf: New file.
84415
84416 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84417
84418         * m4/vsnprintf.m4: New file.
84419
84420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84421
84422         * lib/vsnprintf.h: New file.
84423         * lib/vsnprintf.c: New file.
84424
84425 2004-10-11  Bruno Haible  <bruno@clisp.org>
84426
84427         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84428         vsnprintf.
84429
84430 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84433
84434 2004-10-07  Bruno Haible  <bruno@clisp.org>
84435
84436         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84437         fits into the provided buffer.
84438
84439 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84440
84441         * lib/diacrit.c, diacrit.h: Add GPL notice.
84442
84443         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84444         notice.
84445         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84446         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84447         This avoids a potential constant-folding bug.
84448
84449 2004-10-05  Bruno Haible  <bruno@clisp.org>
84450
84451         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84452         for the declaration of strsep.
84453
84454 2004-10-05  Bruno Haible  <bruno@clisp.org>
84455
84456         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84457
84458 2004-10-04  Simon Josefsson  <jas@extundo.com>
84459
84460         * modules/memmem: New file.
84461         * tests/test-memmem.c: New file.
84462         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84463
84464 2004-10-04  Simon Josefsson  <jas@extundo.com>
84465
84466         * m4/memmem.m4: New file.
84467
84468 2004-10-04  Simon Josefsson  <jas@extundo.com>
84469
84470         * lib/memmem.h: New file.
84471         * lib/memmem.c: New file, taken from glibc.
84472
84473 2004-10-04  Simon Josefsson  <jas@extundo.com>
84474
84475         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84476         '#ifdef USE_UNLOCKED_IO'.
84477
84478 2004-10-04  Simon Josefsson  <jas@extundo.com>
84479
84480         * config/srclist.txt: Add memmem from glibc.
84481
84482 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84483
84484         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84485
84486         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84487         modules/exclude, modules/getdate, modules/getline,
84488         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84489         modules/getusershell, modules/linebuffer, modules/md5,
84490         modules/mountlist, modules/posixtm, modules/readtokens,
84491         modules/readutmp, modules/regex, modules/sha1,
84492         modules/version-etc, modules/yesno:
84493         Remove dependency on unlocked-io.
84494
84495 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84496
84497         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84498
84499         * m4/unlocked-io.m4: Add copyright notice.
84500         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84501
84502 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84503
84504         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84505         * lib/xmalloc.c (xmemdup): Likewise.
84506         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84507         XFREE): Remove these long-obsolescent macros.
84508         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84509         * lib/xstrdup.c: Remove.
84510
84511         * lib/regex.c (re_comp): Cast gettext return value to char *,
84512         Problem reported by Martin Neitzel via Mark D. Baushke.
84513
84514 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84515
84516         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84517         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84518         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84519         regex.c, sha1.c, version-etc.c, yesno.c:
84520         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84521         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84522         the includer's responsibility.
84523
84524         Sync from coreutils.
84525
84526         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84527         points to the start of a string, as the C Standard says the
84528         resulting behavior is undefined.
84529
84530         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84531         simple -> simple_backups, numbered_existing ->
84532         numbered_existing_backups, numbered -> numbered_backups
84533         to avoid shadowing problems.  All uses changed.
84534         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84535         * lib/backupfile.c (check_extension, numbered_backup):
84536         Rename locals to avoid shadowing 'basename'.
84537         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84538         once.
84539
84540         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84541         * lib/.cvsignore: Add getopt.h.
84542
84543 2004-10-04  Bruno Haible  <bruno@clisp.org>
84544
84545         * modules/README: New file.
84546         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84547         not a module.
84548
84549 2004-10-02  Jim Meyering  <jim@meyering.net>
84550
84551         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84552
84553 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84554
84555         * modules/strsep: New file.
84556
84557 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84558
84559         * m4/strsep.m4: New file.
84560
84561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84562
84563         * lib/strsep.h: New file.
84564         * lib/strsep.c: New file.
84565
84566 2004-10-01  Simon Josefsson  <jas@extundo.com>
84567
84568         * lib/snprintf.c (snprintf): Handle size==0.
84569
84570 2004-10-01  Simon Josefsson  <jas@extundo.com>
84571             Bruno Haible  <bruno@clisp.org>
84572
84573         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84574         (snprintf): Declare 'args'.
84575
84576 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84577
84578         * lib/snprintf.c: Remove comments as to why each header is needed.
84579
84580 2004-10-01  Bruno Haible  <bruno@clisp.org>
84581
84582         * MODULES.html.sh: Add strsep.
84583
84584 2004-09-30  Simon Josefsson  <jas@extundo.com>
84585
84586         * modules/snprintf: New file.
84587
84588 2004-09-30  Simon Josefsson  <jas@extundo.com>
84589
84590         * m4/snprintf.m4: New file.
84591
84592 2004-09-30  Simon Josefsson  <jas@extundo.com>
84593
84594         * lib/snprintf.h, lib/snprintf.c: New files.
84595
84596 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84597
84598         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84599         (hol_entry_help): Never translate an empty string.
84600         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84601         * lib/argp.h (OPTION_NO_TRANS): New option.
84602
84603 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84604
84605         * modules/argp (Maintainer): Replace Simon Josefsson
84606         by Sergey Poznyakoff.
84607
84608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84611         changes merged back into glibc.
84612
84613 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84616
84617 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84618
84619         * lib/xvasprintf.c: Include xalloc.h.
84620         (xvasprintf): Use xalloc_die, not xmalloc_die.
84621
84622 2004-09-29  Bruno Haible  <bruno@clisp.org>
84623
84624         * modules/alloca-opt: New file, derived from modules/alloca.
84625         * modules/allocsa: Depend on alloca-opt instead of alloca.
84626         * modules/setenv: Likewise.
84627         * modules/vasnprintf: Likewise.
84628         * MODULES.html.sh: Add alloca-opt.
84629
84630 2004-09-28  Simon Josefsson  <jas@extundo.com>
84631
84632         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84633         LGPL, and to replace license template from GPL to LGPL.
84634
84635 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         * modules/dummy: Change license to LGPL.
84638
84639 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84640
84641         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84642
84643 2004-09-24  Simon Josefsson  <jas@extundo.com>
84644
84645         * modules/minmax (License): Change from GPL to LGPL.
84646
84647 2004-09-23  Simon Josefsson  <jas@extundo.com>
84648
84649         * gnulib-tool (--import): Typo.
84650
84651 2004-09-23  Simon Josefsson  <jas@extundo.com>
84652
84653         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84654
84655 2004-09-22  Bruno Haible  <bruno@clisp.org>
84656
84657         * modules/*: Add 'License' field.
84658         * gnulib-tool: Accept --extract-license option.
84659         (func_get_license): New function.
84660
84661 2004-09-21  Bruno Haible  <bruno@clisp.org>
84662
84663         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84664         Reported by Simon Josefsson.
84665
84666 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84667
84668         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84669         gl_AC_TYPE_LONG_LONG.
84670
84671 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84672
84673         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84674
84675 2004-09-18  Simon Josefsson  <jas@extundo.com>
84676         and  Paul Eggert  <eggert@cs.ucla.edu>
84677
84678         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84679         calls with autoreconf.  Define GL_LIB.
84680
84681 2004-09-14  Karl Berry  <karl@gnu.org>
84682
84683         * config/srclist.txt: unsync setenv.c, sigh.
84684
84685 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84686
84687         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84688         Problem reported by Bruno Haible in:
84689         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84690
84691 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84692
84693         * config/srclist.txt: Comment out argp-pvh.c.
84694
84695 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84698         in case some system header has #define'd it.  Problem reported by
84699         Soeren D. Schulze in
84700         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84701
84702 2004-09-09  Karl Berry  <karl@gnu.org>
84703
84704         * regex.[ch]: delete from the root.  These were supposed to be
84705                 synced with emacs cvs, but this has not happened for about
84706                 a year, and anyway nothing else uses emacs regex.[ch].
84707                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84708                 lib/regex[.ch] is untouched.
84709
84710 2004-09-09  Bruno Haible  <bruno@clisp.org>
84711
84712         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84713
84714 2004-09-09  Bruno Haible  <bruno@clisp.org>
84715
84716         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84717         modifications.
84718         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84719
84720 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84721
84722         * modules/xvasprintf: New file.
84723         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84724
84725 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84726
84727         * lib/xvasprintf.h: New file.
84728         * lib/xvasprintf.c: New file.
84729         * lib/xasprintf.c: New file.
84730
84731 2004-09-08  Bruno Haible  <bruno@clisp.org>
84732
84733         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84734
84735 2004-09-08  Bruno Haible  <bruno@clisp.org>
84736
84737         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84738         length is > INT_MAX.
84739         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84740         more.
84741
84742 2004-09-08  Bruno Haible  <bruno@clisp.org>
84743
84744         * lib/stdint_.h: New file, taken from GNU clisp.
84745
84746 2004-09-08  Bruno Haible  <bruno@clisp.org>
84747             Oskar Liljeblad  <oskar@osk.mine.nu>
84748
84749         * modules/stdint: New file.
84750         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84751
84752 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84753
84754         Import from coreutils.
84755         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84756         strings on unbounded length.  alloca's performance benefits aren't
84757         that important here.
84758         (V_STRDUP): Remove.
84759         (parse_with_separator): New function, with most of the internals
84760         of the old parse_user_spec.  Allow user to omit both user and group,
84761         for compatibility with FreeBSD.
84762         Clone only the user name, not the entire spec.
84763         Do not set *uid, *gid unless entirely successful.
84764         Avoid memory leak in some failing cases.
84765         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84766         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84767         (parse_user_spec): Rewrite to use parse_with_separator.
84768
84769 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84770
84771         * modules/userspec: Don't depend on alloca.
84772
84773 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84774
84775         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84776
84777 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84780         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84781         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84782
84783 2004-08-16  Simon Josefsson  <jas@extundo.com>
84784
84785         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84786         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84787         Add --dry-run for --import.
84788         Let user provided command line parameters override configure.ac
84789         settings.
84790
84791 2004-08-12  Simon Josefsson  <jas@extundo.com>
84792
84793         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84794         as discussed with Paul Eggert in threads rooted at
84795         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84796         and
84797         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84798         Before, the test was empty, and relied on ELIDE_CODE in source
84799         code.)
84800         (gl_PREREQ_GETOPT): New macro.
84801         (gl_GETOPT): Use them.
84802
84803 2004-08-12  Simon Josefsson  <jas@extundo.com>
84804
84805         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84806         * lib/getopt_.h: Renamed from getopt.h.
84807
84808 2004-08-12  Simon Josefsson  <jas@extundo.com>
84809
84810         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84811         Change default library name from libfoo to libgnu.
84812         Now, if you have a configure.ac that says:
84813                 gl_SOURCE_BASE(gl)
84814                 gl_M4_BASE(gl/m4)
84815                 gl_MODULES(error getopt etcetera)
84816                 gl_INIT
84817         you can import all you need by running:
84818                 ../gnulib/gnulib-tool --import
84819
84820         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84821         (Makefile.am): Rewrite, use logic from argz.
84822         (Include): Use <getopt.h> instead of "getopt.h".
84823
84824 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84825
84826         * modules/argp (Files): Add m4/unlocked-io.m4.
84827         (Depends-on): Add extensions.
84828
84829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84832         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84833         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84834         Check for program_invocation_name, program_invocation_short_name,
84835         flockfile, funlockfile, features.h, _getopt_long_only_r.
84836
84837 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84838
84839         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84840         its complicated substitute.
84841         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84842         and program_invocation_name.
84843         (__argp_basename) [!_LIBC]: Remove; the only use was
84844         replaced by its body.
84845         (__argp_short_program_name): Change condition from
84846         !defined __argp_short_program_name to
84847         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84848         to match argp-namefrob.h.
84849         (__argp_failure): Don't assume strerror_r returns char *.
84850         * lib/argp-parse.c (N_): Define unconditionally.
84851         (argp_default_options): Fill out initializers with 0 to avoid
84852         gcc warnings.
84853
84854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84855
84856         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84857         getopt1.c.
84858
84859 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         Merge from coreutils.
84862
84863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84864
84865         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84866         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84867
84868 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         Merge from coreutils.
84871
84872         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84873         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84874         for Reliant Unix 5.43.
84875
84876         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84877         (union fooround): Use uintmax_t, not long int.
84878         The rest is a merge from libc:
84879         [defined _LIBC]: Include <shlib-compat.h>.
84880         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84881
84882         * lib/settime.c (settime): Recode to avoid warning with
84883         Sun Forte C 6U2.
84884
84885         * lib/strverscmp.c: Convert to UTF-8.
84886
84887 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84890         m4/uintmax_t.m4.
84891
84892 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84893
84894         * modules/xalloc-die: New file.
84895         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84896
84897         * modules/md5 (Files): Add m4/uint32_t.m4.
84898         * modules/sha1: Renamed from modules/sha.
84899         (Files):
84900         Rename lib/sha.h to lib/sha1.h.
84901         Rename lib/sha.c to lib/sha1.c.
84902         Rename m4/sha.m4 to m4/sha1.m4.
84903         (lib_SOURCES): Likewise.
84904         (configure.ac): Rename gl_SHA to gl_SHA1.
84905         (Include): sha.h -> sha1.h.
84906
84907 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84908
84909         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84910         * m4/sha1.m4: Renamed from sha.m4.
84911         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84912
84913 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84914
84915         * lib/obstack.h (obstack_empty_p):
84916         Don't assume that chunk->contents is suitably aligned.
84917         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84918         Likewise. Problem reported by Benno in
84919         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84920
84921         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84922         readable.  This could be improved further but it'd take some work.
84923
84924 2004-08-08  Simon Josefsson  <jas@extundo.com>
84925
84926         * modules/xgethostname (Depends-on): Remove exit and error (not
84927         used).
84928
84929         * modules/getpass-gnu: Add getpass.h.
84930         (Depends-on): Add stdbool.
84931         * modules/getpass: Add getpass.h.
84932
84933 2004-08-08  Simon Josefsson  <jas@extundo.com>
84934
84935         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84936         Check getpass declaration.
84937
84938 2004-08-08  Simon Josefsson  <jas@extundo.com>
84939
84940         * lib/xgethostname.c: Don't include error.h (not used).
84941
84942         * lib/getpass.h: Add.
84943         * lib/getpass.c: Include getpass.h first.
84944
84945 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * lib/xalloc-die.c: New file.
84948         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84949         All uses removed.
84950         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84951         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84952         xalloc-die.c.
84953         (_, N_, xalloc_die): Move to xalloc-die.c.
84954         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84955         so that we needn't mess with xalloc_msg_memory_exhausted.
84956
84957         * lib/sha1.h: Renamed from sha.h.
84958         (SHA1_H): Renamed from _SHA_H.
84959         (sha1_ctx): Renamed from sha_ctx.
84960         (sha1_init_ctx): Renamed from sha_init_ctx.
84961         (sha1_process_block): Renamed from sha_process_block.
84962         (sha1_process_bytes): Renamed from sha_process_bytes.
84963         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84964         (sha1_read_ctx): Renamed from sha_read_ctx.
84965         (sha1_stream): Renamed from sha_stream.
84966         (sha1_buffer): Renamed from sha_buffer.
84967         * lib/sha1.c: Likewise; renamed from sha.c.
84968         Do not include <sys/types.h>.
84969         Include <stddef.h> rather than <stdlib.h>.
84970
84971 2004-08-08  Bruno Haible  <bruno@clisp.org>
84972
84973         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84974         FILESYSTEM_PREFIX_LEN.
84975         * lib/progreloc.c: Likewise.
84976         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84977
84978 2004-08-06  Simon Josefsson  <jas@extundo.com>
84979
84980         * modules/progname (Depends-on): Don't depend on stdbool.
84981
84982 2004-08-06  Simon Josefsson  <jas@extundo.com>
84983
84984         * modules/getsubopt: New file.
84985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84986         getsubopt.
84987
84988 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84989
84990         More merge from coreutils.
84991
84992         * m4/utimens.m4, m4/utimecmp.m4: New files.
84993         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84994         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84995         prereq.m4, sha.m4: Import changes from coreutils.
84996
84997 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         More merge from coreutils.
85000         * modules/raise, modules/readtokens0, modules/utimens:
85001         * modules/utimecmp, module/xnanosleep: New files.
85002         * modules/strftime: Add lib/strftime.h.
85003         Change include from <time.h> to "strftime.h".
85004         * modules/yesno: Add lib/yesno.h.
85005         * modules/backupfile: Remove lib/addext.c.
85006         * modules/euidaccess: Add stat-macros.h.
85007         * modules/canonicalize, modules/euidaccess,
85008         modules/filemode, modules/lchown, modules/makepath,
85009         modules/rmdir, modules/stat: Likewise.
85010
85011 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85012
85013         Merge from tar.
85014         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85015         SIZE_MAX is a valid preprocessor constant.
85016         (__argp_basename): Change from "#ifndef _LIBC"
85017         to "#ifndef __argp_short_program_name", so that
85018         we don't compile these functions for tar.
85019
85020         More merges from coreutils.
85021         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85022         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85023         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85024         * lib/addext.c: Remove; no longer needed.
85025         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85026         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85027         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85028         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85029         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85030         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85031         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85032         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85033         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85034         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85035         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85036         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85037         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85038         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85039         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85040         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85041         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85042         Import changes from coreutils.
85043
85044 2004-08-05  Simon Josefsson  <jas@extundo.com>
85045
85046         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85047
85048 2004-08-05  Simon Josefsson  <jas@extundo.com>
85049
85050         * m4/getsubopt.m4: New file.
85051
85052 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85053
85054         Merge from coreutils.
85055
85056         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85057         * m4/getcwd-path-max.m4: New files.
85058
85059         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85060         FILESYSTEM_PREFIX_LEN ->
85061         FILE_SYSTEM_PREFIX_LEN.
85062         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85063         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85064         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85065         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85066
85067         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85068         prerequisite modules now handle the DOS stuff.
85069         Don't check for unistd.h.
85070
85071 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85072
85073         Merge from coreutils.
85074
85075         * lib/.gdb-history: Remove; this doesn't belong here.
85076
85077         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85078         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85079         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85080         * lib/getcwd.c: New files.
85081
85082         * lib/dirname.h: Include <stdbool.h>.
85083         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85084         for consistency with POSIX terminology.  All uses changed.
85085         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85086         (strip_trailing_slashes): Use bool for booleans.
85087         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85088
85089         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85090         sometimes returns a positive errno value even when it succeeds.
85091         (print_errno_message) [!LIBC]: Fall back on strerror if
85092         __strerror_r fails.
85093
85094         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85095         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85096         (longest_relative_suffix): New function.
85097         (path_concat): Use it.  Assume first argument is not NULL.
85098         Port to DOS.  Omit redundant separators.
85099         Report an error instead of returning NULL.
85100         Use mempcpy instead of memcpy.
85101         (xpath_concat): Remove: not declared or used.
85102
85103         * lib/same.h: Include <stdbool.h>
85104         (same_name): Return bool, not int.
85105         * lib/same.c (same_name): Likewise.
85106         (errno): Don't declare; we assume C89 or better now.
85107
85108         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85109         if not already defined.
85110
85111         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85112         * lib/dup-safer.c (errno): Likewise.
85113
85114 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85115
85116         Merge from coreutils.
85117         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85118         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85119         * modules/path-concat: Don't depend on strdup.
85120
85121 2004-08-03  Simon Josefsson  <jas@extundo.com>
85122
85123         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85124         * lib/progname.h: Don't include stdbool.h.
85125
85126 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85127
85128         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85129         * MODULES.html.sh (func_all_modules): Remove fatal.
85130
85131 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85134
85135 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85136
85137         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85138         working.
85139
85140 2004-08-02  Simon Josefsson  <jas@extundo.com>
85141
85142         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85143         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85144         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85145
85146 2004-08-01  Simon Josefsson  <jas@extundo.com>
85147
85148         * lib/xgetdomainname.c: Include stdlib.h, for free().
85149
85150 2004-07-19  Bruno Haible  <bruno@clisp.org>
85151
85152         * MODULES.html.sh (func_all_modules): Add dummy.
85153
85154 2004-07-16  Simon Josefsson  <jas@extundo.com>
85155
85156         * modules/dummy: New file.
85157
85158 2004-07-16  Simon Josefsson  <jas@extundo.com>
85159
85160         * lib/dummy.c: New file.
85161
85162 2004-07-16  Bruno Haible  <bruno@clisp.org>
85163
85164         * lib/backupfile.h: Add extern "C" for C++.
85165         * lib/closeout.h: Likewise.
85166         * lib/copy-file.h: Likewise.
85167         * lib/findprog.h: Likewise.
85168         * lib/full-write.h: Likewise.
85169         * lib/pathname.h: Likewise.
85170         * lib/progname.h: Likewise.
85171         * lib/stpcpy.h: Likewise.
85172         * lib/stpncpy.h: Likewise.
85173         * lib/strcase.h: Likewise.
85174         * lib/strstr.h: Likewise.
85175         * lib/xalloc.h: Likewise.
85176
85177         * lib/mbswidth.h: Add extern "C" for C++.
85178         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85179
85180 2004-07-13  Robert Millan  <robertmh@gnu.org>
85181
85182         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85183
85184 2004-07-09  Simon Josefsson  <jas@extundo.com>
85185
85186         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85187         failed without this.)
85188
85189 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * modules/chown (Files): Add lib/fchown-stub.c, since
85192         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85193
85194 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         * lib/fchown-stub.c: New file.
85197
85198 2004-06-24  Jim Meyering  <jim@meyering.net>
85199
85200         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85201
85202 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85203
85204         * modules/argz: Omit "#include".
85205
85206         * MODULES.html.sh (func_all_modules): Add calloc, to match
85207         2004-06-01 addition of calloc module.
85208
85209 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * m4/argz.m4: New file, which is autoupdated from libtool.
85212
85213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85214
85215         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85216         libtool.
85217
85218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85219
85220         * config/srclist-update: Don't insist on "USA." before the
85221         close-comment, as libtool omits the period and puts the */ on a
85222         separate line.
85223         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85224         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85225
85226 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85227
85228         * modules/argz: New file.
85229         * MODULES.html.sh (func_all_modules): Add argz.
85230
85231 2004-06-12  Jim Meyering  <jim@meyering.net>
85232         and  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         * modules/hash (Files): Add lib/xalloc.h.
85235         * modules/pipe (Depends-on): Add wait-process.
85236         * modules/stat (Depends-on): Add xalloc.
85237         * modules/userspec (Files): Add lib/userspec.h.
85238         * modules/xstrto
85239
85240         Upgrade from gettext-0.13.
85241         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85242         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85243         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85244
85245 2004-06-10  Jim Meyering  <jim@meyering.net>
85246
85247         * lib/calloc.c: New file.
85248
85249 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85250
85251         * lib/getdate.y (yylex): Allow space between sign and number.
85252         Problem reported by Dan Jacobson.
85253
85254 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85255
85256         Merge from coreutils CVS.
85257
85258         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85259         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85260         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85261         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85262         xstrtol.m4: Fix copyright date and/or serial number.
85263
85264         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85265         See if we need an fchown replacement.
85266         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85267         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85268         and use the replacement function if we detect either defect.
85269
85270         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85271         gl_UTIMECMP.
85272
85273 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85274         and  Jim Meyering  <jim@meyering.net>
85275
85276         Merge from coreutils CVS.
85277
85278         * lib/stat-macros.h: New file, with contents from file-type.h
85279         and coreutils' system.h.
85280         * lib/file-type.c: Include "stat-macros.h".
85281         * lib/file-type.h (file_type): Move all macro definitions to new file,
85282         stat-macros.h.
85283
85284         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85285         Wrap old code with this conditional.
85286         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85287         function that does not dereference symlinks.
85288         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85289
85290         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85291         dependency problems.
85292         (xreadlink): Accept new arg SIZE, for efficiency.
85293         All decls and uses changed.
85294         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85295
85296         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85297         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85298
85299         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85300         sysexits.h.
85301
85302 2004-06-01  Jim Meyering  <jim@meyering.net>
85303
85304         * m4/calloc.m4: New file.
85305
85306 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85307
85308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85309         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85310         Also, fix a typo in a diagnostic.
85311
85312 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85313
85314         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85315         or AC_FUNC_REALLOC.
85316
85317 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85318
85319         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85320         macros to be defined.
85321         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85322         the allocator returns NULL because the requested size is zero.
85323
85324 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85327         var.  Add comment explaining why libc still defines it.  This
85328         merges the following patch from glibc:
85329         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85330
85331 2004-05-20  Andreas Schwab  <schwab@suse.de>
85332
85333         * m4/free.m4: Replace free if it not known to work, not the other
85334         way round.
85335
85336 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85339         present in glibc since revision 1.1 of this file.
85340         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85341         obstack_alignment_mask, obstack_alloc, obstack_base,
85342         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85343         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85344         obstack_grow0, obstack_init, obstack_int_grow,
85345         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85346         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85347         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85348         nonexistent functions.
85349
85350 2004-05-18  Karl Berry  <karl@gnu.org>
85351
85352         * config/srclist.txt: break link for vasnprintf.c.
85353
85354 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85355
85356         Port obstack to the AS/400, where pointers are 16 bytes wide and
85357         you cannot cast an integer to a valid pointer.  This patch is
85358         currently waiting to be integrated into glibc; see
85359         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85360
85361         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85362         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85363         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85364         (struct obstack): temp member is now a union of a pointer and
85365         an integer, instead of an integer.  All integer uses changed.
85366         This does not affect the physical layout of struct obstack,
85367         except on hosts (like the AS/400) where the size or alignment of
85368         void * is greater than that of ptrdiff_t.
85369         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85370         __STDC__)]: Store temporary in pointer member of union, not
85371         integer member.
85372         * lib/obstack.c: Include <stddef.h>, for offsetof.
85373         (struct fooalign): Remove; it doesn't need a name.
85374         (union fooround): Change double to long double, and add void *.
85375         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85376         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85377         not a macro.  Hence the values are always int; so remove all
85378         casts-to-int in uses.
85379
85380 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85381
85382         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85383         we can get this patch merged into glibc.
85384
85385 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85386             Paul Eggert  <eggert@cs.ucla.edu>
85387
85388         * m4/argp: Depend on alloca.
85389
85390 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85391             Paul Eggert  <eggert@cs.ucla.edu>
85392
85393         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85394         freecoding.
85395
85396 2004-05-17  Bruno Haible  <bruno@clisp.org>
85397
85398         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85399         precision that consists of a '.' followed by an empty digit string.
85400         Patch by Tor Lillqvist <tml@iki.fi>.
85401
85402 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85403
85404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85405         for backward compatibility with older code.  We need our own
85406         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85407         it under some other name, and our alloca.h will define it.
85408
85409 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85410             Derek Price  <derek@ximbiot.com>
85411
85412         * lib/alloca.c: Include <alloca.h>, to get our interface.
85413         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85414         include <alloca.h> first.  Use C89 prototype for alloca; this
85415         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85416         Use #elif for simplicity, since we can assume C89 now.
85417         Don't try to source the system alloca.h since it will not be found
85418         and to prevent recursively including its replacement.
85419         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85420         * lib/regex.c: Likewise.
85421
85422 2004-05-16  Derek Price  <derek@ximbiot.com>
85423             Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         getline cleanup.  This changes the getndelim2 API: both order of
85426         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85427         no delimiter).
85428
85429         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85430         interface does that.
85431         (getline): Always use getdelim, so that we don't have two
85432         copies of this code.
85433         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85434         if available.
85435         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85436         (GETNDELIM2_MAXIMUM): New macro.
85437         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85438         instead of the old practice of delim2==0.  All callers changed.
85439         Return -1 on overflow, instead of returning junk.
85440         Do not set *linesize unless allocation succeeds.
85441         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85442         that we include sys/types.h.
85443         * lib/getnline.h: Likewise.
85444         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85445         (getndelim2): Reorder arguments.
85446         * lib/getnline.c (getnline, getndelim):
85447         Don't discard the NMAX argument.
85448         (getnline): Invoke getndelim, to avoid code duplication.
85449         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85450         of (size_t) -1 by callers of the getnline family.
85451
85452 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85453
85454         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85455         Check for gettimeofday.
85456         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85457         Check for settimeofday, stime.
85458
85459 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85460
85461         * lib/nanosleep.c (suspended): Change its type from int to
85462         sig_atomic_t volatile.
85463         (first_call): Make it private to rpl_nanosleep, and have it
85464         be zero initially as that's a bit faster.
85465         (my_usleep): Round up fractional times instead of truncating them,
85466         as this is the usual meaning for 'sleep'.
85467
85468         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85469         doesn't work.
85470         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85471         (ENOSYS): Define if not defined.
85472         (settime): Fall back on stime if it exists and settimeofday fails.
85473         But don't bother with fallbacks if a method fails with errno == EPERM.
85474
85475 2004-05-11  Jim Meyering  <jim@meyering.net>
85476
85477         Prior to this change, the save_cwd caller required read access to the
85478         current directory on most systems (ones with the fchdir function).
85479
85480         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85481         fails, try write-only, and finally, resort to using xgetcwd.
85482
85483 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85484
85485         * lib/obstack.c, obstack.h: Import changes from libc.
85486
85487 2004-04-28  Bruno Haible  <bruno@clisp.org>
85488
85489         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85490         also implicitly appends .exe to executables.
85491         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85492         accepts Windows pathnames.
85493         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85494         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85495         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85496         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85497         Reported by Derek Robert Price <derek@ximbiot.com>.
85498
85499 2004-04-21  Karl Berry  <karl@gnu.org>
85500
85501         * config/srclist.txt (localcharset.c): break sync.
85502
85503 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85504
85505         * m4/host-os.m4: Add a copyright notice.
85506
85507 2004-04-20  Jim Meyering  <jim@meyering.net>
85508
85509         Change UTILS_ to gl_ in AC_DEFINE'd names.
85510         Change utils_- and jm_-prefixed variables, too.
85511         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85512         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85514
85515         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85516         Don't emit trailing blanks.
85517         Also rename jm_-prefixed variables to have gl_ prefix.
85518
85519         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85520         Also rename jm_-prefixed variables to have gl_ prefix.
85521
85522         * m4/jm-macros.m4: Reflect the renamings.
85523         * m4/prereq.m4: Likewise.
85524
85525 2004-04-20  Jim Meyering  <jim@meyering.net>
85526
85527         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85528         memory.
85529
85530 2004-04-20  Jim Meyering  <jim@meyering.net>
85531             Bruno Haible  <bruno@clisp.org>
85532
85533         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85534         memory when realloc fails.
85535
85536 2004-04-19  Jim Meyering  <jim@meyering.net>
85537
85538         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85539         now that readutmp.c may call `free (0)'.
85540
85541 2004-04-19  Bruno Haible  <bruno@clisp.org>
85542
85543         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85544         * m4/inttypes_h.m4: Likewise.
85545         * m4/stdint_h.m4: Likewise.
85546         * m4/intmax_t.m4: Likewise.
85547         * m4/uintmax_t.m4: Likewise.
85548
85549 2004-04-18  Jim Meyering  <jim@meyering.net>
85550
85551         * m4/prereq.m4: Don't forbid jm_ prefix.
85552
85553         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85554         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85555         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85556         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85557         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85558         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85559         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85560         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85561         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85562         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85563         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85564         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85565         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85566         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85567         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85568         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85569         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85570         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85571         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85572
85573 2004-04-18  Jim Meyering  <jim@meyering.net>
85574
85575         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85576         failure, don't leak memory and do call END_UTMP_ENT.
85577
85578 2004-04-16  Jim Meyering  <jim@meyering.net>
85579
85580         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85581         coreutils' stat program.
85582         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85583
85584 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85585
85586         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85587         C89.
85588         (CHAR_BIT): Remove, since we assume C89.
85589         Include <stdint.h> if available, as per current Autoconf CVS advice.
85590
85591 2004-03-31  Jim Meyering  <jim@meyering.net>
85592
85593         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85594         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85595         * m4/xalloc.m4: Likewise.
85596
85597 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85598
85599         Merge from coreutils.
85600
85601         * m4/inttostr.m4: New file.
85602         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85603         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85604         Require gl_CLOCK_TIME.
85605         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85606
85607 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85608
85609         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85610         not bool, to be more consistent with Unix conventions.
85611         Suggested by Bruno Haible.
85612
85613         Merge from coreutils.
85614
85615         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85616         * lib/umaxtostr.c: New files.
85617
85618         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85619         the usual <time.h> dance.
85620         (get_date): Change signature to support fractional time stamps.
85621         All callers changed.
85622         * lib/getdate.y: Include "getdate.h" first, as we can now
85623         assume C89 and don't need to worry about 'const'.
85624         Similarly, include "unlocked-io.h" near start, not in middle.
85625         Include <limits.h>.
85626         (textint.value): Use long int rather than int.
85627         (textint.digits): Use size_t rather than int.
85628         (BILLION, LOG10_BILLION): New constants.
85629         (parser_control): New member rel_ns.  Members day_ordinal,
85630         time_zone, month, day, hour, minutes, rel_year, rel_month,
85631         rel_day, rel_hour, rel_minutes, rel_seconds
85632         are now long int, not int.  Member seconds is now struct timespec,
85633         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85634         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85635         not int.
85636         (%union.intval): Now long int, not int.
85637         New member timespec.
85638         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85639         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85640         (spec): Now is a timespec or an item list.
85641         (timespec, items): New nonterminals.
85642         (time, rel, relunit, number, get_date):
85643         Add support for fractional seconds.
85644         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85645         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85646         (to_hour): First arg is now long int, not int.
85647         (to_year): Returns long int, not int.
85648         Don't treat year -70 like 70.
85649         (tm_diff): Returns long int, not int.
85650         (lookup_word): Use bool instead of int when appropriate.
85651         (yylex): Use size_t for count, not int.
85652         Detect overflow when parsing large integer constants.
85653         Add support for fractions.
85654         (get_date): Make pointers 'const' if possible.
85655         Use more-portable code to detect integer overflow.
85656         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85657         Don't use ctime; it's not reliable if the year has >4 digits.
85658
85659         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85660         This is for compatibility with BSD.
85661
85662         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85663         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85664         From coreutils' system.h.
85665
85666         * lib/userspec.c: Don't include "posixver.h".
85667         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85668         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85669         compatible extension.  Simplify code by removing a boolean int
85670         that was always nonzero if a string was nonnull.
85671
85672 2004-03-30  Jim Meyering  <jim@meyering.net>
85673
85674         Merge from coreutils.
85675
85676         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85677         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85678         on some systems one must include <grp.h> before it.
85679         Reported by Christian Krackowizer.
85680
85681 2004-03-30  Jim Meyering  <jim@meyering.net>
85682
85683         Merge from coreutils.
85684
85685         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85686
85687         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85688         an empty input stream.
85689
85690         * lib/readtokens.c: Include <stdbool.h>.
85691         (readtoken): Use `size_t' rather than int/long.
85692         All callers adjusted.
85693         Use `bool' rather than `int' where appropriate.
85694         Use memset rather than an explicit loop.
85695         Use x2nrealloc rather than xrealloc.
85696         Allow the use of `\0' as a delimiter.
85697         (readtokens): Likewise.
85698         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85699
85700 2004-03-30  Jim Meyering  <jim@meyering.net>
85701
85702         * m4/realloc.m4: Remove file, since now it does no more than
85703         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85704         the `configure.ac' section of module/realloc.
85705         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85706
85707 2004-03-30  Bruno Haible  <bruno@clisp.org>
85708
85709         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85710         nonnull.
85711
85712 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85713
85714         Merge changes to getloadavg.c from coreutils and Emacs.
85715
85716         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85717         Define to an expression, not to the empty string.
85718         Include cloexec.h and xalloc.h.
85719         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85720         Use set_cloexec_flag rather than rolling our own.
85721         * lib/cloexec.c, lib/cloexec.h: New files.
85722
85723 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85724
85725         * m4/cloexec.m4: New file.
85726
85727 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85728
85729         * lib/getopt.h: Sync with libc CVS.
85730
85731 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85732             Bruno Haible  <bruno@clisp.org>
85733
85734         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85735         mbswidth.
85736
85737 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85738             Bruno Haible  <bruno@clisp.org>
85739
85740         * lib/mbswidth.h: Include <wchar.h> only if
85741         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85742         <wchar.h>.
85743         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85744
85745 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85746
85747         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85748         Sync with libc CVS.
85749         * lib/getopt_int.h: New file, also synced from libc.
85750
85751 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85752
85753         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85754         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85755         Bring back getopt.c, getopt.h, getopt1.c.
85756
85757 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85758
85759         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85760         All uses changed.  Check for sa_sigaction member; this fixes
85761         a bug first reported by Jason Andrade in
85762         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85763
85764 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85765
85766         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85767         '#if' expressions.  Unlike the code it replaces, it does not
85768         depend on (defined _SC_PAGESIZE).  However, it does depend on
85769         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85770         first reported by Jason Andrade in
85771         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85772
85773 2004-02-25  Simon Josefsson  <jas@extundo.com>
85774
85775         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85776
85777 2004-02-25  Simon Josefsson  <jas@extundo.com>
85778
85779         * lib/strdup.h: New file.
85780         * lib/strdup.c: Include it.
85781         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85782         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85783
85784 2004-02-23  Karl Berry  <karl@gnu.org>
85785
85786         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85787         (from fencepost.gnu.org:/gd/gnuorg).
85788
85789 2004-02-23  Karl Berry  <karl@gnu.org>
85790
85791         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85792         * config/srclist.txt: add maintain/standards documents.
85793
85794 2004-02-18  Bruno Haible  <bruno@clisp.org>
85795
85796         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85797         Reported by Derek Robert Price <derek@ximbiot.com>.
85798
85799 2004-02-16  Karl Berry  <karl@gnu.org>
85800
85801         * config/mkinstalldirs, install-sh: update from automake.
85802
85803 2004-02-06  Karl Berry  <karl@gnu.org>
85804
85805         * m4/po.m4: update from gettext 0.14.1.
85806
85807 2004-02-06  Karl Berry  <karl@gnu.org>
85808
85809         * lib/config.charset: update from gettext 0.14.1.
85810
85811 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85812
85813         Add comments and code, prompted by suggestions from Bruno Haible
85814         for sh-quote.
85815         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85816         describing the enum quoting_style values.
85817         * lib/quotearg.c (quotearg_alloc): New function.
85818         (quotearg_buffer_restyled): Treat lone { and } as special.
85819         Treat = as special.  Work around bug with older shells
85820         that "see" a '\' that is really the 2nd byte of a multibyte char.
85821         Quote empty string with shell_quoting_style.
85822
85823 2004-02-03  Bruno Haible  <bruno@clisp.org>
85824
85825         * m4/pipe.m4: New file, from GNU gettext.
85826
85827 2004-02-03  Bruno Haible  <bruno@clisp.org>
85828
85829         * lib/pipe.h: New file, from GNU gettext.
85830         * lib/pipe.c: New file, from GNU gettext.
85831
85832 2004-01-27  Bruno Haible  <bruno@clisp.org>
85833
85834         * m4/execute.m4: New file, from GNU gettext.
85835
85836 2004-01-27  Bruno Haible  <bruno@clisp.org>
85837
85838         * lib/execute.h: New file, from GNU gettext.
85839         * lib/execute.c: New file, from GNU gettext.
85840         * lib/w32spawn.h: New file, from GNU gettext.
85841
85842 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85843
85844         Merge from diffutils.
85845
85846         * lib/file-type.c (file_type): Add typed memory objects.
85847         * lib/file-type.h (S_TYPEISTMO): New macro.
85848
85849         * lib/c-stack.h (c_stack_action): Remove argv argument.
85850         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85851         (die): Don't calculate message unless segv_action returns.
85852         (get_stack_location, min_address_from_argv, max_address_from_argv,
85853         volatile stack_base, volatile_stack_size): Remove.
85854         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85855         that every segmentation violation is a stack overflow.  (Ouch!)
85856         See Debian bug 136249 (still outstanding) for more info about why
85857         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85858
85859 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85860
85861         Exit-status fix from coreutils.
85862
85863         Use exit_failure consistently in place of EXIT_FAILURE,
85864         so that program exit statuses are consistent on failure.
85865
85866         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85867         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85868         * lib/argmatch.h: Comment fix to match the above.
85869         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85870         Now a macro referring to exit_failure, instead of a separate
85871         variable.  Include "exitfail.h" to get it.
85872         * lib/xstrtol.h: Include "exitfail.h".
85873         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85874
85875         * lib/long-options.c (parse_long_options): Use prototype
85876         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85877         for clarity.
85878
85879 2004-01-21  Jim Meyering  <jim@meyering.net>
85880
85881         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85882         so as not to conflict with a different-sized __mktime_internal
85883         function in GNU libc.
85884         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85885         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85886
85887 2004-01-20  Karl Berry  <karl@gnu.org>
85888
85889         * config/config.guess: update from config.
85890
85891         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85892
85893 2004-01-20  Bruno Haible  <bruno@clisp.org>
85894
85895         Safer stack allocation.
85896         * lib/setenv.c: Include allocsa.h.
85897         (alloca): Remove fallback definition.
85898         (freea): Remove macro.
85899         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85900         instead of freea.
85901
85902 2004-01-20  Bruno Haible  <bruno@clisp.org>
85903
85904         * m4/eealloc.m4: New file, from GNU gettext.
85905
85906 2004-01-20  Bruno Haible  <bruno@clisp.org>
85907
85908         * m4/allocsa.m4: New file, from GNU gettext.
85909
85910 2004-01-20  Bruno Haible  <bruno@clisp.org>
85911
85912         * lib/xallocsa.h: New file, from GNU gettext.
85913         * lib/xallocsa.c: New file, from GNU gettext.
85914
85915 2004-01-20  Bruno Haible  <bruno@clisp.org>
85916
85917         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85918
85919 2004-01-20  Bruno Haible  <bruno@clisp.org>
85920
85921         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85922         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85923         specially.
85924
85925 2004-01-20  Bruno Haible  <bruno@clisp.org>
85926
85927         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85928         patch.
85929
85930 2004-01-20  Bruno Haible  <bruno@clisp.org>
85931
85932         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85933
85934 2004-01-20  Bruno Haible  <bruno@clisp.org>
85935
85936         * lib/eealloc.h: New file.
85937
85938 2004-01-20  Bruno Haible  <bruno@clisp.org>
85939
85940         * lib/binary-io.h: Avoid warnings on Cygwin.
85941
85942 2004-01-20  Bruno Haible  <bruno@clisp.org>
85943
85944         * lib/allocsa.h: New file, from GNU gettext.
85945         * lib/allocsa.c: New file, from GNU gettext.
85946
85947 2004-01-18  Karl Berry  <karl@gnu.org>
85948
85949         * doc/gpl.texi, doc/lgpl.texi: new files.
85950
85951 2004-01-18  Karl Berry  <karl@gnu.org>
85952
85953         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85954         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85955
85956 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85957
85958         Merge from coreutils.
85959
85960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85961         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85962         (gl_DEFAULT_POSIX2_VERSION): Move
85963         the documentation from 'configure' into 'config.hin',
85964         so that 'configure --help' isn't burdened by it and
85965         we don't have to worry about its formatting there.
85966         Reword the documentation so that it's more succinct
85967         and can be run together into a single paragraph.
85968         * m4/same.m4 (gl_SAME): Check for pathconf.
85969
85970 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85971
85972         Merge from coreutils.
85973
85974         * lib/posixver.c: Include posixver.h.
85975
85976         * lib/same.c: Include <stdbool.h>, <limits.h>.
85977         (_POSIX_NAME_MAX): Define if not defined.
85978         (MIN): New macro.
85979         (same_name): If file names are silently truncated, report
85980         that the file names are the same if they are the same after
85981         the silent truncation.
85982
85983         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85984         conversion function.
85985         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85986         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85987         longer needed.
85988
85989 2004-01-15  Jim Meyering  <jim@meyering.net>
85990
85991         Merge from coreutils.
85992
85993         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85994         if no library is required.
85995         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85996         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85997         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85998         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85999         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86000         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86001         value, $ac_cv_search_crypt, if it's "none required".
86002         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86003         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86004         not gl_FUNC_GETLOADAVG.
86005         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86006         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86007
86008 2004-01-15  Jim Meyering  <jim@meyering.net>
86009
86010         Merge from coreutils.
86011
86012         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86013         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86014         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86015
86016         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86017         optional configure-time default.
86018
86019         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86020
86021         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86022
86023 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86024
86025         Merge from coreutils.
86026
86027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86028         value, $ac_cv_search_nanosleep, if it's "none required".
86029
86030 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86031
86032         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86033         with like-named macro in fnmatch.c.
86034         (EXT): Use an internal constant instead.
86035
86036         Merge fnmatch patches from glibc.
86037         * lib/fnmatch.c (mbsinit): Remove define.
86038         Add libc_hidden_ver (__fnmatch, fnmatch).
86039         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86040         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86041
86042 2004-01-14  Karl Berry  <karl@gnu.org>
86043
86044         * config/install-sh: update from automake.
86045
86046 2004-01-13  Karl Berry  <karl@gnu.org>
86047
86048         * config/install-sh: update from automake.
86049
86050 2004-01-09  Karl Berry  <karl@gnu.org>
86051
86052         * config/install-sh: update from automake.
86053
86054 2004-01-05  Karl Berry  <karl@gnu.org>
86055
86056         * config/config.{sub,guess}: update from config.
86057
86058 2003-12-31  Karl Berry  <karl@gnu.org>
86059
86060         * config/depcomp: update from automake.
86061
86062 2003-12-14  Karl Berry  <karl@gnu.org>
86063
86064         * lib/config.charset: update from gettext-runtime.
86065
86066 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86067
86068         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86069         Bug reported by Alfred M. Szmidt.
86070
86071 2003-12-03  Bruno Haible  <bruno@clisp.org>
86072
86073         * m4/gettext.m4: Upgrade from gettext-0.13.
86074         * m4/po.m4: Upgrade from gettext-0.13.
86075         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86076         * m4/intmax.m4: New file, from gettext-0.13.
86077         * m4/printf-posix.m4: New file, from gettext-0.13.
86078
86079 2003-11-29  Karl Berry  <karl@gnu.org>
86080
86081         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86082
86083 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86084             Bruno Haible  <bruno@clisp.org>
86085
86086         * lib/printf-parse.h: Don't include sys/types.h.
86087         (ARG_NONE): New macro.
86088         (char_directive): Change type of *arg_index fields to size_t.
86089         * lib/printf-parse.c: Don't include sys/types.h.
86090         (SSIZE_MAX): Remove macro.
86091         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86092         Remove unnecessary overflow check.
86093         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86094         fields.
86095
86096 2003-11-25  Bruno Haible  <bruno@clisp.org>
86097
86098         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86099
86100 2003-11-25  Bruno Haible  <bruno@clisp.org>
86101
86102         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86103         gt_TYPE_SSIZE_T.
86104
86105 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86106
86107         * modules/alloca: Remove dependency on xalloc.
86108
86109 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86110
86111         * lib/alloca.c: Remove dependency on xalloc module.
86112         (xalloc_die): Remove.
86113         (memory_full) [!defined emacs]: New macro.
86114         [!defined emacs]: Don't include xalloc.h.
86115         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86116         address arithmetic overflows.  Change datatypes a bit to avoid
86117         unnecessary casts.
86118
86119 2003-11-22  Jim Meyering  <jim@meyering.net>
86120
86121         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86122         s/size/size_t/.
86123
86124 2003-11-21  Karl Berry  <karl@gnu.org>
86125
86126         * config/config.{sub,guess}: update from config.
86127
86128 2003-11-18  Karl Berry  <karl@gnu.org>
86129
86130         * config/config.{sub,guess}: update from config.
86131
86132         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86133
86134 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86135
86136         * README: Mention that S+T cannot overflow if S is the size of
86137         an existing object and T is sufficiently small.
86138
86139 2003-11-17  Jim Meyering  <jim@meyering.net>
86140
86141         On systems without utime and without a utimes function capable of
86142         dealing with a NULL struct utimbuf* argument, this utime replacement
86143         could -- in unusual circumstances -- leak a file descriptor.
86144         * lib/utime.c: Include <unistd.h> and <errno.h>.
86145         (utime_null): Be sure to close `fd' and to preserve errno.
86146         Reported by Geoff Collyer via Arnold Robbins.
86147
86148 2003-11-17  Bruno Haible  <bruno@clisp.org>
86149
86150         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86151         (Depends-on): Add xsize.
86152
86153 2003-11-17  Bruno Haible  <bruno@clisp.org>
86154
86155         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86156
86157 2003-11-17  Bruno Haible  <bruno@clisp.org>
86158
86159         * lib/vasnprintf.c (alloca): Remove fallback definition.
86160         (freea): Remove definition.
86161         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86162         Reported by Paul Eggert.
86163
86164 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86165             Bruno Haible  <bruno@clisp.org>
86166
86167         Protect against address arithmetic overflow.
86168         * lib/printf-args.h: Include stddef.h.
86169         (arguments): Change type of field 'count' to size_t.
86170         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86171         'unsigned int' where appropriate.
86172         * lib/printf-parse.h: Include sys/types.h.
86173         (char_directive): Change type of *arg_index fields to ssize_t.
86174         (char_directives): Change type of fields 'count', max_*_length to
86175         size_t.
86176         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86177         (SSIZE_MAX): Define fallback value.
86178         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86179         instead of 'int' where appropriate. Check a_allocated, d_allocated
86180         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86181         * lib/vasnprintf.c: Include xsize.h.
86182         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86183         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86184         overflow. Avoid wraparound when converting a width or precision from
86185         decimal to binary.
86186
86187 2003-11-16  Bruno Haible  <bruno@clisp.org>
86188
86189         Update from GNU gettext.
86190         * lib/printf-parse.c: Generalize to it can be compiled for wide
86191         strings.
86192         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86193         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86194         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86195         SNPRINTF): New macros.
86196         Don't include <alloca.h> if the file is used inside libintl.
86197         (local_wcslen): New function, for Solaris 2.5.1.
86198         (VASNPRINTF): Use it instead of wcslen.
86199
86200 2003-11-16  Bruno Haible  <bruno@clisp.org>
86201
86202         * lib/xsize.h (xmax): New function.
86203         (xsum, xsum3, xsum4): Declare as "pure" functions.
86204
86205 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86206
86207         * modules/xalloc (Files): Undo latest change, since xalloc.h
86208         no longer needs SIZE_MAX or PTRDIFF_MAX.
86209
86210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86211
86212         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86213         gl_PTRDIFF_MAX.
86214
86215 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86216
86217         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86218         "return", to pacify some unknown compiler.  Problem reported
86219         by Joerg Schilling.
86220
86221 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86222
86223         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86224         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86225         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86226         heuristic is just as accurate as far as we know, and it removes a
86227         dependency on size_max.m4 and ptrdiff_max.m4.
86228
86229 2003-11-11  Bruno Haible  <bruno@clisp.org>
86230
86231         * modules/xsize (Files): Add m4/size_max.m4.
86232         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86233
86234 2003-11-11  Bruno Haible  <bruno@clisp.org>
86235
86236         * m4/size_max.m4: New file.
86237         * m4/ptrdiff_max.m4: New file.
86238         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86239         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86240         (gl_XALLOC): Invoke it.
86241
86242 2003-11-11  Bruno Haible  <bruno@clisp.org>
86243
86244         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86245         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86246         defined.
86247
86248 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86249
86250         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86251         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86252         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86253         From Bruno Haible.
86254         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86255         not (size_t) -1, since it's defined here.
86256
86257 2003-11-09  Karl Berry  <karl@gnu.org>
86258
86259         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86260
86261 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86262
86263         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86264         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86265         Reject sizes of exactly SIZE_MAX bytes.
86266         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86267         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86268
86269 2003-11-05  Bruno Haible  <bruno@clisp.org>
86270
86271         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86272         SIZE_MAX defined in <limits.h> on Solaris.
86273
86274 2003-11-04  Jim Meyering  <jim@meyering.net>
86275
86276         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86277         variable names, rather than @VAR@.
86278         * modules/poll: Likewise.
86279
86280 2003-11-04  Bruno Haible  <bruno@clisp.org>
86281
86282         * modules/xsize: New file.
86283         * modules/linebreak: Depend on xsize.
86284         * MODULES.html.sh (func_all_modules): Add xsize.
86285
86286 2003-11-04  Bruno Haible  <bruno@clisp.org>
86287
86288         * m4/xsize.m4: New file.
86289
86290 2003-11-04  Bruno Haible  <bruno@clisp.org>
86291
86292         * lib/xsize.h: New file.
86293         * lib/linebreak.c: Include xsize.h.
86294         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86295         argument for overflow.
86296         Suggested by Paul Eggert.
86297
86298 2003-11-03  Karl Berry  <karl@gnu.org>
86299
86300         * config/config.{guess,sub}: update from config.
86301
86302 2003-11-03  Jim Meyering  <jim@meyering.net>
86303
86304         * modules/userspec (lib_SOURCES): Add userspec.h.
86305         (Include): Add "userspec.h".
86306         Improve description.
86307
86308 2003-11-03  Jim Meyering  <jim@meyering.net>
86309
86310         * lib/userspec.c: Include "userspec.h".
86311         * lib/userspec.h: New file.
86312
86313 2003-11-03  Bruno Haible  <bruno@clisp.org>
86314
86315         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86316
86317 2003-11-03  Bruno Haible  <bruno@clisp.org>
86318
86319         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86320         available, to avoid (extremely rare) race condition.
86321         Suggested by Paul Eggert.
86322
86323 2003-11-02  Karl Berry  <karl@gnu.org>
86324
86325         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86326
86327 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86328
86329         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86330         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86331         (read_filesystem_list): Set and use me_type_malloced.
86332         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86333         whatever the type happens to be), for brevity and consistency.
86334         Check for size calculation overflow on Alphas running OSF/1.
86335
86336 2003-10-31  Jim Meyering  <jim@meyering.net>
86337
86338         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86339
86340         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86341
86342 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86343             Bruno Haible  <bruno@clisp.org>
86344
86345         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86346         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86347
86348 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86349
86350         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86351         netbsd*-gnu*.  Suggested by Robert Millan.
86352
86353 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86354
86355         * modules/group-member: Depend on stdbool.
86356
86357 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86358
86359         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86360
86361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86362
86363         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86364         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86365         after the 'gnu' in these cases.  This fixes some bugs in the
86366         previous change, and is based on suggestions by Robert Millan.
86367
86368 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86369
86370         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86371         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86372         no longer needed.
86373         * lib/quotearg.c (quotearg_n_options): Use it.
86374         * lib/group-member.c: Include <stdbool.h>.
86375         (free_group_info): Arg is now const *; don't free arg.
86376         (get_group_info): Now returns bool and accepts struct group_info *,
86377         rather than returning a malloc'ed struct group_info *.
86378         All uses changed.  Check for overflow in internal size calculation.
86379
86380         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86381         rather than xmalloc/xrealloc.
86382         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86383         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86384         conformance bug: the old code used a pointer after freeing the
86385         storage that it addressed.
86386         * lib/hash.c (hash_initialize): Simplify the code by using
86387         xalloc_oversized rather than doing it by hand.
86388         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86389         the buffer preserved.  Use free and xmalloc instead.
86390         * lib/quotearg.c (quotearg_n_options): Likewise.
86391         Use a simpler test for size overflow.  Don't use xalloc_oversized
86392         because unsigned int might be wider than size_t (!); this suggests
86393         that we should switch from unsigned int to size_t for slot numbers.
86394
86395 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86396
86397         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86398         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86399         NetBSD kernels.  Requested by Richard Stallman.
86400
86401 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86402
86403         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86404         to allocate the returned structure.  Do not allocate a subarray,
86405         as x2nrealloc will do that.
86406         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86407         instead of xnrealloc.
86408         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86409
86410 2003-10-27  Bruno Haible  <bruno@clisp.org>
86411
86412         * lib/stdbool_.h: Better support for BeOS.
86413
86414 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86415
86416         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86417         now uses inline.
86418
86419 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86420
86421         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86422         callers that want to do their own size-overflow checking.  Include
86423         <stdbool.h>, since xalloc_oversized returns bool.
86424         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86425         to use xalloc_oversized.
86426
86427         Add two functions x2realloc, x2nrealloc, for programs that grow
86428         arrays dynamically by doubling their sizes.
86429         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86430         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86431         New functions.
86432
86433         Port to C99 semantics for 'inline' of external functions.
86434         Bug reported by Bruno Haible.
86435         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86436         with the old contents of xnmalloc.
86437         (xnmalloc, xmalloc): Use it.
86438         (xnrealloc_inline): New static inline function,
86439         with the old contents of xnrealloc.
86440         (xnrealloc, xrealloc): Use it.
86441
86442         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86443         that.
86444
86445 2003-10-26  Karl Berry  <karl@gnu.org>
86446
86447         * config/srclist.txt (COPYING.DOC): no longer available from
86448         /gd/gnuorg; don't know where the ultimate source is.
86449
86450 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86451
86452         Fix several address-calculation bugs in the hash modules,
86453         plus some minor code cleanup.
86454
86455         * lib/hash.h: Include <stdbool.h>, for bool.
86456         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86457         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86458         hash_get_n_entries, hash_get_max_bucket_length,
86459         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86460         hash_rehash): Use size_t rather than unsigned.
86461         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86462         hash_get_n_buckets_used, hash_get_n_entries,
86463         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86464         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86465         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86466         Likewise.
86467         (SIZE_MAX): Define if not defined.
86468         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86469         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86470         hash_print):
86471         Use const * when possible.
86472         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86473         (check_tuning): Fix bug: if tuning parameters were very close to
86474         0 or 1, rounding errors could have caused subscript violations.
86475         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86476         (hash_initialize): Add 'fail:' label
86477         to free table and return NULL, and use it to simplify code.
86478         Use calloc rather than clearing the storage ourself.
86479         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86480         buffer size calculations.
86481         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86482         Include <stddef.h>, for size_t.
86483         * lib/hash-pjw.c (hash_pjw): Likewise.
86484         Switch to method described by Bruno Haible.
86485         Include <limits.h>, for CHAR_BIT.
86486         (SIZE_BITS): New macro.
86487
86488 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86489
86490         * m4/getline.m4 (AM_FUNC_GETLINE):
86491         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86492         hosts.  Problem reported by Derek Robert Price in
86493         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86494         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86495         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86496
86497 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86498
86499         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86500         ceiling the allocation at NMAX bytes rather than silently
86501         discarding input bytes before NMAX is reached.  This makes
86502         a difference only if NMAX exceeds SIZE_MAX / 2.
86503
86504         * lib/obstack.c: Merge from glibc.
86505         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86506         Add libc_hidden_def (_obstack_newchunk).
86507         (_obstack_free) [! defined _LIBC]: Remove.
86508         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86509         a clone of the function body.
86510         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86511         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86512
86513         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86514         glibc.
86515         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86516         arg to memcpy.
86517
86518         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86519         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86520         Don't use lvalue casts, as GCC plans to remove support for them
86521         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86522         was also present in the non-GCC version, indicating that this
86523         code had always been buggy and had never been widely used.
86524         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86525         Use the fast variant of each macro, rather than copying the
86526         definiens of the fast variant; that way, we'll be more likely to
86527         catch future bugs in the fast variants.
86528
86529 2003-10-20  Bruno Haible  <bruno@clisp.org>
86530
86531         * modules/wait-process: New file.
86532         * MODULES.html.sh (func_all_modules): Add wait-process.
86533
86534 2003-10-20  Bruno Haible  <bruno@clisp.org>
86535
86536         * m4/wait-process.m4: New file.
86537
86538 2003-10-20  Bruno Haible  <bruno@clisp.org>
86539
86540         * lib/wait-process.h: New file, from GNU gettext.
86541         * lib/wait-process.c: New file, from GNU gettext.
86542
86543 2003-10-19  Jim Meyering  <jim@meyering.net>
86544
86545         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86546         HPUX 10.20.
86547
86548 2003-10-18  Karl Berry  <karl@gnu.org>
86549
86550         * config/config.guess: update from config.
86551
86552 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86553
86554         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86555         (getgroups): First arg is int, not size_t.
86556         Don't let 'free' mangle errno.
86557
86558 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86559
86560         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86561
86562 2003-10-16  Karl Berry  <karl@gnu.org>
86563
86564         * config/config.{guess,sub}: update from config.
86565
86566 2003-10-16  Jim Meyering  <jim@meyering.net>
86567
86568         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86569         memcpy.
86570
86571 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86572
86573         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86574         (SIZE_MAX): Remove.
86575         (new_exclude, add_exclude_file): Initial size no longer needs to
86576         be a power of 2.
86577         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86578         our own address arithmetic overflow checking.
86579
86580         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86581         (fnmatch): Do not alloca more than 2000 wide characters;
86582         instead, use malloc for large buffers.
86583         Check for address arithmetic overflow, and return -1
86584         with errno set to ENOMEM in that case.
86585         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86586         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86587         instead, return -1.  Check for address arithmetic overflow.
86588
86589 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86590
86591         Handle invalid suffixes and overflow independently, so that
86592         callers can treat them independently as needed.  Fix some bugs in
86593         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86594         suffix for a human-readable blocksize.  The major caller-visible
86595         change is the addition of a new
86596         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86597         that both overflow and suffix chars were found.
86598
86599         * lib/human.c (humblock): Don't check separately for invalid suffix
86600         char; that is xstrtoumax's job (now that its bug is fixed).
86601         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86602         INTMAX_MAX]: New macros.
86603         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86604         TYPE_MAXIMUM): New macros.
86605         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86606         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86607         if overflow occurs, as it's what __strtol does and it's more useful
86608         in practice.
86609         (__xstrtol): If __strtol reports some error other than ERANGE,
86610         reflect it to the caller as LONGINT_INVALID.  If it reports
86611         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86612         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86613         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86614         value.
86615         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86616         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86617         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86618         [defined UINTMAX_MAX]: New macros.
86619
86620 2003-10-14  Bruno Haible  <bruno@clisp.org>
86621
86622         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86623
86624 2003-10-14  Bruno Haible  <bruno@clisp.org>
86625
86626         * m4/sig_atomic_t: New file, from GNU gettext.
86627         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86628
86629 2003-10-14  Bruno Haible  <bruno@clisp.org>
86630
86631         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86632         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86633         Also use volatile where needed.
86634
86635 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86636
86637         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86638         Change maintainer from Bruno Haible to 'all'.
86639
86640 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86641
86642         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86643
86644 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86645
86646         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86647         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86648         and define in terms of the other primitives.
86649         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86650         (SIZE_MAX): Define if not already defined.
86651         (array_size_overflow): New function.
86652         (xalloc_die): Abort instead of exiting if 'error' returns.
86653         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86654         (xmalloc, xrealloc): Use them.
86655         (xcalloc): Check for address arithmetic overflow.
86656         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86657         a bit faster than strcpy.
86658
86659 2003-10-10  Simon Josefsson  <jas@extundo.com>
86660
86661         * modules/argp (Depends-on): Add restrict and strcase.
86662
86663 2003-10-10  Simon Josefsson  <jas@extundo.com>
86664
86665         * m4/argp.m4: Add AC_C_INLINE.
86666
86667 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86668
86669         Merge getpass from libc, plus a few fixes.
86670
86671         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86672         Include <stdbool.h>.
86673         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86674         __fsetlocking to empty.
86675         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86676         do include <bits/libc-lock.h>.
86677         Do not include <fcntl.h>; not needed.
86678         [_LIBC]: Include <wchar.h>.
86679         (NOTCANCEL_MODE): New macro.
86680         (flockfile, funlockfile) [_LIBC]: New macros.
86681         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86682         [!_LIBC]: New macros.
86683         (call_fclose): New function.
86684         (getpass): Use it.  Save tty stream separately; this simplifies the
86685         code and makes it more reliable if stdin happens to equal stdout.
86686         Invoke __fsetlocking on tty.
86687         Handle thread cancellation if needed.
86688         Namespace cleanup (use __tcgetattr, __getline).
86689         Use bool for Booleans.
86690         [USE_IN_LIBIO]: Handle wide streams.
86691         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86692         stream might go where.
86693
86694         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86695         doesn't have to include <stdio.h> before us.
86696         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86697         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86698         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86699         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86700         if not declared, so that we can use getpass.c code from libc without
86701         rewriting it.
86702         (flockfile, ftrylockfile, funlockfile): New macros.
86703
86704 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86705
86706         * modules/getpass: Depend on stdbool.
86707
86708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86709
86710         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86711
86712 2003-10-07  Karl Berry  <karl@gnu.org>
86713
86714         * config/config.{guess,sub}: update from config.
86715
86716 2003-10-06  Jim Meyering  <jim@meyering.net>
86717             Bruno Haible  <bruno@clisp.org>
86718
86719         This lets translators provide better translations for the
86720         "Written by ..." part of --version output.
86721         * lib/version-etc.h: Include stdarg.h.
86722         (version_etc_copyright): Declare as readonly.
86723         (version_etc): Make this function variadic with a NULL-terminated list
86724         of author name strings.
86725         (version_etc_va): New declaration.
86726         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86727         (version_etc_copyright): Declare as readonly.
86728         (version_etc_va): New function. Provide a different translatable string
86729         for each possible number of authors < 10. Abbreviate when there are 10
86730         authors or more.
86731         (version_etc): Make this function variadic. Call version_etc_va.
86732         Suggestion from Gary V. Vaughan.
86733
86734         * lib/long-options.h (parse_long_options): Change prototype: the
86735         authors string is moved to the end and becomes variadic.
86736         * lib/long-options.c: Include stdarg.h.
86737         (parse_long_options): Make this function variadic, too.
86738         Call version_etc_va, not version_etc.
86739
86740 2003-10-06  Bruno Haible  <bruno@clisp.org>
86741
86742         * modules/version-etc-2: Remove file.
86743         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86744
86745 2003-10-06  Bruno Haible  <bruno@clisp.org>
86746
86747         * modules/fatal-signal: New file.
86748         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86749
86750 2003-10-06  Bruno Haible  <bruno@clisp.org>
86751
86752         * m4/fatal-signal.m4: New file.
86753         * m4/signalblocking.m4: New file, from GNU gettext.
86754
86755 2003-10-06  Bruno Haible  <bruno@clisp.org>
86756
86757         * lib/version-etc-2.h: Remove file.
86758         * lib/version-etc-2.c: Remove file.
86759
86760 2003-10-06  Bruno Haible  <bruno@clisp.org>
86761
86762         * lib/fatal-signal.h: New file, from GNU gettext.
86763         * lib/fatal-signal.c: New file, from GNU gettext.
86764
86765 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86766
86767         * README: Rework advice for preventing empty .o files.
86768         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86769         not <sys/types.h>.
86770
86771 2003-10-04  Karl Berry  <karl@gnu.org>
86772
86773         * lib/argp*: update from libc.
86774
86775 2003-10-04  Karl Berry  <karl@gnu.org>
86776
86777         * config/config.{guess,sub}: update from config.
86778
86779 2003-10-02  Bruno Haible  <bruno@clisp.org>
86780
86781         * modules/lchown (Include): Add lchown.h.
86782         * modules/time_r (Include): Use "..." syntax.
86783         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86784
86785 2003-10-01  Simon Josefsson  <jas@extundo.com>
86786
86787         * MODULES.html.sh (func_all_modules): Move gethostname from section
86788         'based on' to section 'lacking' POSIX:2001.
86789
86790 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86791
86792         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86793         to output mode on the same stream.
86794
86795 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86796
86797         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86798         Fix arg typo in previous patch.
86799
86800 2003-09-28  Jim Meyering  <jim@meyering.net>
86801
86802         * lib/error.c: Correct cpp indentation.
86803
86804 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86805
86806         * modules/free: New file.
86807
86808 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86809
86810         * m4/free.m4: New file.
86811
86812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86813
86814         * lib/minmax.h (MIN, MAX)
86815         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86816         Omit the special code that used __typeof__, since we worry that
86817         it could be more trouble than it's worth.  See:
86818         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86819         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86820
86821         * lib/free.c: New file.
86822
86823 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86824
86825         Trivial fixes to Makefile.am parts of module listings.
86826         * modules/strstr: Append strstr.h to lib_SOURCES.
86827         * modules/strcase: Likewise, for strcase.h.
86828
86829 2003-09-27  Karl Berry  <karl@gnu.org>
86830
86831         * config/mkinstalldirs: update from automake.
86832
86833 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86834
86835         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86836         (error_tail): Do not loop, reallocating temporary buffer, since
86837         the output cannot contain more wide characters than the input
86838         contains bytes, the size must be big enough already.  This avoids
86839         one potential size overflow calculation.  Check for size overflow
86840         when calculating temporary buffer size.  Free temporary buffer
86841         when done, if it was allocated with malloc; this plugs a memory
86842         leak.  Remove casts from void * to pointers, that are no longer
86843         needed now that we're assuming C89 or better.
86844
86845         Merge error changes from glibc.
86846
86847         * lib/error.c, error.h: Update copyright notice header to match glibc.
86848         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86849         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86850         Disable cancellation while printing error.
86851         * lib/error.h: Prepend __ to parameter names.
86852
86853 2003-09-26  Jim Meyering  <jim@meyering.net>
86854
86855         * lib/error.c (error_tail): Move some declarations
86856         into inner scope where the local variables are used.
86857
86858 2003-09-26  Bruno Haible  <bruno@clisp.org>
86859
86860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86861         stpncpy().
86862         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86863
86864 2003-09-26  Bruno Haible  <bruno@clisp.org>
86865
86866         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86867         (stpncpy): Define as alias for gnu_stpncpy.
86868         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86869
86870 2003-09-25  Simon Josefsson  <jas@extundo.com>
86871
86872         * lib/xgetdomainname.h: New file.
86873         * lib/xgetdomainname.c: New file.
86874
86875 2003-09-25  Simon Josefsson  <jas@extundo.com>
86876             Bruno Haible  <bruno@clisp.org>
86877
86878         * modules/getdomainname: New file.
86879         * modules/xgetdomainname: New file.
86880         * MODULES.html.sh (func_all_modules): Add getdomainname,
86881         xgetdomainname.
86882
86883 2003-09-25  Simon Josefsson  <jas@extundo.com>
86884             Bruno Haible  <bruno@clisp.org>
86885
86886         * m4/getdomainname.m4: New file.
86887
86888 2003-09-25  Simon Josefsson  <jas@extundo.com>
86889             Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/getdomainname.h: New file.
86892         * lib/getdomainname.c: New file.
86893
86894 2003-09-25  Karl Berry  <karl@gnu.org>
86895
86896         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86897
86898 2003-09-25  Karl Berry  <karl@gnu.org>
86899
86900         * config/install-sh: update from automake.
86901
86902 2003-09-25  Bruno Haible  <bruno@clisp.org>
86903
86904         * modules/version-etc-2: New file, from modules/version-etc with
86905         modifications.
86906         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86907
86908 2003-09-25  Bruno Haible  <bruno@clisp.org>
86909
86910         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86911         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86912
86913 2003-09-24  Simon Josefsson  <jas@extundo.com>
86914
86915         * modules/xgethostname: Add xgethostname.h.
86916
86917 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86918
86919         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86920         the buffer associated with the argument.  Bug reported by
86921         Simon Josefsson.
86922
86923 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86924
86925         * README: Document assumptions that 'int' is at least 32 bits
86926         wide, that integer arithmetic is 2's complement without overflow,
86927         that there are no holes in integer values, that adding sizes of
86928         two nonoverlapping objects can't overflow, and that all-bits-zero
86929         yields scalar zero.  Fix spelling and capitalization typos.
86930
86931 2003-09-19  Karl Berry  <karl@gnu.org>
86932
86933         * lib/argp.h: update from libc.
86934
86935 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86936
86937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86938         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86939         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86940
86941 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86942
86943         * gnulib-tool: Use "test -h", not "test -L", for portability
86944         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86945         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86946         (sed_extract_prog): Issue s commands one-by-one, rather than
86947         using \| in one s command.
86948
86949 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86950
86951         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86952         input error, instead of returning NULL the next time we are called
86953         (and therefore losing track of errno).
86954
86955 2003-09-16  Bruno Haible  <bruno@clisp.org>
86956
86957         * gnulib-tool (func_create_testdir): Warn about duplicated
86958         dependencies.
86959
86960 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86961
86962         * modules/argmatch, modules/fatal, modules/obstack,
86963         modules/xalloc, modules/xgethostname: Sort dependencies by
86964         importance, not alphabetically.
86965
86966 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86967
86968         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86969         fails, so that the caller gets the proper errno.
86970
86971         * lib/readutmp.c (read_utmp): Likewise.
86972         Check for fstat error.  Close stream and free storage
86973         when failing.
86974
86975 2003-09-14  Karl Berry  <karl@gnu.org>
86976
86977         * config/srclist.txt (strdup.c): disable for c89 changes.
86978
86979 2003-09-14  Jim Meyering  <jim@meyering.net>
86980
86981         * lib/getloadavg.c: Correct cpp indentation.
86982         * lib/strdup.c: Likewise.
86983         * lib/vasnprintf.c: Likewise.
86984
86985 2003-09-14  Bruno Haible  <bruno@clisp.org>
86986
86987         * modules/fwriteerror: New file.
86988         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86989
86990 2003-09-14  Bruno Haible  <bruno@clisp.org>
86991
86992         * lib/fwriteerror.h: New file.
86993         * lib/fwriteerror.c: New file.
86994
86995 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86996
86997         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86998         modules/xgethostname, modules/xalloc: Depend on exit.
86999
87000 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87001
87002         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87003
87004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87005         and AC_MINIX, too, so that their extensions are available.
87006
87007         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87008         This macro has been superseded by gl_BACKUPFILE.
87009
87010         More patches to assume C89 or better.
87011
87012         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87013
87014         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87015         unconditionally.
87016         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87017         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87018         Include <string.h>, <stdlib.h> unconditionally.
87019         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87020         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87021         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87022         headers or for string.h.
87023         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87024         or strtoul.
87025
87026         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87027         headers.
87028         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87029         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87031         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87032         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87033         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87034         memcpy, memset.
87035         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87036         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87037         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87038         strtol.
87039         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87040         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87041         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87042         strtoul.
87043
87044 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87045
87046         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87047         * lib/obstack.c [!defined _LIBC]: Likewise.
87048         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87049         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87050         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87051
87052         More changes to assume C89 or better.
87053
87054         * lib/error.c (error_tail): Assume vprintf.
87055
87056         * lib/argmatch.c (getenv): Remove decl.
87057         * lib/progreloc.c (get_full_program_name): Define via prototype.
87058         * lib/setenv.c (clearenv): Likewise.
87059         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87060         needed.
87061         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87062         (malloc, memcpy): Remove decls.
87063         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87064         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87065         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87066         (memcpy): Remove macro.
87067         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87068         (__P): Remove.  All uses removed.
87069         (PTR): Remove.  All uses changed to void *.
87070         (CHAR_BIT, NULL): Remove.
87071         (spaces, zeros, memset_space, memset_zero)
87072         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87073         Remove.
87074         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87075         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87076         Define with prototype.
87077         Remove now-unnecessary prototype decl.
87078         (extra_args_spec): Assume ANSI C.  All uses changed.
87079         (extra_args_spec_iso): Remove.
87080         (my_strftime, emacs_strftimeu): Define via prototype.
87081         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87082         unconditionally.
87083         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87084         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87085         (strtoul, strtol): Remove decls.
87086         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87087         LONG_MAX): Remove.
87088         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87089         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87090         (LOCALE_PARAM_PROTO): New macro.
87091         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87092         (INTERNAL (strtol), strtol): Define with a prototype.
87093         (PARAMS): Remove.  All uses removed.
87094         * lib/tempname.c: Include <string.h> unconditionally.
87095         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87096         * lib/xgethostname.c (main): Define with a prototype.
87097         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87098         Include <stdlib.h> unconditionally.
87099         (calloc, malloc, realloc, free): Remove decls.
87100         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87101         Include <stdlib.h> unconditionally.  Sort include file names.
87102         (strtod): Remove.
87103         (xstrtod): Define with a prototype.
87104         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87105         (strtol, strtoul): Remove decls.
87106
87107 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87108
87109         More patches to assume C89 or better.
87110         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87111         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87112         string.h, memchr, STDC_HEADERS.
87113
87114 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87115
87116         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87117         Include <stdlib.h>, <string.h> unconditionally.
87118         Remove now-unnecessary cast to char *.
87119         * lib/strnlen.c: Include <string.h> unconditionally.
87120         * lib/yesno.c (yesno): Define with a prototype.
87121
87122 2003-09-11  Bruno Haible  <bruno@clisp.org>
87123
87124         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87125
87126 2003-09-10  Jim Meyering  <jim@meyering.net>
87127
87128         * lib/error.c: Correct indentation of cpp directives.
87129
87130 2003-09-10  Bruno Haible  <bruno@clisp.org>
87131
87132         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87133         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87134         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87135         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87136         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87137         <stdlib.h> and <string.h> checks.
87138         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87139         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87140
87141 2003-09-10  Bruno Haible  <bruno@clisp.org>
87142
87143         * lib/strcspn.c: Include <string.h> unconditionally.
87144         * lib/strpbrk.c: Include <string.h> unconditionally.
87145         * lib/strstr.c: Include <string.h> unconditionally.
87146         * lib/unicodeio.c: Include <string.h> unconditionally.
87147         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87148         * lib/unsetenv.c: Likewise.
87149         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87150         * lib/yesno.c: Include <stdlib.h> unconditionally.
87151         (rpmatch): Add prototype.
87152
87153 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87154
87155         More patches to assume C89 or better.
87156         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87157         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87158         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87159         or for string.h.
87160         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87161         stdlib.h.
87162         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87163         C headers.
87164         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87165         string.h.
87166         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87167         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87168         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87169         or for string.h.
87170         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87171         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87172         C headers.
87173         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87174         memcpy.
87175         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87176         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87177         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87178         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87179         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87180         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87181         string.h, free.
87182         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87183         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87184         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87185         C headers, or for string.h.
87186         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87187         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87188         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87189         headers, memory.h, stdlib.h, string.h, strings.h.
87190         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87191         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87192         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87193         strchr.
87194         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87195         headers, memory.h, string.h.
87196         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87197         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87198         free.
87199         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87200         headers.
87201         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87202         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87203         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87204         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87205         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87206
87207 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87208
87209         More K&R removal.
87210
87211         * lib/acosl.c (main): Use a prototype.
87212         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87213         tanl.c: Likewise.
87214
87215         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87216
87217         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87218         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87219         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87220         with a prototype.
87221         * lib/getopt.c (const): Remove macro.
87222         Include <string.h> unconditionally.
87223         (my_index): Remove; all uses changed to strchr.
87224         (strlen): Remove decl.
87225         (exchange): Remove forward decl; no longer needed.
87226         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87227         Define with prototype.
87228         * lib/getopt1.c (const): Remove macro.
87229         (getopt_long, getopt_long_only, main): Define with prototype.
87230
87231         * lib/getugroups.c: Include <string.h> unconditionally.
87232
87233         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87234         (getusershell, setusershell, endusershell, readname, main):
87235         Define with prototypes.
87236
87237         * lib/group-member.c: Include group-member.h first.
87238         Include <stdlib.h> unconditionally.
87239
87240         * lib/hard-locale.c: Include hard-locale.h first.
87241         Include <stdlib.h>, <string.h> unconditionally.
87242
87243         * lib/hash.c (free, malloc): Remove decls.
87244         Include <stdlib.h> unconditionally.
87245
87246         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87247         (getenv): Do not declare.
87248
87249         * lib/idcache.c: Include <string.h> unconditionally.
87250
87251         * lib/long-options.c: Include long-options.h first, to test interface.
87252         Include <stdlib.h> unconditionally.
87253
87254         * lib/makepath.c: Include makepath.h first, to test interface.
87255         Include <stdlib.h> and <string.h> unconditionally.
87256
87257         * lib/linebuffer.c: Include <stdlib.h>.
87258         (free): Remove decl.
87259
87260         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87261         stddef.h. rpl_malloc returns void *, not char *.
87262         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87263         prototype.
87264
87265         * lib/md5.h: Include <limits.h> unconditionally.
87266         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87267         (__P): Remove; all uses removed.
87268         * lib/md5.c: Include "md5.h" first.
87269         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87270         md5_buffer, md5_process_bytes, md5_process_block):
87271         Define with prototypes.
87272         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87273         * lib/sha.c: Include "sha.h" first.
87274         Include <stdlib.h>, <string.h> unconditionally.
87275
87276         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87277         * lib/memcmp.c (__ptr_t): Likewise.
87278         * lib/memrchr.c (__ptr_t): Likewise.
87279         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87280         Include <string.h> unconditionally.
87281         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87282         * lib/memchr.c: Include <stdlib.h> unconditionally.
87283         * lib/memchr.c (LONG_MAX): Remove.
87284         * lib/memrchr.c (LONG_MAX): Likewise.
87285         * lib/memchr.c (__memchr): Define via a prototype.
87286         * lib/memrchr.c (__memrchr): Likewise.
87287         * lib/memcmp.c (__P): Remove, and remove all uses.
87288         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87289         Remove forward decls; no longer needed.
87290         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87291         Use types required by C89 in prototype.
87292
87293         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87294         * lib/savedir.c: Likewise.
87295         * lib/mkdir.c (free): Remove decl.
87296         * lib/rmdir.c (rmdir): Define with a prototype.
87297         * lib/savedir.c: Include savedir.h first, to test interface.
87298
87299         * lib/mktime.c (STDC_HEADERS): Remove.
87300         Include <stdlib.h>, <string.h> unconditionally.
87301
87302         * lib/modechange.c: Include <stdlib.h> unconditionally.
87303         (malloc): Remove decl.
87304
87305         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87306         (free): Remove decl.
87307
87308         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87309         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87310         (This type really should be intptr_t, but that's a C99ism.)
87311         (_obstack_memcpy): Remove: all uses changed to memcpy.
87312         Include <string.h> unconditionally.
87313         (struct obstack): Assume __STDC__ for types of members
87314         chunkfun, freefun, extra_arg.
87315         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87316         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87317         obstack_begin, obstack_specify_allocation,
87318         obstack_specify_allocation_with_arg, obstack_chunkfun,
87319         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87320         Remove unprototyped decls and the macros that use them.
87321         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87322         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87323         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87324         (defined __STDC__ && __STDC__)]:
87325         Remove nonprototyped code.
87326         Include <stdlib.h> unconditionally.
87327         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87328         _obstack_allocated_p, _obstack_free, obstack_free,
87329         _obstack_memory_used, print_and_abort):
87330         Define using prototypes.
87331         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87332         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87333         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87334         obstack_next_free, obstack_object_size, obstack_room) [0]:
87335         Remove unused, unprototyped code.
87336
87337         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87338
87339         * lib/physmem.c (physmem_total, physmem_available, main): Define
87340         with prototypes.
87341
87342         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87343         (main): Define with a prototype.
87344
87345         * lib/posixver.c (getenv): Remove decl.
87346
87347         * lib/putenv.c (malloc): Returns void *, not char *.
87348         Include <string.h> unconditionally.
87349         (strchr, memcpy, NULL): Do not define.
87350
87351         * lib/readtokens.c: Include readtokens.h first, to test interface.
87352         Include <stdlib.h>, <string.h> unconditionally.
87353         (init_tokenbuffer): Define with a prototype.
87354
87355         * lib/regex.c (PARAMS): Remove.  All uses removed.
87356         All uses of _RE_ARGS removed, too.
87357         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87358         unconditionally.
87359         (bzero): Assume memset exists.
87360         (memcmp, memcpy, NULL): Remove.
87361         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87362         char, or assignments to local vars of type signed char.
87363         (init_syntax_once, PREFIX(extract_number_and_incr),
87364         PREFIX(print_partial_compiled_pattern),
87365         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87366         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87367         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87368         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87369         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87370         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87371         wcs_compile_range, byte_compile_range, truncate_wchar,
87372         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87373         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87374         count_mbs_length, wcs_re_match_2_internal,
87375         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87376         PREFIX(alt_match_null_string_p),
87377         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87378         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87379         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87380         now-unnecessary declaration, if any.
87381         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87382         regcomp, regexec):
87383         Remove now-unnecessary casts among pointer types.
87384         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87385
87386         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87387         (free): Remove decl.
87388
87389         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87390
87391         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87392         (free): Remove decl.
87393
87394         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87395         * lib/xgetcwd.c: Likewise.
87396
87397         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87398         (free): Remove decl.
87399
87400         * lib/strchrnul.c (strchrnul): Define with a prototype.
87401         Fix bug: c_in was not converted to char before searching.
87402
87403         The following changes are not K&R related:
87404
87405         * lib/group-member.h: Include <sys/types.h>, so that this file is
87406         self-contained.
87407         * lib/makepath.h: Likewise.
87408
87409         * lib/getusershell.c (readname, default_index, line_size, readname):
87410         Use size_t, not int, for sizes.
87411         (readname): If the size overflows, report an error instead of
87412         looping forever.
87413
87414 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87415
87416         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87417         libc.
87418
87419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87420
87421         * README: New section: portability guidelines.
87422
87423 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87424
87425         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87426         C89 spec.
87427
87428 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87429
87430         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87431
87432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87433
87434         Assume C89 or better; remove K&R cruft.
87435         A few of these changes were first proposed by Derek Robert Price
87436         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87437
87438         * lib/addext.c: Include <string.h> unconditionally.
87439         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87440         Don't declare getenv or malloc.
87441
87442         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87443         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87444         (NULL): Remove.
87445         (find_stack_direction, alloca): Use prototypes.
87446
87447         * lib/atexit.c (atexit): Define using a prototype.
87448
87449         * lib/basename.c, dirname.c, stripslash.c:
87450         Include <string.h> unconditionally.
87451
87452         * lib/bcopy.c: Include <stddef.h>.
87453         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87454
87455         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87456
87457         * lib/error.h (error, error_at_line, error_print_progname)
87458         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87459         * lib/error.c: Include error.h first, to check interface.
87460         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87461         (VA_START): Remove; all uses changeed to va_start.
87462         (exit, strerror): Remove decls.
87463         (error_print_progname): Prototype uncondionally.
87464         Don't include <errno.h>; no longer needed.
87465         (private_strerror): Remove.
87466         (error_tail): Always define.
87467         (error, error_at_line): Assume C89 or better; always use prototypes.
87468         * lib/fatal.c: Include "fatal.h" first, to test interface.
87469         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87470         (VA_START): Remove; all uses changed to va_start.
87471         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87472         this case.
87473         (exit): Remove decl.
87474         (fatal): Prototype unconditionally.  Assume va_start works.
87475         Abort at end, to pacify gcc.
87476
87477         * lib/euidaccess.c (main): Define with a prototype.
87478
87479         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87480
87481         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87482
87483         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87484         prototypes.
87485         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87486         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87487         (getenv): Remove decl.
87488         (fnmatch): Define using a prototype.
87489         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87490         (FCT): Define using a prototype.
87491
87492         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87493
87494         * lib/gethostname.c: Include <stddef.h>.
87495         (gethostname): Define with prototype.  Length is size_t, not int.
87496
87497 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87498
87499         Assume C89 or better; remove K&R cruft.
87500         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87501         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87502         string.h, getenv, malloc.
87503         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87504         headers.
87505         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87506         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87507         do not check for strerror.
87508         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87509         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87510         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87511         do not check for doprnt or vprintf.
87512         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87513         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87514
87515 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87516
87517         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87518         getversion.c should have been removed then, but was accidentally
87519         preserved.
87520
87521         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87522         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87523
87524 2003-09-08  Karl Berry  <karl@gnu.org>
87525
87526         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87527                 config, forget about prep.
87528
87529         * config/depcomp, missing: update from automake.
87530
87531 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87532
87533         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87534         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87535
87536 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87537
87538         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87539         copy_tm_result.  Bug reported by Simon Josefsson in
87540         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87541
87542 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87543
87544         * m4/time_r.m4: New file.
87545         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87547         is. Check for timegm declaration.
87548         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87549         Do not check for gmtime_r.
87550         Replace mktime if __mktime_internal does not exist and if mktime
87551         hasn't been replaced already.
87552
87553 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87554
87555         * lib/time_r.c, lib/time_r.h: New files.
87556
87557         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87558         __localtime_r.
87559         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87560         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87561
87562         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87563         __gmtime_r.
87564         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87565         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87566         Include <time_r.h>.
87567
87568         * lib/timegm.c: Switch to glibc implementation, with the following
87569         changes:
87570         [defined HAVE_CONFIG_H]: Include <config.h>.
87571         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87572         (__mktime_internal) [!defined _LIBC]: New decl.
87573         (__gmtime_r) [!defined _LIBC]: New macro and function.
87574         (timegm): Use a prototype, since gnulib assumes C89.
87575         Do not bother declaring tmp to be const, as it's not really usefu.
87576         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87577         (timegm): Declare only if HAVE_DECL_TIMEGM.
87578
87579 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87580
87581         * MODULES.html.sh (func_all_modules): Add time_r.
87582         * modules/time_r: New file.
87583         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87584         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87585
87586 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87587
87588         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87589         Bug reported by Lute Kamstra in
87590         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87591
87592         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87593         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87594         course with correspondingly smaller numbers for tomorrow and
87595         yesterday.  From Tadayoshi Funaba.  Originally installed into
87596         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87597         coreutils merge?).
87598
87599 2003-08-31  Simon Josefsson  <jas@extundo.com>
87600
87601         * modules/timegm: New file.
87602         * MODULES.html.sh (func_all_modules): Add timegm.
87603
87604 2003-08-31  Simon Josefsson  <jas@extundo.com>
87605
87606         * m4/timegm.m4: New file.
87607
87608 2003-08-31  Simon Josefsson  <jas@extundo.com>
87609
87610         * lib/timegm.h: New file.
87611         * lib/timegm.c: New file.  Based on
87612         wget-1.8.2/src/http.c:mktime_from_utc.
87613
87614 2003-08-31  Karl Berry  <karl@gnu.org>
87615
87616         * lib/argp.h: update from libc.
87617
87618 2003-08-28  Bruno Haible  <bruno@clisp.org>
87619
87620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87621         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87622         followed by '#define fnmatch fnmatch_posix' gives an error.
87623
87624 2003-08-28  Bruno Haible  <bruno@clisp.org>
87625
87626         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87627         warning on QNX, which defines O_BINARY to 000000.
87628
87629 2003-08-27  Jim Meyering  <jim@meyering.net>
87630
87631         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87632         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87633         would fail after 32.  Reported by Danny Levinson.  Details here:
87634         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87635
87636 2003-08-24  Bruno Haible  <bruno@clisp.org>
87637
87638         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87639         MSVC7 <stdio.h> is included later.
87640
87641 2003-08-22  Simon Josefsson  <jas@extundo.com>
87642
87643         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87644
87645 2003-08-20  Karl Berry  <karl@gnu.org>
87646
87647         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87648
87649 2003-08-20  Bruno Haible  <bruno@clisp.org>
87650
87651         * modules/progname: New file.
87652         * MODULES.html.sh (func_all_modules): Add progname.
87653
87654 2003-08-20  Bruno Haible  <bruno@clisp.org>
87655
87656         * lib/progname.h: New file, from GNU gettext.
87657         * lib/progname.c: New file, from GNU gettext.
87658         * lib/progreloc.c: New file, from GNU gettext.
87659
87660 2003-08-19  Jim Meyering  <jim@meyering.net>
87661
87662         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87663         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87664
87665 2003-08-19  Bruno Haible  <bruno@clisp.org>
87666
87667         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87668         more.
87669
87670 2003-08-19  Bruno Haible  <bruno@clisp.org>
87671
87672         * lib/xstrdup.c: Assume <string.h> exists.
87673
87674 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87675
87676         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87677         in makefile rules.
87678
87679 2003-08-18  Jim Meyering  <jim@meyering.net>
87680
87681         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87682         * m4/lib-ld.m4: Likewise.
87683
87684 2003-08-18  Jim Meyering  <jim@meyering.net>
87685
87686         * lib/setenv.h: Indent nested cpp directive.
87687         * lib/vasnprintf.c: Remove trailing blanks.
87688
87689 2003-08-17  Simon Josefsson  <jas@extundo.com>
87690
87691         * modules/xstrndup: New file.
87692         * MODULES.html.sh (func_all_modules): Add xstrndup.
87693
87694 2003-08-17  Simon Josefsson  <jas@extundo.com>
87695
87696         * modules/argp: Fix autoconf macro name. Add more dependencies.
87697
87698 2003-08-17  Simon Josefsson  <jas@extundo.com>
87699
87700         * m4/xstrndup.m4: New file.
87701
87702 2003-08-17  Simon Josefsson  <jas@extundo.com>
87703
87704         * m4/argp.m4: New file.
87705
87706 2003-08-17  Simon Josefsson  <jas@extundo.com>
87707             Bruno Haible  <bruno@clisp.org>
87708
87709         * lib/xstrndup.h: New file.
87710         * lib/xstrndup.c: New file.
87711
87712 2003-08-17  Bruno Haible  <bruno@clisp.org>
87713
87714         * modules/strndup (Files, Include): Add lib/strndup.h.
87715
87716 2003-08-17  Bruno Haible  <bruno@clisp.org>
87717
87718         * modules/euidaccess (Files): Add lib/euidaccess.h.
87719
87720 2003-08-17  Bruno Haible  <bruno@clisp.org>
87721
87722         * lib/strndup.h: New file.
87723
87724 2003-08-17  Bruno Haible  <bruno@clisp.org>
87725
87726         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87727         like AC_GNU_SOURCE.
87728         * modules/extensions (configure.ac): Comment out the invocation of
87729         gl_USE_SYSTEM_EXTENSIONS.
87730
87731 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87732
87733         Merges from coreutils, etc.
87734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87735         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87736         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87737         fixing a typo.
87738         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87739         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87740
87741 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87742
87743         Document merge from coreutils.
87744         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87745         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87746         * modules/utime: Add m4/utimes-null.m4.
87747
87748 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87749
87750         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87751         space, undoing this 2003-08-12 change:
87752         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87753
87754 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87755
87756         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87757         strtoul.c from libc, undoing this 2003-08-12 change:
87758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87759
87760 2003-08-16  Jim Meyering  <jim@meyering.net>
87761
87762         Merges from coreutils.
87763         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87764         prefix.  Adjust cache variables similarly.  Create 500 rather than
87765         just 300 files, to exercise bug on Darwin6.5, too.
87766         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87767         $missing_dir.
87768         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87769         AM_SYS_POSIX_TERMIOS.
87770         Reported by mkc@mathdogs.com.
87771         Also change use of $am_cv_sys_posix_termios
87772         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87773         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87774         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87775         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87776         in /proc/mounts until it finds one with matching device number.  This
87777         is unnecessary when the FILE argument *is* a mount point.  No stat call
87778         is necessary in that case.  So, disable the statvfs-testing code on
87779         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87780         as RedHat bug# 84846.
87781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87782         to 1MB, so as not to render systems with no stack size limit (e.g.,
87783         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87784         Include <unistd.h>.  On some systems,
87785         it is required for the definition of _SC_PAGESIZE.
87786
87787 2003-08-16  Jim Meyering  <jim@meyering.net>
87788
87789         Merge from coreutils.
87790         * lib/xstrtoimax.c: #else #if -> #elif.
87791         * lib/xstrtoumax.c: Likewise.
87792
87793 2003-08-16  Jim Meyering  <jim@meyering.net>
87794
87795         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87796         * m4/utimes.m4: Removed.
87797         * m4/utimes-null.m4: Renamed from utimes.m4.
87798
87799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87800         to 1MB, so as not to render systems with no stack size limit (e.g.,
87801         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87802         Include <unistd.h>.  On some systems,
87803         it is required for the definition of _SC_PAGESIZE.
87804
87805 2003-08-16  Jim Meyering  <jim@meyering.net>
87806         and Paul Eggert  <eggert@cs.ucla.edu>
87807
87808         Merges from coreutils, etc.
87809
87810         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87811         using the latest version from cvs.  This avoids problems with #line
87812         directives using a vendor (Sun) compiler.
87813         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87814         Don't set GETGROUPS_LIB here; now it's
87815         done via getgroups.m4's wrapper function.
87816         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87817         rather than just in sh-util/configure.in, so that the
87818         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87819         same.
87820         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87821         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87822         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87823         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87824         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87825         Remove code that is now done by the newly-required macros.
87826         Append $(EXEEXT) to DF_PROG.
87827         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87828         Do not invoke or require the following here,
87829         since prereq.m4 or some gnulib .m4 now does this for us:
87830         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87831         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87832         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87833         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87834         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87835         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87836         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87837         AC_FUNC_OBSTACK.
87838         Do not replace the following functions, as this is now the job
87839         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87840         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87841         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87842         atexit getpass, strdup, getpagesize.
87843         Replace 'raise'.
87844         Do not check for the following functions, as this is now the job
87845         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87846         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87847         setregid.
87848         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87849         Check for sys/sysctl.h.
87850         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87851         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87852         of checking for ssize_t ourselves.
87853
87854         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87855         Require every macro that gnulib/modules/* suggests for us.
87856         (jm_PREREQ_ADDEXT): New macro.
87857         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87858         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87859
87860         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87861         (gl_PHYSMEM): Use it.
87862         Also check for `table' function.
87863         Check for new headers and functions.
87864         Add check for sys/sysmp.h.
87865         With suggestions from Kaveh Ghazi.
87866         Ignore headers that are present but cannot be compiled.  This
87867         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87868         C 5.4.
87869
87870 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87871
87872         Document merge from coreutils.
87873         * modules/userspec: Depend on posixver.
87874         * modules/strftime: Depend on tzset.
87875
87876 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87877
87878         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87879         rather than tab, after '#' in shell-script copyright notices.
87880         Suggested by Bruno Haible.
87881
87882 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87883
87884         * config/srclist-update: Use three spaces, rather than tab, after '#'
87885         in shell-script copyright notices.  Suggested by Bruno Haible.
87886         Remove unnecessary parenthesization in regular expression.
87887
87888 2003-08-15  Jim Meyering  <jim@meyering.net>
87889
87890         Merge from coreutils.
87891         * lib/xgethostname.c: Include <stdlib.h>.
87892         (xghostname): Don't exit for anything other than memory-related
87893         failure; just return NULL.
87894         * lib/userspec.c: Include "posixver.h".
87895         (parse_user_spec): Accept `.' as a separator only
87896         in pre-POSIX-200112 mode.
87897         * lib/strtoimax.c: Use #elif rather than #else #if.
87898         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87899         Remove function, now that we can rely on a working tzset function.
87900         [!_LIBC]: Ensure that the required autoconf test has been run.
87901         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87902         Use underlying_strftime for %r.
87903         * lib/sha.c: Merge in some clean-up and optimization changes from
87904         glibc.
87905         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87906         Ensure that it is a multiple of 64.
87907         Rearrange loop exit tests so as to avoid performing an
87908         additional fread after encountering an error or EOF.
87909         * lib/realloc.c: Update copyright date.
87910
87911 2003-08-15  Jim Meyering  <jim@meyering.net>
87912         and Paul Eggert  <eggert@twinsun.com>
87913
87914         Merge from coreutils.
87915         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87916         member but strut utmpx does not.  Needed for AIX 4.3.3.
87917         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87918
87919 2003-08-15  Jim Meyering  <jim@meyering.net>
87920         and Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         Merges from coreutils, etc.
87923         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87924         Require gl_FUNC_TZSET_CLOBBER.
87925         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87926         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87927         members.
87928
87929 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87930
87931         Help the merge from coreutils.
87932         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87933         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87934         * m4/tzset.m4: Use it too.
87935
87936 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87937
87938         * modules/tzset: New file.
87939
87940 2003-08-14  Jim Meyering  <jim@meyering.net>
87941
87942         Merges from coreutils.
87943         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87944         variable names, rather than @FNMATCH_H@.
87945         * modules/alloca: Likewise for $(ALLOCA_H).
87946
87947         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87948         the three copies of the literal target, `fnmatch.h'.
87949         * modules/alloca (alloca.h): Likewise.
87950
87951 2003-08-14  Jim Meyering  <jim@meyering.net>
87952
87953         Merge from coreutils.
87954         * m4/tzset.m4: New file.
87955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87956         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87957         otherwise, AIX 5.1 systems would end up using the latter.
87958         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87959         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87960         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87961         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87962
87963 2003-08-14  Jim Meyering  <jim@meyering.net>
87964
87965         Merge from coreutils.
87966         * lib/obstack.h: Whitespace changes.
87967         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87968         and xcalloc return values.
87969         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87970         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87971         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87972         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87973         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87974         error from mntctl.
87975         Use mntctl's return value to drive the entry-processing loop, since
87976         we can't rely on the value of the vmt_length member in the last
87977         entry.  On some systems doing so could result in exhausting
87978         virtual memory.  Based in part on a patch from Mike Jetzer.
87979
87980 2003-08-14  Jim Meyering  <jim@meyering.net>
87981         and Paul Eggert  <eggert@twinsun.com>
87982
87983         Merges from coreutils, plus other fixes.
87984         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87985         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87986         for credits and details.  Thanks to Kaveh Ghazi for helping
87987         to keep these files in sync.
87988         (ARRAY_SIZE): Define it.
87989         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87990         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87991         (memcasecmp): Don't assume size_t fits in unsigned int.
87992         Remove casts and duplicate code.
87993         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87994         (memcpy): Remove definition.
87995         Merge in some clean-up and optimization changes from glibc.
87996         [BLOCKSIZE]: Move definition to top of file.
87997         Ensure that it is a multiple of 64.
87998         Rearrange loop exit tests so as to avoid performing an
87999         additional fread after encountering an error or EOF.
88000         * lib/md5.h (md5_uintptr): Define.
88001         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88002         return to the initial working directory.  Preserve errno
88003         for caller.
88004         * lib/idcache.c: Include "xalloc.h".
88005         (xmalloc, xrealloc): Remove decls.
88006         (getuser): Remove casts no longer required in C89.
88007         * lib/human.c: Include stdio.h, for sprintf.
88008         * lib/group-member.c: Include "xalloc.h".
88009         (xmalloc, xrealloc): Remove decls.
88010         (get_group_info): Remove casts no longer required in C89.
88011         * lib/getusershell.c (readname): Remove casts no longer required in
88012         C89.
88013         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88014         * lib/getline.c: Whitespace fix, from coreutils.
88015
88016 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88017
88018         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88019         Check for isascii.
88020
88021         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88022         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88023         Undo previous (whitespace-only) change.
88024
88025 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88026
88027         * lib/exclude.c: Include <ctype.h>
88028         (IN_CTYPE_DOMAIN): New macro.
88029         (is_space): New fn.
88030         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88031         and empty lines.
88032
88033         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88034         Undo previous (whitespace-only) change.
88035
88036 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88037
88038         * config/srclist-update: Change update back to the old behavior,
88039         leaving whitespace alone.  Use one 'sed' command rather than a
88040         pipeline.
88041         (fixlicense): Now a variable, not a function.
88042         (remove_trailing_blanks): Remove.
88043         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88044         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88045         Undo previous (whitespace-only) change.
88046
88047 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88048
88049         Merge from coreutils.
88050         * modules/euidaccess: Add lib_SOURCES, include for new
88051         file euidaccess.h
88052
88053 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88054
88055         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88056         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88057         Normalize leading white space and remove trailing white space.
88058
88059         Merge from coreutils
88060         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88061
88062         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88063         0.12.1.  These files are now being upgraded automatically by
88064         ../config/srclist-update.
88065
88066 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88067
88068         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88069         Normalize leading white space and remove trailing white space.
88070         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88071         notice, as per ../config/srclist-update.
88072
88073         Merge from coreutils.
88074         * lib/euidaccess.h: New file.
88075         * lib/euidaccess.c: Include it.
88076         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88077         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88078         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88079
88080 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88081
88082         * config/srclist-update: Add copyright notice.
88083         (remove_id_lines, remove_trailing_blanks): New constants.
88084         (fixfile): Use them to normalize spacing a bit in copied files.
88085         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88086         Normalize leading white space and remove trailing white space.
88087
88088         * config/texinfo.tex: Sync with texinfo.
88089
88090         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88091         strtoul.c from libc, to merge coreutils whitespace changes.
88092
88093         * config/srclist.txt: Get the following m4 files from gettext:
88094         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88095         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88096         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88097         wint_t.m4.
88098
88099 2003-08-12  Karl Berry  <karl@gnu.org>
88100
88101         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88102         been made.
88103
88104 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88105
88106         * modules/gnu-source, m4/gnu-source.m4:
88107         Remove; we're assuming Autoconf 2.54 or later now.
88108         Suggested by Bruno Haible.
88109         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88110
88111 2003-08-11  Bruno Haible  <bruno@clisp.org>
88112
88113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88114
88115 2003-08-11  Bruno Haible  <bruno@clisp.org>
88116
88117         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88118         (vasnprintf): Use it instead of wcslen.
88119
88120 2003-08-11  Bruno Haible  <bruno@clisp.org>
88121
88122         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88123         value to ensure that _Bool promotes to int. Use #define for _Bool when
88124         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88125
88126 2003-08-10  Karl Berry  <karl@gnu.org>
88127
88128         * lib/regex.h: update from libc (whitespace fix).
88129
88130 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88131
88132         Merge some files from coreutils.  These changes were
88133         originally made by Jim Meyering.
88134         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88135         many older Unixes require this.
88136         * lib/alloca.c (alloca): Remove cast to argument of free;
88137         no longer needed in C89.
88138         * lib/alloca_.h, regex.h: Fix white space to match
88139         what GNU indent does.
88140
88141 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88142
88143         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88144         apparently Emacs's Unicode mode got confused before my 2003-08-05
88145         checkin.
88146
88147 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88148
88149         * m4/extensions.m4: New file.
88150         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88151         Require gl_USE_SYSTEM_EXTENSIONS.
88152         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88153         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88154
88155 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88156
88157         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88158         * modules/extensions, modules/gnu-source: New files.
88159         * modules/timespec, modules/unlocked-io: Depend on extensions.
88160
88161 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88162
88163         * modules/restrict: New file.
88164         * MODULES.html.sh (func_all_modules): Add restrict.
88165         * modules/regex: Depend on restrict.
88166
88167 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88168
88169         * m4/restrict.m4: New file.
88170         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88171
88172 2003-08-07  Bruno Haible  <bruno@clisp.org>
88173
88174         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88175         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88176
88177 2003-08-07  Bruno Haible  <bruno@clisp.org>
88178
88179         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88180         makes the module 'getndelim2' compatible with the module 'getline'.
88181
88182 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88183
88184         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88185         byte with "\201" to avoid glitches when editing that source file
88186         with multi-gnome-terminal.
88187
88188 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88189
88190         * lib/bumpalloc.h: Remove.
88191
88192 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88193
88194         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88195         * modules/bumpalloc: Remove.
88196
88197 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88198
88199         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88200         GNU coding style.
88201
88202         Merge from coreutils.
88203         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88204         1. From glibc.
88205         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88206         from Karl Berry, implemented by Jim Meyering.
88207         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88208         from Dmitry V. Levin.
88209         Remove anachronistic cast of xrealloc.
88210         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88211         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88212         type. Otherwise, it wouldn't compile with at least /bin/cc on
88213         ymp-cray-unicos9.0.2.X.
88214         Combine two mostly-identical uses of alloca into one.
88215         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88216
88217 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88218
88219         [From Emacs.]
88220
88221         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88222         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88223         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88224         obsolete NLIST_NAME_UNION.
88225         [__GNU__]: Undef BSD and FSCALE.
88226         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88227
88228 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88229
88230         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88231         an enum type, so that it's guaranteed to promote to int.  See:
88232         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88233
88234 2003-08-03  Karl Berry  <karl@gnu.org>
88235
88236         * config/depcomp: update from automake.
88237
88238 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88239
88240         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88241         (strerror): Don't assume that a printable int fits in 14 bytes.
88242
88243 2003-07-31  Bruno Haible  <bruno@clisp.org>
88244
88245         * modules/getpass-gnu: New file.
88246         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88247
88248 2003-07-31  Bruno Haible  <bruno@clisp.org>
88249
88250         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88251
88252 2003-07-24  Karl Berry  <karl@gnu.org>
88253
88254         * config/missing: update from automake.
88255
88256 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88257             Bruno Haible  <bruno@clisp.org>
88258
88259         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88260         * lib/getline.c (getline, getdelim): Likewise.
88261         Remove _GNU_SOURCE define; now it's defined in config.h through
88262         m4/getline.m4.
88263
88264 2003-07-23  Karl Berry  <karl@gnu.org>
88265
88266         * config/config.sub: update from prep.
88267
88268 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88269
88270         * modules/xalloc (Depends-on): Add exitfail.
88271         * modules/xmemcoll: Likewise.
88272
88273 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88274
88275         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88276         over-parenthesization in macros.
88277
88278         Sync with coreutils.
88279
88280         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88281         required by C99.
88282
88283         Use `exit_failure' for xalloc and xmemcoll instead of their own
88284         private exit-failure variables.
88285         * lib/xalloc.h (xalloc_exit_failure): Remove.
88286         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88287         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88288         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88289         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88290         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88291
88292 2003-07-20  Jim Meyering  <jim@meyering.net>
88293
88294         * modules/closeout (Depends-on): Add exitfail.
88295         Suggestion from Bruno Haible.
88296
88297 2003-07-19  Karl Berry  <karl@gnu.org>
88298
88299         * config/config.sub: update from prep.
88300
88301 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88302
88303         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88304         Remove.
88305         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88306         to test that it can stand by itself.  Include "exitfail.h".
88307         Clients should set exit_failure instead.
88308         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88309
88310 2003-07-18  Bruno Haible  <bruno@clisp.org>
88311
88312         * modules/getndelim2: New file.
88313         * modules/getline: Share files with module getndelim2.
88314         * modules/getnline: Depend on getndelim2 instead of sharing files with
88315         it. Add getnline.c to lib_SOURCES.
88316         * MODULES.html.sh (func_all_modules): Add getndelim2.
88317
88318 2003-07-18  Bruno Haible  <bruno@clisp.org>
88319
88320         * m4/getndelim2.m4: New file.
88321         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88322         invoke gl_PREREQ_GETNDELIM2.
88323         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88324         gl_PREREQ_GETNDELIM2.
88325         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88326         gl_GETNDELIM2.
88327
88328 2003-07-18  Bruno Haible  <bruno@clisp.org>
88329
88330         * lib/getndelim2.h: New file.
88331         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88332         getndelim2.h.
88333         (getndelim2): Make non-static. Change return type to ssize_t.
88334         * lib/getline.h: Change argument names.
88335         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88336         * lib/getnline.c: Include getndelim2.h.
88337
88338 2003-07-18  Andreas Schwab  <schwab@suse.de>
88339
88340         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88341
88342 2003-07-17  Karl Berry  <karl@gnu.org>
88343
88344         * config/config.sub: update from prep.
88345
88346 2003-07-17  Bruno Haible  <bruno@clisp.org>
88347
88348         * modules/getnline: New file.
88349         * modules/getline: Add lib/getndelim2.c to source file list.
88350         * MODULES.html.sh (func_all_modules): Add getnline.
88351
88352 2003-07-17  Bruno Haible  <bruno@clisp.org>
88353
88354         * m4/getnline.m4: New file.
88355
88356 2003-07-17  Bruno Haible  <bruno@clisp.org>
88357
88358         * m4/Makefile.am.in: Remove file.
88359         * m4/Makefile.am: Remove file.
88360         * m4/Makefile.in: Remove file.
88361
88362 2003-07-17  Bruno Haible  <bruno@clisp.org>
88363
88364         * lib/getnline.h: New file.
88365         * lib/getnline.c: New file.
88366         * lib/getndelim2.c: New file, extracted from getline.c.
88367         (getndelim2): Renamed from getdelim2, with added nmax argument.
88368         * lib/getline.c: Include getndelim2.c.
88369         (getdelim2): Moved out to getndelim2.c.
88370         (getline, getdelim): Update.
88371
88372 2003-07-17  Bruno Haible  <bruno@clisp.org>
88373
88374         * lib/Makefile.am: Remove file.
88375         * lib/Makefile.in: Remove file.
88376
88377 2003-07-17  Bruno Haible  <bruno@clisp.org>
88378
88379         * configure.in: Remove file.
88380         * Makefile.in: Remove file.
88381
88382 2003-07-17  Bruno Haible  <bruno@clisp.org>
88383
88384         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88385
88386 2003-07-16  Karl Berry  <karl@gnu.org>
88387
88388         * config/srclist-update: was running fixlicense twice, which caused
88389                 texinfo.tex to be nullified for some reason.  Simplify,
88390                 $gplsrc is no longer needed as far as I can see?
88391
88392 2003-07-16  Jim Meyering  <jim@meyering.net>
88393
88394         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88395
88396 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88397
88398         * config/srclist.txt: Get the following files from gettext-runtime/intl
88399         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88400         ref-del.sin.  From Bruno Haible.
88401         * config/srclist-update (fixfile): Change grep pattern again, since the
88402         previous fix didn't work (there was another trailing $).  Use
88403         '[$]' to escape the $s.
88404
88405 2003-07-15  Karl Berry  <karl@gnu.org>
88406
88407         * lib/vasnprintf.c: update from gettext.
88408
88409 2003-07-15  Karl Berry  <karl@gnu.org>
88410
88411         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88412         gets expanded when surrounded by '$'.
88413
88414 2003-07-15  Jim Meyering  <jim@meyering.net>
88415
88416         * modules/save-cwd: Don't depend on error.  From Derek Price.
88417
88418 2003-07-15  Jim Meyering  <jim@meyering.net>
88419
88420         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88421
88422 2003-07-14  Simon Josefsson  <jas@extundo.com>
88423
88424         * modules/mempcpy: New file.
88425         * MODULES.html.sh (func_all_modules): Add mempcpy.
88426
88427 2003-07-14  Simon Josefsson  <jas@extundo.com>
88428
88429         * m4/mempcpy.m4: New file.
88430
88431 2003-07-14  Simon Josefsson  <jas@extundo.com>
88432
88433         * lib/mempcpy.h: New file.
88434         * lib/mempcpy.c: New file.
88435
88436 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88437
88438         * modules/getdate, modules/posixtm: Depend on mktime.
88439
88440 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88441
88442         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88443         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88444         unicodeio.c, unicodeio.h, unlocked-io.h:
88445         Switch from LGPL to GPL.
88446
88447 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88448
88449         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88450         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88451         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88452         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88453         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88454         updated automatically by ../config/srclist-update.  This changes
88455         their license from LPGL to GPL.
88456
88457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88458
88459         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88460         assumed to refer to the root of the most recent stable gettext version.
88461         * config/srclistvars.sh: Add defaults for eggert.
88462         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88463         Match "This program" as well as "The program".  This is needed
88464         for gettext.
88465
88466 2003-07-14  Jim Meyering  <jim@meyering.net>
88467
88468         Don't emit diagnostics.  Let callers do that.
88469         * lib/save-cwd.c: Don't include "error.h".
88470         (save_cwd): Don't call error.  Ensure that errno is valid
88471         when returning nonzero.
88472
88473         * lib/save-cwd.h (restore_cwd): Update prototype.
88474         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88475         Simplify.  Don't call error upon failure.  Let callers do that.
88476         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88477         when auditing is enabled.  But don't bother updating the #if.
88478
88479 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88480
88481         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88482         it breaks C++ compilation.
88483         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88484
88485 2003-07-10  Simon Josefsson  <jas@extundo.com>
88486
88487         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88488
88489 2003-07-10  Jim Meyering  <jim@meyering.net>
88490
88491         * m4/clock_time.m4: Remove trailing blank.
88492         * m4/intmax_t.m4: Likewise.
88493
88494 2003-07-10  Jim Meyering  <jim@meyering.net>
88495
88496         * lib/vasnprintf.c: Remove trailing blanks.
88497         Make cpp indentation consistent.
88498
88499 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88500
88501         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88502         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88503         Switch from LGPL to GPL.
88504
88505 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88506
88507         * config/srclist.txt: Sort sublists.  Add
88508         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88509         that differ from gnulib for one reason or another; we'd like this list
88510         to be smaller but for now let's document what we have.
88511
88512 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88513
88514         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88515         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88516         and sweeter "eval x=$x".
88517         * config/srclist.txt: Get lib/argp* from glibc.
88518
88519 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88520
88521         * lib/mktime.c: Fix some boundary cases and remove need for floating
88522         point.
88523
88524         Issue a compile-time diagnostic if time_t is floating point, or if
88525         two's complement arithmetic is not in effect, or if arithmetic
88526         right shift does not propagate the sign.  These assumptions were
88527         all in the original code but they weren't checked.
88528
88529         (TIME_T_MIDPOINT, verify): New macros.
88530         (__isleap): Remove; it has integer overflow problems.
88531         (leapyear): New function, without those problems.
88532         (ydhms_tm_diff): Remove; splitting into two parts.
88533         (ydhms_diff): New function, containing the arithmetic part of
88534         the old ydhms_tm_diff function.  Issue a compile-time
88535         diagnostic if we are not using C99 integer division.
88536         Avoid casts when possible.
88537         (guess_time_tm): New function, containing the checking part of
88538         the old ydhms_tm_diff function.  Return the new value, rather than
88539         the difference between it and the old.  Accept a new argument T
88540         so that *T specifies the old value.  Check for overflow in the result.
88541
88542         (__mktime_internal): Use a time_t offset, not a long int offset.
88543         This undoes the 2003-06-04 change, which is no longer needed now
88544         that we have better overflow checking.
88545         (localtime_offset): Likewise.
88546
88547         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88548         and long are 64-bit but int is only 32-bit.
88549         (ydhms_diff): Use long int to store year1 and yday1.
88550         Issue a compile-time diagnostic if long int is not wide enough.
88551
88552         (__mktime_internal): Use long int to store adjusted year and yday.
88553         Use plain C rather than preprocessor commands, if that doesn't
88554         affect efficiency.
88555         Check for overflow (and try to repair) after each probe
88556         rather than checking only at the very end.  This avoids some bugs
88557         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88558         does not equal GMT offset at maximum time).
88559         Use integer to check for overflow rather than floating point; this
88560         is more portable to non-IEEE hosts, and is a tad faster.
88561         When we detect that we are oscillating between two values,
88562         don't check whether tm_isdst has the requested value, since
88563         we already know the answer.  When tm_isdst has the wrong value,
88564         use a different heuristic to find the right one, based on the
88565         extreme values actually observed in practice in tz2003a,
88566         rather than the (overly optimistic) "previous 3 calendar quarters".
88567
88568         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88569         "T const" to accommodate glibc style.
88570         (check_result): Use less-confusing report format.  "long" -> "long int.
88571         (main): Likewise.
88572         Don't loop if the iteration overflows time_t.
88573         Allow a negative step in the iteration.
88574
88575 2003-07-06  Karl Berry  <karl@gnu.org>
88576
88577         * config/depcomp: update from automake.
88578         * config/config.sub: update from prep.
88579
88580 2003-07-03  Karl Berry  <karl@gnu.org>
88581
88582         * config/config.guess: update from prep.
88583
88584 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88585
88586         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88587         xreadlink.c now includes it unconditionally.
88588
88589 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88590
88591         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88592         having it depend on HAVE_SYS_TYPES_H.
88593
88594 2003-07-01  Bruno Haible  <bruno@clisp.org>
88595
88596         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88597         <sys/types.h> should be sufficient.
88598         Reported by Paul Eggert.
88599
88600 2003-06-26  Karl Berry  <karl@gnu.org>
88601
88602         * config/depcomp: update from automake.
88603
88604 2003-06-26  Bruno Haible  <bruno@clisp.org>
88605
88606         * modules/human: Depend on module stdbool.
88607
88608 2003-06-25  Bruno Haible  <bruno@clisp.org>
88609
88610         * modules/readlink: New file.
88611         * modules/xreadlink: Depend on it.
88612         * MODULES.html.sh (func_all_modules): Add readlink.
88613
88614 2003-06-25  Bruno Haible  <bruno@clisp.org>
88615
88616         * m4/readlink.m4: New file.
88617
88618 2003-06-25  Bruno Haible  <bruno@clisp.org>
88619
88620         * lib/readlink.c: New file.
88621
88622 2003-06-22  Karl Berry  <karl@gnu.org>
88623
88624         * config/srclist.txt: update mkinstalldirs from automake.
88625         * config/mkinstalldirs: update.
88626
88627 2003-06-22  Bruno Haible  <bruno@clisp.org>
88628
88629         Portability to mingw32.
88630         * m4/ssize_t.m4: New file, from GNU gettext.
88631         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88632         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88633
88634 2003-06-22  Bruno Haible  <bruno@clisp.org>
88635
88636         * modules/safe-read: Add m4/ssize_t.m4.
88637         * modules/xreadlink: Add m4/ssize_t.m4.
88638
88639 2003-06-20  Bruno Haible  <bruno@clisp.org>
88640
88641         Assume C89, so PARAMS isn't needed.
88642         * lib/unicodeio.h (PARAMS): Remove.
88643         * lib/unicodeio.c: Don't use PARAMS.
88644
88645 2003-06-18  Karl Berry  <karl@gnu.org>
88646
88647         * config/config.{guess,sub}: update from prep.
88648
88649 2003-06-18  Jim Meyering  <jim@meyering.net>
88650
88651         Merge changes from coreutils.
88652         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88653         Remove explicit declarations of xmalloc and realloc.
88654         Include xalloc.h.
88655         (read_utmp): Remove anachronistic cast of xmalloc.
88656
88657 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88658
88659         Assume C89, so PARAMS isn't needed.
88660         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88661         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88662         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88663         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88664         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88665         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88666         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88667         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88668         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88669         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88670         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88671         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88672         no longer needed. Anyway, config.h should always be included before any
88673         other file.
88674
88675 2003-06-11  Simon Josefsson  <jas@extundo.com>
88676
88677         * modules/sysexits: New file.
88678         * MODULES.html.sh (func_all_modules): Add sysexits.
88679
88680 2003-06-11  Simon Josefsson  <jas@extundo.com>
88681
88682         * lib/sysexit_.h: New file.
88683
88684 2003-06-11  Derek Price  <derek@ximbiot.com>
88685
88686         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88687         necessary.
88688
88689 2003-06-11  Bruno Haible  <bruno@clisp.org>
88690
88691         * m4/sysexits.m4: New file.
88692
88693 2003-06-10  Simon Josefsson  <jas@extundo.com>
88694
88695         * lib/argp.h: New file, from glibc.
88696         * lib/argp-ba.c: New file, from glibc.
88697         * lib/argp-eexst.c: New file, from glibc.
88698         * lib/argp-fmtstream.c: New file, from glibc.
88699         * lib/argp-fmtstream.h: New file, from glibc.
88700         * lib/argp-fs-xinl.c: New file, from glibc.
88701         * lib/argp-help.c: New file, from glibc.
88702         * lib/argp-namefrob.h: New file, from glibc.
88703         * lib/argp-parse.c: New file, from glibc.
88704         * lib/argp-pv.c: New file, from glibc.
88705         * lib/argp-pvh.c: New file, from glibc.
88706         * lib/argp-xinl.c: New file, from glibc.
88707
88708 2003-06-10  Simon Josefsson  <jas@extundo.com>
88709
88710         * modules/strchrnul: New file.
88711
88712 2003-06-10  Simon Josefsson  <jas@extundo.com>
88713
88714         * modules/argp: New file.
88715
88716 2003-06-10  Simon Josefsson  <jas@extundo.com>
88717
88718         * m4/strchrnul.m4: New file.
88719
88720 2003-06-10  Simon Josefsson  <jas@extundo.com>
88721
88722         * lib/strchrnul.h: New file.
88723         * lib/strchrnul.c: New file.
88724
88725 2003-06-10  Bruno Haible  <bruno@clisp.org>
88726
88727         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88728
88729 2003-06-07  Karl Berry  <karl@gnu.org>
88730
88731         * config/config.{guess,sub}: update from prep.
88732
88733 2003-06-07  Jim Meyering  <jim@meyering.net>
88734
88735         * modules/strtod: Use $(...) notation, not @...@ for
88736         AC_REPLACE'd variables.
88737         * modules/localcharset: Likewise.
88738
88739 2003-06-07  Jim Meyering  <jim@meyering.net>
88740
88741         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88742         in place of my name in the copyright comment.
88743         Remove definition and uses of __P.
88744
88745         From coreutils.
88746         * lib/stat.c: Don't declare xmalloc explicitly.
88747         Instead, include "xalloc.h".
88748         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88749         xrealloc, and xcalloc return values.
88750         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88751         Improve comment.
88752         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88753
88754 2003-06-07  Bruno Haible  <bruno@clisp.org>
88755
88756         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88757         avoid AC_CONFIG_LINKS.
88758         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88759         fnmatch.h, to avoid AC_CONFIG_LINKS.
88760         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88761
88762 2003-06-07  Bruno Haible  <bruno@clisp.org>
88763
88764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88765         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88766         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88767         directory.
88768         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88769         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88770         directory.
88771
88772 2003-06-06  Jim Meyering  <jim@meyering.net>
88773
88774         Merge from coreutils.
88775         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88776         Consolidate declarations and initializations of *_base* locals.
88777
88778         Merge from coreutils.
88779         This avoids a core dump on systems without GNU putenv,
88780         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88781         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88782         (unsetenv): New static function, from GNU libc.
88783         (rpl_putenv): Use it.
88784
88785         * lib/modechange.c: Remove trailing blanks.
88786
88787         Merge from coreutils.
88788         * lib/fsusage.c: Remove declaration of statfs.
88789         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88790
88791         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88792
88793 2003-06-06  Jim Meyering  <jim@meyering.net>
88794
88795         * lib/stdbool_.h: Renamed from stdbool.h.in.
88796
88797 2003-06-06  Jim Meyering  <jim@meyering.net>
88798             Bruno Haible  <bruno@clisp.org>
88799
88800         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88801         Adjust Makefile.am snippet not to redirect directly to target.
88802         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88803
88804 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88805
88806         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88807         mismatch, look in future quarters as well as past.  This fixes a
88808         bug when processing fall-backwards gaps immediately after a long
88809         period of daylight-saving time.
88810
88811         * lib/mktime.c: Assume freestanding C89 or better.
88812         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88813         (__P): Remove; not used.
88814         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88815         (mktime, not_equal_tm, print_tm, check_result,
88816         main): Use prototypes.  Use const * where appropriate.
88817         (main): Fix typo in testing code that uncovered by above changes.
88818         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88819
88820 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88821
88822         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88823         locale.h, localeconv.  This merges changes from coreutils.
88824
88825         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88826         It can be removed after the next Autoconf is released.
88827         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88828         needed.
88829
88830 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88831
88832         * lib/mktime.c: Fix Debian bug 177940
88833         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88834         (localtime_offset): Now long int, not time_t, because we want it
88835         to be guaranteed to be signed.  All uses changed.
88836         (__mktime_internal): If overflow would occur when adding offset,
88837         don't add it.
88838
88839         Merge 'human' changes from coreutils.  Rewrite to support
88840         locale-specific notations like thousands separators.
88841         * lib/human.c: Simplify authorship notice.
88842         Include human.h immediately after config.h.
88843         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88844         <limits.h>: Do not include, since human.h does.
88845         (SIZE_MAX, UINTMAX_MAX): New macros.
88846         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88847         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88848         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88849         (power_letter): Renamed from suffixes.
88850         (generate_suffix_backwards): Remove.
88851         (adjust_value): Now takes int style (because of human.h changes)
88852         and long double value (for greater precision on some platforms).
88853         (group_number): New function.
88854         (human_readable): Use it.  Use integer options, not enum.
88855         Put the options before the sizes in the arg list.
88856         Support all the new options.
88857         The old human_readable function has been removed;
88858         use inttostr.h instead.
88859         (human_readable, default_block_size, humblock):
88860         Use uintmax_t, not int, for block sizes.
88861         (human_readable_inexact, block_size_types): Remove.
88862         (block_size_opts): New constant.
88863         (human_options): Renamed from human_block_size, with new signature
88864         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88865         * lib/human.h: Add copyright and authorship notice.
88866         Include <limits.h> and <stdbool.h> unconditionally.
88867         (PARAMS): Remove.  All uses removed.
88868         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88869         (enum human_inexact_style): Remove tag; now a nameless enum.
88870         (human_floor, human_ceiling, human_round_to_even): Now have
88871         values 2, 0, 1 rather than -1, 1, 0.
88872         (human_group_digits, human_suppress_point_zero, human_autoscale,
88873         human_base_1024, human_SI, human_B): New constants.
88874         (human_readable_inexact, human_block_size): Remove.
88875         (human_readable): Size args are now uintmax_t, not int.
88876         (human_options): New decl.
88877
88878         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88879         unnecessary now that we assume C89 or better.  This change
88880         imported from coreutils.
88881
88882         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88883         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88884         in the 2003-05-30 sync from glibc.
88885
88886         .h files should stand alone, but we shouldn't include <sys/types.h>
88887         if we can get away with just <stddef.h>.
88888
88889         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88890         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88891         rather than <sys/types.h>, as we merely need size_t.
88892         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88893         to get size_t.
88894         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88895         Include <stdio.h>, to get FILE.
88896         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88897         memcasecmp.h has included <stddef.h> and all we need is size_t.
88898         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88899         our interface, instead of including <sys/types.h>
88900
88901 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88902
88903         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88904         now, as glibc mktime is buggy on non-glibc systems.
88905
88906 2003-06-03  Karl Berry  <karl@gnu.org>
88907
88908         * config/config.sub: update from prep.
88909
88910 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88911
88912         [from coreutils]
88913         Fix some minor time-related bugs with POSIX time arguments.
88914         Some valid time stamps were being rejected (notably -1, and
88915         time stamps before 1900 on 64-bit hosts).  And some invalid
88916         time stamps were being accepted, e.g. September 31.
88917
88918         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88919         that we can return (time_t) -1 successfully.
88920         * lib/posixtm.c: Likewise.
88921         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88922         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88923         (t): Remove static var.
88924         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88925         of static var.  All uses changed.
88926         (year): Do not reject years before 1900; they can occur with
88927         64-bit time_t.
88928         (posix_time_parse): Do not check for out-of-range components;
88929         that is now the caller's responsibility, since our checks were
88930         only approximations.
88931         (posixtime): Use mktime to check for out-of-range components,
88932         since it knows them exactly.
88933         If mktime returns (time_t) -1, check whether an error actually occurred
88934         by invoking localtime on -1.
88935         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88936         posixtime failures better.
88937         Improve the test data (in comments only).
88938
88939 2003-06-02  Karl Berry  <karl@gnu.org>
88940
88941         * config/mkinstalldirs (version): new variable.
88942         (--version): new option.
88943         (usage): improve message.
88944
88945 2003-05-30  Karl Berry  <karl@gnu.org>
88946
88947         * lib/mktime.c: update from libc.
88948
88949 2003-05-30  Bruno Haible  <bruno@clisp.org>
88950
88951         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88952         * config/config.rpath: Upgrade to gettext-0.12.1.
88953
88954 2003-05-30  Bruno Haible  <bruno@clisp.org>
88955
88956         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88957         * m4/nls.m4: New file, from gettext-0.12.1.
88958         * m4/po.m4: New file, from gettext-0.12.1.
88959         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88960
88961 2003-05-30  Bruno Haible  <bruno@clisp.org>
88962
88963         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88964         * lib/localcharset.h: Likewise.
88965         * lib/localcharset.c: Likewise.
88966
88967 2003-05-29  Karl Berry  <karl@gnu.org>
88968
88969         * config/config.rpath: update from gettext.
88970
88971 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88972
88973         Assume the headers required for C89 freestanding compilers.
88974         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88975         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88976         * m4/human.m4 (gl_HUMAN): Likewise.
88977         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88978         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88979         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88980         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88982         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88983
88984 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88985
88986         Assume the headers required for C89 freestanding compilers.
88987         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88988         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88989         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88990         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88991         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88992         define, since <limits.h> is guaranteed to do that.
88993         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88994         * lib/exclude.c: Include <stdbool.h> unconditionally.
88995         * lib/tempname.c: Include <stddef.h> unconditionally.
88996         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88997         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88998         <stddef.h> does that.
88999         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89000         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89001         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89002         needed.
89003         * lib/xstrtol.c: Likewise.
89004         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89005         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89006
89007         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89008         warnings on some platforms.
89009
89010         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89011         arbitrarily.
89012
89013 2003-05-26  Jim Meyering  <jim@meyering.net>
89014
89015         Merge in a change from coreutils:
89016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89017         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89018         that condition, rather than `-1' which is slightly misleading.
89019         Change the name of the cache variable to have the gl_ prefix.
89020         Prompted by a patch from Richard Dawe for DJGPP.
89021
89022 2003-05-24  Karl Berry  <karl@gnu.org>
89023
89024         * config/config.guess: update from prep.
89025
89026 2003-05-22  Karl Berry  <karl@gnu.org>
89027
89028         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89029
89030 2003-05-20  Karl Berry  <karl@gnu.org>
89031
89032         * config/config.guess: update from prep.
89033
89034 2003-05-18  Karl Berry  <karl@gnu.org>
89035
89036         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89037         might actually be set by the user.
89038
89039         * config/depcomp, install-sh, mdate-sh: update from automake.
89040
89041 2003-05-17  Bruno Haible  <bruno@clisp.org>
89042
89043         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89044         invalid expansion for AC_EGREP_CPP.
89045         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89046         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89047         Suggested by Akim Demaille <akim@epita.fr> in
89048         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89049
89050 2003-05-12  Jim Meyering  <jim@meyering.net>
89051
89052         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89053         the space-padded-by-default conversion specifiers, %e, %k, %l.
89054
89055 2003-05-12  Bruno Haible  <bruno@clisp.org>
89056
89057         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89058         the string is longer than 4 KB.
89059
89060 2003-05-11  Karl Berry  <karl@gnu.org>
89061
89062         * config/config.{guess,sub}: update from prep.
89063
89064 2003-05-09  Bruno Haible  <bruno@clisp.org>
89065
89066         * modules/error: Add m4/strerror_r.m4 to file list.
89067
89068 2003-05-03  Bruno Haible  <bruno@clisp.org>
89069
89070         Upgrade to Unicode-4.0.
89071         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89072         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89073         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89074         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89075         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89076         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89077         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89078         Change width of U+E0100..U+E01EF from 1 to 0.
89079
89080 2003-04-25  Jim Meyering  <jim@meyering.net>
89081
89082         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89083         of type size_t, not int.
89084
89085 2003-04-25  Bruno Haible  <bruno@clisp.org>
89086
89087         * lib/copy-file.c: Include <stddef.h>, for size_t.
89088
89089 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89090
89091         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89092         code which expansion is under static control.  Patch imported from
89093         Akim Demaille's patch to Bison; see
89094         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89095
89096 2003-04-14  Bruno Haible  <bruno@clisp.org>
89097
89098         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89099
89100 2003-04-11  Jim Meyering  <jim@meyering.net>
89101
89102         Merge changes from Coreutils.
89103
89104         2003-03-22  Jim Meyering  <jim@meyering.net>
89105
89106         * lib/strftime.c (widen): Cast alloca return value to proper type.
89107
89108         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89109
89110         From GNU libc.
89111         * lib/strftime.c (my_strftime): Handle very large width
89112         specifications for numeric values correctly.  Improve checks for
89113         overflow.
89114
89115         2003-01-19  Jim Meyering  <jim@meyering.net>
89116
89117         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89118         definitions.
89119         (nl_get_alt_digit) [! defined my_strftime]: Define.
89120         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89121         _nl_get_alt_digit and _nl_get_walt_digit.
89122
89123         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89124         libc. These changes have no effect outside of _LIBC.
89125
89126 2003-04-10  Bruno Haible  <bruno@clisp.org>
89127
89128         * modules/findprog: New file.
89129         * MODULES.html.sh (func_all_modules): Add it.
89130
89131 2003-04-10  Bruno Haible  <bruno@clisp.org>
89132
89133         * m4/findprog.m4: New file.
89134         * m4/eaccess.m4: New file.
89135
89136 2003-04-10  Bruno Haible  <bruno@clisp.org>
89137
89138         * lib/findprog.h: New file, from GNU gettext.
89139         * lib/findprog.c: New file, from GNU gettext.
89140
89141 2003-04-05  Jim Meyering  <jim@meyering.net>
89142
89143         Merge changes from Coreutils.
89144
89145         * lib/exclude.h (PARAMS): Remove definition and uses.
89146         * lib/exclude.c: Remove uses of `PARAMS'.
89147
89148         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89149         Add test-cases for DOS filenames. Declare program_name.
89150         (main): Set up program_name.  Patch by Rich Dawe.
89151
89152         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89153         error from mntctl.
89154         Use mntctl's return value to drive the entry-processing loop, since
89155         we can't rely on the value of the vmt_length member in the last
89156         entry.  On some systems doing so could result in exhausting
89157         virtual memory.  Based in part on a patch from Mike Jetzer.
89158
89159 2003-04-04  Bruno Haible  <bruno@clisp.org>
89160
89161         * modules/linebreak: New file.
89162         * MODULES.html.sh (func_all_modules): Add it.
89163
89164 2003-04-04  Bruno Haible  <bruno@clisp.org>
89165
89166         * m4/linebreak.m4: New file.
89167
89168 2003-04-04  Bruno Haible  <bruno@clisp.org>
89169
89170         * lib/linebreak.h: New file, from GNU gettext.
89171         * lib/linebreak.c: New file, from GNU gettext with slight
89172         modifications.
89173         * lib/lbrkprop.h: New file, from GNU gettext.
89174
89175 2003-04-03  Bruno Haible  <bruno@clisp.org>
89176
89177         * modules/utf8-ucs4: New file.
89178         * modules/utf16-ucs4: New file.
89179         * modules/ucs4-utf8: New file.
89180         * modules/ucs4-utf16: New file.
89181         * MODULES.html.sh (func_all_modules): Add them.
89182
89183 2003-04-03  Bruno Haible  <bruno@clisp.org>
89184
89185         * m4/utf-ucs4.m4: New file.
89186         * m4/ucs4-utf.m4: New file.
89187
89188 2003-04-03  Bruno Haible  <bruno@clisp.org>
89189
89190         * lib/utf8-ucs4.h: New file, from GNU gettext.
89191         * lib/utf16-ucs4.h: New file, from GNU gettext.
89192         * lib/ucs4-utf8.h: New file, from GNU gettext.
89193         * lib/ucs4-utf16.h: New file, from GNU gettext.
89194
89195 2003-04-02  Bruno Haible  <bruno@clisp.org>
89196
89197         * modules/binary-io: New file.
89198         * MODULES.html.sh (func_all_modules): Add it.
89199
89200 2003-04-02  Bruno Haible  <bruno@clisp.org>
89201
89202         * lib/binary-io.h: New file, from GNU gettext.
89203
89204 2003-04-01  Bruno Haible  <bruno@clisp.org>
89205
89206         * modules/pathname: New file.
89207         * MODULES.html.sh (func_all_modules): Add it.
89208
89209 2003-04-01  Bruno Haible  <bruno@clisp.org>
89210
89211         * lib/pathname.h: New file, from GNU gettext.
89212         * lib/concatpath.c: New file, from GNU gettext.
89213
89214 2003-03-30  Bruno Haible  <bruno@clisp.org>
89215
89216         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89217
89218 2003-03-30  Bruno Haible  <bruno@clisp.org>
89219
89220         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89221         function chown() doesn't exist.
89222
89223 2003-03-28  Bruno Haible  <bruno@clisp.org>
89224
89225         * modules/copy-file: New file.
89226         * MODULES.html.sh (func_all_modules): Add it.
89227
89228 2003-03-28  Bruno Haible  <bruno@clisp.org>
89229
89230         * m4/copy-file.m4: New file.
89231
89232 2003-03-28  Bruno Haible  <bruno@clisp.org>
89233
89234         * lib/copy-file.h: New file, from GNU gettext.
89235         * lib/copy-file.c: New file, from GNU gettext.
89236
89237 2003-03-18  Jim Meyering  <jim@meyering.net>
89238
89239         * lib/quote.c (quote_n): Fix typo in comment.
89240
89241 2003-03-18  Bruno Haible  <bruno@clisp.org>
89242
89243         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89244         checking.
89245         * m4/onceonly_2_57.m4: Likewise.
89246
89247 2003-03-17  Bruno Haible  <bruno@clisp.org>
89248
89249         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89250         (m4_quote): Remove macro.
89251         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89252
89253 2003-03-14  Jim Meyering  <jim@meyering.net>
89254
89255         Merge changes from Coreutils.
89256         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89257         to be const, in order to avoid warnings.
89258         (obstack_room): Likewise.
89259         (obstack_empty_p): Likewise.
89260
89261 2003-03-14  Bruno Haible  <bruno@clisp.org>
89262
89263         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89264         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89265
89266 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89267
89268         Merge changes from Bison.
89269         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89270         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89271         when compiling Bison 1.875's `bitset bset = obstack_alloc
89272         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89273         * lib/hash.c: Include <stdbool.h> unconditionally.
89274
89275 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89276
89277         * m4/onceonly.m4 (m4_quote): New macro.
89278         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89279         Quote AC_FOREACH variable-expansions properly.
89280
89281 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89282
89283         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89284
89285 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89286
89287         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89288         Reported by Bruce Becker; see:
89289         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89290
89291 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89292             Bruno Haible  <bruno@clisp.org>
89293
89294         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89295         Reported by John Hughes, see
89296         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89297
89298 2003-02-20  Bruno Haible  <bruno@clisp.org>
89299
89300         * MODULES.html.sh (func_all_modules): Add poll.
89301
89302 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89303
89304         * modules/poll: New file.
89305
89306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89307
89308         * lib/poll_.h: New file.
89309         * lib/poll.c: New file.
89310
89311 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89312
89313         * m4/poll.m4: New file.
89314
89315 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89316
89317         * modules/mathl: New file.
89318
89319 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89320
89321         * lib/mathl.h: New file.
89322         * lib/acosl.c: New file.
89323         * lib/asinl.c: New file.
89324         * lib/atanl.c: New file.
89325         * lib/ceill.c: New file.
89326         * lib/cosl.c: New file.
89327         * lib/expl.c: New file.
89328         * lib/floorl.c: New file.
89329         * lib/frexpl.c: New file.
89330         * lib/ldexpl.c: New file.
89331         * lib/logl.c: New file.
89332         * lib/sincosl.c: New file.
89333         * lib/sinl.c: New file.
89334         * lib/sqrtl.c: New file.
89335         * lib/tanl.c: New file.
89336         * lib/trigl.c: New file.
89337         * lib/trigl.h: New file.
89338
89339 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89340
89341         * m4/mathl.m4: New file.
89342
89343 2003-02-18  Bruno Haible  <bruno@clisp.org>
89344
89345         * MODULES.html.sh (func_all_modules): Add mathl.
89346
89347 2003-02-17  Bruno Haible  <bruno@clisp.org>
89348
89349         * modules/mkdtemp: New module.
89350         * MODULES.html.sh (func_all_modules): Add it.
89351
89352 2003-02-17  Bruno Haible  <bruno@clisp.org>
89353
89354         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89355
89356 2003-02-17  Bruno Haible  <bruno@clisp.org>
89357
89358         * lib/mkdtemp.h: New file, from GNU gettext.
89359         * lib/mkdtemp.c: New file, from GNU gettext.
89360
89361 2003-02-02  Jim Meyering  <jim@meyering.net>
89362
89363         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89364         e.g. glibc-2.2.93.
89365
89366 2003-01-31  Bruno Haible  <bruno@clisp.org>
89367
89368         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89369         'rpl_rename'.
89370         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89371         'rpl_strnlen'.
89372         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89373         'rpl_strtod'.
89374         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89375         'rpl_utime'.
89376
89377 2003-01-31  Bruno Haible  <bruno@clisp.org>
89378
89379         * lib/rename.c: #undef rename before defining rpl_rename.
89380         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89381
89382 2003-01-30  Bruno Haible  <bruno@clisp.org>
89383
89384         * modules/vasnprintf, modules/vasprintf: New modules.
89385         * MODULES.html.sh (func_all_modules): Add them.
89386
89387 2003-01-30  Bruno Haible  <bruno@clisp.org>
89388
89389         * m4/signed.m4: New file, from GNU gettext.
89390         * m4/longdouble.m4: New file, from GNU gettext.
89391         * m4/wchar_t.m4: New file, from GNU gettext.
89392         * m4/wint_t.m4: New file, from GNU gettext.
89393         * m4/vasnprintf.m4: New file.
89394         * m4/vasprintf.m4: New file.
89395
89396 2003-01-30  Bruno Haible  <bruno@clisp.org>
89397
89398         * lib/printf-args.h: New file, from GNU gettext.
89399         * lib/printf-args.c: New file, from GNU gettext.
89400         * lib/printf-parse.h: New file, from GNU gettext.
89401         * lib/printf-parse.c: New file, from GNU gettext.
89402         * lib/vasnprintf.h: New file, from GNU gettext.
89403         * lib/vasnprintf.c: New file, from GNU gettext.
89404         * lib/asnprintf.c: New file, from GNU gettext.
89405         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89406         * lib/vasprintf.c: New file, from GNU gettext.
89407         * lib/asprintf.c: New file, from GNU gettext.
89408
89409 2003-01-29  Bruno Haible  <bruno@clisp.org>
89410
89411         * modules/stpncpy: New module.
89412         * MODULES.html.sh (func_all_modules): Add it.
89413
89414 2003-01-29  Bruno Haible  <bruno@clisp.org>
89415
89416         * m4/stpncpy.m4: New file.
89417
89418 2003-01-29  Bruno Haible  <bruno@clisp.org>
89419
89420         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89421         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89422
89423 2003-01-28  Bruno Haible  <bruno@clisp.org>
89424
89425         * modules/c-ctype: New module.
89426         * MODULES.html.sh (func_all_modules): Add it.
89427
89428 2003-01-28  Bruno Haible  <bruno@clisp.org>
89429
89430         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89431         Paul Eggert.
89432         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89433         Paul Eggert.
89434
89435 2003-01-27  Bruno Haible  <bruno@clisp.org>
89436
89437         * modules/xsetenv: New module.
89438         * MODULES.html.sh (func_all_modules): Add it.
89439
89440 2003-01-27  Bruno Haible  <bruno@clisp.org>
89441
89442         * lib/xsetenv.h: New file, from GNU gettext.
89443         * lib/xsetenv.c: New file, from GNU gettext.
89444
89445 2003-01-23  Jim Meyering  <jim@meyering.net>
89446
89447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89448         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89449
89450 2003-01-23  Bruno Haible  <bruno@clisp.org>
89451
89452         * modules/minmax: New module.
89453         * MODULES.html.sh (func_all_modules): Add it.
89454
89455 2003-01-23  Bruno Haible  <bruno@clisp.org>
89456
89457         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89458         Eggert.
89459
89460 2003-01-22  Bruno Haible  <bruno@clisp.org>
89461
89462         * modules/exit: New module.
89463         * MODULES.html.sh (func_all_modules): Add it.
89464
89465 2003-01-22  Bruno Haible  <bruno@clisp.org>
89466
89467         * lib/exit.h: New file, from GNU gettext.
89468
89469 2003-01-19  Bruno Haible  <bruno@clisp.org>
89470
89471         * gnulib-tool: Recognize option --extract-maintainer.
89472         (func_get_maintainer): New function.
89473         * modules/*: Add Maintainer entry.
89474
89475 2003-01-16  Jim Meyering  <jim@meyering.net>
89476
89477         * m4/regex.m4: The `regex' struct is both input and output.
89478         Initialize it before each use.  Patch by Tim Waugh.
89479
89480 2003-01-16  Bruno Haible  <bruno@clisp.org>
89481
89482         * MODULES.html.sh: Add a table of contents. Add the module name as
89483         leftmost column. Add hyperlinks.
89484
89485 2003-01-15  Bruno Haible  <bruno@clisp.org>
89486
89487         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89488
89489 2003-01-15  Bruno Haible  <bruno@clisp.org>
89490
89491         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89492         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89493         suffix.
89494
89495 2003-01-15  Bruno Haible  <bruno@clisp.org>
89496
89497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89498
89499 2003-01-15  Bruno Haible  <bruno@clisp.org>
89500
89501         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89502         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89503
89504 2003-01-14  Jim Meyering  <jim@meyering.net>
89505
89506         * lib/same.c (same_name): Tweak a comment.
89507
89508 2003-01-14  Bruno Haible  <bruno@clisp.org>
89509
89510         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89511         when a string comparison is sufficient.
89512
89513 2003-01-14  Bruno Haible  <bruno@clisp.org>
89514
89515         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89516         'unsigned int'.
89517
89518 2003-01-14  Bruno Haible  <bruno@clisp.org>
89519
89520         * lib/hash-pjw.c: Add comment about low quality of this function.
89521
89522 2003-01-13  Bruno Haible  <bruno@clisp.org>
89523
89524         * modules/stpcpy: Distribute lib/stpcpy.h.
89525         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89526
89527 2003-01-13  Bruno Haible  <bruno@clisp.org>
89528
89529         * modules/*: Add a description.
89530         * modules/strpbrk: Fix Makefile.am snippet.
89531         * modules/strtoimax: Fix dependencies.
89532         * modules/strtoumax: Likewise.
89533
89534 2003-01-13  Bruno Haible  <bruno@clisp.org>
89535
89536         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89537         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89538         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89539
89540 2003-01-13  Bruno Haible  <bruno@clisp.org>
89541
89542         * gnulib-tool (func_create_testdir): Store config/* files in the main
89543         directory.
89544         * config.rpath: Move to ...
89545         * config/config.rpath: ... here.
89546         * modules/gettext: Contains config/config.rpath, not config.rpath.
89547         * modules/iconv: Likewise.
89548
89549 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89550
89551         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89552         to avoid collisions with libcurses and libreadline.
89553
89554         * m4/getstr.m4: Remove.
89555         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89556
89557 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89558
89559         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89560         to avoid collisions with libcurses and libreadline.
89561
89562         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89563         * lib/getstr.h, getstr.c: Remove.
89564         * lib/getline.c: Include "getline.h", to check interface.
89565         Move body of old getstr.c here: this defines MIN_CHUNK and
89566         declares getdelim2, which is renamed from getstr.
89567         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89568
89569         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89570         All uses changed.
89571         * lib/linebuffer.h: Likewise.
89572         (readline): Remove backward-compatibility macro.
89573
89574 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89575
89576         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89577         to avoid collisions with libcurses and libreadline.
89578         * getstr: Remove.
89579         * MODULES.html.sh: Remove getstr.
89580         * modules/getline: Depend on unlocked-io, not getstr.
89581
89582 2003-01-12  Jim Meyering  <jim@meyering.net>
89583
89584         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89585
89586 2003-01-10  Bruno Haible  <bruno@clisp.org>
89587
89588         * modules/alloca: Change Makefile.am requirements. Simplify Include
89589         requirements. Add lib/alloca_.h to file list.
89590
89591 2003-01-10  Bruno Haible  <bruno@clisp.org>
89592
89593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89594
89595 2003-01-10  Bruno Haible  <bruno@clisp.org>
89596
89597         * lib/alloca_.h: New file.
89598         * lib/getdate.y: Unconditionally include alloca.h.
89599         * lib/makepath.c: Likewise.
89600         * lib/setenv.c: Likewise.
89601         * lib/userspec.c: Likewise.
89602
89603 2003-01-09  Karl Berry  <karl@gnu.org>
89604
89605         * MODULES.html.sh: include `dirname $0` in PATH, to find
89606         gnulib-tool.
89607
89608 2003-01-09  Bruno Haible  <bruno@clisp.org>
89609
89610         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89611         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89612
89613 2003-01-09  Bruno Haible  <bruno@clisp.org>
89614
89615         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89616
89617 2003-01-09  Bruno Haible  <bruno@clisp.org>
89618
89619         * lib/stdbool.h.in: New file.
89620
89621 2003-01-09  Bruno Haible  <bruno@clisp.org>
89622
89623         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89624         * MODULES.html.sh: Likewise.
89625
89626 2003-01-08  Jim Meyering  <jim@meyering.net>
89627
89628         * lib/full-write.c: Undefine and define-away `const' after inclusion
89629         of errno.h, not before.  Suggestion from Bruno Haible.
89630
89631 2003-01-08  Bruno Haible  <bruno@clisp.org>
89632
89633         * modules/full-read: Depend on full-write.
89634
89635 2003-01-08  Bruno Haible  <bruno@clisp.org>
89636
89637         * lib/safe-read.c: Include specification header first, to ensure its
89638         selfcontainedness.
89639         * lib/full-write.c: Likewise.
89640
89641 2003-01-07  Jim Meyering  <jim@meyering.net>
89642
89643         * lib/full-write.c: Rework so that it may serve to define full_read,
89644         too.
89645         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89646
89647 2003-01-07  Bruno Haible  <bruno@clisp.org>
89648
89649         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89650         <inttypes.h>.
89651         * lib/xstrtol.h: Likewise.
89652         * lib/xstrtoimax.c: Likewise.
89653         * lib/xstrtoumax.c: Likewise.
89654         * lib/human.h: Likewise.
89655
89656         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89657         on systems that have <inttypes.h> but not <stdint.h>.
89658
89659 2003-01-07  Bruno Haible  <bruno@clisp.org>
89660
89661         * MODULES.html.sh: Add copyright notice.
89662         (missed_files): Omit CVS directory entries.
89663         (func_module): Make it work with sed-3.02.
89664         * MODULES.txt: Remove file.
89665
89666 2003-01-06  Jim Meyering  <jim@meyering.net>
89667
89668         * lib/version-etc.c: Update year in translatable copyright string.
89669
89670 2003-01-03  Karl Berry  <karl@gnu.org>
89671
89672         * config/config.{guess,sub}: update from prep.
89673
89674 2003-01-02  Karl Berry  <karl@gnu.org>
89675
89676         * doc/COPYING.DOC: belatedly updated to 1.2.
89677
89678 2003-01-01  Karl Berry  <karl@gnu.org>
89679
89680         * gnulib-tool (func_verify_module): report module name $module in
89681         error message, not $1.
89682         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89683         be created, only if it doesn't exist.
89684         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89685
89686 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89687
89688         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89689
89690 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89691
89692         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89693         memcmp if strcoll doesn't work.
89694
89695 2002-12-31  Bruno Haible  <bruno@clisp.org>
89696
89697         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89698         nonempty.
89699
89700 2002-12-31  Bruno Haible  <bruno@clisp.org>
89701
89702         * lib/memcoll.c (STRCOLL): New macro.
89703         (memcoll): Use it.
89704
89705 2002-12-31  Bruno Haible  <bruno@clisp.org>
89706
89707         * lib/localcharset.h: New file.
89708         * lib/localcharset.c: Include it.
89709         * lib/unicodeio.c: Likewise.
89710
89711 2002-12-31  Bruno Haible  <bruno@clisp.org>
89712
89713         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89714         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89715
89716 2002-12-31  Bruno Haible  <bruno@clisp.org>
89717
89718         * lib/getline.h: Include <stddef.h>, for size_t.
89719
89720         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89721         * lib/unicodeio.c: Don't include <stddef.h>.
89722
89723 2002-12-31  Bruno Haible  <bruno@clisp.org>
89724
89725         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89726         HAVE_TM_ZONE.
89727
89728 2002-12-24  Karl Berry  <karl@gnu.org>
89729
89730         * config/config.guess: update from prep.
89731
89732 2002-12-24  Bruno Haible  <bruno@clisp.org>
89733
89734         General infrasructure.
89735         * m4/README: Rewritten.
89736         * m4/onceonly.m4: New file.
89737         * m4/onceonly_2_57.m4: New file.
89738
89739         Module atexit.
89740         * m4/atexit.m4: New file.
89741
89742         Module strtod.
89743         * m4/strtod.m4: New file.
89744
89745         Module strtol.
89746         * m4/strtol.m4: New file.
89747
89748         Module strtoul.
89749         * m4/strtoul.m4: New file.
89750
89751         Module memchr.
89752         * m4/memchr.m4: New file.
89753
89754         Module memcmp.
89755         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89756         (jm_FUNC_MEMCMP): Invoke it.
89757
89758         Module memcpy.
89759         * m4/memcpy.m4: New file.
89760
89761         Module memmove.
89762         * m4/memmove.m4: New file.
89763
89764         Module memset.
89765         * m4/memset.m4: New file.
89766
89767         Module strcspn.
89768         * m4/strcspn.m4: New file.
89769
89770         Module strpbrk.
89771         * m4/strpbrk.m4: New file.
89772
89773         Module strstr.
89774         * m4/strstr.m4: New file.
89775
89776         Module strerror.
89777         * m4/strerror.m4: New file.
89778
89779         Module mktime.
89780         * m4/mktime.m4: Renamed from jm-mktime.m4.
89781         (gl_PREREQ_MKTIME): New macro.
89782         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89783
89784         Module malloc.
89785         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89786         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89787         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89788
89789         Module realloc.
89790         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89791         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89792         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89793
89794         Module strftime.
89795         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89796         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89797         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89798         gl_TM_GMTOFF.
89799         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89800
89801         Module xalloc.
89802         * m4/xalloc.m4: New file.
89803
89804         Module alloca.
89805         * m4/alloca.m4: New file.
89806
89807         Module putenv.
89808         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89809         (jm_FUNC_PUTENV): Invoke it.
89810
89811         Module setenv.
89812         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89813         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89814         when invoked twice.
89815         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89816         gt_FUNC_SETENV.
89817
89818         Module memrchr.
89819         * m4/memrchr.m4: New file.
89820
89821         Module stpcpy.
89822         * m4/stpcpy.m4: New file.
89823
89824         Module strcase.
89825         * m4/strcase.m4: New file.
89826
89827         Module strdup.
89828         * m4/strdup.m4: New file.
89829
89830         Module strnlen.
89831         * m4/strnlen.m4: New file.
89832
89833         Module strndup.
89834         * m4/strndup.m4: New file.
89835
89836         Module xstrtod.
89837         * m4/xstrtod.m4: New file.
89838
89839         Module xstrtol.
89840         * m4/xstrtol.m4: New file.
89841
89842         Module getdate.
89843         * m4/getdate.m4: New file.
89844
89845         Module unlocked-io.
89846         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89847         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89848         * m4/jm-glibc-io.m4n: Remove file.
89849
89850         Module long-options.
89851         * m4/long-options.m4: New file.
89852
89853         Module md5.
89854         * m4/md5.m4: New file.
89855
89856         Module sha.
89857         * m4/sha.m4: New file.
89858
89859         Module getstr.
89860         * m4/getstr.m4: New file.
89861
89862         Module getline.
89863         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89864         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89865         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89866         simply getline. Infoke gl_PREREQ_GETLINE.
89867
89868         Module obstack.
89869         * m4/obstack.m4: New file.
89870
89871         Module hash.
89872         * m4/hash.m4: New file.
89873
89874         Module readtokens.
89875         * m4/readtokens.m4: New file.
89876
89877         Module strverscmp.
89878         * m4/strverscmp.m4: New file.
89879
89880         Module stdbool.
89881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89882         OSF/1.
89883
89884         Module strtoll.
89885         * m4/strtoll.m4: New file.
89886
89887         Module strtoull.
89888         * m4/strtoull.m4: New file.
89889
89890         Module strtoimax.
89891         * m4/strtoimax.m4: New file.
89892
89893         Module strtoumax.
89894         * m4/strtoumax.m4: New file.
89895
89896         Module xstrtoimax.
89897         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89898         jm_AC_PREREQ_XSTRTOIMAX.
89899         Moved the strtol prerequisites to strtol.m4.
89900         Moved the strtoll prerequisites to strtoll.m4.
89901         Moved the strtoimax prerequisites to strtoimax.m4.
89902
89903         Module xstrtoumax.
89904         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89905         jm_AC_PREREQ_XSTRTOUMAX.
89906         Moved the strtoul prerequisites to strtoul.m4.
89907         Moved the strtoull prerequisites to strtoull.m4.
89908         Moved the strtoumax prerequisites to strtoumax.m4.
89909
89910         Module chown.
89911         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89912         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89913
89914         Module dup2.
89915         * m4/dup2.m4: New file.
89916
89917         Module ftruncate.
89918         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89919         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89920
89921         Module getgroups.
89922         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89923         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89924
89925         Module gettimeofday.
89926         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89927         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89928         gl_PREREQ_GETTIMEOFDAY.
89929
89930         Module mkdir.
89931         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89932         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89933
89934         Module mkstemp.
89935         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89936         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89937         jm_AC_TYPE_UINTMAX_T.
89938         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89939
89940         Module stat.
89941         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89942         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89943
89944         Module lstat.
89945         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89946         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89947
89948         Module timespec.
89949         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89950         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89951         * m4/st_mtim.m4: Indentation.
89952
89953         Module nanosleep.
89954         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89955         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89956         gl_PREREQ_NANOSLEEP.
89957
89958         Module regex.
89959         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89960         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89961         (gl_REGEX): New macro.
89962
89963         Module rename.
89964         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89965         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89966
89967         Module rmdir.
89968         * m4/rmdir.m4: New file.
89969
89970         Module utime.
89971         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89972         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89973         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89974
89975         Module dirname.
89976         * m4/dirname.m4: New file.
89977
89978         Module getopt.
89979         * m4/getopt.m4: New file.
89980
89981         Module unistd-safer.
89982         * m4/unistd-safer.m4: New file.
89983
89984         Module fnmatch.
89985         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89986         declaration.
89987         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89988         (gl_FUNC_FNMATCH_POSIX): New macro.
89989         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89990         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89991         simply fnmatch.
89992
89993         Module exclude.
89994         * m4/exclude.m4: New file.
89995
89996         Module human.
89997         * m4/human.m4: New file.
89998
89999         Module acl.
90000         * m4/acl.m4: Nop.
90001
90002         Module backupfile.
90003         * m4/backupfile.m4: New file.
90004         * m4/d-ino.m4: Indentation.
90005
90006         Module fsusage.
90007         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90008         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90009         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90010
90011         Module dirfd.
90012         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90013         requirements.
90014
90015         Module euidaccess.
90016         * m4/euidaccess.m4: New file.
90017
90018         Module file-type.
90019         * m4/file-type.m4: New file.
90020
90021         Module fileblocks.
90022         * m4/fileblocks.m4: New file.
90023
90024         Module filemode.
90025         * m4/filemode.m4: New file.
90026
90027         Module isdir.
90028         * m4/isdir.m4: New file.
90029
90030         Module lchown.
90031         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90032         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90033
90034         Module makepath.
90035         * m4/makepath.m4: New file.
90036
90037         Module modechange.
90038         * m4/modechange.m4: New file.
90039
90040         Module mountlist.
90041         * m4/mountlist.m4: New file.
90042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90043         Indentation.
90044
90045         Module path-concat.
90046         * m4/path-concat.m4: New file.
90047
90048         Module pathmax.
90049         * m4/pathmax.m4: New file.
90050
90051         Module same.
90052         * m4/same.m4: New file.
90053
90054         Module save-cwd.
90055         * m4/save-cwd.m4: New file.
90056
90057         Module savedir.
90058         * m4/savedir.m4: New file.
90059
90060         Module xgetcwd.
90061         * m4/xgetcwd.m4: New file.
90062         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90063
90064         Module xreadlink.
90065         * m4/xreadlink.m4: New file.
90066
90067         Module safe-read.
90068         * m4/safe-read.m4: New file.
90069
90070         Module safe-write.
90071         * m4/safe-write.m4: New file.
90072
90073         Module closeout.
90074         * m4/closeout.m4: New file.
90075
90076         Module stdio-safer.
90077         * m4/stdio-safer.m4: New file.
90078
90079         Module getpass.
90080         * m4/getpass.m4: New file.
90081
90082         Module getugroups.
90083         * m4/getugroups.m4: New file.
90084
90085         Module group-member.
90086         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90087         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90088
90089         Module idcache.
90090         * m4/idcache.m4: New file.
90091
90092         Module userspec.
90093         * m4/userspec.m4: New file.
90094
90095         Module gettime.
90096         * m4/clock_time.m4: New file.
90097         * m4/gettime.m4: New file.
90098
90099         Module settime.
90100         * m4/settime.m4: New file.
90101
90102         Module posixtm.
90103         * m4/posixtm.m4: New file.
90104
90105         Module gethostname.
90106         * m4/gethostname.m4: New file.
90107
90108         Module canon-host.
90109         * m4/canon-host.m4: New file.
90110
90111         Module gettext.
90112         * m4/codeset.m4: New file, from gettext-0.11.5.
90113         * m4/gettext.m4: New file, from gettext-0.11.5.
90114         * m4/glibc21.m4: New file, from gettext-0.11.5.
90115         * m4/iconv.m4: New file, from gettext-0.11.5.
90116         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90117         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90118         * m4/inttypes.m4: New file, from gettext-0.11.5.
90119         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90120         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90121         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90122         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90123         * m4/lib-link.m4: New file, from gettext-0.11.5.
90124         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90125         * m4/progtest.m4: New file, from gettext-0.11.5.
90126         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90127         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90128         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90129
90130         Module localcharset.
90131         * m4/localcharset.m4: New file.
90132
90133         Module hard-locale.
90134         * m4/hard-locale.m4: New file.
90135
90136         Module mbswidth.
90137         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90138         onceonly macros.
90139         * m4/mbrtowc.m4: Add comment.
90140
90141         Module memcasecmp.
90142         * m4/memcasecmp.m4: New file.
90143
90144         Module memcoll.
90145         * m4/memcoll.m4: New file.
90146
90147         Module unicodeio.
90148         * m4/unicodeio.m4: New file.
90149
90150         Module rpmatch.
90151         * m4/rpmatch.m4: New file.
90152
90153         Module yesno.
90154         * m4/yesno.m4: New file.
90155
90156         Module exitfail.
90157         * m4/exitfail.m4: New file.
90158
90159         Module c-stack.
90160         * m4/c-stack.m4 (gl_C_STACK): New macro.
90161         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90162
90163         Module error.
90164         * m4/error.m4 (gl_ERROR): New macro.
90165         (jm_PREREQ_ERROR): Use onceonly macros.
90166
90167         Module fatal.
90168         * m4/fatal.m4: New file.
90169
90170         Module getloadavg.
90171         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90172         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90173
90174         Module getpagesize.
90175         * m4/getpagesize.m4: New file.
90176
90177         Module getusershell.
90178         * m4/getusershell.m4: New file.
90179
90180         Module physmem.
90181         * m4/physmem.m4: New file.
90182
90183         Module posixver.
90184         * m4/posixver.m4: New file.
90185
90186         Module quotearg.
90187         * m4/quotearg.m4: New file.
90188
90189         Module quote.
90190         * m4/quote.m4: New file.
90191
90192         Module readutmp.
90193         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90194
90195         Module sig2str.
90196         * m4/sig2str.m4: New file.
90197
90198         Other.
90199         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90200         ulonglong.m4.
90201         * m4/intmax_t.m4: New file.
90202         * m4/d-type.m4: Indentation.
90203         * m4/jm-macros.m4: Update.
90204         * m4/prereq.m4 (jm_PREREQ): Update.
90205         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90206         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90207         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90208         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90209         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90210         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90211         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90212         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90213         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90214         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90215         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90216         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90217         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90218         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90219         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90220         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90221         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90222         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90223         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90224
90225 2002-12-24  Bruno Haible  <bruno@clisp.org>
90226
90227         * MODULES.txt: Update according to m4/ changes.
90228
90229         Module gettext.
90230         * config.rpath: New file, from gettext-0.11.5.
90231
90232         * modules/*: New module descriptions.
90233         * gnulib-tool: New file.
90234         * MODULES.html.sh: New file.
90235
90236 2002-12-21  Karl Berry  <karl@gnu.org>
90237
90238         * doc/fdl.texi: update to version 1.2.
90239
90240 2002-12-19  Karl Berry  <karl@gnu.org>
90241
90242         * config/config.guess: update from prep.
90243
90244 2002-12-18  Bruno Haible  <bruno@clisp.org>
90245
90246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90247         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90248
90249 2002-12-17  Bruno Haible  <bruno@clisp.org>
90250
90251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90252         stdlib.h, string.h.
90253
90254 2002-12-17  Bruno Haible  <bruno@clisp.org>
90255
90256         * lib/canon-host.c (strdup): Remove unused declaration.
90257
90258         * lib/fsusage.c: Include full_read.h.
90259         (get_fs_usage): Use full_read instead of safe_read.
90260
90261         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90262
90263 2002-12-12  Karl Berry  <karl@gnu.org>
90264
90265         * config/config.guess: update from prep.
90266
90267 2002-12-11  Bruno Haible  <bruno@clisp.org>
90268
90269         * m4/setenv.m4: New file, from gettext-0.11.5.
90270
90271 2002-12-11  Bruno Haible  <bruno@clisp.org>
90272
90273         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90274         not unsetenv().
90275         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90276         modifications:
90277
90278         2002-12-11  Bruno Haible  <bruno@clisp.org>
90279
90280                 * setenv.c (alloca): Fall back to malloc.
90281                 (freea): New macro.
90282                 (setenv): Use freea() to free memory allocated with alloca().
90283
90284         2002-11-13  Bruno Haible  <bruno@clisp.org>
90285
90286                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90287                 function declarations.
90288                 * unsetenv.c (unsetenv): Likewise.
90289
90290         2002-03-04  Bruno Haible  <bruno@clisp.org>
90291
90292                 Portability to AIX 4.3.3.
90293                 * unsetenv.c: New file, extracted from setenv.c.
90294                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90295
90296         2001-12-20  Bruno Haible  <bruno@clisp.org>
90297
90298                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90299                 use malloc instead. For SunOS 4.
90300
90301         2001-12-11  Bruno Haible  <bruno@clisp.org>
90302
90303                 * setenv.c: Declare alloca.
90304                 (compar_fn_t): New typedef.
90305                 (KNOWN_VALUE, STORE_VALUE): Use it.
90306
90307         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90308         setenv.h.
90309
90310 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90311
90312         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90313         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90314         Choose values that are less likely to collide with system fnmatch
90315         options.
90316         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90317         defined (e.g., a pure POSIX system).
90318         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90319         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90320
90321 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90322
90323         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90324         a pain in practice to deal with generated m4 files.  This change
90325         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90326
90327         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90328         and jm-glibc-io.m4, as they are no longer a special case.
90329         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90330         kludge and the auto-generation stuff.  Check only whether the
90331         functions are declared, not whether they exist, since older hosts
90332         that don't declare the functions can't use the optimization anyway.
90333
90334 2002-12-06  Jim Meyering  <jim@meyering.net>
90335
90336         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90337
90338         Merge in changes from libc's misc/error.c, in preparation
90339         for the merge of gnulib's changes back into libc.
90340
90341         * lib/error.c (_): Define only if not already defined.
90342         Move definition to follow all #include directives.
90343         Include unlocked-io.h only if !_LIBC.
90344         [_LIBC]: Include <libio/libioP.h>.
90345         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90346         (fflush): Tweak definition to use INTUSE.
90347         (putc): Define.
90348
90349 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90350
90351         * lib/alloca.c [defined emacs]: Include "lisp.h".
90352         (xalloc_die) [defined emacs]: New macro.
90353         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90354         [! defined emacs]: Include <xalloc.h>.
90355         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90356         (pointer): Typedef to POINTER_TYPE *.
90357         (malloc): Remove decl; we now always use xmalloc.
90358         (alloca): Use old-style definition, since Emacs needs this.
90359         Check for arithmetic overflow when computing combined size.
90360
90361 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90362
90363         Do not generate unlocked-io.h automatically, since it's easier to
90364         maintain it by hand.
90365
90366         * lib/unlocked-io.h: New file, from GNU diffutils,
90367         but with proper copyright notice and attribution.
90368         * lib/gen-uio: Remove.
90369         * lib/Makefile.am: Add copyright notice.
90370         (libfetish_a_SOURCES): Add unlocked-io.h.
90371         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90372         (DISTCLEANFILES, io_functions): Remove macros.
90373         (EXTRA_DIST): Remove gen_uio.
90374         (unlocked-io.h): Remove rule.
90375
90376 2002-12-04  Jim Meyering  <jim@meyering.net>
90377
90378         Reflect the fact that stat.c and lstat.c are no longer generated.
90379         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90380         (DISTCLEANFILES): Likewise.
90381         (EXTRA_DIST): Likewise.
90382         (all_local): Don't depend on stat.c or lstat.c.
90383         (stat.c, lstat.c): Remove rules.
90384         (EXTRA_DIST): Remove xstat.in.
90385
90386         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90387         * lib/stat.c: New file.  Contents mostly from xstat.in.
90388         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90389         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90390
90391         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90392         too.
90393         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90394
90395 2002-12-03  Jim Meyering  <jim@meyering.net>
90396
90397         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90398         but not semantics, to minimize the differences between these two files.
90399         (safe_read): Change comment to mention SAFE_READ_ERROR.
90400
90401         * lib/safe-read.c (IS_EINTR): Define.
90402         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90403
90404 2002-12-02  Jim Meyering  <jim@meyering.net>
90405
90406         * lib/safe-read.c (EINTR): Define.
90407         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90408         (INT_MAX): Provide fallback.
90409         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90410
90411         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90412
90413 2002-12-02  Bruno Haible  <bruno@clisp.org>
90414
90415         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90416         Define, taken from safe-read.c.
90417         (INT_MAX): Provide fallback.
90418         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90419         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90420
90421         * lib/safe-read.c (EINTR): Remove definition.
90422         (safe_read): Don't use EINTR if it is absent.
90423
90424 2002-12-01  Jim Meyering  <jim@meyering.net>
90425
90426         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90427         zero.
90428         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90429
90430 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90431
90432         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90433         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90434         with `if (! (value < limit)) abort ();', for readability.
90435
90436 2002-11-26  Karl Berry  <karl@gnu.org>
90437
90438         * lib/strdup.c: copy from libc again, with jim's ok.
90439         * lib/.cppi-disable: re-add strdup.c
90440
90441 2002-11-25  Karl Berry  <karl@gnu.org>
90442
90443         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90444         instead of "strtol.c".
90445
90446 2002-11-25  Karl Berry  <karl@gnu.org>
90447
90448         * config/install-sh: update from automake for variable quoting, $0 in
90449         error msgs, etc.
90450
90451         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90452         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90453         entry.
90454
90455 2002-11-25  Jim Meyering  <jim@meyering.net>
90456
90457         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90458
90459 2002-11-24  Karl Berry  <karl@gnu.org>
90460
90461         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90462         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90463
90464 2002-11-24  Jim Meyering  <jim@meyering.net>
90465
90466         Update from coreutils:
90467
90468         * lib/mktime.c: Merge in changes from libc.
90469
90470         Avoid a link-time failure on some Linux systems.
90471         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90472         (otherwise).
90473         (__mon_yday): Declare with the STATIC attribute.
90474         (__mktime_internal): Likewise.
90475         Based on a report from Greg Schafer.
90476
90477 2002-11-23  Jim Meyering  <jim@meyering.net>
90478
90479         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90480         Use `unsigned', not `int', as type of index.
90481
90482         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90483
90484         * lib/fsusage.c: Remove unneeded parentheses around operands of
90485         `defined'.
90486
90487 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90488
90489         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90490         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90491         so that we can be included first.
90492         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90493         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90494         No need to include stddef.h or sys/types.h any more.
90495         Surround local include files with "", not "<>".
90496         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90497         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90498         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90499         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90500         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90501         (ISPRINT): Remove; no longer needed now that we assume C89.
90502
90503         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90504         Preserve errno.
90505
90506         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90507         quotearg_char): Use SIZE_MAX rather than
90508         (size_t) -1 when we are talking about "infinity".
90509
90510         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90511
90512 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90513
90514         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90515         hint that one should use `if (! x) abort ();' rather than `assert
90516         (x);', and anyway it's one less thing to worry about configuring.
90517         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90518         hash_rehash, hash_insert): Use abort rather than assert.
90519
90520 2002-11-22  Bruno Haible  <bruno@clisp.org>
90521
90522         * lib/safe-read.h: Assume C89. Add comments.
90523         (safe_read): Change return type to size_t.
90524         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90525         byte counts > SSIZE_MAX correctly.
90526         * lib/safe-write.h: New file.
90527         * lib/safe-write.c: New file.
90528         * lib/full-read.h: New file.
90529         * lib/full-read.c: New file.
90530         * lib/full-write.h: Assume C89. Add comments.
90531         * lib/full-write.c: Include safe-write.h.
90532         (full_write): Rewritten to use safe_write.
90533         Suggested by Jim Meyering and Paul Eggert.
90534
90535 2002-11-21  Jim Meyering  <jim@meyering.net>
90536
90537         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90538
90539         Merge in changes from the coreutils.
90540
90541         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90542         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90543         <stdint.h>.
90544         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90545         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90546         int.  Work more efficiently if X is the same width as uintmax_t.
90547         Do not compare X to -1, to avoid bogus compiler warning.
90548         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90549         Don't assume that f_frsize and f_bsize are the same type.
90550
90551         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90552         warning on FreeBSD.
90553
90554         * lib/makepath.c (make_path): Restore umask *before* creating the final
90555         component.
90556         (make_path): Minor reformatting.
90557
90558         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90559         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90560         HAVE_MALLOC/HAVE_REALLOC.
90561
90562         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90563         dummy ones.  At least on GNU/Linux systems, `auto' means something
90564         else.
90565         From Michael Stone.
90566
90567 2002-11-21  Bruno Haible  <bruno@clisp.org>
90568
90569         Remove case insensitive option matching.
90570         * lib/argmatch.h (argcasematch): Remove declaration.
90571         (ARGCASEMATCH): Remove macro.
90572         (__xargmatch_internal): Remove case_sensitive argument.
90573         (XARGMATCH): Update.
90574         (XARGCASEMATCH): Remove macro.
90575         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90576         case_sensitive argument.
90577         (argcasematch): Remove function.
90578         (__xargmatch_internal): Remove case_sensitive argument.
90579         (main): Use XARGMATCH instead of XARGCASEMATCH.
90580
90581         * lib/xmalloc.c: Change compile-time error message. Add comment about
90582         required autoconf version.
90583
90584 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90585
90586         Merge argmatch cleanups from Bison.  Assume C89.
90587
90588         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90589         Include stdlib.h, for EXIT_FAILURE.
90590         Always include <string.h>, since we assume C89.
90591         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90592         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90593         Include <stddef.h> instead, since it's all we need for size_t.
90594         (PARAMS): Remove.  All uses removed.
90595         (ARRAY_CARDINALITY): Do not bother to #undef.
90596         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90597         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90598         Remove unnecessary parentheses.
90599         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90600         Insert necessary parentheses.
90601         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90602         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90603
90604 2002-11-19  Bruno Haible  <bruno@clisp.org>
90605
90606         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90607         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90608
90609         * lib/mbswidth.h (PARAMS): Remove macro.
90610         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90611         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90612
90613         * lib/gcd.h (PARAMS): Remove macro.
90614         (gcd): Use ANSI C function declarations.
90615         * lib/gcd.c (gcd): Likewise.
90616
90617 2002-11-15  Bruno Haible  <bruno@clisp.org>
90618
90619         * lib/strcspn.c: Include <stddef.h>.
90620         (strcspn): Use ANSI C function declaration. Change return type to
90621         size_t. Use NULL.
90622         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90623         (strpbrk): Use NULL.
90624         * lib/strpbrk.h (PARAMS): Remove macro.
90625         (strpbrk): Use ANSI C function declaration.
90626         * lib/strstr.c: Don't include <sys/types.h>.
90627         * lib/strstr.h (PARAMS): Remove macro.
90628         (strstr): Use ANSI C function declarations.
90629
90630 2002-11-14  Karl Berry  <karl@gnu.org>
90631
90632         * config/mkinstalldirs: `do' on separate line, instead of
90633         `for var; do'.
90634
90635 2002-11-06  Bruno Haible  <bruno@clisp.org>
90636
90637         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90638         * lib/gcd.c (gcd): Likewise.
90639
90640 2002-11-05  Bruno Haible  <bruno@clisp.org>
90641
90642         * lib/gcd.h: New file, from gettext-0.11.5.
90643         * lib/gcd.c: New file, from gettext-0.11.5.
90644
90645 2002-11-05  Bruno Haible  <bruno@clisp.org>
90646
90647         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90648         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90649         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90650         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90651
90652         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90653         <libintl.h>.
90654         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90655         <libintl.h>.
90656
90657         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90658         * lib/human.c: Include gettext.h instead of <libintl.h>.
90659         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90660         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90661         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90662         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90663         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90664         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90665         (textdomain): Remove definition.
90666         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90667
90668         * lib/long-options.c: Remove include of <libintl.h> and definition of
90669         _.
90670         * lib/same.c: Remove include of <libintl.h> and definition of _.
90671
90672 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90673
90674         * lib/config.charset: A few additions for Solaris.
90675
90676 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90677
90678         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90679         * lib/localcharset.c (locale_charset): Declare as extern "C".
90680
90681 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90682
90683         * lib/config.charset: msdos in uk_UA uses CP1125.
90684
90685 2002-11-04  Bruno Haible  <bruno@clisp.org>
90686
90687         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90688         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90689         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90690         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90691         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90692
90693 2002-11-04  Bruno Haible  <bruno@clisp.org>
90694
90695         * lib/localcharset.c (locale_charset): Don't return an empty string.
90696
90697 2002-11-04  Bruno Haible  <bruno@clisp.org>
90698
90699         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90700         aliases.
90701
90702 2002-11-04  Bruno Haible  <bruno@clisp.org>
90703
90704         * lib/config.charset: Update for newest glibc. Add canonical names
90705         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90706
90707 2002-11-04  Bruno Haible  <bruno@clisp.org>
90708
90709         * lib/config.charset: Add support for NetBSD.
90710
90711 2002-11-04  Bruno Haible  <bruno@clisp.org>
90712
90713         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90714
90715 2002-11-01  Bruno Haible  <bruno@clisp.org>
90716
90717         * configure.in: Add AC_CONFIG_AUX_DIR call.
90718         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90719         test/Makefile.
90720         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90721
90722 2002-09-28  Karl Berry  <karl@gnu.org>
90723
90724         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90725         installed automake until the next release, since changes have been
90726         made.
90727
90728 2002-09-25  Karl Berry  <karl@gnu.org>
90729
90730         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90731         * lib/getopt*: copy from libc/posix.
90732         * lib/gettext.h: copy from gettext.
90733         * lib/.cppi-disable: add strdup.c, gettext.h.
90734
90735 2002-09-25  Karl Berry  <karl@gnu.org>
90736
90737         * config/srclist.txt: enable gettext.h check.
90738         * config/config.{guess,sub}: update from prep.
90739         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90740                 from automake 1.6.3.
90741         See srclist*.
90742
90743 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90744
90745         * regex.c (PATFETCH): Remove the translating fetch.
90746         (PATFETCH_RAW): Rename to PATFETCH.
90747         (set_image_of_range): New fun.
90748         (SET_RANGE_TABLE_WORK_AREA): Use it.
90749         (regex_compile): Don't translate the pattern chars so eagerly.
90750         Only do it when inserting an `exactn' bytecode or when handling
90751         a char-range.
90752         (mutually_exclusive_p): Avoid empty statement.
90753
90754 2002-07-06  Jim Meyering  <meyering@lucent.com>
90755
90756         * m4/README: Don't mention Makefile.am.in.
90757         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90758
90759 2002-07-01  Jim Meyering  <meyering@lucent.com>
90760
90761         * lib/c-stack.c: Include sys/time.h.
90762         From Volker Borchert.
90763
90764 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90765
90766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90767
90768 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90769
90770         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90771         New macro.  Use it uniformly instead of
90772         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90773         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90774         reported by Vin Shelton.
90775
90776 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90777
90778         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90779         Do not assume SA_SIGINFO behavior.
90780         Bug reported by Jim Meyering on NetBSD 1.5.2.
90781
90782 2002-06-22  Jim Meyering  <meyering@lucent.com>
90783
90784         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90785         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90786
90787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90788         now that configure.ac uses AC_GNU_SOURCE.
90789         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90790         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90791
90792         Update to latest tools.  Suggestions from Paul Eggert.
90793         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90794         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90795         * m4/fnmatch.m4: Likewise.
90796         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90797         to AC_HEADER_STDBOOL
90798
90799 2002-06-22  Jim Meyering  <meyering@lucent.com>
90800
90801         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90802         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90803
90804 2002-06-22  Jim Meyering  <meyering@lucent.com>
90805
90806         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90807
90808         * lib/exitfail.c, exitfail.h: Likewise.
90809         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90810
90811         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90812         of fnmatch.h.
90813         (EXTRA_DIST): Add fnmatch_loop.c.
90814         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90815
90816         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90817         * lib/fnmatch.c: Update from diffutils-2.8.2.
90818         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90819         * lib/fnmatch.h: Remove file.
90820
90821 2002-06-21  Jim Meyering  <meyering@lucent.com>
90822
90823         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90824         * m4/mbrtowc.m4: Likewise.
90825
90826         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90827         * m4/mbswidth.m4: Reflect name change:
90828         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90830
90831         * m4/lib-link.m4: Update from gettext-0.11.2.
90832         * m4/gettext.m4: Likewise.
90833
90834         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90835         From Alfred M. Szmidt.
90836
90837 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90838
90839         * lib/file-type.h: Report an error if neither S_ISREG nor
90840         S_IFREG is defined, instead of using a test specific to glibc
90841         2.2.  This should be safe, since POSIX requires S_ISREG and
90842         Unix Version 7 had S_IFREG.  We don't need to check for
90843         <sys/types.h> since we don't use any symbols that it defines.
90844
90845 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90846
90847         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90848         $@-t, so that each temporary file name is unique and valid in the first
90849         8 characters, for operation under DOS.
90850
90851 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90852
90853         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90854
90855 2002-06-15  Jim Meyering  <meyering@lucent.com>
90856
90857         Work even with DJGPP 2.03, which lacks support for symlinks.
90858         From Richard Dawe.
90859         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90860         is defined.
90861         * lib/lchown.c (S_ISLNK): Likewise.
90862
90863 2002-06-15  Jim Meyering  <meyering@lucent.com>
90864
90865         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90866         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90867         have been included before this file.
90868
90869 2002-06-14  Jim Meyering  <meyering@lucent.com>
90870
90871         * lib/file-type.h: Use the version from diffutils-2.8.2.
90872         * lib/file-type.c: Likewise.
90873
90874 2002-06-07  Jim Meyering  <meyering@lucent.com>
90875
90876         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90877         They're needed at least for NetBSD 1.5.2.
90878         ($statxfs_includes): Include those same headers.
90879         ($statxfs_includes): Include sys/vfs.h if available.
90880         ($statxfs_includes): Likewise for sys/statvfs.h.
90881         Check for the following members in both structs statfs and statvfs:
90882         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90883
90884 2002-06-01  Jim Meyering  <meyering@lucent.com>
90885
90886         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90887         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90888
90889 2002-05-28  Jim Meyering  <meyering@lucent.com>
90890
90891         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90892         Reported by Volker Borchert.
90893
90894 2002-05-27  Jim Meyering  <meyering@lucent.com>
90895
90896         Fix a problem seen only on nonconforming systems whereby ls.c's
90897         use of localtime, and then of gettimeofday would cause trouble:
90898         the localtime call used to initialize rpl_gettimeofday's save
90899         mechanism would clobber ls's current local time information so
90900         that in any long listing the first file would always be listed
90901         with date 1970-01-01.  Analysis by Volker Borchert.
90902
90903         * lib/gettimeofday.c (localtime): Undefine.
90904         (rpl_localtime): New function.
90905
90906 2002-05-27  Jim Meyering  <meyering@lucent.com>
90907
90908         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90909         localtime.
90910
90911         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90912         use the replacement function; it wouldn't resolve at link time.
90913         Reported by Volker Borchert.
90914
90915 2002-05-22  Jim Meyering  <meyering@lucent.com>
90916
90917         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90918         file-type.h.
90919         * lib/file-type.h: New file.
90920         * lib/file-type.c (file_type): New file/function.  Extracted from
90921         diffutils.
90922
90923 2002-04-30  Jim Meyering  <meyering@lucent.com>
90924
90925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90926
90927 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90928
90929         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90930
90931 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90932
90933         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90934         Do not check for alloca.h (no longer used) or stdbool.h (was never
90935         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90936
90937 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90938
90939         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90940
90941 2002-04-29  Jim Meyering  <meyering@lucent.com>
90942
90943         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90944         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90945         Use AC_FUNC_STRNLEN here instead.
90946
90947         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90948         With autoconf-2.53a, it's part of AC_PROG_CC.
90949
90950 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90951
90952         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90954
90955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90956
90957         * lib/sig2str.h, lib/sig2str.c: New files.
90958         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90959
90960 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90961
90962         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90963         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90964         of 127, since 64 is the largest conceivable number for ancient
90965         nonstandard hosts.
90966         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90967
90968 2002-04-28  Jim Meyering  <meyering@lucent.com>
90969
90970         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90971
90972 2002-04-24  Jim Meyering  <meyering@lucent.com>
90973
90974         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90975         (jm_PREREQ): Use it.
90976
90977         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90978         mach/mach.h fcntl.h.
90979         Check for this function: setlocale.
90980
90981 2002-04-24  Jim Meyering  <meyering@lucent.com>
90982
90983         * lib/gettext.h: New file, from Gettext.
90984         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90985         (libfetish_a_SOURCES): Add gettext.h.
90986
90987 2002-04-16  Jim Meyering  <meyering@lucent.com>
90988
90989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90990         ut_pid, ut_id, ut_exit.
90991
90992 2002-04-16  Jim Meyering  <meyering@lucent.com>
90993
90994         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90995         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90996         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90997
90998 2002-04-12  Jim Meyering  <meyering@lucent.com>
90999
91000         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91001         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91002         existence of the getmntinfo function.  Needed for Darwin 5.3.
91003
91004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91005         This is necessary at least on Darwin 5.3.
91006
91007         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91008         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91009         strnlen.o in the library, and that makes some versions of ranlib
91010         object.
91011
91012 2002-04-12  Jim Meyering  <meyering@lucent.com>
91013
91014         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91015
91016 2002-04-09  Jim Meyering  <meyering@lucent.com>
91017
91018         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91019         to be more precise.  Rather than saying we're checking whether the
91020         function `works', say what we're testing.
91021         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91022         Reported by Bruno Haible.
91023
91024 2002-03-10  Jim Meyering  <meyering@lucent.com>
91025
91026         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91027         Suggestion from Santiago Vila.
91028
91029 2002-03-08  Jim Meyering  <meyering@lucent.com>
91030
91031         * lib/rename.c: Mention that this wrapper is needed also on
91032         mips-dec-ultrix4.4 systems.
91033
91034 2002-03-02  Jim Meyering  <meyering@lucent.com>
91035
91036         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91037         not HAVE_CLOCK_SETTIME.
91038
91039 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91040
91041         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91042         Check for clock_settime.
91043
91044 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91045
91046         * lib/nanosleep.h: Rename to....
91047         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91048
91049         * lib/gettime.c: New file.
91050         * lib/settime.c: New file.
91051         * lib/stime.c: Remove.
91052
91053         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91054         timespec.h.  Remove nanosleep.h.
91055
91056 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91057
91058         * m4/acl.m4: New file.
91059         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91060         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91061
91062 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91063
91064         * lib/acl.c, lib/acl.h: New files.
91065         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91066
91067 2002-02-24  Jim Meyering  <meyering@lucent.com>
91068
91069         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91070         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91071         cause trouble.  Reported by Nelson Beebe.
91072
91073 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91074
91075         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91076         compilers that don't know that xalloc_die never returns.
91077
91078 2002-02-20  Jim Meyering  <meyering@lucent.com>
91079
91080         * lib/getdate.c: Regenerate using bison-1.33.
91081
91082 2002-02-17  Jim Meyering  <meyering@lucent.com>
91083
91084         * config/config.guess (main): Don't use `head -1'; it's no longer
91085         portable. Use `sed 1q' instead.
91086
91087 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91088
91089         * m4/codeset.m4: Upgrade to gettext-0.11.
91090         * m4/gettext.m4: Upgrade to gettext-0.11.
91091         * m4/glibc21.m4: Upgrade to gettext-0.11.
91092         * m4/iconv.m4: Upgrade to gettext-0.11.
91093         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91094         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91095         * m4/lib-ld.m4: New file, from gettext-0.11.
91096         * m4/lib-link.m4: New file, from gettext-0.11.
91097         * m4/lib-prefix.m4: New file, from gettext-0.11.
91098         * m4/progtest.m4: Upgrade to gettext-0.11.
91099
91100 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91101
91102         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91103         (jm_PREREQ): Use it.
91104
91105 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91106
91107         * lib/posixver.c, lib/posixver.h: New files.
91108         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91109
91110 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91111             Bruno Haible  <bruno@clisp.org>
91112
91113         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91114         (fwrite_success_callback): New declaration.
91115         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91116         print_unicode_char. Call failure callback instead of error.
91117         (fwrite_success_callback): New function.
91118         (exit_failure_callback): New function.
91119         (fallback_failure_callback): New function.
91120         (print_unicode_char): Call unicode_to_mb.
91121
91122 2002-01-26  Jim Meyering  <meyering@lucent.com>
91123
91124         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91125         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91126
91127 2002-01-26  Jim Meyering  <meyering@lucent.com>
91128
91129         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91130
91131 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91132
91133         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91134
91135 2002-01-22  Jim Meyering  <meyering@lucent.com>
91136
91137         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91138         Otherwise, some versions of automake would omit the rule that makes
91139         Makefile from Makefile.in.
91140
91141 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91142
91143         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91144         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91145         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91146         (memcoll): Set errno to zero if there is no error.
91147
91148         * lib/quotearg.c (quotearg_buffer_restyled):
91149         Fix bug with quoting buffers containing NUL when backslashing escapes.
91150         This bug was exposed by the other changes in this patch.
91151         (quotearg_n_options): New arg ARGSIZE.
91152         All callers changed.
91153         (quoting_options_from_style): New function.
91154         (quotearg_n_style): Use it.
91155         (quotearg_n_style_mem): New function.
91156
91157         * lib/quotearg.h (quotearg_n_style_mem): New function.
91158
91159 2002-01-19  Jim Meyering  <meyering@lucent.com>
91160
91161         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91162         Remove useless quotes: DF_PROG="df".
91163         * m4/strnlen.m4: New file.
91164
91165 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91166
91167         * lib/backupfile.c (ISDIGIT): Comment fix.
91168         * lib/getdate.y (ISDIGIT): Likewise.
91169         * lib/posixtm.c (ISDIGIT, year): Likewise.
91170         * lib/strverscmp.c (ISDIGIT): Likewise.
91171         * lib/userspec.c (ISDIGIT): Likewise.
91172
91173 2002-01-16  Jim Meyering  <meyering@lucent.com>
91174
91175         * lib/getdate.y: Add three semicolons, each just before a closing
91176         brace. Bison (as of version 1.31) no longer papers over that mistake.
91177
91178 2002-01-05  Jim Meyering  <meyering@lucent.com>
91179
91180         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91181
91182 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91183
91184         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91185         not silently exit merely because the output buffer happens to
91186         have nothing pending.
91187
91188 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91189
91190         See the big note in ../ChangeLog.
91191         * lib/human.c (suffixes): Prefer K to k for 1024.
91192         (generate_suffix_backwards): New function.
91193         (human_readable_inexact): Use it.
91194         * lib/xstrtol.c (__xstrtol): If there is no number but there
91195         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91196         Accept 'K' as well as 'k'.
91197
91198 2001-12-15  Jim Meyering  <meyering@lucent.com>
91199
91200         * lib/regex.h (__restrict_arr): Update from libc.
91201
91202         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91203         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91204         (STREQ): Define.
91205
91206 2001-12-14  Jim Meyering  <meyering@lucent.com>
91207
91208         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91209         Suggestion from Bruno Haible.
91210
91211 2001-12-10  Jim Meyering  <meyering@lucent.com>
91212
91213         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91214         xrealloc, Instead, include "xalloc.h".
91215         (initbuffer): Don't cast xmalloc return value to char*.
91216         (readline): Reword comment.
91217         Don't cast xrealloc return value to char*
91218         Return NULL, not 0.
91219
91220 2001-12-09  Jim Meyering  <meyering@lucent.com>
91221
91222         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91223         about `signed and unsigned type in conditional expression'.
91224         * lib/posixtm.c (posix_time_parse): Likewise.
91225
91226         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91227
91228         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91229         to avoid a pedantic warning.
91230
91231         * lib/getstr.c: Don't include assert.h.
91232         (getstr): Remove warning-evoking assertions.
91233         Return -1 if offset parameter is out of bounds.
91234         Change the type of a local from int to size_t.
91235
91236         * lib/strftime.c (my_strftime_localtime_r): Include this function
91237         definition in the `#if ! HAVE_TM_GMTOFF' block.
91238
91239         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91240         Include xalloc.h instead.
91241
91242 2001-12-02  Jim Meyering  <meyering@lucent.com>
91243
91244         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91245         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91246         included.
91247
91248         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91249         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91250
91251 2001-11-30  Akim Demaille  <akim@epita.fr>
91252
91253         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91254         before being defined.
91255
91256 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91257
91258         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91259         First arg is int, not unsigned.
91260         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91261         (SIZE_MAX, UINT_MAX): New macros.
91262         (quotearg_n_options): Abort if N is negative.
91263         Avoid overflow check on hosts where size_t is 64 bits and int
91264         is 32 bits, as overflow is impossible there.
91265         Fix off-by-one typo that caused unnecessary reallocation.
91266
91267 2001-11-27  Jim Meyering  <meyering@lucent.com>
91268
91269         * lib/tempname.c: Merge with version from libc.
91270         * lib/regex.c: Likewise.
91271
91272         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91273         systems for which STDC_HEADERS is 0, it was not included, resulting in
91274         a warning about an integer-to-pointer conversion problem with getenv.
91275         Reported by Volker Borchert.
91276
91277 2001-11-26  Jim Meyering  <meyering@lucent.com>
91278
91279         * lib/gtod.h: Remove file.
91280         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91281         * lib/gettimeofday.c: Don't include gtod.h.
91282         (GTOD_init): Remove function.
91283         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91284         Suggestion from Volker Borchert.
91285
91286 2001-11-23  Jim Meyering  <meyering@lucent.com>
91287
91288         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91289         it.
91290         * lib/hash.c (struct hash_table): Define it here instead.
91291
91292 2001-11-22  Jim Meyering  <meyering@lucent.com>
91293
91294         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91295
91296 2001-11-20  Jim Meyering  <meyering@lucent.com>
91297
91298         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91299         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91300
91301 2001-11-19  Jim Meyering  <meyering@lucent.com>
91302
91303         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91304         directory.  Use "conftestXXXXXX" as the template.
91305         Suggestion from Paul Eggert.
91306
91307         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91308         immediately, so the test doesn't mistakenly hit the max-open-files
91309         limit.
91310
91311 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91312
91313         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91314         (TEMPORARIES): New macro.
91315         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91316         removes an artificial limitation (e.g. HP-UX 10.20, where
91317         TMP_MAX is 17576).
91318
91319 2001-11-18  Jim Meyering  <meyering@lucent.com>
91320
91321         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91322
91323 2001-11-18  Jim Meyering  <meyering@lucent.com>
91324
91325         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91326         on SunOS 4.
91327
91328         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91329         files will be created before anything else.
91330
91331 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91332
91333         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91334         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91335
91336 2001-11-17  Jim Meyering  <meyering@lucent.com>
91337
91338         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91339         Prompted by a report from Bob Proulx.
91340
91341         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91342         Instead, require UTILS_FUNC_MKSTEMP.
91343
91344 2001-11-17  Jim Meyering  <meyering@lucent.com>
91345
91346         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91347         Now, that's done as part of AC_FUNC_STRTOD.
91348
91349 2001-11-17  Jim Meyering  <meyering@lucent.com>
91350
91351         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91352         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91353         rather than group writable.  Patch by Juan F. Codagnone.
91354
91355         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91356         xrealloc, Instead, include "xalloc.h".
91357
91358         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91359         Remove explicit declarations of xmalloc, xrealloc,
91360         and xstrdup.  Instead, include "xalloc.h".
91361
91362         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91363         unlocked-io.h.
91364         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91365         Likewise.
91366         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91367
91368         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91369         Reported by Padraig Brady.
91370
91371         * lib/mkstemp.c: #undef mkstemp.
91372         Include config.h.
91373         (rpl_mkstemp): Rename from mkstemp.
91374         Protoize.
91375
91376 2001-11-16  Jim Meyering  <meyering@lucent.com>
91377
91378         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91379         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91380         determine the amount of total physical memory, use pstat_getstatic.
91381         HPUX-11 doesn't define _SC_PHYS_PAGES.
91382         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91383         If sysconf couldn't be used to determine the amount of available
91384         physical memory, use both pstat_getstatic and pstat_getdynamic.
91385         Based on a patch from Bob Proulx.
91386
91387 2001-11-10  Jim Meyering  <meyering@lucent.com>
91388
91389         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91390         (jm_PREREQ): Use it.
91391
91392 2001-11-09  Jim Meyering  <meyering@lucent.com>
91393
91394         * m4/jm-macros.m4: Require autoconf-2.52f.
91395         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91396         Use these AC_-prefixed names, not the AM_-prefixed ones.
91397
91398         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91399
91400 2001-11-05  Jim Meyering  <meyering@lucent.com>
91401
91402         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91403
91404 2001-11-04  Jim Meyering  <meyering@lucent.com>
91405
91406         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91407         $DEFS.
91408
91409 2001-11-03  Jim Meyering  <meyering@lucent.com>
91410
91411         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91412         of AC_DEFUN.
91413
91414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91415         know the name of the variable in the macro definition.
91416
91417 2001-11-03  Jim Meyering  <meyering@lucent.com>
91418
91419         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91420         in argmatch_to_argument call.
91421
91422         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91423         argument.
91424
91425         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91426         e.g., a fault due to an attempt to free a NULL pointer.
91427
91428 2001-11-01  Jim Meyering  <meyering@lucent.com>
91429
91430         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91431         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91432
91433 2001-11-01  Jim Meyering  <meyering@lucent.com>
91434
91435         * lib/dirfd.c, lib/dirfd.h: New files.
91436         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91437
91438         * lib/hash.c (hash_print) [TESTING]: Clean up.
91439
91440 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91441
91442         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91443         to avoid a warning if -Wall.
91444
91445 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91446
91447         * README: New file
91448         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91449         (per RMS's instructions, this is now the canonical source)
91450         * lgpl/, gpl/: New directories.
91451
91452 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91453
91454         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91455
91456 2001-10-21  Jim Meyering  <meyering@lucent.com>
91457
91458         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91459         this code would end up calling gettext even in packages built
91460         with --disable-nls.
91461         * lib/getopt.c (_): Likewise.
91462         * lib/regex.c (_): Likewise.
91463
91464 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91465
91466         * m4/error.m4 (jm_PREREQ_ERROR):
91467         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91468         AC_FUNC_STRERROR_R does that.
91469         Check for strerror declaration.
91470
91471         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91472         are supposed to have them these days.
91473         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91474         Merge changes from latest Autoconf CVS.
91475         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91476         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91477         POSIX decided to standardize on the int flavor of strerror_r.
91478
91479 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91480
91481         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91482         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91483         Use strerror_r that is only a macro, even if it is not a function.
91484         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91485         (private_strerror): Use prototypes, not old-style function definition.
91486         (print_errno_message): New function.
91487         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91488         char*-flavored one.
91489         (error_tail, error, error_at_line): Use it.
91490
91491 2001-10-11  Jim Meyering  <meyering@lucent.com>
91492
91493         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91494         and quote_n (1, ... to avoid clobbering a buffer.
91495
91496 2001-10-05  Jim Meyering  <meyering@lucent.com>
91497
91498         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91499         hash-pjw.h.
91500         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91501         * lib/hash-pjw.h: New file.
91502
91503 2001-09-30  Jim Meyering  <meyering@lucent.com>
91504
91505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91506         `struct fsstat' has the `f_fstypename' member.
91507         Use that to define FS_TYPE, which is now used to make
91508         the getfsstat link test tighter.
91509
91510 2001-09-30  Jim Meyering  <meyering@lucent.com>
91511
91512         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91513         Include <sys/ucred.h>, for Apple Darwin.
91514         Include sys/mount.h and sys/fs_types.h only if available.
91515         (FS_TYPE): Define.
91516         (read_filesystem_list): Use FS_TYPE.
91517
91518 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91519
91520         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91521         a boolean context.
91522
91523 2001-09-29  Jim Meyering  <meyering@lucent.com>
91524
91525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91526         [one-argument getmntent function]): Include stdio.h before mntent.h.
91527         SunOS 4.1.x needs it for the declaration of `FILE'.
91528         Patch by Volker Borchert.
91529
91530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91531         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91532         sys/fs_types.h, and make the link-test for getfsstat guard #include
91533         directives with appropriate #if HAVE_*_H tests so that we can
91534         detect getfsstat on Apple Darwin1.3.7 systems.
91535         Reported by Nelson Beebe.
91536         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91537
91538 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91539
91540         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91541         #defines strtoimax.  Also treat the other strto* functions
91542         like strtoimax.
91543
91544         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91545         Check for strtoul and strtoumax,
91546         as those declarations are made even in the signed case.
91547         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91548         Likewise, for strtol and strtoimax.
91549
91550 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91551
91552         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91553         #defines strtoimax.  Also treat the other strto* functions
91554         like strtoimax.
91555
91556         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91557         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91558         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91559
91560 2001-09-26  Jim Meyering  <meyering@lucent.com>
91561
91562         Most macros in unlocked-io.h had the wrong number of arguments.
91563         * lib/gen-uio: New script.
91564         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91565         * lib/unlocked-io.hin: Remove file.
91566         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91567         rather than trying to embed it here.
91568         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91569         Reported by Padraig Brady.
91570
91571 2001-09-25  Volker Borchert  <bt@teknon.de>
91572
91573         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91574         `result'.
91575
91576 2001-09-24  Jim Meyering  <meyering@lucent.com>
91577
91578         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91579
91580 2001-09-23  Jim Meyering  <meyering@lucent.com>
91581
91582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91583         instead of the mere test for existence of mntent.h.  The latter
91584         would get a false-positive on AIX 3.4 systems.
91585         In the outer getmntent if-block, don't die if neither of the getmntent
91586         tests succeeds.  Instead, just fall through and continue with the
91587         remaining tests.
91588
91589 2001-09-23  Jim Meyering  <meyering@lucent.com>
91590
91591         * lib/mountlist.c: Remove useless parentheses in #if directives.
91592         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91593         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91594
91595 2001-09-22  Jim Meyering  <meyering@lucent.com>
91596
91597         * m4/gettext.m4: New file.  From gettext.
91598         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91599         * m4/progtest.m4: Likewise
91600         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91601         * m4/glibc21.m4: Likewise.
91602
91603         * m4/libintl.m4: Remove.  No longer used.
91604
91605 2001-09-22  Jim Meyering  <meyering@lucent.com>
91606
91607         * lib/localcharset.c: Update from latest gettext.
91608         * lib/config.charset: Likewise.
91609
91610 2001-09-20  Jim Meyering  <meyering@lucent.com>
91611
91612         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91613         strtoimax.
91614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91615         strtoumax.
91616
91617 2001-09-20  Jim Meyering  <meyering@lucent.com>
91618
91619         * lib/xstrtol.c (strtoimax): Guard declaration with
91620         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91621         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91622         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91623         (strtoumax): Likewise, for completeness (it wasn't necessary).
91624
91625 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91626
91627         * lib/strtoimax.c (HAVE_LONG_LONG):
91628         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91629         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91630         to work around bug in IBM C compiler.
91631
91632 2001-09-17  Jim Meyering  <meyering@lucent.com>
91633
91634         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91635         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91636         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91637         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91638         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91639         whenever the right hand side need not be expanded by the shell.
91640
91641 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91642
91643         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91644         library.  It's not correct, as some older glibcs are buggy.
91645         fnmatch wasn't fixed until glibc 2.2.
91646
91647         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91648         special shell magic here.
91649
91650 2001-09-16  Jim Meyering  <meyering@lucent.com>
91651
91652         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91653         * m4/jm-macros.m4: Require it.
91654
91655 2001-09-16  Jim Meyering  <meyering@lucent.com>
91656
91657         * lib/mkdir.c: New file.
91658
91659 2001-09-15  Jim Meyering  <meyering@lucent.com>
91660
91661         * m4/jm-macros.m4: Check for help2man.
91662
91663 2001-09-11  Jim Meyering  <meyering@lucent.com>
91664
91665         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91666         The body, by Paul Eggert, was moved here from configure.in.
91667         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91668
91669 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91670
91671         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91672         (jm_PREREQ): Use it.
91673
91674 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91675
91676         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91677         Use ssize_t, not int, to store result of readlink.
91678         Check for ssize_t overflow as well as size_t overflow,
91679         as POSIX says the result of readlink is implementation-defined
91680         when ssize_t overflows.
91681         Remove unnecessary cast to char*.
91682         Use free+malloc instead of realloc, as the storage doesn't need
91683         to be preserved and it's clearer and can be more efficient that way.
91684         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91685         * lib/xreadlink.h (xreadlink): Update prototype.
91686
91687 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91688
91689         * lib/xgetcwd.c: Revert some of the previous change; intead,
91690         fix the HAVE_GETCWD_NULL code to behave more like the
91691         !HAVE_GETCWD_NULL code used to.
91692
91693         Include "xalloc.h".
91694         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91695         invoke xalloc_die.
91696
91697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91698
91699         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91700         sys/param.h, as pathmax.h includes them.
91701
91702 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91703
91704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91705         (jm_PREREQ_XGETCWD): New macro.
91706
91707         * m4/getcwd.m4: New file.
91708
91709 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91710
91711         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91712         like the HAVE_GETCWD_NULL code.
91713         Include pathmax.h if not HAVE_GETCWD.
91714         Do not include xalloc.h.
91715         (INITIAL_BUFFER_SIZE): New symbol.
91716         Do not use xmalloc / xrealloc, since the caller is responsible for
91717         handling errors.  Preserve errno around `free' during failure.
91718         Do not overrun buffer when using getwd.
91719
91720 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91721
91722         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91723         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91724         getcwd (NULL, 0).
91725
91726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91727
91728         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91729         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91730         spotted by Jim Meyering.
91731
91732 2001-09-03  Jim Meyering  <meyering@lucent.com>
91733
91734         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91735         failure.
91736
91737 2001-09-02  Jim Meyering  <meyering@lucent.com>
91738
91739         * lib/error.c: Update from GNU libc.
91740
91741 2001-09-01  Jim Meyering  <meyering@lucent.com>
91742
91743         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91744         Used by df.
91745
91746 2001-09-01  Jim Meyering  <meyering@lucent.com>
91747
91748         * lib/xreadlink.c: New file.
91749         * lib/xreadlink.h: New file.
91750         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91751         xreadlink.h.
91752
91753         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91754         doesn't conflict with sparc Solaris 7's definition in
91755         /usr/include/sys/int_types.h.
91756
91757         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91758         files.
91759         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91760         and strncasecmp as r-values.  Unixware didn't have declarations.
91761
91762 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91763
91764         * lib/xstrtol.h: Add copyright notice.
91765         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91766         LONGINT_INVALID_SUFFIX_CHAR.
91767
91768 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91769
91770         * lib/xstrtol.c (strtoimax): New decl.
91771
91772 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91773
91774         * lib/xgetcwd.c: Don't include pathmax.h.
91775         Include stdlib.h and unistd.h if available.
91776         Include xalloc.h.
91777         (xmalloc, xstrdup, free): Remove decls.
91778         (xgetcwd): Don't assume sizes fit in unsigned.
91779         Check for overflow when computing sizes.
91780         Simplify reallocation code.
91781
91782 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91783
91784         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91785         a directory's st_size can have an arbitrary value, so the old
91786         usage could waste an arbitrary amount of memory.  All uses
91787         changed.
91788         * lib/savedir.h: Update prototype.
91789
91790 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91791
91792         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91793
91794         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91795         old strtoimax.c.
91796
91797         Also, make the following further changes to make this file's
91798         configuration more similar to that of strtol.c:
91799         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91800         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91801         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91802         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91803         changed to signed values.
91804
91805         And make the following changes as well:
91806         Fix copyright notice, as 1999 was missing.
91807         (verify): New macro.
91808         (strtoimax): Check sizes at compile-time, not run-time.
91809         Prefer strtol to strtoll if both work.
91810         (main): Remove; it was not that useful and was a pain to maintain.
91811
91812         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91813
91814 2001-08-31  Jim Meyering  <meyering@lucent.com>
91815
91816         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91817         Use an initial, malloc'd, buffer of length 128 rather than
91818         a statically allocated one of length 1024.
91819
91820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91821
91822         Simplify code, partly by assuming autoconf 2.52 semantics.
91823
91824         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91825
91826         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91827         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91828         All uses removed.
91829         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91830         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91831         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91832         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91833         jm_AC_HEADER_INTTYPES_H.
91834         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91835
91836         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91837
91838         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91839         Quote first arg of AC_DEFUN.
91840         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91841         since they are needed to parse the include file even if we need
91842         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91843         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91844         but with opposite signedness.
91845
91846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91847
91848         Merge 'exclude' changes from tar 1.13.22.
91849         This fixes one or two unlikely storage allocation overflow bugs,
91850         but doesn't change user-visible behavior otherwise.
91851
91852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91853
91854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91855         (jm_PREREQ_EXCLUDE): New macro.
91856
91857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91858
91859         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91860         tm to be declared.
91861
91862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91863
91864         * lib/hash.c: Remove '2001' from copyright notice.
91865
91866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91867
91868         * lib/full-write.h: New file.
91869         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91870         * lib/full-write.c: Correct credits, as cccp.c no longer
91871         exists and anyway it was so heavily changed from the old cccp
91872         code as to be unrecognizable.  Include full-write.h.
91873         (full_write): Return size_t, with short writes meaning failure.
91874         All callers changed.  This fixes a bug with large buffers
91875         on 64-bit hosts.
91876         * lib/utime.c: Include full-write.h.
91877
91878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91879
91880         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91881         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91882         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91883         Include if available.
91884         (<xalloc.h>): Include
91885         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91886         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91887         collide with FNM macros.
91888         (struct patopts): New struct.
91889         (struct exclude): Use it, as exclude patterns now come with options.
91890         (new_exclude): Support above changes.
91891         (new_exclude, add_exclude_file):
91892         Initial size must now be a power of two to simplify overflow checking.
91893         (free_exclude, fnmatch_no_wildcards): New function.
91894         (excluded_filename): No longer requires options arg, as the options
91895         are determined by add_exclude.  Now returns bool, not int.
91896         (excluded_filename, add_exclude):
91897         Add support for the fancy new exclusion options.
91898         (add_exclude, add_exclude_file): Now takes int options arg.
91899         Check for arithmetic overflow when computing sizes.
91900         (add_exclude_file): xrealloc might modify errno, so don't
91901         realloc until after errno might be used.
91902
91903         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91904         New macros.
91905         (free_exclude): New decl.
91906         (add_exclude, add_exclude_file): Now takes int options arg.
91907         (excluded_filename): No longer requires options arg, as the options
91908         are determined by add_exclude.  Now returns bool, not int.
91909
91910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91911
91912         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91913
91914 2001-08-27  Jim Meyering  <meyering@lucent.com>
91915
91916         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91917
91918         * lib/version-etc.c (N_): Remove definition.
91919         Revert most of last change.
91920         Instead, simply don't mark the `Copyright...' string for translation.
91921         Based on advice from Paul Eggert.
91922
91923         * lib/strtoxmax.c: Tweak comment.
91924
91925 2001-08-26  Jim Meyering  <meyering@lucent.com>
91926
91927         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91928
91929         * m4/xstrtoimax.m4: New file.
91930         * m4/xstrtoumax.m4: Add comments explaining why we
91931         AC_REPLACE_FUNCS(strtol).
91932
91933 2001-08-26  Jim Meyering  <meyering@lucent.com>
91934
91935         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91936         of copyright with `%s' so translators don't get an untranslated
91937         message in 2002.
91938         (COPYRIGHT_YEAR): Define.
91939         (version_etc): Use fprintf rather than fputs.
91940         Suggestion from Ulrich Drepper.
91941
91942         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91943
91944         * lib/strtoll.c: New file, from GNU libc.
91945         * lib/xstrtoimax.c: New file.
91946
91947         * lib/xstrtol.h: Add xstrtoimax.
91948         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91949         * lib/strtoimax.c: New file.  Likewise, but first define
91950         STRTOUXMAX_SIGNED.
91951
91952         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91953         ...
91954         * lib/strtoxmax.c: ... then renamed to this.
91955
91956 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91957
91958         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91959         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91960         (jm_AC_TYPE_INTMAX_T): New macro.
91961         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91962
91963         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91964
91965         * m4/longlong.m4: Renamed from ulonglong.m4.
91966         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91967         * m4/uintmax_t.m4: Removed.
91968
91969 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91970
91971         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91972         Port to Solaris 8, where 'sed' requires a space after the 'r'
91973         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91974         Redirect output to $tmp just once.
91975
91976 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91977
91978         * lib/addext.c (<errno.h>): Include.
91979         (errno): Declare if not defined.
91980         (addext): Work correctly when pathconf returns -1 and leaves
91981         errno alone because there is no limit.  Also, work even if
91982         pathconf returns a value greater than SIZE_MAX.
91983
91984 2001-08-12  Jim Meyering  <meyering@lucent.com>
91985
91986         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91987         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91988         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91989         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91990         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91991         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91992         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91993         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91994         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91995         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91996         utime.m4, utimes.m4, xstrtoumax.m4:
91997         Quote the first argument in each use of AC_DEFUN.
91998
91999 2001-08-12  Jim Meyering  <meyering@lucent.com>
92000
92001         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92002         Simply `return getcwd (NULL, 0);'.
92003         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92004         Use 1300 as initial value for length, not PATH_MAX.
92005
92006         * lib/pathmax.h: Clean up cpp syntax.
92007
92008 2001-08-12  Jim Meyering  <meyering@lucent.com>
92009
92010         * lib/gettimeofday.c: New file.
92011         * lib/gtod.h: New file.
92012         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92013
92014 2001-08-05  Jim Meyering  <meyering@lucent.com>
92015
92016         * m4/jm-macros.m4: Require autoconf-2.52.
92017
92018 2001-08-04  Jim Meyering  <meyering@lucent.com>
92019
92020         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92021         stmt, to get in sync with glibc.
92022
92023 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92024
92025         The following changes are from gettext 0.10.39 as maintained by
92026         Bruno Haible.
92027
92028         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92029         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92030         with inverted sense.  All uses changed.
92031
92032         * lib/mbswidth.c: Don't include <limits.h>.
92033         Include <stdlib.h> and <string.h> unconditionally.
92034         (iswcntrl, mbsinit, ISCNTRL): New macros.
92035         (mbsnwidth): Use K&R style function declarations.
92036         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92037         can optimize it when MB_CUR_MAX == 1.
92038         The width of control characters is zero, not 1.
92039
92040 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92041
92042         The following changes are from gettext 0.10.39 as maintained by
92043         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92044
92045         * m4/codeset.m4: Upgrade to serial AM1.
92046         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92047         all uses changed.  Quote first arg of AC_DEFUN.
92048         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92049
92050         * m4/iconv.m4: Upgrade to serial AM2.
92051         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92052         Add --with-libconv-prefix.
92053         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92054         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92055         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92056         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92057         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92058
92059         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92060         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92061         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92062         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92063         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92064         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92065         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92066         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92067         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92068
92069         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92070         string.h any more.
92071
92072         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92073         not the default value.
92074
92075         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92076         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92077         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92078         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92079         Also check for iswcntrl, used for wcwidth fallback.
92080         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92081         to Autoconf 2.13.
92082
92083 2001-08-03  Jim Meyering  <meyering@lucent.com>
92084
92085         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92086         as it was in the original.  Reported by Paul Eggert.
92087
92088 2001-07-16  Jim Meyering  <meyering@lucent.com>
92089
92090         * m4/gettimeofday.m4: New file.
92091         Prompted by a report from Bernhard Baehr.
92092
92093 2001-07-15  Jim Meyering  <meyering@lucent.com>
92094
92095         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92096         stuff. Now it's in ../Makefile.cfg.
92097
92098 2001-07-15  Jim Meyering  <meyering@lucent.com>
92099
92100         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92101         (BUILT_SOURCES): Add unlocked-io.h.
92102         (io_functions): Define.
92103         (unlocked-io.h): New rule.
92104         (DISTCLEANFILES): Add unlocked-io.h.
92105         (all-local): Depend on unlocked-io.h, to ensure it is created.
92106
92107         * lib/unlocked-io.hin: New file
92108
92109         * lib/regex.c: Update from glibc.
92110
92111 2001-07-05  Jim Meyering  <meyering@lucent.com>
92112
92113         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92114         recommendation.
92115         (libfetish_a_SOURCES): Put all .h files here instead.
92116         Remove a thus-exposed (better checks in automake) duplicate and
92117         two unnecessary .h files.
92118
92119 2001-07-04  Jim Meyering  <meyering@lucent.com>
92120
92121         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92122         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92123         distcheck failure.
92124
92125 2001-07-02  Jim Meyering  <meyering@lucent.com>
92126
92127         The following changes were prompted by suggestions from Bruno Haible.
92128
92129         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92130         is now generated.
92131         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92132         definition of EXTRA_DIST.
92133         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92134         ensure that the generated file is created/updated whenever the list
92135         of $(unlocked_functions) is changed.
92136         (jm-glibc-io.m4): New rule.
92137         (unlocked-io.h): New rule -- currently unused.
92138
92139 2001-06-24  Jim Meyering  <meyering@lucent.com>
92140
92141         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92142         unmatched right bracket, rather than kludging it with an extra,
92143         falsely-matching quote in a comment.  Patch by Akim Demaille.
92144
92145 2001-06-11  Jim Meyering  <meyering@lucent.com>
92146
92147         * lib/regex.c: Update from GNU libc.
92148
92149 2001-05-27  Jim Meyering  <meyering@lucent.com>
92150
92151         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92152         Check for ut_type in struct utmp.
92153
92154 2001-05-27  Jim Meyering  <meyering@lucent.com>
92155
92156         * lib/readutmp.h (UT_TYPE): Define.
92157
92158 2001-05-24  Jim Meyering  <meyering@lucent.com>
92159
92160         * lib/argmatch.c: Include "quote.h".
92161         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92162         quote function.  Reported by Göran Uddeborg.
92163
92164 2001-05-22  Jim Meyering  <meyering@lucent.com>
92165
92166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92167         now that we use the package-supplied version unconditionally.
92168         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92169
92170 2001-05-21  Jim Meyering  <meyering@lucent.com>
92171
92172         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92173         shell syntax errors.
92174
92175 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92176
92177         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92178
92179 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92180
92181         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92182         Don't bother to check library strftime, since
92183         we'll be using our own my_strftime function anyway.
92184         Define my_strftime instead of strftime.
92185
92186 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92187
92188         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92189         which is not yet declared.
92190
92191 2001-05-15  Jim Meyering  <meyering@lucent.com>
92192
92193         * m4/regex.m4: Use proper quoting so brackets appear in the test
92194         program.
92195         Reported by, and with help from, Bruno Haible.
92196
92197 2001-05-13  Jim Meyering  <meyering@lucent.com>
92198
92199         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92200         undefined.
92201
92202 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92203
92204         dirname code cleanup.  base_name now behaves more compatibly
92205         with POSIX basename when given file names that have trailing
92206         slashes, and similarly for dir_name.  Add new primitives
92207         base_len and dir_len.  Put the directory-name-related decls
92208         into dirname.h.
92209
92210         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92211         * lib/backupfile.c (base_name): Likewise.
92212         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92213         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92214         * lib/makepath.c (strip_trailing_slashes): Likewise.
92215         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92216         ISSLASH): Likewise.
92217         * lib/rename.c (strip_trailing_slashes): Likewise.
92218         * lib/same.c (base_name): Likewise.
92219         * lib/stripslash.c (ISSLASH): Likewise.
92220
92221         * lib/addext.c: Include <dirname.h> after size_t is defined.
92222         * lib/backupfile.c: Likewise.
92223
92224         * lib/addext.c (addext): Use base_len to trim redundant
92225         trailing slashes instead of doing it ourselves.
92226         But do not trim the last slash if it is not redundant.
92227
92228         * lib/backupfile.c (find_backup_file_name,
92229         max_backup_version): Use base_len instead of rolling it ourselves.
92230         Handle the case of "" and (on DOS) "C:" correctly.
92231
92232         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92233         needed. Include <string.h>, <dirname.h>.
92234         (base_name): Allow file names ending in slashes, other than names
92235         that are all slashes.  In this case, return the basename followed
92236         by the slashes.  This is more general, and can be used in places
92237         where the original base_name purposely had an assertion failure.
92238         (base_len): New function.
92239
92240         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92241         Do not include <assert.h>; no longer needed.
92242         Include xalloc.h.
92243         (memrchr): Remove decl.
92244         (dir_name_r): Remove.
92245         (dir_len): Renamed from dirlen.  All callers changed.
92246         Rewrite in terms of base_name, for simplicity and consistency.
92247         (dir_name): Never return NULL.  All callers changed.
92248         Do not include <stdlib.h> in test program; no longer needed.
92249         return 0; is fine for test program.
92250
92251         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92252         New macros.
92253         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92254
92255         * lib/path-concat.c (path_concat): Use base_len to compute
92256         base length, not strlen; this means we cannot rely on memcpy
92257         to null-terminate.
92258
92259         * lib/same.c (STREQ): Remove.
92260         (same_name): Handle the case where the basename ends in trailing '/'.
92261
92262         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92263         a slash was stripped.  Do not strip the last slash after a
92264         file system prefix.
92265
92266 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92267
92268         * lib/Makefile.am (libfetish_a_SOURCES):
92269         Add strftime.c, since we now compile it on all hosts.
92270
92271         * lib/strftime.c (my_strftime):
92272         Define to nstrftime if emacs, but only if my_strftime is not defined.
92273         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92274         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92275         Add one more extra argument: a nanoseconds value.
92276         All uses changed.
92277         (ns): New macro.
92278         (my_strftime function): Add %N format.
92279         (emacs_strftimeu): Renamed from emacs_strftime,
92280         with extra ut argument.
92281
92282 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92283
92284         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92285
92286 2001-04-21  Jim Meyering  <meyering@lucent.com>
92287
92288         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92289         doesn't interfere.
92290
92291 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92292
92293         * m4/ftruncate.m4: Check for chsize.
92294         Link with ftruncate.o unconditionally if ftruncate is missing.
92295         This was required when cross-compiling to i586-mingw32msvc.
92296
92297 2001-04-08  Jim Meyering  <meyering@lucent.com>
92298
92299         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92300         recomputed; that's necessary when the offset spans a DST transition.
92301         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92302
92303 2001-04-02  Jim Meyering  <meyering@lucent.com>
92304
92305         * lib/regex.h, regex.c: Update from GNU libc.
92306
92307 2001-03-24  Jim Meyering  <meyering@lucent.com>
92308
92309         * m4/jm-macros.m4: Require autoconf-2.49d.
92310
92311 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92312
92313         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92314
92315 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92316
92317         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92318
92319 2001-03-17  Jim Meyering  <meyering@lucent.com>
92320
92321         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92322         now that the version in autoconf is equivalent.
92323         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92324
92325         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92326         Suggestion from Akim Demaille.
92327
92328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92329         (jm_PREREQ_TEMPNAME): New function.
92330
92331 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92332
92333         * lib/tempname.c (uint64_t): Define to uintmax_t if
92334         not defined, and if UINT64_MAX is not defined.
92335         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92336         Reported by John David Anglin.
92337
92338 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92339
92340         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92341         resolve alias if codeset is empty.
92342         * lib/config.charset (BeOS): Use wildcard syntax.
92343
92344 2001-03-13  Jim Meyering  <meyering@lucent.com>
92345
92346         * lib/path-concat.c (path_concat)
92347         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92348         concatenating e.g., `C:' and `foo'.
92349         From Bruno Haible.
92350
92351 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92352
92353         * lib/localcharset.c (locale_charset): Don't use
92354         setlocale(LC_CTYPE,NULL). Don't return NULL.
92355         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92356
92357 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92358
92359         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92360         support for DOS/DJGPP.
92361
92362 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92363
92364         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92365         lacks mkstemp.  Compile our own tempname.c if we compile our own
92366         mkstemp.c, as mkstemp relies on tempname.
92367
92368 2001-03-01  Jim Meyering  <meyering@lucent.com>
92369
92370         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92371         AH_VERBATIM really does output its argument verbatim.
92372
92373 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92374
92375         * lib/Makefile.am (libfetish_a_SOURCES):
92376         Add dup-safer.c, fopen-safer.c.
92377         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92378
92379         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92380         * lib/unistd-safer.h: New files.
92381
92382 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92383
92384         The mkstemp replacement is taken from glibc 2.2.2, with some
92385         portability fixes for use outside glibc, as follows:
92386
92387         * lib/tempname.c (struct_stat64): New macro.
92388         (direxists, __gen_tempname): Use it.
92389         This avoids a portability problem with Solaris 8.
92390
92391         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92392         (<stddef.h>, <stdint.h>, <string.h>):
92393         Include only if STDC_HEADERS || _LIBC.
92394         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92395         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92396         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92397         (__set_errno): Define this macro if <errno.h> doesn't.
92398         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92399         Define these macros if <stdio.h> doesn't.
92400         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92401         Define these macros if <sys/stat.h>
92402         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92403         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92404         __xstat64): Define if not _LIBC.
92405         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92406         (__gen_tempname): Invoke gettimeofday only if
92407         HAVE_GETTIMEOFDAY || _LIBC;
92408         otherwise, fall back on plain "time".
92409         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92410
92411         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92412
92413         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92414
92415 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92416
92417         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92418
92419 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92420
92421         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92422         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92423         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92424         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92425
92426 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92427
92428         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92429         Remove workaround macros for hosts that have mbrtowc but not
92430         mbstate_t, as we now insist on proper declarations for both
92431         before using mbrtowc.
92432
92433 2001-02-17  Jim Meyering  <meyering@lucent.com>
92434
92435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92436         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92437         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92438         UnixWare 7.1.1.
92439
92440         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92441         rather than AC_CACHE_VAL.
92442
92443 2001-02-17  Jim Meyering  <meyering@lucent.com>
92444
92445         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92446         around included file name.
92447
92448         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92449
92450         * lib/strftime.c: Update from GNU libc (the only changes were to
92451         comments).
92452
92453 2001-02-17  Jim Meyering  <meyering@lucent.com>
92454
92455         * lib/regex.c: Update from libc.
92456
92457 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92458
92459         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92460         clash.
92461
92462 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92463
92464         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92465         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92466         Reported by Mark Hounschell via Paul Eggert.
92467
92468 2001-02-07  Jim Meyering  <meyering@lucent.com>
92469
92470         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92471
92472 2001-02-05  Jim Meyering  <meyering@lucent.com>
92473
92474         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92475         it includes the patch required for `large file' support with at least
92476         HP-UX's 10.20 /bin/cc.
92477
92478 2001-02-03  Jim Meyering  <meyering@lucent.com>
92479
92480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92481         AS_IF, now that it works once again (mysteriously).
92482         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92483
92484 2001-01-30  Jim Meyering  <meyering@lucent.com>
92485
92486         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92487         * m4/chown.m4: Rename conftestchown to conftest.chown.
92488         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92489         s/conftestdir2/conftest.d2/.
92490         * m4/utimes.m4: s/conftestdata/conftest.data/
92491         Inspired by Pavel Roskin's change in autoconf.
92492
92493 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92494
92495         * lib/config.charset: Update for FreeBSD 4.2.
92496
92497 2001-01-27  Jim Meyering  <meyering@lucent.com>
92498
92499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92500         a use of AS_IF.
92501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92502
92503 2001-01-26  Jim Meyering  <meyering@lucent.com>
92504
92505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92506         quotearg.c includes it.
92507
92508 2001-01-26  Jim Meyering  <meyering@lucent.com>
92509
92510         * lib/quotearg.c: Include stddef.h.
92511         * lib/quote.c: Include stddef.h.
92512         Reported by Axel Kittenberger.
92513
92514         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92515         line in double quotes so that it evokes a better diagnostic.
92516         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92517         Reported by Axel Kittenberger.
92518
92519 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92520
92521         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92522         as if it was a `charset'.
92523
92524 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92525
92526         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92527         has const.
92528
92529 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92530
92531         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92532         to avoid a warning.  Add back 'const' to inptr.
92533
92534 2001-01-20  Jim Meyering  <meyering@lucent.com>
92535
92536         Be sure that headers are checked before used in code compiled
92537         for the type checks.
92538         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92539         In place of that, invoke jm_CHECK_ALL_TYPES.
92540         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92541         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92542         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92543         The check for ssize_t was mistakenly run before the test for unistd.h.
92544
92545         The configure-time check for stdbool.h was missing.
92546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92547         (jm_PREREQ_HASH): New function.
92548
92549 2001-01-17  Jim Meyering  <meyering@lucent.com>
92550
92551         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92552         for autoconf-2.49c.
92553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92554
92555 2001-01-16  Jim Meyering  <meyering@lucent.com>
92556
92557         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92558         From Bruno Haible.
92559
92560 2001-01-14  Jim Meyering  <meyering@lucent.com>
92561
92562         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92563         foo and bar.  Create conftestdir/ in the script, not in the C code.
92564         Remove directories in the script, not in the C code.
92565         Remove conftestdir{,2} before trying to create the directory.
92566         Make the entire configure script fail if the mkdir fails.
92567
92568 2001-01-14  Jim Meyering  <meyering@lucent.com>
92569
92570         * lib/rename.c: New file.  From Volker Borchert.
92571         Include stdlib.h, string.h or strings.h, and xalloc.h.
92572         Use strip_trailing_slashes rather than open-coding it.
92573
92574 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92575
92576         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92577
92578 2001-01-03  Jim Meyering  <meyering@lucent.com>
92579
92580         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92581         of local `inptr' to avoid warning with some system declarations of
92582         iconv.
92583
92584 2001-01-02  Volker Borchert  <bt@teknon.de>
92585
92586         * m4/rename.m4: New file.
92587         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92588
92589 2001-01-01  Jim Meyering  <meyering@lucent.com>
92590
92591         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92592         even on systems with utmpx.h.  It's necessary for the declaration of
92593         utmp's ut_user member.  Reported by Andreas Jaeger.
92594
92595         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92596         available. They are required for the declarations of getgrgid and
92597         getpwuid resp.
92598         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92599         Reported by Andreas Jaeger.
92600
92601 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92602
92603         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92604         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92605         so `make install' also works in VPATH builds.
92606
92607 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92608
92609         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92610         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92611         can be used in subdirectories.
92612
92613 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92614
92615         * lib/modechange.c: Do not assume that mode_t uses the
92616         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92617         the other-execute bit of FOO even if S_IXOTH != 1.
92618
92619         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92620         WOTH, XOTH, ALLM): New macros.
92621         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92622          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92623         Use them.
92624         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92625         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92626         (mode_compile):
92627         No need to use uintmax_t; unsigned long is long enough.
92628         Don't bother to get suffix since we don't use it.
92629
92630 2000-12-26  Jim Meyering  <meyering@lucent.com>
92631
92632         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92633         better with autoheader.
92634
92635 2000-12-24  Jim Meyering  <meyering@lucent.com>
92636
92637         * lib/hash.c (is_prime): Return explicit boolean values.
92638         (hash_get_first): Return NULL to appease Irix5.6's 89.
92639         Reported by Nelson Beebe.
92640
92641 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92642
92643         * lib/localcharset.c (locale_charset): Add support for Win32.
92644
92645 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92646
92647         * lib/physmem.h, lib/physmem.c: New files.
92648
92649         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92650         (noinst_HEADERS): Add physmem.h.
92651
92652         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92653         't' for compatibility with Solaris 8 sort.
92654
92655 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92656
92657         * lib/config.charset: Add support for BeOS.
92658
92659 2000-12-17  Jim Meyering  <meyering@lucent.com>
92660
92661         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92662         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92663
92664 2000-12-16  Jim Meyering  <meyering@lucent.com>
92665
92666         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92667         N and M) would have treated it like `chown N:N FILE'.
92668
92669         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92670
92671 2000-12-16  Jim Meyering  <meyering@lucent.com>
92672
92673         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92674         SHELLS_FILE to a file name that's useful on djgpp systems.
92675         Include stdlib.h.
92676         (ADDITIONAL_DEFAULT_SHELLS): Define.
92677         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92678         Based mostly on a patch from Prashant TR.
92679
92680 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92681
92682         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92683         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92684         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92685
92686 2000-12-08  Andreas Schwab  <schwab@suse.de>
92687
92688         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92689         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92690
92691 2000-12-07  Jim Meyering  <meyering@lucent.com>
92692
92693         * lib/stripslash.c (ISSLASH): Define.
92694         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92695         `/'.
92696         From Prashant TR.
92697
92698         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92699         (dir_name_r): Declare this function as static.
92700         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92701         manifest itself on a name containing a mix of slashes and
92702         backslashes.
92703         Make this function work with names starting with a DOS-style
92704         drive letter and colon prefix.
92705         (dir_name): Append `.' if necessary.
92706         Based mostly on patches from Prashant TR and Eli Zaretskii.
92707
92708         * lib/dirname.h (dir_name_r): Remove prototype.
92709
92710 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92711
92712         * m4/off_t-format.m4: Remove this file.
92713         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92714
92715 2000-12-06  Jim Meyering  <meyering@lucent.com>
92716
92717         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92718         replacement strtoull, we may well need the replacement strtoul, too.
92719         Check for declarations of strtoul and strtoull.
92720         Check for strtol.  Mainly as a cue to cause automake to include
92721         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92722         Check for limits.h -- strtol.c needs it.
92723
92724 2000-12-05  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92727
92728 2000-12-04  Jim Meyering  <meyering@lucent.com>
92729
92730         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92731         Also include memory.h, stdlib.h, unistd.h if appropriate.
92732         Reported by Andreas Jaeger (conflicting declaration of malloc).
92733
92734 2000-12-02  Jim Meyering  <meyering@lucent.com>
92735
92736         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92737         * m4/jm-macros.m4 (jm_MACROS): require it.
92738
92739 2000-12-02  Jim Meyering  <meyering@lucent.com>
92740
92741         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92742
92743 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92744
92745         * lib/memrchr.c: Include <config.h> before any system include file.
92746
92747 2000-11-30  Jim Meyering  <meyering@lucent.com>
92748
92749         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92750
92751 2000-11-30  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92754
92755 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92756
92757         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92758
92759 2000-11-26  Jim Meyering  <meyering@lucent.com>
92760
92761         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92762
92763 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92764
92765         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92766         size of (size_t) -1; it's not portable.
92767
92768 2000-11-17  Jim Meyering  <meyering@lucent.com>
92769
92770         * lib/strstr.c: Update from GNU libc.
92771
92772 2000-11-17  Akim Demaille  <akim@epita.fr>
92773
92774         * lib/obstack.h: Formatting changes.
92775         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92776         prevent type checking.
92777         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92778         cast the value to (void *): assigning a `foo *' to a `void *'
92779         variable is valid.
92780         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92781
92782 2000-11-16  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92785
92786 2000-11-11  Jim Meyering  <meyering@lucent.com>
92787
92788         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92789
92790 2000-11-10  Jim Meyering  <meyering@lucent.com>
92791
92792         * lib/obstack.h: Update from GNU libc.
92793         * lib/obstack.c: Likewise.
92794
92795 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92796
92797         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92798
92799 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92800
92801         * lib/getusershell.c (setusershell): Use rewind rather than
92802         fseek/fseeko, to avoid configuration hassles with fseeko.
92803         Don't bother opening SHELLS_FILE if shellstream is NULL;
92804         it's not necessary.
92805
92806 2000-11-05  Jim Meyering  <meyering@lucent.com>
92807
92808         * lib/makepath.h (make_dir): Declare.
92809         * lib/makepath.c (make_dir): Remove `static' attribute.
92810         Tweak a comment.
92811
92812 2000-11-04  Jim Meyering  <meyering@lucent.com>
92813
92814         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92815
92816 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92817
92818         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92819         last one in a bucket, advance to the next bucket.
92820
92821 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92822
92823         * lib/fnmatch.c: Do not comment out all the code if we are using
92824         the GNU C library, because in some cases we are replacing buggy
92825         code in the GNU C library itself.
92826
92827 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92828
92829         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92830         (regex_compile): Catch bogus \(\1\).
92831
92832 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92833
92834         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92835         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92836         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92837
92838 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92839
92840         * lib/error.h, getline.h, modechange.h:
92841         Remove "2000" from Copyright line, as the file hasn't been
92842         changed this year other than in the copyright notice.
92843
92844         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92845         was changed this year.
92846
92847 2000-10-29  Jim Meyering  <meyering@lucent.com>
92848
92849         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92850         renaming.
92851         * m4/ls-mntd-fs.m4: Likewise
92852
92853 2000-10-29  Jim Meyering  <meyering@lucent.com>
92854
92855         * lib/xstat.in: Fix grammar in comment.
92856
92857 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92858
92859         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92860         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92861         doesn't define __restrict_arr.
92862
92863 2000-10-28  Jim Meyering  <meyering@lucent.com>
92864
92865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92866         (jm_PREREQ_MEMCHR): New function.
92867
92868 2000-10-28  Jim Meyering  <meyering@lucent.com>
92869
92870         * lib/memchr.c: Update from libc.
92871         Adjust for portability:
92872         [HAVE_STDLIB_H]: Include stdlib.h.
92873         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92874         Undef __memchr, too.
92875         [!weak_alias]: Define __memchr to memchr.
92876
92877         * lib/regex.c: Update from libc.
92878         * lib/regex.h: Likewise.
92879         * lib/getopt1.c: Likewise.
92880         * lib/memcmp.c: Likewise.
92881
92882         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92883         Avoid using fseek, when possible -- it's broken by design.
92884         Patch by Ulrich Drepper.
92885
92886 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92887
92888         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92889         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92890         Giving in to popular pressure to shut up the compiler with casts.
92891
92892 2000-10-26  Jim Meyering  <meyering@lucent.com>
92893
92894         * lib/strftime.c: Update from libc.
92895
92896 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92897
92898         * regex.c: More `unsigned char' -> `re_char' changes.
92899         Also change several `int' into `re_wchar_t'.
92900         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92901         (PUSH_FAILURE_POINTER): Don't cast any more.
92902         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92903         We want GCC to complain, since this piece of code makes
92904         re_match non-reentrant, which *should* be fixed.
92905         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92906         (EXTEND_BUFFER): Use RETALLOC.
92907         (SET_LIST_BIT): Don't cast.
92908         (re_wchar_t): New type.
92909         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92910         that those two functions will always properly return.
92911         (IMMEDIATE_QUIT_CHECK): Cast to void.
92912         (analyse_first): Use recursion rather than an explicit stack.
92913         (re_compile_fastmap): Can't fail anymore.
92914         (re_search_2): Don't check re_compile_fastmap for failure.
92915         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92916         Now also sets the new value (passed in a new argument).
92917         (re_match_2_internal): Use it.
92918         Also, use a new var `reg' of type size_t when looping through regs
92919         rather than reuse the inappropriate `mcnt'.
92920
92921 2000-10-25  Jim Meyering  <meyering@lucent.com>
92922
92923         * lib/obstack.c: Update from libc.
92924
92925 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92926
92927         * regex.c (regex_compile): Change the way of handling a range from
92928         a char less than 256 to a char not less than 256.
92929
92930 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92931
92932         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92933         NT-Emacs only.
92934         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92935         so that re_search functions only quit when callers expect them to.
92936
92937 2000-10-23  Jim Meyering  <meyering@lucent.com>
92938
92939         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92940         wrong.  That set_locale call must not have any side effects.
92941         From Paul Eggert.
92942
92943 2000-10-22  Jim Meyering  <meyering@lucent.com>
92944
92945         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92946         [CYCLIC]: Remove now-unused definition.
92947
92948         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92949         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92950         Suggestion from Ulrich Drepper.
92951
92952 2000-10-21  Jim Meyering  <meyering@lucent.com>
92953
92954         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92955         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92956         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92957
92958 2000-10-21  Jim Meyering  <meyering@lucent.com>
92959
92960         * lib/dirname.c (memrchr): Declare if necessary.
92961         (dir_name): Remove the restriction that there be no
92962         trailing slashes.  Now, this code skips past them, effectively
92963         ignoring them.
92964         [TEST_DIRNAME] (main): New unit tests.
92965
92966         * lib/memrchr.c: New file from GNU libc.
92967         Undef __memrchr, too.
92968         [!weak_alias]: Define __memrchr to memrchr.
92969         Guard weak_alias use with `#ifdef weak_alias'.
92970
92971 2000-10-21  Jim Meyering  <meyering@lucent.com>
92972
92973         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92974         (dir_name): Use dir_name_r.
92975         * lib/dirname.h (dir_name_r): Declare it.
92976
92977 2000-10-17  Jim Meyering  <meyering@lucent.com>
92978
92979         * lib/quote.h (PARAMS): Define and use.
92980         Reported by Akim Demaille.
92981
92982         * lib/getopt.c: Update from libc.
92983
92984 2000-10-16  Jim Meyering  <meyering@lucent.com>
92985
92986         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92987         setlocale.
92988         From Jan Fedak.
92989
92990 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92991
92992         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92993
92994 2000-09-25  Jim Meyering  <meyering@lucent.com>
92995
92996         * lib/md5.h (rol): Define (from GnuPG).
92997
92998         * lib/sha.c: Give credit (GnuPG) where due.
92999         (M): Use rol rather than open-coding it.
93000         Add a FIXME comment.
93001
93002 2000-09-21  Jim Meyering  <meyering@lucent.com>
93003
93004         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93005         Reported by Michael Stone.
93006
93007 2000-09-20  Jim Meyering  <meyering@lucent.com>
93008
93009         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93010         (noinst_HEADERS): Add sha.h.
93011         Based on code from Scott G. Miller and from GnuPG.
93012
93013 2000-09-18  Jim Meyering  <meyering@lucent.com>
93014
93015         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93016         LIBS. Otherwise, everyone ends up linking with -lelf for some
93017         configurations.
93018         Reported by Mike Stone.
93019
93020 2000-09-15  Jim Meyering  <meyering@lucent.com>
93021
93022         * lib/regex.c: Update from libc.
93023
93024 2000-09-10  Jim Meyering  <meyering@lucent.com>
93025
93026         * lib/getopt.c (_getopt_internal): Update from glibc.
93027
93028 2000-09-09  Jim Meyering  <meyering@lucent.com>
93029
93030         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93031         think it should be used as a general replacement for isascii.
93032         * lib/fnmatch.c: Likewise.
93033         * lib/mbswidth.c: Likewise
93034         * lib/regex.c: Likewise.
93035
93036         Don't use atoi.
93037         * lib/userspec.c: Include sys/param.h and limits.h.
93038         Include xstrtol.h.
93039         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93040         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93041         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93042         UID, GID.  Check range.
93043
93044 2000-09-06  Jim Meyering  <meyering@lucent.com>
93045
93046         * lib/getopt.c (_getopt_internal): Update from glibc.
93047
93048 2000-08-30  Jim Meyering  <meyering@lucent.com>
93049
93050         * lib/strftime.c: Merge in changes from GNU libc.
93051
93052 2000-08-26  Jim Meyering  <meyering@lucent.com>
93053
93054         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93055         * m4/fpending.m4: New file.
93056
93057 2000-08-26  Jim Meyering  <meyering@lucent.com>
93058
93059         * lib/closeout.c: Include "__fpending.h".
93060         (close_stdout_status): Return right away if there's nothing to flush.
93061
93062         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93063         * lib/__fpending.c: New file.
93064         * lib/__fpending.h: New file.
93065
93066 2000-08-20  Jim Meyering  <meyering@lucent.com>
93067
93068         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93069         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93070         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93071
93072 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93073
93074         Improve fileutils installation on systems where running
93075         programs (like install) can't be unlinked.
93076         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93077         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93078
93079 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93080
93081         Standardize on "memory exhausted" instead of "Memory exhausted"
93082         or "virtual memory exhausted".
93083         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93084         "virtual memory exhausted".
93085         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93086         our own message.
93087         * lib/userspec.c (parse_user_spec): Likewise.
93088         * lib/bumpalloc.h: comment fix
93089         * lib/same.c, userspec.c: Include xalloc.h.
93090
93091         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93092         not char *const and pointing to a constant array.
93093         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93094         (xrealloc): Comment fix.
93095
93096         * lib/userspec.c (parse_user_spec):
93097         Don't translate a message until just before returning,
93098         to avoid unnecessary translation.
93099
93100 2000-08-07  Jim Meyering  <meyering@lucent.com>
93101
93102         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93103         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93104         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93105         getgroups.c, gethostname.c, getopt.h, group-member.c,
93106         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93107         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93108         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93109         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93110         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93111         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93112         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93113         yesno.c: Back out Copyright date changes for each file with no change
93114         this year.  This eases coordination with other programs using the same
93115         source code modules.  From Paul Eggert.
93116
93117 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93118
93119         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93120         not char, for compatibility with glibc 2.1.3 strftime.c.
93121
93122 2000-08-03  Greg McGary  <greg@mcgary.org>
93123
93124         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93125         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93126         (EXTEND_BUFFER): Use them.
93127
93128 2000-08-01  Jim Meyering  <meyering@lucent.com>
93129
93130         * lib/dirname.c (ISSLASH): Define.
93131         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93132         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93133         both `\' and `/' may be use as path separators.
93134         Based on a patch from Prashant TR.
93135
93136 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93137
93138         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93139         slot vector a constant, since it might get modified.
93140
93141 2000-07-31  Jim Meyering  <meyering@lucent.com>
93142
93143         * lib/xmalloc.c: Use `virtual memory exhausted', not
93144         `Memory exhausted'.
93145         * lib/obstack.c (print_and_abort): Likewise.
93146
93147 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93148
93149         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93150         buffer, so that the caller can always quote one small
93151         component of a "memory exhausted" message in slot 0.
93152         From a suggestion by Jim Meyering.
93153
93154 2000-07-30  Jim Meyering  <meyering@lucent.com>
93155
93156         * lib/makepath.c (make_path): Quote the other instance, too.
93157
93158         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93159         (STATIC_BUF_SIZE): Define.
93160         (quotearg_n_options): Use only statically allocated storage when
93161         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93162         than STATIC_BUF_SIZE.
93163
93164 2000-07-29  Jim Meyering  <meyering@lucent.com>
93165
93166         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93167         * lib/dirname.c (dir_name): Likewise.
93168
93169         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93170         `/'.
93171
93172         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93173         (dir_name): Assert that there are no trailing slashes.
93174
93175 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93176
93177         * lib/mbswidth.h (mbswidth): Add a flags argument.
93178         (mbswidth): New declaration.
93179         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93180         * lib/mbswidth.c (mbswidth): Add a flags argument.
93181         (mbsnwidth): New function.
93182
93183 2000-07-24  Jim Meyering  <meyering@lucent.com>
93184
93185         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93186
93187 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93188
93189         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93190
93191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93192
93193         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93194         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93195         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93196         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93197         invoke multibyte primitives.
93198
93199 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93200
93201         * lib/quotearg.c:
93202         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93203         so that mbstate_t is always defined.
93204
93205         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93206         be 1 in at least one GCC installation, and this configuration
93207         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93208         performance on hosts that have mbrtowc but have only unibyte
93209         locales, but I assume these hosts are rare.
93210
93211 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93212
93213         * lib/mbswidth.c (_XOPEN_SOURCE):
93214         Don't define; this causes problems on Solaris 7.
93215         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93216
93217 2000-07-23  Jim Meyering  <meyering@lucent.com>
93218
93219         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93220         too: getgrgid, getpwuid, getuid.
93221
93222 2000-07-23  Jim Meyering  <meyering@lucent.com>
93223
93224         * lib/basename.c (base_name): Add an assertion.
93225
93226 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93227
93228         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93229         shadow its mbsinit function.
93230
93231 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93232
93233         * lib/mbswidth.h: New file.
93234         * lib/mbswidth.c: New file.
93235         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93236         (noinst_HEADERS): Add mbswidth.h.
93237
93238 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93239
93240         * lib/config.charset: Add support for FreeBSD. Improve support for
93241         HP-UX and IRIX 6.
93242
93243 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93244
93245         * m4/mbswidth.m4: New file.
93246         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93247
93248 2000-07-15  Jim Meyering  <meyering@lucent.com>
93249
93250         * lib/makepath.c: Include quote.h.
93251         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93252         corresponding argument in a `quote (...)' call.
93253         Give better diagnostics.
93254
93255         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93256         (noinst_HEADERS): Add quote.h.
93257
93258         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93259         from tar's src/misc.c.
93260         * lib/quote.h: New file.  Prototypes for same.
93261
93262 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93263
93264         From a suggestion by Bruno Haible.
93265         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93266         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93267         to decide whether to define the BeOS workaround macro;
93268         this adjusts to the change to AC_MBSTATE_T.
93269
93270 2000-07-14  Jim Meyering  <meyering@lucent.com>
93271
93272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93273         jm_AC_TYPE_UINTMAX_T.
93274
93275 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93276
93277         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93278
93279         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93280         quotearg_buffer_restyled): Add support for
93281         clocale_quoting_style.  Undo previous change to
93282         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93283         and "{RIGHT QUOTATION MARK}" msgids.
93284
93285 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93286
93287         From a suggestion by Bruno Haible.
93288         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93289         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93290         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93291         and mbstate_t, to a single-part test that simply defines mbstate_t.
93292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93293         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93294
93295 2000-07-10  Jim Meyering  <meyering@lucent.com>
93296
93297         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93298
93299         * m4/gnu-source.m4: Output to confdefs.h directly.
93300         Suggestion from Akim Demaille.
93301
93302 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93303
93304         The old behavior of quoting `like this' doesn't look good with
93305         newer, ISO-style fonts.  See:
93306         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93307
93308         Instead, quote "like this" by default.  Let the translator
93309         tailor the locale-specific quoting behavior by providing
93310         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93311
93312         * lib/quotearg.c (N_): New macro.
93313         (gettext_default): New function.
93314         (quotearg_buffer_restyled): Use
93315         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93316         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93317
93318 2000-07-09  Jim Meyering  <meyering@lucent.com>
93319
93320         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93321         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93322
93323         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93325
93326 2000-07-09  Jim Meyering  <meyering@lucent.com>
93327
93328         * lib/Most files: Update copyright dates to include 2000.
93329
93330 2000-07-08  Jim Meyering  <meyering@lucent.com>
93331
93332         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93333         if not defined.
93334         (xgethostname): Remove now-unnecessary #ifdef.
93335         Move declaration of `err' into loop where it's used.
93336
93337 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93338         and Bruno Haible  <haible@clisp.cons.org>
93339
93340         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93341         only if the test for an object-type mbstate_t fails.  This
93342         prevents us from mistakenly reporting that mbstate_t is a
93343         system object type after we "#define mbstate_t int" to work
93344         around its lack.
93345
93346 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93347         and Bruno Haible  <haible@clisp.cons.org>
93348
93349         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93350
93351 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93352
93353         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93354         to strerror_r.
93355         Include <ctype.h> for use of isalpha.
93356
93357 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93358
93359         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93360         by allocating a larger buffer. Test the gethostname return value for
93361         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93362         returns an error and ENAMETOOLONG isn't defined.
93363
93364 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93365
93366         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93367         dimension.
93368
93369 2000-07-04  Jim Meyering  <meyering@lucent.com>
93370
93371         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93372         of the deprecated AC_CHECKING.
93373
93374 2000-07-04  Jim Meyering  <meyering@lucent.com>
93375
93376         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93377         Reported by Bruno Haible.
93378
93379 2000-07-04  Jim Meyering  <meyering@lucent.com>
93380
93381         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93382         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93383         lacks mbrtowc.
93384
93385 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93386
93387         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93388         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93389
93390 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93391         and Bruno Haible  <haible@clisp.cons.org>
93392
93393         * lib/quotearg.c (mbrtowc):
93394         Assign to *pwc, and return 1 only if result is nonzero.
93395         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93396
93397 2000-07-03  Jim Meyering  <meyering@lucent.com>
93398
93399         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93400
93401 2000-07-03  Jim Meyering  <meyering@lucent.com>
93402
93403         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93404         This is necessary to get a definition of e.g., UTMP_FILE on
93405         HP-UX 10.20.
93406         From Bob Proulx.
93407
93408 2000-07-02  Jim Meyering  <meyering@lucent.com>
93409
93410         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93411
93412         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93413         AC_LIBOBJ(function_name).
93414         * m4/chown.m4: Likewise.
93415         * m4/fnmatch.m4: Likewise.
93416         * m4/ftruncate.m4: Likewise.
93417         * m4/getgroups.m4: Likewise.
93418         * m4/getline.m4: Likewise.
93419         * m4/group-member.m4: Likewise.
93420         * m4/jm-macros.m4: Likewise.
93421         * m4/lstat.m4: Likewise.
93422         * m4/malloc.m4: Likewise.
93423         * m4/memcmp.m4: Likewise.
93424         * m4/nanosleep.m4: Likewise.
93425         * m4/putenv.m4: Likewise.
93426         * m4/realloc.m4: Likewise.
93427         * m4/regex.m4: Likewise.
93428         * m4/stat.m4: Likewise.
93429         * m4/strftime.m4: Likewise.
93430
93431 2000-07-02  Jim Meyering  <meyering@lucent.com>
93432
93433         * lib/quotearg.c (mbstate_t): Don't define here.
93434
93435 2000-07-02  Jim Meyering  <meyering@lucent.com>
93436
93437         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93438
93439 2000-07-01  Jim Meyering  <meyering@lucent.com>
93440
93441         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93442
93443 2000-07-01  Jim Meyering  <meyering@lucent.com>
93444
93445         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93446         problem.
93447
93448 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93449
93450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93451         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93452
93453 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93454
93455         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93456         per change in ../m4/ls-mntd-fs.m4.
93457         (read_filesystem_list): Ignore symbolic links.
93458
93459 2000-06-29  Jim Meyering  <meyering@lucent.com>
93460
93461         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93462         for declaration of strcmp.
93463
93464         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93465
93466         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93467         Avoid warning by casting result to `char *' to remove `const'.
93468
93469 2000-06-28  Jim Meyering  <meyering@lucent.com>
93470
93471         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93472         included by quotearg.c, for which we perform this test.  From
93473         Bruno Haible.
93474
93475 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93476
93477         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93479         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93480
93481 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93482
93483         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93484
93485 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93486
93487         savedir now sets errno on failure and invokes xmalloc to get memory.
93488         Fix a couple of other minor bugs while we're at it.
93489
93490         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93491         (NAMLEN): Remove macro.
93492         (malloc, realloc): Remove decls.
93493         (stpcpy): Likewise.
93494         ("xalloc.h"): Include.
93495         (NAME_SIZE_DEFAULT): New macro.
93496         (savedir): Use xmalloc / xrealloc to allocate memory.
93497         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93498         Skip "" directory entries.
93499         Use strlen to calculate directory entry length, since the old method
93500         is rarely used these days and isn't worth supporting.
93501         Don't use a pointer after freeing it.
93502         Check for integer overflow when calculating allocation size.
93503         Use memcpy to copy entries, instead of stpcpy.
93504         Set errno properly when returning NULL.
93505         Check for readdir error.
93506
93507 2000-06-26  Jim Meyering  <meyering@lucent.com>
93508
93509         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93510
93511 2000-06-25  Jim Meyering  <meyering@lucent.com>
93512
93513         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93514         Linux header bug when _XOPEN_SOURCE is defined to 500.
93515
93516 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93517
93518         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93519         deficiency.
93520
93521 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93522
93523         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93524         Include xalloc.h.
93525         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93526
93527 2000-06-24  Jim Meyering  <meyering@lucent.com>
93528
93529         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93530         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93531         for which strerror does return char*, but which lacks a conveniently
93532         accessible declaration of the function.  If the compile-test says
93533         strerror_r doesn't work, then resort to a `run'-test that works on
93534         BeOS and segfaults on DEC Unix.
93535
93536 2000-06-24  Jim Meyering  <meyering@lucent.com>
93537
93538         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93539
93540 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93541
93542         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93543         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93544
93545 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93546
93547         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93548         (mbrtowc, mbstate_t): Define substitutes if
93549         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93550         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93551         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93552
93553 2000-06-23  Jim Meyering  <meyering@lucent.com>
93554
93555         * m4/afs.m4: Add missing AC_MSG_RESULT.
93556         Reported by Bruno Haible.
93557
93558         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93559         Suggestion from Bruno Haible.
93560
93561 2000-06-23  Jim Meyering  <meyering@lucent.com>
93562
93563         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93564
93565 2000-06-21  Jim Meyering  <meyering@lucent.com>
93566
93567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93568
93569 2000-06-21  Jim Meyering  <meyering@lucent.com>
93570
93571         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93572         (noinst_HEADERS): Add getstr.h.
93573
93574         * lib/getline.c (getstr): Move into a separate file.
93575         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93576         the following changes: new parameter, delim2; both delim[12]
93577         parameters have type `int', not `char'.  The latter would lose
93578         with 8-bit delimiters.
93579         * lib/getstr.h: New file.
93580
93581 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93582
93583         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93584         than 1024, return a memory chunk of least possible size, instead
93585         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93586         Use free/xmalloc instead of xrealloc to avoid copying for very long
93587         paths.
93588
93589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93590
93591         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93592         the empty string.
93593
93594 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93595
93596         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93597         address, not strdup.  Include <stdlib.h> and don't declare free().
93598
93599 2000-06-19  Jim Meyering  <meyering@lucent.com>
93600
93601         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93602
93603 2000-06-18  Jim Meyering  <meyering@lucent.com>
93604
93605         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93606
93607         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93608         `checking whether...' message to be consistent with that of the
93609         lstat test.
93610
93611 2000-06-18  Jim Meyering  <meyering@lucent.com>
93612
93613         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93614         Besides, these days every porting target provides a mkdir function.
93615
93616         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93617         needed. (this snippet comes from src/system.h).
93618
93619 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93620
93621         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93622
93623 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93624
93625         * lib/human.c (adjust_value): New function.
93626         (human_readable_inexact): Apply rounding style even when
93627         printing approximate values.
93628
93629 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93630
93631         * lib/human.c (human_readable_inexact): Allow an input block
93632         size that is not a multiple of the output block size, and vice versa.
93633         Reported by Piergiorgio Sartor.
93634
93635 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93636
93637         * lib/getdate.y (get_date): Apply relative times after time
93638         zone indicator, not before.  Reported by Todd A. Jacobs.
93639
93640 2000-06-13  Jim Meyering  <meyering@lucent.com>
93641
93642         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93643
93644         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93645
93646 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93647
93648         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93649
93650 2000-06-12  Jim Meyering  <meyering@lucent.com>
93651
93652         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93653         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93654         optional argument.
93655         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93656         the optional argument, `lib'.
93657
93658 2000-06-08  Jim Meyering  <meyering@lucent.com>
93659
93660         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93661
93662 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93663
93664         Rewrite largefile configuration so that we don't need to run
93665         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93666         AC_CANONICAL_HOST in configure.in -- jmm]
93667
93668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93669         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93670         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93671         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93672         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93673         All uses changed.
93674         Instead of inspecting the output of getconf, try to compile the
93675         test program without and with the macro definition.
93676         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93677         for getconf.  Instead, check for the needed flags by compiling
93678         test programs.
93679
93680 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93681
93682         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93683
93684 2000-06-04  Jim Meyering  <meyering@lucent.com>
93685
93686         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93687         SunOS 4.1.4 for which gid_t is an unsigned type.
93688
93689 2000-06-03  Jim Meyering  <meyering@lucent.com>
93690
93691         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93692         now that autoconf requires that.
93693
93694         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93695         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93696         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93697
93698 2000-06-03  Jim Meyering  <meyering@lucent.com>
93699
93700         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93701
93702 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93703
93704         * m4/glibc21.m4: New file.
93705         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93706
93707 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93708
93709         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93710         newer, don't install charset.alias.
93711         * lib/config.charset: Change the Linux/glibc rules so they become empty
93712         on glibc-2.1 or newer.
93713
93714 2000-06-02  Jim Meyering  <meyering@lucent.com>
93715
93716         * lib/mountlist.c: Back out last change.  Instead, do this...
93717         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93718         me_dummy member using the same `ignore'-testing code.
93719         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93720         fs_type strings.
93721         From Mark D. Roth.
93722
93723 2000-05-29  Jim Meyering  <meyering@lucent.com>
93724
93725         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93726         mounts with the `ignore' attribute.  Based on a patch from
93727         Mark D. Roth.
93728
93729 2000-05-28  Jim Meyering  <meyering@lucent.com>
93730
93731         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93732         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93733         * m4/stat.m4: Likewise.
93734         * m4/lstat.m4: Likewise.
93735         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93736
93737         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93738         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93739
93740 2000-05-26  Jim Meyering  <meyering@lucent.com>
93741
93742         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93743
93744 2000-05-24  Jim Meyering  <meyering@lucent.com>
93745
93746         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93747         autoconf requires that.
93748         * m4/lib-check.m4: Likewise.
93749         * m4/jm-macros.m4: Likewise.
93750         * m4/strftime.m4: Likewise.
93751
93752         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93753         AC_CHECK_DECLS, now that autoconf requires that.
93754
93755 2000-05-22  Jim Meyering  <meyering@lucent.com>
93756
93757         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93758         * m4/lstat.m4: Likewise.
93759
93760 2000-05-22  Jim Meyering  <meyering@lucent.com>
93761
93762         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93763
93764 2000-05-20  Jim Meyering  <meyering@lucent.com>
93765
93766         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93767         (jm_PREREQ): Use it.
93768
93769 2000-05-18  Jim Meyering  <meyering@lucent.com>
93770
93771         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93772         back, too, since it may have been modified by allocate_entry.
93773         (hash_delete): Rewrite to use neither the assignment operator
93774         nor the comma operator in an if-expression.
93775
93776 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93777
93778         * lib/closeout.c:
93779         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93780         Remove; no longer needed.
93781         "quotearg.h": Add include.
93782         (file_name): Do not bother to explicitly initialize to NULL; it's less
93783         efficient on some hosts.
93784         (close_stdout_status): Remove test as to whether stdout was already
93785         closed; it breaks for the case "echo x | sort >&-".
93786         Quote file name colons.
93787         Do not assume that _("write error") lacks format strings.
93788
93789 2000-05-15  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/version-etc.c (version_etc_copyright): Update the copyright
93792         string used in all --version output.
93793
93794 2000-05-14  Jim Meyering  <meyering@lucent.com>
93795
93796         * lib/closeout.c (close_stdout_set_file_name): New function.
93797         (close_stdout_status): Use new file-scoped global.
93798         Return right away if fstat says the stdout file descriptor is invalid.
93799         * lib/closeout.h (close_stdout_set_file_name): Declare.
93800
93801 2000-05-10  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93804         (close_stdout_set_status): New function.
93805         * lib/closeout.h (close_stdout_set_status): Declare.
93806
93807 2000-05-09  Jim Meyering  <meyering@lucent.com>
93808
93809         * m4/gettext.m4: Rename this...
93810         * m4/libintl.m4: ...to this.
93811
93812 2000-05-08  Jim Meyering  <meyering@lucent.com>
93813
93814         * lib/long-options.c: Don't include closeout.h.
93815         (parse_long_options): Don't call close_stdout for --version.
93816
93817 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93818
93819         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93820         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93821         2.1.3 bug.  This avoids a clash when files like regex.c define
93822         _GNU_SOURCE.
93823
93824 2000-05-06  Jim Meyering  <meyering@lucent.com>
93825
93826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93827         (AC_REPLACE_FUNCS): Add strnlen.
93828
93829         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93830         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93831
93832         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93833         AC_SEARCH_LIBS call for nanosleep.
93834         (LIB_NANOSLEEP): Set and AC_SUBST.
93835
93836 2000-05-06  Jim Meyering  <meyering@lucent.com>
93837
93838         * lib/strnlen.c: Undefine __strnlen and strnlen.
93839         [!weak_alias]: Define __strnlen to strnlen.
93840
93841         * lib/atexit.c: New file, from libiberty.
93842
93843 2000-05-06  Jim Meyering  <meyering@lucent.com>
93844
93845         * lib/closeout.c (close_stdout_status): Also check for errors on the
93846         stderr stream.
93847
93848 2000-05-05  Jim Meyering  <meyering@lucent.com>
93849
93850         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93851         AC_SEARCH_LIBS call for clock_gettime.
93852         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93853
93854         * m4/search-libs.m4: Update from autoconf.
93855
93856         su doesn't work on Solaris 2.6.
93857         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93858         <shadow.h>.  Reported by Dragos Harabor.
93859
93860 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93861
93862         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93863         memcpy instead of xmalloc, xrealloc, path_concat.
93864         (locale_charset): Treat empty environment variables as absent.
93865         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93866
93867 2000-05-04  Jim Meyering  <meyering@lucent.com>
93868
93869         * lib/getopt.c: Update from glibc.
93870         * lib/obstack.c: Likewise.
93871         * lib/obstack.h: Likewise.
93872         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93873         file
93874
93875         * lib/regex.h: Likewise.
93876         * lib/strndup.c: Likewise.
93877         * lib/strnlen.c: New file, from glibc.
93878
93879 2000-05-03  Jim Meyering  <meyering@lucent.com>
93880
93881         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93882
93883 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93884
93885         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93886         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93887         compile-time test, rather than inspecting host and OS, to
93888         decide whether to define _LARGEFILE_SOURCE.
93889
93890 2000-05-01  Jim Meyering  <meyering@lucent.com>
93891
93892         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93893
93894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93895         Based on a patch from Bruno Haible.
93896
93897 2000-05-01  Jim Meyering  <meyering@lucent.com>
93898
93899         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93900
93901 2000-04-29  Jim Meyering  <meyering@lucent.com>
93902
93903         * lib/path-concat.c: Declare strdup only if it's not defined.
93904         * lib/canon-host.c: Likewise.
93905
93906 2000-04-28  Jim Meyering  <meyering@lucent.com>
93907
93908         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93909         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93910         is included first, then limits.h is included by locale.h by libintl.h.
93911         From John David Anglin.
93912
93913 2000-04-25  Jim Meyering  <meyering@lucent.com>
93914
93915         * lib/makepath.c (S_IRWXUGO): Define.
93916         (make_path): Always perform explicit chmod if MODE specifies any
93917         of the `special' permission bits.  Prompted by a bug report against
93918         install from Mate Wierdl and Joost van Baal.
93919
93920 2000-04-18  Jim Meyering  <meyering@lucent.com>
93921
93922         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93923         (jm_PREREQ): Use it.
93924
93925 2000-04-18  Jim Meyering  <meyering@lucent.com>
93926
93927         * lib/README: New file.
93928
93929         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93930         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93931
93932 2000-04-17  Jim Meyering  <meyering@lucent.com>
93933
93934         Get it right :-)
93935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93936         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93937         Suggestion from Akim Demaille.
93938
93939 2000-04-17  Jim Meyering  <meyering@lucent.com>
93940
93941         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93942         the definition of it to rpl_strftime also defined-away the system's
93943         declaration.
93944
93945 2000-04-15  Jim Meyering  <meyering@lucent.com>
93946
93947         Use `C' to denote so-called `contiguous' files, the same way
93948         that tar does.
93949         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93950         (ftypelet): Use S_ISCTG.
93951         From Michael Deutschmann.
93952
93953 2000-04-14  Jim Meyering  <meyering@lucent.com>
93954
93955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93956         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93957         clobbered.
93958
93959 2000-04-14  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93962
93963 2000-04-13  Jim Meyering  <meyering@lucent.com>
93964
93965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93966         AH_VERBATIM to insert required #ifndef into config.h.in.
93967         Suggestion from Akim Demaille.
93968
93969 2000-04-12  Jim Meyering  <meyering@lucent.com>
93970
93971         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93972         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93973         Christian Krackowizer.
93974
93975         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93976         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93977         (AC_SYS_LARGEFILE): Require.
93978         (AM_C_PROTOTYPES): Require.
93979
93980 2000-04-08  Jim Meyering  <meyering@lucent.com>
93981
93982         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93983         names don't conflict.  Reported by Eli Zaretskii.
93984
93985 2000-04-07  Jim Meyering  <meyering@lucent.com>
93986
93987         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93988         sys/types.h, to work around system header problems on AIX 3.2.5.
93989         From Bruno Haible.
93990
93991 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93992
93993         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93994         bug.  Deal with the different error behavior of Irix iconv.
93995
93996 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93997
93998         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93999         IRIX if the installer said otherwise.
94000
94001 2000-04-05  Jim Meyering  <meyering@lucent.com>
94002
94003         Portability tweaks required for ultrix4.3.
94004         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94005         (jm_CHECK_DECLS): Add getutent to the list of functions.
94006         (_jm_DECL_HEADERS): Add utmpx.h.
94007         From John David Anglin.
94008
94009         * m4/strftime.m4: Back out the 2000-04-02 change.
94010         Instead of that change, simply undefine putenv in the test program.
94011
94012 2000-04-05  Jim Meyering  <meyering@lucent.com>
94013
94014         Portability tweaks required for ultrix4.3.
94015         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94016         getutent.
94017         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94018         * lib/canon-host.c: Declare strdup.
94019         * lib/path-concat.c: Likewise.
94020         From John David Anglin.
94021
94022 2000-04-04  Jim Meyering  <meyering@lucent.com>
94023
94024         Be more DOS 8.3-friendly.
94025         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94026         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94027         * lib/Makefile.am: Reflect renaming.
94028         Reported by Eli Zaretskii.
94029
94030         Use a temporary file name that won't clash with `charset.alias'
94031         in the DOS 8.3 name space.
94032         * lib/Makefile.am (charset_tmp): Define.
94033         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94034         (uninstall-local): Likewise.
94035         Reported by Eli Zaretskii.
94036
94037 2000-04-03  Jim Meyering  <meyering@lucent.com>
94038
94039         * m4/gettext.m4: Fix typo in comment.
94040
94041         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94042         textutils/configure.in).  Suggestion from Paul Eggert.
94043         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94044
94045 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94046
94047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94048         variable in the shell rather than using putenv, which isn't
94049         portable.  This avoids the configure-time inter-test dependency
94050         on the potentially-renamed putenv function.
94051
94052 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94053
94054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94055         before checking struct stat.st_blksize, so that
94056         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94057
94058 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94059
94060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94061         since strftime.c uses HAVE_STRFTIME to decide whether to use
94062         the underlying strftime.
94063
94064 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94065
94066         * lib/time/strftime.c (my_strftime): Make sure we call the system
94067         strftime, not ourselves, when invoking the underlying strftime.
94068
94069 2000-03-24  Jim Meyering  <meyering@lucent.com>
94070
94071         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94072         (charset_alias): Define.
94073         (install-exec-local): Factor out common code.
94074         (uninstall-local): Split lines longer than 80.
94075         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94076         (SUFFIXES): Define.
94077         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94078         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94079
94080 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94081
94082         * lib/config.charset: Output a line containing "Packages using this
94083         file".
94084         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94085         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94086         ref-del.sed): New rules.
94087
94088 2000-03-17  Jim Meyering  <meyering@lucent.com>
94089
94090         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94091         Otherwise, include <strings.h>
94092
94093 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94094
94095         * lib/unicodeio.c (utf8_wctomb): New function.
94096         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94097         format instead of in UCS-4 with platform dependent endianness.
94098
94099 2000-03-10  Jim Meyering  <meyering@lucent.com>
94100
94101         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94102         From Marco Franzen.
94103
94104 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94105
94106         * lib/savedir.c (savedir): Work even if directory size is
94107         negative; this can happen with some screwy NFS configurations.
94108
94109 2000-03-06  Jim Meyering  <meyering@lucent.com>
94110
94111         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94112         if it's NULL (because we ran out of memory).  From Bruno Haible.
94113
94114 2000-03-05  Jim Meyering  <meyering@lucent.com>
94115
94116         * lib/localcharset.c ("path-concat.h"): Include.
94117         (get_charset_aliases): Use path_concat instead of ANSI string
94118         concatenation.
94119
94120         * lib/unicodeio.h (PARAMS): Define.
94121         Use it to guard prototype.
94122
94123 2000-03-04  Jim Meyering  <meyering@lucent.com>
94124
94125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94126         for lib/localcharset.c.
94127
94128 2000-03-04  Jim Meyering  <meyering@lucent.com>
94129
94130         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94131         installing into it.
94132         (uninstall-local): Uncomment this rule so `make distcheck' works
94133         once again.
94134
94135         * lib/unicodeio.c (<errno.h>): Include it.
94136         (errno): Declare if not defined.
94137
94138         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94139
94140         * lib/config.charset: New version, incorporating remarks from a linux
94141         i18n mailing list.  From Bruno Haible.
94142
94143 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94144
94145         * m4/codeset.m4: New file.
94146         * m4/iconv.m4: New file.
94147         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94148
94149 2000-03-03  Jim Meyering  <meyering@lucent.com>
94150
94151         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94152
94153 2000-03-02  Jim Meyering  <meyering@lucent.com>
94154
94155         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94156         the messages come out on separate lines.
94157
94158         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94159         rather than jm_CHECK_DECLARATIONS.
94160         * m4/decl.m4: Remove now-unused file.
94161
94162         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94163         geteuid.
94164
94165 2000-03-02  Jim Meyering  <meyering@lucent.com>
94166
94167         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94168
94169 2000-03-01  Jim Meyering  <meyering@lucent.com>
94170
94171         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94172         * lib/unicodeio.c: Likewise.
94173
94174 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94175
94176         * lib/config.charset: New file.
94177         * lib/localcharset.c: New file.
94178         * lib/unicodeio.h, lib/unicodeio.c: New files.
94179         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94180         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94181         (noinst_HEADERS): Add unicodeio.h.
94182         (all-local, install-exec-local, charset.alias): New targets.
94183
94184 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94185
94186         * lib/quotearg.c (ALERT_CHAR): New macro.
94187         (quotearg_buffer_restyled): Use it.
94188
94189 2000-02-27  Jim Meyering  <meyering@lucent.com>
94190
94191         * m4/check-decl.m4: Add getenv to the list.
94192
94193 2000-02-27  Jim Meyering  <meyering@lucent.com>
94194
94195         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94196         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94197
94198         * lib/backupfile.c: Guard inclusion of stdlib.h with
94199         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94200         Declare malloc if needed.
94201
94202         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94203         `#ifndef HAVE_DECL..'
94204         now that autoconf always defines the HAVE_DECL_ symbols.
94205         * lib/human.c: Likewise.
94206         * lib/same.c: Likewise.
94207         * lib/strtoumax.c: Likewise.
94208
94209         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94210         declaration check was not run.
94211         * lib/hash.c: Likewise.
94212         * lib/human.c: Likewise.
94213         * lib/same.c: Likewise.
94214         * lib/strtoumax.c: Likewise.
94215
94216         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94217         `.', then first look up the entire `.'-containing string as a login
94218         name.
94219
94220 2000-02-23  Jim Meyering  <meyering@lucent.com>
94221
94222         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94223         in place of my hack.
94224
94225 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94226
94227         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94228         (textint): New typedef.
94229         (parser_control): Member year changed from int to textint.
94230         All uses changed.
94231         (YYSTYPE): Removed; replaced by %union with int and textint members.
94232         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94233         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94234         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94235         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94236         (date, number, to_year): Use width of number in digits, not its value,
94237         to determine whether it's a 2-digit year, or a 2-digit time.
94238         (yylex): Store number of digits of numeric tokens.
94239         Reported by John Kendall.
94240
94241         (parser_control): Changed from struct parser_control to typedef (for
94242         consistency).  All uses changed.
94243
94244         (tID): Removed; not used.
94245         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94246
94247 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94248
94249         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94250         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94251
94252 2000-02-12  Jim Meyering  <meyering@lucent.com>
94253
94254         * lib/userspec.c (ISDIGIT): Define it.
94255         (isdigit): Remove definition.
94256         (is_number): Use ISDIGIT, not isdigit.
94257         <libintl.h>: Include.
94258         (_ and N_): Define.
94259         (parse_user_spec): Mark translatable strings.
94260
94261 2000-02-10  Jim Meyering  <meyering@lucent.com>
94262
94263         With these changes, nanosleep.[ch] are finally enough like the other
94264         lib/* replacement files to compile on a few more losing systems.
94265
94266         * lib/nanosleep.h: Don't include config.h.
94267         Remove prototype from declaration of nanosleep.
94268         (PARAMS): Remove now-unneeded definition.
94269         * lib/nanosleep.c: #undef nanosleep.
94270         (rpl_nanosleep): Rename from nanosleep.
94271
94272 2000-02-10  Jim Meyering  <meyering@lucent.com>
94273
94274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94275         gnu_nanosleep to rpl_nanosleep.
94276
94277 2000-02-09  Jim Meyering  <meyering@lucent.com>
94278
94279         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94280         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94281
94282 2000-02-08  Akim Demaille  <akim@epita.fr>
94283
94284         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94285         `[' and `]' and remove uses of `changequote'.
94286         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94287         (AC_SYS_LARGEFILE): Likewise.
94288         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94289         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94290         of changequote.
94291         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94292         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94293         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94294         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94295
94296 2000-02-05  Jim Meyering  <meyering@lucent.com>
94297
94298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94299         Remove explicit use of AC_HEADER_TIME.  It is required by
94300         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94301         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94302         in autoconf whereby the expansion of the latter ended up preceding
94303         the expansion of its prerequisite, AC_HEADER_TIME.
94304         Reported by Volker Borchert.
94305
94306 2000-02-03  Jim Meyering  <meyering@lucent.com>
94307
94308         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94309
94310 2000-02-03  Jim Meyering  <meyering@lucent.com>
94311
94312         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94313         rather than with `#if HAVE_UTMPNAME'.
94314
94315 2000-02-02  Jim Meyering  <meyering@lucent.com>
94316
94317         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94318         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94319         Reported by Eli Zaretskii.
94320
94321 2000-02-01  Jim Meyering  <meyering@lucent.com>
94322
94323         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94324
94325 2000-01-31  Jim Meyering  <meyering@lucent.com>
94326
94327         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94328         functions.  Add the time.h and sys/time.h headers along with the
94329         AC_REQUIRE'ment of AC_HEADER_TIME.
94330
94331 2000-01-31  Jim Meyering  <meyering@lucent.com>
94332
94333         * lib/nanosleep.h (nanosleep): Guard declaration with
94334         `#if ! HAVE_DECL_NANOSLEEP'.
94335         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94336         the declaration in that vendor's sys/timers.h.
94337         Reported by Christian Krackowizer.
94338
94339         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94340         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94341         (ISPRINT): Likewise.
94342         Reported by Tom Tromey.
94343
94344 2000-01-30  Jim Meyering  <meyering@lucent.com>
94345
94346         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94347
94348         * m4/prereq.m4 (utmp_includes): Define.
94349         Check for ut_user and ut_name members in both struct utmpx
94350         and struct utmp.
94351
94352 2000-01-30  Jim Meyering  <meyering@lucent.com>
94353
94354         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94355         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94356         header files where only utmpx.ut_user is declared.
94357
94358         * lib/readutmp.h (UT_USER): Define.
94359
94360 2000-01-29  Jim Meyering  <meyering@lucent.com>
94361
94362         * m4/lib-check.m4: New file containing library-related checks from
94363         fileutils and sh-utils (textutils had none).
94364
94365 2000-01-28  Jim Meyering  <meyering@lucent.com>
94366
94367         * m4/perl.m4: Change format of warning message to look more like that
94368         from the missing script.  Suggestion from François Pinard.
94369
94370 2000-01-25  Jim Meyering  <meyering@lucent.com>
94371
94372         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94373         well as time.h in the compile check.
94374         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94375         Fix typo in cross-compiling case: s/yes/no/.
94376
94377 2000-01-23  Jim Meyering  <meyering@lucent.com>
94378
94379         * m4/jm-macros.m4: Move df-related tests here from
94380         fileutils/configure.in
94381
94382         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94383         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94384
94385         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94386         s/space/ac_fsusage_space/.
94387         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94388
94389         * m4/ftruncate.m4: New file (derived from part of
94390         fileutils/configure.in).
94391         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94392         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94393
94394         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94395         AC_SUBST these here, rather than just in sh-util/configure.in, so
94396         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94397         all the same.
94398         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94399         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94400         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94401         (AC_SUBST(POW_LIBM)): Likewise.
94402         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94403
94404 2000-01-23  Jim Meyering  <meyering@lucent.com>
94405
94406         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94407         obstack.c.
94408
94409 2000-01-22  Jim Meyering  <meyering@lucent.com>
94410
94411         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94412
94413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94414
94415         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94416         configure.in
94417         (AC_CHECK_HEADERS): Likewise for sh-utils.
94418         (AC_CHECK_HEADERS): Likewise for textutils.
94419         Merge the three lists of headers.
94420
94421         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94422         from fileutils' configure.in.
94423
94424         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94425         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94426         check-decl.m4.
94427
94428         * m4/check-decl.m4: Use #if rather than #ifdef.
94429         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94430         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94431         (_jm_DECL_HEADERS): Define new function.
94432         (jm_CHECK_DECLARATIONS): Require it.
94433
94434 2000-01-22  Jim Meyering  <meyering@lucent.com>
94435
94436         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94437         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94438         Required for some AIX systems.  Reported by Christian Krackowizer.
94439         [TESTING] (main): New function.
94440
94441         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94442         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94443         letters.
94444
94445         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94446         iswprint.
94447
94448         * lib/strverscmp.c (ISDIGIT): Define.
94449         (strverscmp): Use ISDIGIT, not isdigit.
94450
94451 2000-01-19  Jim Meyering  <meyering@lucent.com>
94452
94453         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94454         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94455         defines `struct timespec' in <sys/time.h>
94456
94457         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94458         Thanks to Akim for explaining.
94459
94460 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94461
94462         * lib/nanosleep.c (nanosleep):
94463         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94464         POSIX.1 doesn't require SA_INTERRUPT and some systems
94465         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94466         it's been part of POSIX.1 since day 1 (in 1988).
94467
94468 2000-01-17  Jim Meyering  <meyering@lucent.com>
94469
94470         * lib/interlock: Remove unused file.  Reported by François Pinard.
94471
94472 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94473
94474         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94475         alert, backslash, formfeed, and vertical tab unnecessarily in
94476         shell quoting style.
94477
94478 2000-01-16  Jim Meyering  <meyering@lucent.com>
94479
94480         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94481         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94482         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94483         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94484
94485 2000-01-16  Jim Meyering  <meyering@lucent.com>
94486
94487         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94488         because the latter didn't work.
94489
94490 2000-01-15  Jim Meyering  <meyering@lucent.com>
94491
94492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94493         (AC_REPLACE_FUNCS): Add memcpy and memset.
94494         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94495         Add strpbrk.
94496         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94497
94498 2000-01-12  Jim Meyering  <meyering@lucent.com>
94499
94500         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94501         (jm_PREREQ): Use it.
94502         (jm_PREREQ_READUTMP): New macro.
94503         (jm_PREREQ): Use it.
94504
94505 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94506
94507         Quote multibyte characters correctly.
94508         * m4/c-bs-a.m4: New file.
94509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94510         (jm_PREREQ): Use it.
94511
94512 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94513
94514         * m4/uintmax_t.m4: Port to autoconf 2.13.
94515
94516 2000-01-08  Jim Meyering  <meyering@ascend.com>
94517
94518         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94519         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94520
94521 2000-01-04  Jim Meyering  <meyering@ascend.com>
94522
94523         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94524         jm_STRUCT_DIRENT_D_TYPE.
94525         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94526         jm_STRUCT_DIRENT_D_INO.
94527         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94528         jm_STRUCT_UTIMBUF.
94529         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94530         renamings.
94531         * m4/utime.m4: Likewise.
94532
94533         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94534         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94535
94536 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94537
94538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94539         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94540
94541 2000-01-02  Jim Meyering  <meyering@ascend.com>
94542
94543         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94544         remember if this is necessary.
94545
94546 1999-12-26  Jim Meyering  <meyering@ascend.com>
94547
94548         * m4/jm-macros.m4: Use it here.
94549         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94550
94551 1999-12-23  Jim Meyering  <meyering@ascend.com>
94552
94553         * m4/jm-macros.m4: Check for clock_gettime (moved from
94554         fileutils/configure.in)
94555         Check for gettimeofday.
94556
94557 1999-12-20  Jim Meyering  <meyering@ascend.com>
94558
94559         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94560         autoconf-2.14a-1999-12-20.
94561
94562 1999-12-19  Jim Meyering  <meyering@ascend.com>
94563
94564         * m4/lstat-slash.m4: New file.
94565         * m4/jm-macros.m4: Use the new macro:
94566         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94567
94568 1999-12-07  Jim Meyering  <meyering@ascend.com>
94569
94570         * m4/perl.m4: Require that File::Compare be available, too.
94571         Too many systems seem to lack it.
94572
94573         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94574         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94575
94576 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94577
94578         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94579         problem with the QNX 4.25 shell, which doesn't propagate exit
94580         status of failed commands inside shell assignments.
94581
94582 1999-11-17  Jim Meyering  <meyering@ascend.com>
94583
94584         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94585
94586 1999-11-07  Jim Meyering  <meyering@ascend.com>
94587
94588         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94589
94590 1999-11-06  Jim Meyering  <meyering@ascend.com>
94591
94592         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94593         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94594
94595 1999-11-05  Jim Meyering  <meyering@ascend.com>
94596
94597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94598         configure.in of textutils, fileutils, and sh-utils into this one
94599         (shared between those packages) file.
94600         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94601         AC_STRUCT_ST_BLKSIZE.
94602
94603 1999-11-03  Jim Meyering  <meyering@ascend.com>
94604
94605         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94606         of AC_CHECK_TYPE checks includes unistd.h.
94607         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94608         Suggestion from Akim Demaille.
94609
94610 1999-10-30  Jim Meyering  <meyering@ascend.com>
94611
94612         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94613         m4-quoted string.
94614         * m4/ls-mntd-fs.m4: Likewise.
94615         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94616         * m4/jm-winsz1.m4: Likewise.
94617
94618         * m4/const.m4: Remove file, since the fix made it into the experimental
94619         version of autoconf.
94620         * m4/mktime.m4: Likewise.
94621
94622         * m4/check-type.m4: Remove file, now that the latest version of
94623         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94624
94625         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94626         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94627         AC_CHECK_TYPE.
94628
94629 1999-10-04  Jim Meyering  <meyering@ascend.com>
94630
94631         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94632
94633 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94634
94635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94636         2.95.1 bug with HP-UX 10.20.
94637
94638 1999-09-17  Jim Meyering  <meyering@ascend.com>
94639
94640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94641         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94642         due to missing strdup (against sh-utils-2.0).
94643
94644 1999-08-29  Jim Meyering  <meyering@ascend.com>
94645
94646         * m4/jm-macros.m4: Require jm_BISON.
94647         * m4/bison.m4: New file.
94648
94649 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94650
94651         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94652         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94653
94654 1999-08-05  Jim Meyering  <meyering@ascend.com>
94655
94656         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94657         to avoid conflicts with `conftest' on 8+3 filesystems.
94658         Suggestion from Eli Zaretskii.
94659
94660 1999-08-04  Jim Meyering  <meyering@ascend.com>
94661
94662         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94663         fileutils and sh-utils (textutils's getline test was inadequate).
94664         (AM_FUNC_GETLINE): Run this test.
94665         (AC_CHECK_FUNCS): Check for getdelim.
94666         Reported by Bob Proulx.
94667
94668 1999-08-02  Jim Meyering  <meyering@ascend.com>
94669
94670         * m4/jm-macros.m4: Add a comment.
94671
94672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94673
94674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94675         <inttypes.h> defines strtoumax as a macro (and not as a
94676         function).
94677
94678 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94679
94680         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94681         that we can shift, multiply and divide unsigned long long
94682         values; Ultrix cc can't do it.
94683
94684 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94685
94686         * m4/mktime.m4: New file, which is a preview of what should appear
94687         in the next public autoconf release.
94688
94689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94690
94691         * m4/lfs.m4: Remove this file.
94692         * m4/largefile.m4: New file.  It contains the old contents of
94693         lfs.m4, except that all names with prefix AC_LFS have been
94694         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94695         compatible with future autoconf versions.  Also, some minor m4
94696         quoting problems have been fixed.
94697
94698 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94699
94700         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94701         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94702         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94703         and simplify the shell code.
94704
94705 1999-08-01  Jim Meyering  <meyering@ascend.com>
94706
94707         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94708         m4.
94709
94710 1999-07-20  Jim Meyering  <meyering@ascend.com>
94711
94712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94713
94714 1999-07-15  Jim Meyering  <meyering@ascend.com>
94715
94716         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94717
94718 1999-05-22  Jim Meyering  <meyering@ascend.com>
94719
94720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94721
94722 1999-05-20  Jim Meyering  <meyering@ascend.com>
94723
94724         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94725         Add a colon after each `then' in case $4 is empty.
94726
94727 1999-05-16  Jim Meyering  <meyering@ascend.com>
94728
94729         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94730
94731 1999-05-10  Jim Meyering  <meyering@ascend.com>
94732
94733         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94734
94735         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94736         AC_FUNC_MKTIME.
94737
94738 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94739
94740         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94741
94742 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94743
94744         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94745         not CPPFLAGS, so that linking works correctly in IRIX.
94746
94747 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94748
94749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94750
94751 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94752
94753         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94754         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94756         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94757         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94758
94759         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94760
94761 1999-04-20  Jim Meyering  <meyering@ascend.com>
94762
94763         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94764         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94765         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94766
94767 1999-04-18  Jim Meyering  <meyering@ascend.com>
94768
94769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94770         * m4/jm-macros.m4: Use it.
94771
94772 1999-04-06  Jim Meyering  <meyering@ascend.com>
94773
94774         * m4/strftime.m4: Remove test for %f.
94775
94776 1999-03-29  Jim Meyering  <meyering@ascend.com>
94777
94778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94779         superset of the AC_TYPE_* checks in the textutils, fileutils,
94780         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94781         AC_TYPE_PID_T.
94782
94783 1999-03-28  Jim Meyering  <meyering@ascend.com>
94784
94785         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94786         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94787         replaced e.g., in the *.sh files of the sh-utils.
94788
94789 1999-03-20  Jim Meyering  <meyering@ascend.com>
94790
94791         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94792         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94793         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94794
94795 1999-03-19  Jim Meyering  <meyering@ascend.com>
94796
94797         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94798
94799 1999-03-12  Jim Meyering  <meyering@ascend.com>
94800
94801         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94802
94803 1999-03-07  Jim Meyering  <meyering@ascend.com>
94804
94805         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94806         declared.
94807
94808 1999-02-17  Jim Meyering  <meyering@ascend.com>
94809
94810         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94811         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94812
94813 1999-02-07  Jim Meyering  <meyering@ascend.com>
94814
94815         * m4/group-member.m4: New file -- extracted from sh-utils'
94816         configure.in.
94817
94818         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94819         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94820
94821 1999-02-06  Jim Meyering  <meyering@ascend.com>
94822
94823         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94824         * m4/fnmatch.m4: Likewise.
94825         * m4/getgroups.m4: Likewise.
94826         * m4/lstat.m4: Likewise.
94827         * m4/malloc.m4: Likewise.
94828         * m4/putenv.m4: Likewise.
94829         * m4/realloc.m4: Likewise.
94830         * m4/regex.m4: Likewise.
94831         * m4/stat.m4: Likewise.
94832         * m4/strftime.m4: Likewise.
94833         Suggestion from Alain Magloire.
94834
94835         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94836         * m4/fnmatch.m4: Likewise.
94837         * m4/getgroups.m4: Likewise.
94838         * m4/getline.m4: Likewise.
94839         * m4/lstat.m4: Likewise.
94840         * m4/malloc.m4: Likewise.
94841         * m4/memcmp.m4: Likewise.
94842         * m4/putenv.m4: Likewise.
94843         * m4/realloc.m4: Likewise.
94844         * m4/regex.m4: Likewise.
94845         * m4/stat.m4: Likewise.
94846         * m4/strftime.m4: Likewise.
94847         Suggestion from Alain Magloire.
94848
94849         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94850         an argument.
94851
94852         * m4/regex.m4: Add a run-time Test for proper operation of
94853         re_compile_pattern.
94854
94855 1999-01-31  Jim Meyering  <meyering@ascend.com>
94856
94857         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94858
94859 1999-01-30  Jim Meyering  <meyering@ascend.com>
94860
94861         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94862
94863         * m4/jm-mktime.m4: Make this a wrapper around the official
94864         AM_FUNC_MKTIME rather than my private copy, now that the official one
94865         is up to date.
94866         * m4/mktime.m4: Remove file.
94867
94868         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94869         * m4/uptime.m4: Likewise.
94870         * m4/uintmax_t.m4: Likewise.
94871
94872 1999-01-28  Jim Meyering  <meyering@ascend.com>
94873
94874         * m4/jm-macros.m4: Use jm_AFS.
94875         * m4/afs.m4: New file (from fileutils' configure.in).
94876
94877         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94878         * m4/chown.m4: Likewise.
94879         * m4/d-ino.m4: Likewise.
94880         * m4/d-type.m4: Likewise.
94881         * m4/fnmatch.m4: Likewise.
94882         * m4/getgroups.m4: Likewise.
94883         * m4/gettext.m4: Likewise.
94884         * m4/jm-mktime.m4: Likewise.
94885         * m4/jm-winsz2.m4: Likewise.
94886         * m4/lcmessage.m4: Likewise.
94887         * m4/ls-mntd-fs.m4: Likewise.
94888         * m4/malloc.m4: Likewise.
94889         * m4/memcmp.m4: Likewise.
94890         * m4/putenv.m4: Likewise.
94891         * m4/realloc.m4: Likewise.
94892         * m4/st_mtim.m4: Likewise.
94893         * m4/strftime.m4: Likewise.
94894
94895 1999-01-16  Jim Meyering  <meyering@ascend.com>
94896
94897         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94898         (ARGMATCH_DIE_DECL): Define.
94899
94900 1999-01-12  Jim Meyering  <meyering@ascend.com>
94901
94902         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94903         Reported by Lars Hecking.
94904
94905 1999-01-10  Jim Meyering  <meyering@ascend.com>
94906
94907         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94908         gross kludge.
94909         * m4/inttypes_h.m4: Likewise.
94910         * m4/lstat.m4: Likewise.
94911         * m4/malloc.m4: Likewise.
94912         * m4/readdir.m4: Likewise.
94913         * m4/realloc.m4: Likewise.
94914         * m4/st_dm_mode.m4: Likewise.
94915         * m4/stat.m4: Likewise.
94916         * m4/utimbuf.m4: Likewise.
94917         * m4/utimes.m4: Likewise.
94918
94919         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94920         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94921         comments in config.h.in are meaningful.
94922
94923         * m4/jm-macros.m4: Require autoconf-2.13 here.
94924
94925         * m4/regex.m4: By default, don't use the included regex.c on systems
94926         with glibc 2.  Suggestion from Uli Drepper.
94927
94928 1999-01-02  Jim Meyering  <meyering@ascend.com>
94929
94930         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94931
94932 1998-12-18  Jim Meyering  <meyering@ascend.com>
94933
94934         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94935         Based on a suggestion from Lars Hecking.
94936
94937 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94938
94939         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94940
94941 1998-11-16  Jim Meyering  <meyering@ascend.com>
94942
94943         * m4/lfs.m4: Double-quote the `uname...` expression.
94944
94945 1998-11-14  Jim Meyering  <meyering@ascend.com>
94946
94947         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94948         * m4/stat.m4: Likewise.
94949
94950 1998-11-03  Jim Meyering  <meyering@ascend.com>
94951
94952         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94953         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94954
94955 1998-10-18  Jim Meyering  <meyering@ascend.com>
94956
94957         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94958
94959 1998-10-17  Jim Meyering  <meyering@ascend.com>
94960
94961         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94962         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94963         calls for those previously hard-coded headers.  Instead, take a new
94964         parameter.
94965         (jm_CHECK_DECLARATIONS): Reflect interface change.
94966         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94967         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94968
94969         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94970
94971 1998-10-14  Jim Meyering  <meyering@ascend.com>
94972
94973         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94974         instead of "TZ=America/Vancouver".  From Paul Eggert.
94975
94976 1998-10-11  Jim Meyering  <meyering@ascend.com>
94977
94978         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94979         This adds a test for a recently added compatibility fix for mktime.c.
94980         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94981
94982 1998-09-27  Jim Meyering  <meyering@ascend.com>
94983
94984         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94985
94986         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94987         ../configure.in, including a change from Gordon Matzigkeit to allow
94988         cross-compiling for the Hurd.
94989
94990         * m4/glibc.m4: New file/macro to test for the GNU C Library
94991         versions 1 and 2.  From Gordon Matzigkeit.
94992         Indent.
94993
94994 1998-09-21  Jim Meyering  <meyering@ascend.com>
94995
94996         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94997
94998 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94999
95000         Port nanosecond-resolution times to UnixWare 2.1.2 and
95001         pedantic Solaris 2.6.
95002
95003         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95004         AC_STRUCT_ST_MTIM.
95005         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95006         Generate name of ns member, instead of just 1 or undef.
95007         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95008
95009 1998-08-15  Jim Meyering  <meyering@ascend.com>
95010
95011         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95012         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95013         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95014         instead of jm_TYPE_SSIZE_T.
95015
95016 1998-08-12  Jim Meyering  <meyering@ascend.com>
95017
95018         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95019
95020 1998-08-02  Jim Meyering  <meyering@ascend.com>
95021
95022         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95023         in acconfig.h manually.
95024
95025 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95026
95027         * m4/st_mtim.m4: New file.
95028
95029 1998-07-28  Jim Meyering  <meyering@ascend.com>
95030
95031         * m4/utimes.m4: Undef stat.
95032
95033 1998-07-25  Jim Meyering  <meyering@ascend.com>
95034
95035         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95036         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95037
95038 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95039
95040         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95041         uid and gid actually remain unchanged.
95042
95043 1998-07-07  Jim Meyering  <meyering@ascend.com>
95044
95045         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95046
95047 1998-07-04  Jim Meyering  <meyering@ascend.com>
95048
95049         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95050         to prove that this macro can be used in packages without regex.c.
95051
95052 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95053
95054         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95055         is to be used.
95056
95057 1998-07-03  Jim Meyering  <meyering@ascend.com>
95058
95059         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95060
95061         * m4/gettext.m4: New file -- from gettext-0.10.35.
95062         * m4/lcmessage.m4: Likewise.
95063         * m4/progtest.m4: Likewise.
95064
95065         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95066         * m4/jm-macros.m4: Require the new macro.
95067
95068 1998-06-29  Jim Meyering  <meyering@ascend.com>
95069
95070         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95071         for the definition of NGROUPS (used in a system header included
95072         by sys/mount.h).
95073
95074 1998-06-28  Jim Meyering  <meyering@ascend.com>
95075
95076         * m4/ls-mntd-fs.m4: New file.
95077         * m4/fstypename.m4: New file.
95078
95079         * m4/jm-macros.m4: Require the new macro.
95080         * m4/jm-glibc-io.m4: New file.
95081
95082 1998-05-19  Jim Meyering  <meyering@ascend.com>
95083
95084         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95085         * m4/lchown.m4: New file.
95086
95087         * m4/Makefile.am.in: New file.
95088         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95089
95090 1998-05-14  Jim Meyering  <meyering@ascend.com>
95091
95092         * m4/Makefile.am (EXTRA_DIST): Add them.
95093         * m4/jm-macros.m4: New file.
95094         * m4/utimbuf.m4: New file.
95095
95096 1998-05-12  Jim Meyering  <meyering@ascend.com>
95097
95098         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95099
95100 1998-05-11  Jim Meyering  <meyering@ascend.com>
95101
95102         * m4/isc-posix.m4: New file.
95103
95104 1998-05-10  Jim Meyering  <meyering@ascend.com>
95105
95106         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95107
95108 1998-05-09  Jim Meyering  <meyering@ascend.com>
95109
95110         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95111         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95112         with automake.
95113
95114         * m4/ssize_t.m4: New file.
95115         * m4/mktime.m4: Remove file -- the new automake has this now.
95116
95117 1998-04-26  Jim Meyering  <meyering@ascend.com>
95118
95119         * m4/assert.m4: New file.
95120         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95121
95122 1998-04-05  Jim Meyering  <meyering@ascend.com>
95123
95124         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95125         (jm_PREREQ): Use it here.
95126
95127 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95128
95129         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95130         in acconfig.h.
95131
95132 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95133
95134         * m4/prereq.m4: New file.
95135         * m4/error.m4: New file.
95136         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95137
95138 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95139
95140         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95141         cache-check for the same variable -- that defeated the purpose of
95142         the test; the test program was never run.  This was a problem only
95143         on systems with losing getline functions -- HP-UX 10.20 is one.
95144         Reported by Bjorn Helgaas.
95145
95146 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95147
95148         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95149
95150 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95151
95152         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95153
95154         * m4/const.m4: New file.  Use an initializer in this declaration
95155         typedef int charset[2]; const charset x;
95156         Reported by Bob Glickstein.
95157
95158 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95159
95160         * m4/chown.m4: Fix reversed types on -1 args to chown.
95161         From Kaveh Ghazi.
95162
95163 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95164
95165         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95166         Add lseek and memchr.
95167
95168         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95169         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95170         have a 20-character limit on names.
95171
95172 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95173
95174         * m4/inttypes_h.m4: New file.
95175         * m4/uintmax_t.m4: New file.
95176         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95177
95178
95179         -----
95180
95181         Local Variables:
95182         coding: utf-8
95183         End:
95184
95185         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95186
95187         Copying and distribution of this file, with or without
95188         modification, are permitted provided the copyright notice
95189         and this notice are preserved.